Skip to content

Commit f398903

Browse files
authored
Merge branch 'alpha' into moumouls/fix-peer-dep-apollo
2 parents 60b35d2 + 1e05309 commit f398903

14 files changed

+407
-671
lines changed

changelogs/CHANGELOG_alpha.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# [5.0.0-alpha.22](https://github.com/parse-community/parse-server/compare/5.0.0-alpha.21...5.0.0-alpha.22) (2022-02-06)
2+
3+
4+
### Features
5+
6+
* upgrade to MongoDB Node.js driver 4.x for MongoDB 5.0 support ([#7794](https://github.com/parse-community/parse-server/issues/7794)) ([f88aa2a](https://github.com/parse-community/parse-server/commit/f88aa2a62a533e5344d1c13dd38c5a0b283a480a))
7+
8+
9+
### BREAKING CHANGES
10+
11+
* The MongoDB GridStore adapter has been removed. By default, Parse Server already uses GridFS, so if you do not manually use the GridStore adapter, you can ignore this change. ([f88aa2a](f88aa2a))
12+
113
# [5.0.0-alpha.21](https://github.com/parse-community/parse-server/compare/5.0.0-alpha.20...5.0.0-alpha.21) (2022-01-25)
214

315

package-lock.json

+116-21
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "parse-server",
3-
"version": "5.0.0-alpha.21",
3+
"version": "5.0.0-alpha.22",
44
"description": "An express module providing a Parse-compatible API server",
55
"main": "lib/index.js",
66
"repository": {
@@ -46,7 +46,7 @@
4646
"lodash": "4.17.21",
4747
"lru-cache": "5.1.1",
4848
"mime": "3.0.0",
49-
"mongodb": "3.6.11",
49+
"mongodb": "4.3.1",
5050
"mustache": "4.2.0",
5151
"parse": "3.4.1",
5252
"pg-monitor": "1.4.1",
@@ -118,12 +118,13 @@
118118
"test:mongodb:4.0.27": "npm run test:mongodb --dbversion=4.0.27",
119119
"test:mongodb:4.2.17": "npm run test:mongodb --dbversion=4.2.17",
120120
"test:mongodb:4.4.10": "npm run test:mongodb --dbversion=4.4.10",
121+
"test:mongodb:5.0.5": "npm run test:mongodb --dbversion=5.0.5",
121122
"posttest:mongodb": "mongodb-runner stop",
122-
"pretest": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=4.4.10} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} MONGODB_STORAGE_ENGINE=${MONGODB_STORAGE_ENGINE:=wiredTiger} mongodb-runner start",
123-
"testonly": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=4.4.10} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} MONGODB_STORAGE_ENGINE=${MONGODB_STORAGE_ENGINE:=wiredTiger} TESTING=1 jasmine",
123+
"pretest": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=5.0.5} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} MONGODB_STORAGE_ENGINE=${MONGODB_STORAGE_ENGINE:=wiredTiger} mongodb-runner start",
124+
"testonly": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=5.0.5} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} MONGODB_STORAGE_ENGINE=${MONGODB_STORAGE_ENGINE:=wiredTiger} TESTING=1 jasmine",
124125
"test": "npm run testonly",
125-
"posttest": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=4.4.10} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} MONGODB_STORAGE_ENGINE=${MONGODB_STORAGE_ENGINE:=wiredTiger} mongodb-runner stop",
126-
"coverage": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=4.4.10} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} MONGODB_STORAGE_ENGINE=${MONGODB_STORAGE_ENGINE:=wiredTiger} TESTING=1 nyc jasmine",
126+
"posttest": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=5.0.5} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} MONGODB_STORAGE_ENGINE=${MONGODB_STORAGE_ENGINE:=wiredTiger} mongodb-runner stop",
127+
"coverage": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=5.0.5} MONGODB_TOPOLOGY=${MONGODB_TOPOLOGY:=standalone} MONGODB_STORAGE_ENGINE=${MONGODB_STORAGE_ENGINE:=wiredTiger} TESTING=1 nyc jasmine",
127128
"start": "node ./bin/parse-server",
128129
"prettier": "prettier --write {src,spec}/{**/*,*}.js",
129130
"prepare": "npm run build",

spec/AudienceRouter.spec.js

+15-14
Original file line numberDiff line numberDiff line change
@@ -326,22 +326,24 @@ describe('AudiencesRouter', () => {
326326
{ name: 'My Audience', query: JSON.stringify({ deviceType: 'ios' }) },
327327
{ useMasterKey: true }
328328
).then(audience => {
329-
database.collection('test__Audience').updateOne(
330-
{ _id: audience.objectId },
331-
{
332-
$set: {
333-
times_used: 1,
334-
_last_used: now,
335-
},
336-
},
337-
{},
338-
error => {
339-
expect(error).toEqual(null);
329+
database
330+
.collection('test__Audience')
331+
.updateOne(
332+
{ _id: audience.objectId },
333+
{
334+
$set: {
335+
times_used: 1,
336+
_last_used: now,
337+
},
338+
}
339+
)
340+
.then(result => {
341+
expect(result).toBeTruthy();
340342
database
341343
.collection('test__Audience')
342344
.find({ _id: audience.objectId })
343345
.toArray((error, rows) => {
344-
expect(error).toEqual(null);
346+
expect(error).toEqual(undefined);
345347
expect(rows[0]['times_used']).toEqual(1);
346348
expect(rows[0]['_last_used']).toEqual(now);
347349
Parse._request(
@@ -361,8 +363,7 @@ describe('AudiencesRouter', () => {
361363
done.fail(error);
362364
});
363365
});
364-
}
365-
);
366+
});
366367
});
367368
});
368369

0 commit comments

Comments
 (0)