From 2546cc8572bea6610cb9b3c7401d9afac0e3c1d6 Mon Sep 17 00:00:00 2001 From: dblythy Date: Fri, 11 Nov 2022 02:15:55 +1100 Subject: [PATCH] fix: Remove Node 12 and Node 17 support (#8279) BREAKING CHANGE: This release removes Node 12 and Node 17 support --- .babelrc | 2 +- .github/workflows/ci.yml | 12 +----------- README.md | 10 ++++------ package.json | 2 +- spec/.babelrc | 2 +- 5 files changed, 8 insertions(+), 20 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 71fe415f7f..7cecfc64ed 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -157,26 +157,16 @@ 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 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 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 e790133436..fe11a462c5 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) [![Build Status](https://github.com/parse-community/parse-server/workflows/ci/badge.svg?branch=beta)](https://github.com/parse-community/parse-server/actions?query=workflow%3Aci+branch%3Abeta) [![Build Status](https://github.com/parse-community/parse-server/workflows/ci/badge.svg?branch=release)](https://github.com/parse-community/parse-server/actions?query=workflow%3Aci+branch%3Arelease) @@ -128,10 +128,8 @@ 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 | | Node.js 18 | 18.1.0 | April 2025 | ✅ Yes | #### MongoDB @@ -391,7 +389,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 @@ -432,7 +430,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 @@ -520,7 +518,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 120018316a..914b4be7fe 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.21.0 <17 || >=18 <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" } }] ],