From c3fe65778de6f2e09a34ea054c3beacaee3e00a4 Mon Sep 17 00:00:00 2001 From: Niklas Mollenhauer Date: Tue, 5 Dec 2023 20:22:53 +0100 Subject: [PATCH 1/5] fix: upgrade currently supported node versions According to the readme, parse follows the supported node versions: > Parse JS SDK is continuously tested with the most recent releases of Node.js to ensure compatibility. > We follow the [Node.js Long Term Support plan](https://github.com/nodejs/Release) and only > test against versions that are officially supported and have not reached their end-of-life date. This commit aligns the repository with the currently supported Node.js versions --- .github/workflows/ci.yml | 15 +++++---------- .github/workflows/release-automated.yml | 6 +++--- .github/workflows/release-manual-docs.yml | 4 ++-- README.md | 9 ++++----- package-lock.json | 2 +- package.json | 2 +- 6 files changed, 16 insertions(+), 22 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 702ab3d8a..01808c9f7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,21 +40,16 @@ jobs: strategy: matrix: include: - - name: Node 14 - NODE_VERSION: 14.21.1 - - name: Node 16 - NODE_VERSION: 16.18.1 - name: Node 18 - NODE_VERSION: 18.12.1 - - name: Node 19 - NODE_VERSION: 19.3.0 + NODE_VERSION: 18.19.0 + - name: Node 20 + NODE_VERSION: 20.10.0 + - name: Node 21 + NODE_VERSION: 21.4.0 fail-fast: false steps: - name: Fix usage of insecure GitHub protocol run: sudo git config --system url."https://github".insteadOf "git://github" - - name: Fix git protocol for Node 14 - if: ${{ startsWith(matrix.NODE_VERSION, '14.') }} - run: sudo git config --system url."https://github".insteadOf "ssh://git@github" - uses: actions/checkout@v3 - name: Use Node.js uses: actions/setup-node@v3 diff --git a/.github/workflows/release-automated.yml b/.github/workflows/release-automated.yml index 6f10c8312..f6c3decda 100644 --- a/.github/workflows/release-automated.yml +++ b/.github/workflows/release-automated.yml @@ -17,7 +17,7 @@ jobs: persist-credentials: false - uses: actions/setup-node@v2 with: - node-version: 18 + node-version: 20 registry-url: https://registry.npmjs.org/ - name: Cache Node.js modules uses: actions/cache@v2 @@ -35,7 +35,7 @@ jobs: - name: Determine tag on current commit id: tag run: echo "::set-output name=current_tag::$(git describe --tags --abbrev=0 --exact-match || echo '')" - + docs-publish: needs: release if: needs.release.outputs.current_tag != '' && github.ref == 'refs/heads/release' @@ -48,7 +48,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v1 with: - node-version: 16 + node-version: 20 - name: Cache Node.js modules uses: actions/cache@v2 with: diff --git a/.github/workflows/release-manual-docs.yml b/.github/workflows/release-manual-docs.yml index 89c797146..15b09ba55 100644 --- a/.github/workflows/release-manual-docs.yml +++ b/.github/workflows/release-manual-docs.yml @@ -4,7 +4,7 @@ on: inputs: tag: default: '' - description: 'Version tag:' + description: 'Version tag:' jobs: docs-publish: if: github.event.inputs.tag != '' @@ -17,7 +17,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v1 with: - node-version: 16 + node-version: 20 - name: Cache Node.js modules uses: actions/cache@v2 with: diff --git a/README.md b/README.md index a79506470..2b0c7d270 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ [![Snyk Badge](https://snyk.io/test/github/parse-community/Parse-SDK-JS/badge.svg)](https://snyk.io/test/github/parse-community/Parse-SDK-JS) [![Coverage](http://codecov.io/github/parse-community/Parse-SDK-JS/coverage.svg?branch=alpha)](http://codecov.io/github/parse-community/Parse-SDK-JS?branch=alpha) -[![Node Version](https://img.shields.io/badge/nodejs-14,_16,_18-green.svg?logo=node.js&style=flat)](https://nodejs.org/) +[![Node Version](https://img.shields.io/badge/nodejs-18,_20,_21-green.svg?logo=node.js&style=flat)](https://nodejs.org/) [![auto-release](https://img.shields.io/badge/%F0%9F%9A%80-auto--release-9e34eb.svg)](https://github.com/parse-community/parse-dashboard/releases) [![npm latest version](https://img.shields.io/npm/v/parse/latest.svg)](https://www.npmjs.com/package/parse) @@ -97,10 +97,9 @@ Parse JS SDK is continuously tested with the most recent releases of Node.js to | Version | Latest Version | End-of-Life | Compatible | |------------|----------------|-------------|------------| -| Node.js 14 | 14.19.1 | April 2023 | ✅ Yes | -| Node.js 16 | 16.19.0 | September 2023 | ✅ Yes | -| Node.js 18 | 18.12.1 | April 2025 | ✅ Yes | -| Node.js 19 | 19.3.0 | June 2023 | ✅ Yes | +| Node.js 18 | 18.19.0 | April 2025 | ✅ Yes | +| Node.js 20 | 20.10.0 | April 2026 | ✅ Yes | +| Node.js 21 | 21.4.0 | June 2024 | ✅ Yes | ## Upgrading to Parse SDK 2.0.0 diff --git a/package-lock.json b/package-lock.json index afd5b8564..47f66402d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -73,7 +73,7 @@ "vinyl-source-stream": "2.0.0" }, "engines": { - "node": ">=14.21.0 <17 || >=18 <20" + "node": ">=18 <22" }, "optionalDependencies": { "crypto-js": "4.2.0" diff --git a/package.json b/package.json index b608cea75..3519f9c9d 100644 --- a/package.json +++ b/package.json @@ -131,7 +131,7 @@ ] }, "engines": { - "node": ">=14.21.0 <17 || >=18 <20" + "node": ">=18 <22" }, "jest": { "automock": true, From 030d6c20083b5862a2726baa6207ac02e0645049 Mon Sep 17 00:00:00 2001 From: Manuel Trezza <5673677+mtrezza@users.noreply.github.com> Date: Sat, 9 Mar 2024 16:47:35 +0100 Subject: [PATCH 2/5] remove node 21 support --- .github/workflows/ci.yml | 2 -- .github/workflows/release-manual-docs.yml | 2 +- README.md | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 38078911d..fe1875f53 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,8 +44,6 @@ jobs: NODE_VERSION: 18.19.0 - name: Node 20 NODE_VERSION: 20.10.0 - - name: Node 21 - NODE_VERSION: 21.4.0 fail-fast: false steps: - name: Fix usage of insecure GitHub protocol diff --git a/.github/workflows/release-manual-docs.yml b/.github/workflows/release-manual-docs.yml index a443fdd69..4e810fe82 100644 --- a/.github/workflows/release-manual-docs.yml +++ b/.github/workflows/release-manual-docs.yml @@ -15,7 +15,7 @@ jobs: with: ref: ${{ github.event.inputs.tag }} - name: Use Node.js - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: node-version: 18 cache: npm diff --git a/README.md b/README.md index 2b0c7d270..321b61b5e 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ [![Snyk Badge](https://snyk.io/test/github/parse-community/Parse-SDK-JS/badge.svg)](https://snyk.io/test/github/parse-community/Parse-SDK-JS) [![Coverage](http://codecov.io/github/parse-community/Parse-SDK-JS/coverage.svg?branch=alpha)](http://codecov.io/github/parse-community/Parse-SDK-JS?branch=alpha) -[![Node Version](https://img.shields.io/badge/nodejs-18,_20,_21-green.svg?logo=node.js&style=flat)](https://nodejs.org/) +[![Node Version](https://img.shields.io/badge/nodejs-18,_20-green.svg?logo=node.js&style=flat)](https://nodejs.org/) [![auto-release](https://img.shields.io/badge/%F0%9F%9A%80-auto--release-9e34eb.svg)](https://github.com/parse-community/parse-dashboard/releases) [![npm latest version](https://img.shields.io/npm/v/parse/latest.svg)](https://www.npmjs.com/package/parse) From 1f6b33b24c3bedd178345515be84a9fd8f2e5217 Mon Sep 17 00:00:00 2001 From: Manuel Trezza <5673677+mtrezza@users.noreply.github.com> Date: Sat, 9 Mar 2024 16:48:25 +0100 Subject: [PATCH 3/5] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 321b61b5e..fb7a38ae9 100644 --- a/README.md +++ b/README.md @@ -99,7 +99,6 @@ Parse JS SDK is continuously tested with the most recent releases of Node.js to |------------|----------------|-------------|------------| | Node.js 18 | 18.19.0 | April 2025 | ✅ Yes | | Node.js 20 | 20.10.0 | April 2026 | ✅ Yes | -| Node.js 21 | 21.4.0 | June 2024 | ✅ Yes | ## Upgrading to Parse SDK 2.0.0 From 0ef4336eba30ee805ba463afa78d742998ae0a04 Mon Sep 17 00:00:00 2001 From: Manuel Trezza <5673677+mtrezza@users.noreply.github.com> Date: Sat, 9 Mar 2024 16:49:25 +0100 Subject: [PATCH 4/5] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 171146589..c3b89c292 100644 --- a/package.json +++ b/package.json @@ -131,7 +131,7 @@ ] }, "engines": { - "node": ">=18 <22" + "node": ">=18 <21" }, "jest": { "automock": true, From 6f5e3fc55188183b1f69eaff1ce7b1d0d9147ac9 Mon Sep 17 00:00:00 2001 From: Manuel Trezza <5673677+mtrezza@users.noreply.github.com> Date: Sat, 9 Mar 2024 16:50:06 +0100 Subject: [PATCH 5/5] Update package-lock.json --- package-lock.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 694f148b9..cd7fd4209 100644 --- a/package-lock.json +++ b/package-lock.json @@ -73,7 +73,7 @@ "vinyl-source-stream": "2.0.0" }, "engines": { - "node": ">=18 <22" + "node": ">=18 <21" }, "optionalDependencies": { "crypto-js": "4.2.0"