Skip to content

Commit bc04b4b

Browse files
authored
fix: Remove support for Node <14 (#1603)
BREAKING CHANGE: This release removes support for Node versions <14
1 parent 7fe54a2 commit bc04b4b

File tree

4 files changed

+20
-5
lines changed

4 files changed

+20
-5
lines changed

README.md

+15-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
[![Snyk Badge](https://snyk.io/test/github/parse-community/Parse-SDK-JS/badge.svg)](https://snyk.io/test/github/parse-community/Parse-SDK-JS)
99
[![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)
1010

11-
[![Node Version](https://img.shields.io/badge/nodejs-12,_14,_15-green.svg?logo=node.js&style=flat)](https://nodejs.org/)
11+
[![Node Version](https://img.shields.io/badge/nodejs-14-green.svg?logo=node.js&style=flat)](https://nodejs.org/)
1212
[![auto-release](https://img.shields.io/badge/%F0%9F%9A%80-auto--release-9e34eb.svg)](https://github.com/parse-community/parse-dashboard/releases)
1313

1414
[![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
2929

3030
- [Getting Started](#getting-started)
3131
- [Using Parse on Different Platforms](#using-parse-on-different-platforms)
32+
- [Compatibility](#compatibility)
3233
- [Upgrading to Parse SDK 2.0.0](#upgrading-to-parse-sdk-200)
3334
- [3rd Party Authentications](#3rd-party-authentications)
3435
- [Want to ride the bleeding edge?](#want-to-ride-the-bleeding-edge)
@@ -89,6 +90,17 @@ $ npm install @types/parse
8990

9091
Types are updated manually after every release. If a definition doesn't exist, please submit a pull request to [@types/parse][types-parse]
9192

93+
## Compatibility
94+
95+
### Node.js
96+
97+
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.
98+
99+
| Version | Latest Version | End-of-Life | Compatible |
100+
|------------|----------------|-------------|------------|
101+
| Node.js 14 | 14.19.1 | April 2023 | ✅ Yes |
102+
103+
92104
## Upgrading to Parse SDK 2.0.0
93105

94106
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
113125

114126
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].
115127

116-
128+
117129
[3rd-party-auth]: http://docs.parseplatform.org/parse-server/guide/#oauth-and-3rd-party-authentication
118130
[contributing]: https://github.com/parse-community/Parse-SDK-JS/blob/master/CONTRIBUTING.md
119131
[custom-auth-module]: https://docs.parseplatform.org/js/guide/#custom-authentication-module
120132
[link-with]: https://docs.parseplatform.org/js/guide/#linking-users
121133
[migration]: https://github.com/parse-community/Parse-SDK-JS/blob/master/2.0.0.md
122134
[open-collective-link]: https://opencollective.com/parse-server
123-
[types-parse]: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/parse
135+
[types-parse]: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/parse
124136
[license-link]: LICENSE

babel-jest.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const babelJest = require('babel-jest');
33
module.exports = babelJest.createTransformer({
44
presets: [["@babel/preset-env", {
55
"targets": {
6-
"node": "8"
6+
"node": "14"
77
},
88
useBuiltIns: 'entry',
99
corejs: 3,

gulpfile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const PRESETS = {
2727
"targets": "> 0.25%, not dead"
2828
}], '@babel/react'],
2929
'node': [["@babel/preset-env", {
30-
"targets": { "node": "8" }
30+
"targets": { "node": "14" }
3131
}]],
3232
'react-native': ['module:metro-react-native-babel-preset'],
3333
};

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@
122122
"git add"
123123
]
124124
},
125+
"engines": {
126+
"node": ">=14.21.0 <17 || >=18 <19"
127+
},
125128
"jest": {
126129
"automock": true,
127130
"collectCoverage": true,

0 commit comments

Comments
 (0)