From d0e3aaf06ebd992cc62626c25ac92702dc2f8d27 Mon Sep 17 00:00:00 2001 From: dblythy Date: Wed, 9 Nov 2022 06:51:46 +1100 Subject: [PATCH] change minimum node version --- README.md | 18 +++++++++++++++--- babel-jest.js | 2 +- gulpfile.js | 2 +- package.json | 3 +++ 4 files changed, 20 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 06d7410f5..97f733ac1 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-12,_14,_15-green.svg?logo=node.js&style=flat)](https://nodejs.org/) +[![Node Version](https://img.shields.io/badge/nodejs-14-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) @@ -29,6 +29,7 @@ A library that gives you access to the powerful Parse Server backend from your J - [Getting Started](#getting-started) - [Using Parse on Different Platforms](#using-parse-on-different-platforms) +- [Compatibility](#compatibility) - [Upgrading to Parse SDK 2.0.0](#upgrading-to-parse-sdk-200) - [3rd Party Authentications](#3rd-party-authentications) - [Want to ride the bleeding edge?](#want-to-ride-the-bleeding-edge) @@ -89,6 +90,17 @@ $ npm install @types/parse Types are updated manually after every release. If a definition doesn't exist, please submit a pull request to [@types/parse][types-parse] +## Compatibility + +### Node.js + +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. + +| Version | Latest Version | End-of-Life | Compatible | +|------------|----------------|-------------|------------| +| Node.js 14 | 14.19.1 | April 2023 | ✅ Yes | + + ## Upgrading to Parse SDK 2.0.0 With Parse SDK 2.0.0, gone are the backbone style callbacks and Parse.Promises. @@ -113,12 +125,12 @@ And don't forget, if you plan to deploy it remotely, you should run `npm install We really want Parse to be yours, to see it grow and thrive in the open source community. Please see the [Contributing to Parse Javascript SDK guide][contributing]. - + [3rd-party-auth]: http://docs.parseplatform.org/parse-server/guide/#oauth-and-3rd-party-authentication [contributing]: https://github.com/parse-community/Parse-SDK-JS/blob/master/CONTRIBUTING.md [custom-auth-module]: https://docs.parseplatform.org/js/guide/#custom-authentication-module [link-with]: https://docs.parseplatform.org/js/guide/#linking-users [migration]: https://github.com/parse-community/Parse-SDK-JS/blob/master/2.0.0.md [open-collective-link]: https://opencollective.com/parse-server -[types-parse]: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/parse +[types-parse]: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/parse [license-link]: LICENSE diff --git a/babel-jest.js b/babel-jest.js index b043d7639..3e65cec9f 100644 --- a/babel-jest.js +++ b/babel-jest.js @@ -3,7 +3,7 @@ const babelJest = require('babel-jest'); module.exports = babelJest.createTransformer({ presets: [["@babel/preset-env", { "targets": { - "node": "8" + "node": "14" }, useBuiltIns: 'entry', corejs: 3, diff --git a/gulpfile.js b/gulpfile.js index 80628d202..dba94a8e3 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -27,7 +27,7 @@ const PRESETS = { "targets": "> 0.25%, not dead" }], '@babel/react'], 'node': [["@babel/preset-env", { - "targets": { "node": "8" } + "targets": { "node": "14" } }]], 'react-native': ['module:metro-react-native-babel-preset'], }; diff --git a/package.json b/package.json index 409aba881..b0c66e21f 100644 --- a/package.json +++ b/package.json @@ -122,6 +122,9 @@ "git add" ] }, + "engines": { + "node": ">=14.21.0 <17 || >=18 <19" + }, "jest": { "automock": true, "collectCoverage": true,