From c39ebec028a077ee93aec24785137fc2fa1c73ca Mon Sep 17 00:00:00 2001 From: dblythy Date: Thu, 3 Nov 2022 11:17:36 +1100 Subject: [PATCH 1/4] fix: remove node 12 support --- .github/workflows/ci.yml | 5 ----- README.md | 9 ++++----- package.json | 2 +- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 71fe415f7f..ed87922ad2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -157,11 +157,6 @@ jobs: MONGODB_TOPOLOGY: standalone MONGODB_STORAGE_ENGINE: wiredTiger NODE_VERSION: 18.1.0 - - name: Node 12 - MONGODB_VERSION: 4.4.13 - MONGODB_TOPOLOGY: standalone - MONGODB_STORAGE_ENGINE: wiredTiger - NODE_VERSION: 12.22.11 - name: Node 14 MONGODB_VERSION: 4.4.13 MONGODB_TOPOLOGY: standalone diff --git a/README.md b/README.md index 9a6ee007d9..a40a9496ab 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ ![parse-repository-header-server](https://user-images.githubusercontent.com/5673677/138278489-7d0cebc5-1e31-4d3c-8ffb-53efcda6f29d.png) --- - + [![Build Status](https://github.com/parse-community/parse-server/workflows/ci/badge.svg?branch=alpha)](https://github.com/parse-community/parse-server/actions?query=workflow%3Aci+branch%3Aalpha) [![Snyk Badge](https://snyk.io/test/github/parse-community/parse-server/badge.svg)](https://snyk.io/test/github/parse-community/parse-server) [![Coverage](https://img.shields.io/codecov/c/github/parse-community/parse-server/alpha.svg)](https://codecov.io/github/parse-community/parse-server?branch=alpha) @@ -126,7 +126,6 @@ Parse Server is continuously tested with the most recent releases of Node.js to | Version | Latest Version | End-of-Life | Compatible | |------------|----------------|-------------|------------| -| Node.js 12 | 12.22.11 | April 2022 | ✅ Yes | | Node.js 14 | 14.19.1 | April 2023 | ✅ Yes | | Node.js 16 | 16.14.2 | April 2024 | ✅ Yes | | Node.js 17 | 17.9.0 | June 2022 | ✅ Yes | @@ -389,7 +388,7 @@ const server = ParseServer({ }, // The password policy - passwordPolicy: { + passwordPolicy: { // Enforce a password of at least 8 characters which contain at least 1 lower case, 1 upper case and 1 digit validatorPattern: /^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})/, // Do not allow the username as part of the password @@ -430,7 +429,7 @@ const api = new ParseServer({ The above route can be invoked by sending a `GET` request to: `https://[parseServerPublicUrl]/[parseMount]/[pagesEndpoint]/[appId]/[customRoute]` - + The `handler` receives the `request` and returns a `custom_page.html` webpage from the `pages.pagesPath` directory as response. The advantage of building a custom route this way is that it automatically makes use of Parse Server's built-in capabilities, such as [page localization](#pages) and [dynamic placeholders](#dynamic-placeholders). ### Reserved Paths @@ -518,7 +517,7 @@ Parse Server allows developers to choose from several options when hosting files `GridFSBucketAdapter` is used by default and requires no setup, but if you're interested in using Amazon S3, Google Cloud Storage, or local file storage, additional configuration information is available in the [Parse Server guide](http://docs.parseplatform.org/parse-server/guide/#configuring-file-adapters). ## Idempotency Enforcement - + **Caution, this is an experimental feature that may not be appropriate for production.** This feature deduplicates identical requests that are received by Parse Server multiple times, typically due to network issues or network adapter access restrictions on mobile operating systems. diff --git a/package.json b/package.json index 367e370b0f..7732b1ff44 100644 --- a/package.json +++ b/package.json @@ -133,7 +133,7 @@ "madge:circular": "node_modules/.bin/madge ./src --circular" }, "engines": { - "node": ">=12.22.10 <19" + "node": ">=14.15.0 <19" }, "bin": { "parse-server": "bin/parse-server" From 298788940f510cb3f97a1c96e40bd092f757bcef Mon Sep 17 00:00:00 2001 From: dblythy Date: Thu, 3 Nov 2022 11:43:29 +1100 Subject: [PATCH 2/4] remove node 17 --- .babelrc | 2 +- .github/workflows/ci.yml | 5 ----- README.md | 1 - package.json | 2 +- spec/.babelrc | 2 +- 5 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.babelrc b/.babelrc index 9151969bde..bf0132bd47 100644 --- a/.babelrc +++ b/.babelrc @@ -6,7 +6,7 @@ "presets": [ ["@babel/preset-env", { "targets": { - "node": "12" + "node": "14" } }] ], diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ed87922ad2..2739b9df11 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -167,11 +167,6 @@ jobs: MONGODB_TOPOLOGY: standalone MONGODB_STORAGE_ENGINE: wiredTiger NODE_VERSION: 16.14.2 - - name: Node 17 - MONGODB_VERSION: 4.4.13 - MONGODB_TOPOLOGY: standalone - MONGODB_STORAGE_ENGINE: wiredTiger - NODE_VERSION: 17.9.0 fail-fast: false name: ${{ matrix.name }} timeout-minutes: 15 diff --git a/README.md b/README.md index a40a9496ab..e84af86b19 100644 --- a/README.md +++ b/README.md @@ -128,7 +128,6 @@ Parse Server is continuously tested with the most recent releases of Node.js to |------------|----------------|-------------|------------| | Node.js 14 | 14.19.1 | April 2023 | ✅ Yes | | Node.js 16 | 16.14.2 | April 2024 | ✅ Yes | -| Node.js 17 | 17.9.0 | June 2022 | ✅ Yes | | Node.js 18 | 18.1.0 | April 2025 | ✅ Yes | #### MongoDB diff --git a/package.json b/package.json index 7732b1ff44..05fb6e646e 100644 --- a/package.json +++ b/package.json @@ -133,7 +133,7 @@ "madge:circular": "node_modules/.bin/madge ./src --circular" }, "engines": { - "node": ">=14.15.0 <19" + "node": ">=14.21.0 <19" }, "bin": { "parse-server": "bin/parse-server" diff --git a/spec/.babelrc b/spec/.babelrc index a611705cd0..2efe219a88 100644 --- a/spec/.babelrc +++ b/spec/.babelrc @@ -5,7 +5,7 @@ "presets": [ ["env", { "targets": { - "node": "8" + "node": "14" } }] ], From 0d33529b20bbf6022ab9dfe925e90c5031d1e91d Mon Sep 17 00:00:00 2001 From: dblythy Date: Thu, 3 Nov 2022 11:48:17 +1100 Subject: [PATCH 3/4] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2739b9df11..7cecfc64ed 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -161,7 +161,7 @@ jobs: MONGODB_VERSION: 4.4.13 MONGODB_TOPOLOGY: standalone MONGODB_STORAGE_ENGINE: wiredTiger - NODE_VERSION: 14.19.1 + NODE_VERSION: 14.21.0 - name: Node 16 MONGODB_VERSION: 4.4.13 MONGODB_TOPOLOGY: standalone From 39cf660f5c382d0424a3197359845fcf60721419 Mon Sep 17 00:00:00 2001 From: dblythy Date: Thu, 3 Nov 2022 13:05:45 +1100 Subject: [PATCH 4/4] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 05fb6e646e..d92b67e8a7 100644 --- a/package.json +++ b/package.json @@ -133,7 +133,7 @@ "madge:circular": "node_modules/.bin/madge ./src --circular" }, "engines": { - "node": ">=14.21.0 <19" + "node": ">=14.21.0 <17 || >=18 <19" }, "bin": { "parse-server": "bin/parse-server"