From 67ef817eeefebd8b1c41b9b2182c045b142a6582 Mon Sep 17 00:00:00 2001 From: Jonathan Samines Date: Mon, 17 Jun 2024 21:34:26 -0600 Subject: [PATCH] Drop support for Node.js 14 and 16 (#443) * Drop support for Node.js 14 and 16 * Update README references --- .github/workflows/nodejs.yml | 24 ++++++++++++------------ README.md | 4 ++-- package.json | 4 ++-- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index e4154be..8253fe0 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -4,7 +4,7 @@ on: push: branches: [master, develop] pull_request: - branches: ['*'] + branches: ["*"] jobs: build: @@ -12,16 +12,16 @@ jobs: strategy: matrix: - node-version: [14.x, 16.x, 18.x] + node-version: [18.x, 20.x] steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: npm ci - - run: npm test - - run: npx @pkgjs/support validate - env: - CI: true + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm test + - run: npx @pkgjs/support validate + env: + CI: true diff --git a/README.md b/README.md index 003d1dc..43d3707 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ | Version | Node support | |----------------------------------------------------------------------------------|---------------------| | [5.x](https://github.com/lelylan/simple-oauth2/tree/5.x) | Node 14.x or higher | -| [6.x (Development)](https://github.com/lelylan/simple-oauth2/tree/master) | Node 16.x or higher | +| [6.x (Development)](https://github.com/lelylan/simple-oauth2/tree/master) | Node 18.x or higher | Older node versions are unsupported. @@ -81,7 +81,7 @@ async function run() { redirect_uri: 'http://localhost:3000/callback', scope: '', state: '', - + customParam: 'foo', // non-standard oauth params may be passed as well }); diff --git a/package.json b/package.json index 2b141f1..bcd3aad 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "url": "https://github.com/lelylan/simple-oauth2" }, "engine": { - "node": ">=14" + "node": ">=18" }, "scripts": { "pretest": "npm run lint", @@ -65,6 +65,6 @@ "nock": "^13.2.9" }, "volta": { - "node": "16.13.1" + "node": "18.20.3" } }