Skip to content

Commit b62ab51

Browse files
authored
Merge branch 'master' into atlassearchindex
2 parents 6885089 + d789ca6 commit b62ab51

File tree

79 files changed

+7876
-3765
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+7876
-3765
lines changed

.github/workflows/ci.yml

Lines changed: 94 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,92 @@ env:
1111
NODE_VERSION: 10
1212
PARSE_SERVER_TEST_TIMEOUT: 20000
1313
jobs:
14+
check-ci:
15+
name: CI Self-Check
16+
timeout-minutes: 30
17+
runs-on: ubuntu-18.04
18+
steps:
19+
- uses: actions/checkout@v2
20+
- name: Use Node.js ${{ matrix.NODE_VERSION }}
21+
uses: actions/setup-node@v1
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
- name: Cache Node.js modules
25+
uses: actions/cache@v2
26+
with:
27+
path: ~/.npm
28+
key: ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
29+
restore-keys: |
30+
${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-
31+
- name: Install dependencies
32+
run: npm ci
33+
- name: CI Self-Check
34+
run: npm run ci:check
35+
check-lint:
36+
name: Lint
37+
timeout-minutes: 30
38+
runs-on: ubuntu-18.04
39+
steps:
40+
- uses: actions/checkout@v2
41+
- name: Use Node.js ${{ matrix.NODE_VERSION }}
42+
uses: actions/setup-node@v1
43+
with:
44+
node-version: ${{ matrix.node-version }}
45+
- name: Cache Node.js modules
46+
uses: actions/cache@v2
47+
with:
48+
path: ~/.npm
49+
key: ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
50+
restore-keys: |
51+
${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-
52+
- name: Install dependencies
53+
run: npm ci
54+
- run: npm run lint
1455
check-mongo:
1556
strategy:
1657
matrix:
1758
include:
18-
- name: Mongo 4.0.4, ReplicaSet, WiredTiger
19-
MONGODB_VERSION: 4.0.4
59+
- name: Mongo 4.4, ReplicaSet, WiredTiger
60+
MONGODB_VERSION: 4.4.4
61+
MONGODB_TOPOLOGY: replicaset
62+
MONGODB_STORAGE_ENGINE: wiredTiger
63+
NODE_VERSION: 14.16.0
64+
- name: Mongo 4.2, ReplicaSet, WiredTiger
65+
MONGODB_VERSION: 4.2.12
2066
MONGODB_TOPOLOGY: replicaset
2167
MONGODB_STORAGE_ENGINE: wiredTiger
22-
NODE_VERSION: 10
23-
- name: Mongo 3.6.21
24-
MONGODB_VERSION: 3.6.21
25-
NODE_VERSION: 10
68+
NODE_VERSION: 14.16.0
69+
- name: Mongo 4.0, ReplicaSet, WiredTiger
70+
MONGODB_VERSION: 4.0.23
71+
MONGODB_TOPOLOGY: replicaset
72+
MONGODB_STORAGE_ENGINE: wiredTiger
73+
NODE_VERSION: 14.16.0
74+
- name: Mongo 3.6, Standalone, MMAPv1
75+
MONGODB_VERSION: 3.6.22
76+
MONGODB_TOPOLOGY: standalone
77+
MONGODB_STORAGE_ENGINE: mmapv1
78+
NODE_VERSION: 14.16.0
2679
- name: Redis Cache
2780
PARSE_SERVER_TEST_CACHE: redis
28-
NODE_VERSION: 10
29-
- name: Node 12.12.0
30-
NODE_VERSION: 12.12.0
81+
MONGODB_VERSION: 4.4.4
82+
MONGODB_TOPOLOGY: standalone
83+
MONGODB_STORAGE_ENGINE: wiredTiger
84+
NODE_VERSION: 14.16.0
85+
- name: Node 10
86+
MONGODB_VERSION: 4.4.4
87+
MONGODB_TOPOLOGY: standalone
88+
MONGODB_STORAGE_ENGINE: wiredTiger
89+
NODE_VERSION: 10.24.0
90+
- name: Node 12
91+
MONGODB_VERSION: 4.4.4
92+
MONGODB_TOPOLOGY: standalone
93+
MONGODB_STORAGE_ENGINE: wiredTiger
94+
NODE_VERSION: 12.21.0
95+
- name: Node 15
96+
MONGODB_VERSION: 4.4.4
97+
MONGODB_TOPOLOGY: standalone
98+
MONGODB_STORAGE_ENGINE: wiredTiger
99+
NODE_VERSION: 15.10.0
31100
name: ${{ matrix.name }}
32101
timeout-minutes: 30
33102
runs-on: ubuntu-18.04
@@ -57,15 +126,26 @@ jobs:
57126
${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-
58127
- name: Install dependencies
59128
run: npm ci
60-
- if: ${{ matrix.name == 'Mongo 3.6.21' }}
61-
run: npm run lint
62129
- run: npm run pretest
63130
- run: npm run coverage
64131
env:
65132
CI: true
66133
- run: bash <(curl -s https://codecov.io/bash)
67134
check-postgres:
68-
name: Postgresql
135+
strategy:
136+
matrix:
137+
include:
138+
- name: Postgres 10, Postgis 3.1
139+
POSTGRES_IMAGE: postgis/postgis:10-3.1
140+
- name: Postgres 11, Postgis 3.1
141+
POSTGRES_IMAGE: postgis/postgis:11-3.1
142+
- name: Postgres 12, Postgis 3.1
143+
POSTGRES_IMAGE: postgis/postgis:12-3.1
144+
- name: Postgres 12, Postgis 3.0
145+
POSTGRES_IMAGE: postgis/postgis:12-3.0
146+
- name: Postgres 13, Postgis 3.1
147+
POSTGRES_IMAGE: postgis/postgis:13-3.1
148+
name: ${{ matrix.name }}
69149
timeout-minutes: 30
70150
runs-on: ubuntu-18.04
71151
services:
@@ -74,7 +154,7 @@ jobs:
74154
ports:
75155
- 6379:6379
76156
postgres:
77-
image: postgis/postgis:11-3.0
157+
image: ${{ matrix.POSTGRES_IMAGE }}
78158
env:
79159
POSTGRES_PASSWORD: postgres
80160
ports:
@@ -86,7 +166,6 @@ jobs:
86166
--health-retries 5
87167
env:
88168
PARSE_SERVER_TEST_DB: postgres
89-
POSTGRES_MAJOR_VERSION: 11
90169
PARSE_SERVER_TEST_DATABASE_URI: postgres://postgres:postgres@localhost:5432/parse_server_postgres_adapter_test_database
91170
steps:
92171
- uses: actions/checkout@v2
@@ -107,4 +186,4 @@ jobs:
107186
- run: npm run coverage
108187
env:
109188
CI: true
110-
- run: bash <(curl -s https://codecov.io/bash)
189+
- run: bash <(curl -s https://codecov.io/bash)

CHANGELOG.md

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,41 @@
11
## Parse Server Changelog
2+
<!--
3+
Please make sure you add your feature at the bottom of the associated group.
4+
Groups should be ordered:
5+
- NEW (EXPERIMENTAL)
6+
- NEW
7+
- IMPROVE
8+
- FIX
9+
Thanks for contributing to Parse Server!
10+
-->
211

312
### master
413
[Full Changelog](https://github.com/parse-community/parse-server/compare/4.5.0...master)
514

615
__BREAKING CHANGES:__
7-
- NEW: Added file upload restriction. File upload is now only allowed for authenticated users by default for improved security. To allow file upload also for Anonymous Users or Public, set the `fileUpload` parameter in the [Parse Server Options](https://parseplatform.org/parse-server/api/master/ParseServerOptions.html). [#7071](https://github.com/parse-community/parse-server/pull/7071). Thanks to [dblythy](https://github.com/dblythy).
16+
- NEW: Added file upload restriction. File upload is now only allowed for authenticated users by default for improved security. To allow file upload also for Anonymous Users or Public, set the `fileUpload` parameter in the [Parse Server Options](https://parseplatform.org/parse-server/api/master/ParseServerOptions.html). [#7071](https://github.com/parse-community/parse-server/pull/7071). Thanks to [dblythy](https://github.com/dblythy), [Manuel Trezza](https://github.com/mtrezza).
817
___
9-
- IMPROVE: Optimize queries on classes with pointer permissions. [#7061](https://github.com/parse-community/parse-server/pull/7061). Thanks to [Pedro Diaz](https://github.com/pdiaz)
10-
- FIX: request.context for afterFind triggers. [#7078](https://github.com/parse-community/parse-server/pull/7078). Thanks to [dblythy](https://github.com/dblythy)
11-
- NEW: Added convenience method Parse.Cloud.sendEmail(...) to send email via email adapter in Cloud Code. [#7089](https://github.com/parse-community/parse-server/pull/7089). Thanks to [dblythy](https://github.com/dblythy)
12-
- FIX: Winston Logger interpolating stdout to console [#7114](https://github.com/parse-community/parse-server/pull/7114). Thanks to [dplewis](https://github.com/dplewis)
18+
- FIX: Move graphql-tag from devDependencies to dependencies. [7183](https://github.com/parse-community/parse-server/pull/7183). Thanks to [Antonio Davi Macedo Coelho de Castro](https://github.com/davimacedo).
19+
- IMPROVE: Allow Cloud Validator `options` to be async [#7155](https://github.com/parse-community/parse-server/pull/7155). Thanks to [dblythy](https://github.com/dblythy)
20+
- NEW (EXPERIMENTAL): Added new page router with placeholder rendering and localization of custom and feature pages such as password reset and email verification. **Caution, this is an experimental feature that may not be appropriate for production.** [#6891](https://github.com/parse-community/parse-server/issues/6891). Thanks to [Manuel Trezza](https://github.com/mtrezza).
21+
- NEW: Added convenience method `Parse.Cloud.sendEmail(...)` to send email via email adapter in Cloud Code. [#7089](https://github.com/parse-community/parse-server/pull/7089). Thanks to [dblythy](https://github.com/dblythy)
1322
- NEW: LiveQuery support for $and, $nor, $containedBy, $geoWithin, $geoIntersects queries [#7113](https://github.com/parse-community/parse-server/pull/7113). Thanks to [dplewis](https://github.com/dplewis)
1423
- NEW: Supporting patterns in LiveQuery server's config parameter `classNames` [#7131](https://github.com/parse-community/parse-server/pull/7131). Thanks to [Nes-si](https://github.com/Nes-si)
24+
- NEW: `requireAnyUserRoles` and `requireAllUserRoles` for Parse Cloud validator. [#7097](https://github.com/parse-community/parse-server/pull/7097). Thanks to [dblythy](https://github.com/dblythy)
25+
- NEW: Support Facebook Limited Login [#7219](https://github.com/parse-community/parse-server/pull/7219). Thanks to [miguel-s](https://github.com/miguel-s)
1526
- IMPROVE: Removed Stage name check on aggregate pipelines [#7237](https://github.com/parse-community/parse-server/pull/7237). Thanks to [BRETT71](https://github.com/BRETT71)
27+
- IMPROVE: Retry transactions on MongoDB when it fails due to transient error [#7187](https://github.com/parse-community/parse-server/pull/7187). Thanks to [Antonio Davi Macedo Coelho de Castro](https://github.com/davimacedo).
28+
- IMPROVE: Bump tests to use Mongo 4.4.4 [#7184](https://github.com/parse-community/parse-server/pull/7184). Thanks to [Antonio Davi Macedo Coelho de Castro](https://github.com/davimacedo).
29+
- IMPROVE: Added new account lockout policy option `accountLockout.unlockOnPasswordReset` to automatically unlock account on password reset. [#7146](https://github.com/parse-community/parse-server/pull/7146). Thanks to [Manuel Trezza](https://github.com/mtrezza).
30+
- IMPROVE: Parse Server is from now on continuously tested against all recent MongoDB versions that have not reached their end-of-life support date. Added MongoDB compatibility table to Parse Server docs. [7161](https://github.com/parse-community/parse-server/pull/7161). Thanks to [Manuel Trezza](https://github.com/mtrezza).
31+
- IMPROVE: Parse Server is from now on continuously tested against all recent Node.js versions that have not reached their end-of-life support date. [7161](https://github.com/parse-community/parse-server/pull/7177). Thanks to [Manuel Trezza](https://github.com/mtrezza).
32+
- IMPROVE: Throw error on invalid Cloud Function validation configuration. [#7154](https://github.com/parse-community/parse-server/pull/7154). Thanks to [dblythy](https://github.com/dblythy)
33+
- IMPROVE: Allow Cloud Validator `options` to be async [#7155](https://github.com/parse-community/parse-server/pull/7155). Thanks to [dblythy](https://github.com/dblythy)
34+
- IMPROVE: Optimize queries on classes with pointer permissions. [#7061](https://github.com/parse-community/parse-server/pull/7061). Thanks to [Pedro Diaz](https://github.com/pdiaz)
35+
- IMPROVE: Parse Server will from now on be continuously tested against all relevant Postgres versions (minor versions). Added Postgres compatibility table to Parse Server docs. [#7176](https://github.com/parse-community/parse-server/pull/7176). Thanks to [Corey Baker](https://github.com/cbaker6).
36+
- FIX: Fix error when a not yet inserted job is updated [#7196](https://github.com/parse-community/parse-server/pull/7196). Thanks to [Antonio Davi Macedo Coelho de Castro](https://github.com/davimacedo).
37+
- FIX: request.context for afterFind triggers. [#7078](https://github.com/parse-community/parse-server/pull/7078). Thanks to [dblythy](https://github.com/dblythy)
38+
- FIX: Winston Logger interpolating stdout to console [#7114](https://github.com/parse-community/parse-server/pull/7114). Thanks to [dplewis](https://github.com/dplewis)
1639

1740
### 4.5.0
1841
[Full Changelog](https://github.com/parse-community/parse-server/compare/4.4.0...4.5.0)

0 commit comments

Comments
 (0)