Skip to content

Commit b50790a

Browse files
authored
build: Release (#2094)
2 parents 2f94e49 + 06dc1d8 commit b50790a

22 files changed

+4179
-1904
lines changed

.github/workflows/ci.yml

+4-17
Original file line numberDiff line numberDiff line change
@@ -40,33 +40,20 @@ jobs:
4040
strategy:
4141
matrix:
4242
include:
43-
- name: Node 14
44-
NODE_VERSION: 14.21.1
45-
- name: Node 16
46-
NODE_VERSION: 16.18.1
4743
- name: Node 18
48-
NODE_VERSION: 18.12.1
49-
- name: Node 19
50-
NODE_VERSION: 19.3.0
44+
NODE_VERSION: 18.19.0
45+
- name: Node 20
46+
NODE_VERSION: 20.10.0
5147
fail-fast: false
5248
steps:
5349
- name: Fix usage of insecure GitHub protocol
5450
run: sudo git config --system url."https://github".insteadOf "git://github"
55-
- name: Fix git protocol for Node 14
56-
if: ${{ startsWith(matrix.NODE_VERSION, '14.') }}
57-
run: sudo git config --system url."https://github".insteadOf "ssh://git@github"
5851
- uses: actions/checkout@v3
5952
- name: Use Node.js
6053
uses: actions/setup-node@v3
6154
with:
6255
node-version: ${{ matrix.NODE_VERSION }}
63-
- name: Cache Node.js modules
64-
uses: actions/cache@v3
65-
with:
66-
path: ~/.npm
67-
key: ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
68-
restore-keys: |
69-
${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-
56+
cache: npm
7057
- run: npm ci
7158
- run: npm run lint
7259
- run: npm test -- --maxWorkers=4

.github/workflows/release-automated.yml

+5-17
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,9 @@ jobs:
1717
persist-credentials: false
1818
- uses: actions/setup-node@v2
1919
with:
20-
node-version: 18
20+
node-version: 20
2121
registry-url: https://registry.npmjs.org/
22-
- name: Cache Node.js modules
23-
uses: actions/cache@v2
24-
with:
25-
path: ~/.npm
26-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
27-
restore-keys: |
28-
${{ runner.os }}-node-
22+
cache: npm
2923
- run: npm ci
3024
- run: npx semantic-release
3125
env:
@@ -35,7 +29,7 @@ jobs:
3529
- name: Determine tag on current commit
3630
id: tag
3731
run: echo "::set-output name=current_tag::$(git describe --tags --abbrev=0 --exact-match || echo '')"
38-
32+
3933
docs-publish:
4034
needs: release
4135
if: needs.release.outputs.current_tag != '' && github.ref == 'refs/heads/release'
@@ -48,14 +42,8 @@ jobs:
4842
- name: Use Node.js
4943
uses: actions/setup-node@v1
5044
with:
51-
node-version: 16
52-
- name: Cache Node.js modules
53-
uses: actions/cache@v2
54-
with:
55-
path: ~/.npm
56-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
57-
restore-keys: |
58-
${{ runner.os }}-node-
45+
node-version: 18
46+
cache: npm
5947
- name: Generate Docs
6048
run: |
6149
npm ci

.github/workflows/release-manual-docs.yml

+4-10
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
inputs:
55
tag:
66
default: ''
7-
description: 'Version tag:'
7+
description: 'Version tag:'
88
jobs:
99
docs-publish:
1010
if: github.event.inputs.tag != ''
@@ -15,16 +15,10 @@ jobs:
1515
with:
1616
ref: ${{ github.event.inputs.tag }}
1717
- name: Use Node.js
18-
uses: actions/setup-node@v1
18+
uses: actions/setup-node@v2
1919
with:
20-
node-version: 16
21-
- name: Cache Node.js modules
22-
uses: actions/cache@v2
23-
with:
24-
path: ~/.npm
25-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
26-
restore-keys: |
27-
${{ runner.os }}-node-
20+
node-version: 18
21+
cache: npm
2822
- name: Generate Docs
2923
run: |
3024
npm ci

2.0.0.md

-105
This file was deleted.

README.md

+13-14
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-14,_16,_18-green.svg?logo=node.js&style=flat)](https://nodejs.org/)
11+
[![Node Version](https://img.shields.io/badge/nodejs-18,_20-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,8 +29,8 @@ A library that gives you access to the powerful Parse Server backend from your J
2929
- [Getting Started](#getting-started)
3030
- [Using Parse on Different Platforms](#using-parse-on-different-platforms)
3131
- [Compatibility](#compatibility)
32+
- [Parse Server](#parse-server)
3233
- [Node.js](#nodejs)
33-
- [Upgrading to Parse SDK 2.0.0](#upgrading-to-parse-sdk-200)
3434
- [3rd Party Authentications](#3rd-party-authentications)
3535
- [Experimenting](#experimenting)
3636
- [Contributing](#contributing)
@@ -91,23 +91,23 @@ Types are updated manually after every release. If a definition doesn't exist, p
9191

9292
## Compatibility
9393

94+
### Parse Server
95+
96+
Parse JS SDK is compatible with the following versions of Parse Server.
97+
98+
| Parse JS SDK | Parse Server |
99+
|--------------|--------------|
100+
| 4.x.x | <= 6.x.x |
101+
| 5.x.x | >= 7.x.x |
102+
94103
### Node.js
95104

96105
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.
97106

98107
| Version | Latest Version | End-of-Life | Compatible |
99108
|------------|----------------|-------------|------------|
100-
| Node.js 14 | 14.19.1 | April 2023 | ✅ Yes |
101-
| Node.js 16 | 16.19.0 | September 2023 | ✅ Yes |
102-
| Node.js 18 | 18.12.1 | April 2025 | ✅ Yes |
103-
| Node.js 19 | 19.3.0 | June 2023 | ✅ Yes |
104-
105-
106-
## Upgrading to Parse SDK 2.0.0
107-
108-
With Parse SDK 2.0.0, gone are the backbone style callbacks and Parse.Promises.
109-
110-
We have curated a [migration guide][migration] that should help you migrate your code.
109+
| Node.js 18 | 18.19.0 | April 2025 | ✅ Yes |
110+
| Node.js 20 | 20.10.0 | April 2026 | ✅ Yes |
111111

112112
## 3rd Party Authentications
113113

@@ -132,6 +132,5 @@ We really want Parse to be yours, to see it grow and thrive in the open source c
132132
[contributing]: https://github.com/parse-community/Parse-SDK-JS/blob/master/CONTRIBUTING.md
133133
[custom-auth-module]: https://docs.parseplatform.org/js/guide/#custom-authentication-module
134134
[link-with]: https://docs.parseplatform.org/js/guide/#linking-users
135-
[migration]: https://github.com/parse-community/Parse-SDK-JS/blob/master/2.0.0.md
136135
[open-collective-link]: https://opencollective.com/parse-server
137136
[types-parse]: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/parse

changelogs/CHANGELOG_alpha.md

+49
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,52 @@
1+
# [5.0.0-alpha.3](https://github.com/parse-community/Parse-SDK-JS/compare/5.0.0-alpha.2...5.0.0-alpha.3) (2024-03-11)
2+
3+
4+
### Features
5+
6+
* Add comment to MongoDB query via `Parse.Query.comment` ([#2088](https://github.com/parse-community/Parse-SDK-JS/issues/2088)) ([a970913](https://github.com/parse-community/Parse-SDK-JS/commit/a9709136983b3c90ca88a8721b9cc54593c245cc))
7+
8+
# [5.0.0-alpha.2](https://github.com/parse-community/Parse-SDK-JS/compare/5.0.0-alpha.1...5.0.0-alpha.2) (2024-03-10)
9+
10+
11+
### Features
12+
13+
* Add compatibility with Parse Server 7 ([#2089](https://github.com/parse-community/Parse-SDK-JS/issues/2089)) ([86600bc](https://github.com/parse-community/Parse-SDK-JS/commit/86600bc5abc4ca705b7e252b3714579b2e4c1598))
14+
15+
16+
### BREAKING CHANGES
17+
18+
* Parse JS SDK 5 requires Parse Server 7 and is incompatible with Parse Server 6. ([86600bc](86600bc))
19+
20+
# [5.0.0-alpha.1](https://github.com/parse-community/Parse-SDK-JS/compare/4.3.1-alpha.2...5.0.0-alpha.1) (2024-03-09)
21+
22+
23+
### Features
24+
25+
* Add support for Node 20, remove support for Node 14 and 16 ([#2063](https://github.com/parse-community/Parse-SDK-JS/issues/2063)) ([74eb4d5](https://github.com/parse-community/Parse-SDK-JS/commit/74eb4d5f7d255f0f4e5d69758067f2a7d3caf014))
26+
27+
28+
### BREAKING CHANGES
29+
30+
* Removes support for Node 14 and 16. ([74eb4d5](74eb4d5))
31+
32+
## [4.3.1-alpha.2](https://github.com/parse-community/Parse-SDK-JS/compare/4.3.1-alpha.1...4.3.1-alpha.2) (2024-02-15)
33+
34+
35+
### Bug Fixes
36+
37+
* Calling `Parse.Object.relation.add` multiple times adds only the first object ([#2078](https://github.com/parse-community/Parse-SDK-JS/issues/2078)) ([0f98117](https://github.com/parse-community/Parse-SDK-JS/commit/0f981175c8f5155a631a0fcf9837ef5b285b2f55))
38+
39+
## [4.3.1-alpha.1](https://github.com/parse-community/Parse-SDK-JS/compare/4.3.0...4.3.1-alpha.1) (2023-11-18)
40+
41+
42+
### Bug Fixes
43+
44+
* Connection failure in `Parse.Object.saveEventually` and `Parse.Object.destroyEventually` not handled on custom `Parse.Error.CONNECTION_FAILURE` message ([#2032](https://github.com/parse-community/Parse-SDK-JS/issues/2032)) ([4da3ebc](https://github.com/parse-community/Parse-SDK-JS/commit/4da3ebcc28b903a499c07bb194baae738de21d6f))
45+
* Docs fail with `Cannot find module 'taffydb'` ([#2036](https://github.com/parse-community/Parse-SDK-JS/issues/2036)) ([dc91d0f](https://github.com/parse-community/Parse-SDK-JS/commit/dc91d0fc4f69639ba762f5af841477e8836c6927))
46+
* Error in web context when `window.indexedDB` API is available but protected ([#2039](https://github.com/parse-community/Parse-SDK-JS/issues/2039)) ([360981f](https://github.com/parse-community/Parse-SDK-JS/commit/360981f8a529f3e10243413c8114373271bb6f43))
47+
* Security upgrade browserify-sign from 4.2.1 to 4.2.2 ([#2043](https://github.com/parse-community/Parse-SDK-JS/issues/2043)) ([fd50b9d](https://github.com/parse-community/Parse-SDK-JS/commit/fd50b9dbc9feb8b51eedfcdddce37ea1882ac438))
48+
* Security upgrade crypto-js from 4.1.1 to 4.2.0 ([#2042](https://github.com/parse-community/Parse-SDK-JS/issues/2042)) ([681fbdf](https://github.com/parse-community/Parse-SDK-JS/commit/681fbdfcdd2e6d351e00400eccf41fe732b053ba))
49+
150
# [4.3.0-alpha.6](https://github.com/parse-community/Parse-SDK-JS/compare/4.3.0-alpha.5...4.3.0-alpha.6) (2023-10-28)
251

352

changelogs/CHANGELOG_beta.md

+19
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
# [5.0.0-beta.1](https://github.com/parse-community/Parse-SDK-JS/compare/4.3.1...5.0.0-beta.1) (2024-03-17)
2+
3+
4+
### Bug Fixes
5+
6+
* Calling `Parse.Object.relation.add` multiple times adds only the first object ([#2078](https://github.com/parse-community/Parse-SDK-JS/issues/2078)) ([0f98117](https://github.com/parse-community/Parse-SDK-JS/commit/0f981175c8f5155a631a0fcf9837ef5b285b2f55))
7+
8+
### Features
9+
10+
* Add comment to MongoDB query via `Parse.Query.comment` ([#2088](https://github.com/parse-community/Parse-SDK-JS/issues/2088)) ([a970913](https://github.com/parse-community/Parse-SDK-JS/commit/a9709136983b3c90ca88a8721b9cc54593c245cc))
11+
* Add compatibility with Parse Server 7 ([#2089](https://github.com/parse-community/Parse-SDK-JS/issues/2089)) ([86600bc](https://github.com/parse-community/Parse-SDK-JS/commit/86600bc5abc4ca705b7e252b3714579b2e4c1598))
12+
* Add support for Node 20, remove support for Node 14 and 16 ([#2063](https://github.com/parse-community/Parse-SDK-JS/issues/2063)) ([74eb4d5](https://github.com/parse-community/Parse-SDK-JS/commit/74eb4d5f7d255f0f4e5d69758067f2a7d3caf014))
13+
14+
15+
### BREAKING CHANGES
16+
17+
* Parse JS SDK 5 requires Parse Server 7 and is incompatible with Parse Server 6. ([86600bc](86600bc))
18+
* Removes support for Node 14 and 16. ([74eb4d5](74eb4d5))
19+
120
## [4.3.1-beta.1](https://github.com/parse-community/Parse-SDK-JS/compare/4.3.0...4.3.1-beta.1) (2023-11-16)
221

322

integration/test/ParseQueryTest.js

+15
Original file line numberDiff line numberDiff line change
@@ -2401,4 +2401,19 @@ describe('Parse Query', () => {
24012401
expect(results[1].get('arrayField')).toEqual([{ subfield: 1 }]);
24022402
expect(results[2].get('arrayField')).toEqual(null);
24032403
});
2404+
2405+
it('can query and send a comment', async () => {
2406+
const obj1 = new TestObject({ number: 1 });
2407+
const obj2 = new TestObject({ number: 2 });
2408+
const obj3 = new TestObject({ number: 3 });
2409+
await Parse.Object.saveAll([obj1, obj2, obj3]);
2410+
2411+
const query = new Parse.Query(TestObject);
2412+
const comment = 'Hello Parse';
2413+
query.comment(comment);
2414+
query.explain();
2415+
const explain = await query.find();
2416+
assert.equal(explain.command.comment, comment);
2417+
});
2418+
24042419
});

0 commit comments

Comments
 (0)