Skip to content

Commit c99adfa

Browse files
authored
build: Release (#8415)
2 parents 679c61d + 301459d commit c99adfa

File tree

106 files changed

+31001
-7218
lines changed

Some content is hidden

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

106 files changed

+31001
-7218
lines changed

.babelrc

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
"presets": [
77
["@babel/preset-env", {
88
"targets": {
9-
"node": "12"
10-
}
9+
"node": "14",
10+
},
11+
"exclude": ["proposal-dynamic-import"]
1112
}]
1213
],
1314
"sourceMaps": "inline"

.dockerignore

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
node_modules
22
npm-debug.log
33
*.md
4-
PATENTS
5-
LICENSE
64
Dockerfile
75
.dockerignore
86
.gitignore

.eslintrc.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@
55
"node": true,
66
"es6": true
77
},
8-
"parser": "babel-eslint",
8+
"parser": "@babel/eslint-parser",
99
"plugins": [
1010
"flowtype"
1111
],
1212
"parserOptions": {
1313
"ecmaVersion": 6,
14-
"sourceType": "module"
14+
"sourceType": "module",
15+
"requireConfigFile": false
1516
},
1617
"rules": {
1718
"indent": ["error", 2, { "SwitchCase": 1 }],

.flowconfig

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88

99
[options]
1010
suppress_comment= \\(.\\|\n\\)*\\@flow-disable-next
11+
esproposal.optional_chaining=enable

.github/pull_request_template.md

+12-20
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,21 @@
1-
### New Pull Request Checklist
2-
<!--
3-
Please check the following boxes [x] before submitting your issue.
4-
Click the "Preview" tab for better readability.
5-
Thanks for contributing to Parse Server!
6-
-->
1+
## Pull Request
72

8-
- [ ] I am not disclosing a [vulnerability](https://github.com/parse-community/parse-server/blob/master/SECURITY.md).
9-
- [ ] I am creating this PR in reference to an [issue](https://github.com/parse-community/parse-server/issues?q=is%3Aissue).
3+
- Report security issues [confidentially](https://github.com/parse-community/parse-server/security/policy).
4+
- Any contribution is under this [license](https://github.com/parse-community/parse-server/blob/alpha/LICENSE).
5+
- Link this pull request to an [issue](https://github.com/parse-community/parse-server/issues?q=is%3Aissue).
106

11-
### Issue Description
12-
<!-- Add a brief description of the issue this PR solves. -->
7+
## Issue
8+
<!-- Add the link to the issue that this PR closes. -->
139

14-
Related issue: FILL_THIS_OUT
10+
Closes: FILL_THIS_OUT
1511

16-
### Approach
17-
<!-- Add a description of the approach in this PR. -->
12+
## Approach
13+
<!-- Describe the changes in this PR. -->
1814

19-
### TODOs before merging
20-
<!--
21-
Add TODOs that need to be completed before merging this PR.
22-
Delete suggested TODOs that do not apply to this PR.
23-
-->
15+
## Tasks
16+
<!-- Delete tasks that don't apply. -->
2417

2518
- [ ] Add tests
26-
- [ ] Add changes to documentation (guides, repository pages, in-code descriptions)
19+
- [ ] Add changes to documentation (guides, repository pages, code comments)
2720
- [ ] Add [security check](https://github.com/parse-community/parse-server/blob/master/CONTRIBUTING.md#security-checks)
2821
- [ ] Add new Parse Error codes to Parse JS SDK <!-- no hard-coded error codes in Parse Server -->
29-
- [x] A changelog entry is created automatically using the pull request title (do not manually add a changelog entry)

.github/workflows/ci.yml

+56-55
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: ci
22
on:
33
push:
4-
branches: [ release, alpha, beta ]
4+
branches: [ release*, alpha, beta ]
55
pull_request:
6-
branches: [ release, alpha, beta ]
6+
branches: [ release*, alpha, beta ]
77
env:
8-
NODE_VERSION: 18.1.0
8+
NODE_VERSION: 19.3.0
99
PARSE_SERVER_TEST_TIMEOUT: 20000
1010
jobs:
1111
check-code-analysis:
@@ -32,7 +32,7 @@ jobs:
3232
check-ci:
3333
name: Node Engine Check
3434
timeout-minutes: 15
35-
runs-on: ubuntu-20.04
35+
runs-on: ubuntu-latest
3636
steps:
3737
- uses: actions/checkout@v2
3838
- name: Use Node.js ${{ matrix.NODE_VERSION }}
@@ -53,7 +53,7 @@ jobs:
5353
check-lint:
5454
name: Lint
5555
timeout-minutes: 15
56-
runs-on: ubuntu-20.04
56+
runs-on: ubuntu-latest
5757
steps:
5858
- uses: actions/checkout@v2
5959
- name: Use Node.js ${{ matrix.NODE_VERSION }}
@@ -70,10 +70,31 @@ jobs:
7070
- name: Install dependencies
7171
run: npm ci
7272
- run: npm run lint
73+
check-definitions:
74+
name: Check Definitions
75+
timeout-minutes: 5
76+
runs-on: ubuntu-18.04
77+
steps:
78+
- uses: actions/checkout@v2
79+
- name: Use Node.js ${{ matrix.NODE_VERSION }}
80+
uses: actions/setup-node@v2
81+
with:
82+
node-version: ${{ matrix.node-version }}
83+
- name: Cache Node.js modules
84+
uses: actions/cache@v2
85+
with:
86+
path: ~/.npm
87+
key: ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
88+
restore-keys: |
89+
${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-
90+
- name: Install dependencies
91+
run: npm ci
92+
- name: CI Definitions Check
93+
run: npm run ci:definitionsCheck
7394
check-circular:
7495
name: Circular Dependencies
7596
timeout-minutes: 5
76-
runs-on: ubuntu-20.04
97+
runs-on: ubuntu-latest
7798
steps:
7899
- uses: actions/checkout@v2
79100
- name: Use Node.js ${{ matrix.NODE_VERSION }}
@@ -93,7 +114,7 @@ jobs:
93114
check-docker:
94115
name: Docker Build
95116
timeout-minutes: 15
96-
runs-on: ubuntu-20.04
117+
runs-on: ubuntu-latest
97118
steps:
98119
- name: Checkout repository
99120
uses: actions/checkout@v2
@@ -110,77 +131,54 @@ jobs:
110131
check-lock-file-version:
111132
name: NPM Lock File Version
112133
timeout-minutes: 5
113-
runs-on: ubuntu-20.04
134+
runs-on: ubuntu-latest
114135
steps:
115136
- uses: actions/checkout@v2
116137
- name: Check NPM lock file version
117138
uses: mansona/npm-lockfile-version@v1
118139
with:
119-
version: 1
140+
version: 2
120141
check-mongo:
121142
strategy:
122143
matrix:
123144
include:
124-
- name: MongoDB 4.0, Standalone, MMAPv1
125-
MONGODB_VERSION: 4.0.28
126-
MONGODB_TOPOLOGY: standalone
127-
MONGODB_STORAGE_ENGINE: mmapv1
128-
NODE_VERSION: 18.1.0
129-
- name: MongoDB 4.0, ReplicaSet, WiredTiger
130-
MONGODB_VERSION: 4.0.28
131-
MONGODB_TOPOLOGY: replicaset
132-
MONGODB_STORAGE_ENGINE: wiredTiger
133-
NODE_VERSION: 18.1.0
134-
- name: MongoDB 4.2, ReplicaSet, WiredTiger
145+
- name: MongoDB 4.2, ReplicaSet
135146
MONGODB_VERSION: 4.2.19
136147
MONGODB_TOPOLOGY: replicaset
137-
MONGODB_STORAGE_ENGINE: wiredTiger
138-
NODE_VERSION: 18.1.0
139-
- name: MongoDB 4.4, ReplicaSet, WiredTiger
148+
NODE_VERSION: 19.3.0
149+
- name: MongoDB 4.4, ReplicaSet
140150
MONGODB_VERSION: 4.4.13
141151
MONGODB_TOPOLOGY: replicaset
142-
MONGODB_STORAGE_ENGINE: wiredTiger
143-
NODE_VERSION: 18.1.0
144-
- name: MongoDB 5, ReplicaSet, WiredTiger
152+
NODE_VERSION: 19.3.0
153+
- name: MongoDB 5, ReplicaSet
145154
MONGODB_VERSION: 5.3.2
146155
MONGODB_TOPOLOGY: replicaset
147-
MONGODB_STORAGE_ENGINE: wiredTiger
148-
NODE_VERSION: 18.1.0
149-
- name: MongoDB 6, ReplicaSet, WiredTiger
156+
NODE_VERSION: 19.3.0
157+
- name: MongoDB 6, ReplicaSet
150158
MONGODB_VERSION: 6.0.2
151159
MONGODB_TOPOLOGY: replicaset
152-
MONGODB_STORAGE_ENGINE: wiredTiger
153-
NODE_VERSION: 18.1.0
160+
NODE_VERSION: 19.3.0
154161
- name: Redis Cache
155162
PARSE_SERVER_TEST_CACHE: redis
156163
MONGODB_VERSION: 4.4.13
157164
MONGODB_TOPOLOGY: standalone
158-
MONGODB_STORAGE_ENGINE: wiredTiger
159-
NODE_VERSION: 18.1.0
160-
- name: Node 12
161-
MONGODB_VERSION: 4.4.13
162-
MONGODB_TOPOLOGY: standalone
163-
MONGODB_STORAGE_ENGINE: wiredTiger
164-
NODE_VERSION: 12.22.11
165+
NODE_VERSION: 19.3.0
165166
- name: Node 14
166167
MONGODB_VERSION: 4.4.13
167168
MONGODB_TOPOLOGY: standalone
168-
MONGODB_STORAGE_ENGINE: wiredTiger
169-
NODE_VERSION: 14.19.1
169+
NODE_VERSION: 14.21.1
170170
- name: Node 16
171171
MONGODB_VERSION: 4.4.13
172172
MONGODB_TOPOLOGY: standalone
173-
MONGODB_STORAGE_ENGINE: wiredTiger
174-
NODE_VERSION: 16.14.2
175-
- name: Node 17
173+
NODE_VERSION: 16.18.1
174+
- name: Node 18
176175
MONGODB_VERSION: 4.4.13
177176
MONGODB_TOPOLOGY: standalone
178-
MONGODB_STORAGE_ENGINE: wiredTiger
179-
NODE_VERSION: 17.9.0
177+
NODE_VERSION: 18.12.1
180178
fail-fast: false
181179
name: ${{ matrix.name }}
182180
timeout-minutes: 15
183-
runs-on: ubuntu-20.04
181+
runs-on: ubuntu-latest
184182
services:
185183
redis:
186184
image: redis
@@ -195,6 +193,9 @@ jobs:
195193
steps:
196194
- name: Fix usage of insecure GitHub protocol
197195
run: sudo git config --system url."https://github".insteadOf "git://github"
196+
- name: Fix git protocol for Node 14
197+
if: ${{ startsWith(matrix.NODE_VERSION, '14.') }}
198+
run: sudo git config --system url."https://github".insteadOf "ssh://git@github"
198199
- uses: actions/checkout@v2
199200
- name: Use Node.js ${{ matrix.NODE_VERSION }}
200201
uses: actions/setup-node@v2
@@ -220,32 +221,32 @@ jobs:
220221
include:
221222
- name: PostgreSQL 11, PostGIS 3.0
222223
POSTGRES_IMAGE: postgis/postgis:11-3.0
223-
NODE_VERSION: 18.1.0
224+
NODE_VERSION: 19.3.0
224225
- name: PostgreSQL 11, PostGIS 3.1
225226
POSTGRES_IMAGE: postgis/postgis:11-3.1
226-
NODE_VERSION: 18.1.0
227+
NODE_VERSION: 19.3.0
227228
- name: PostgreSQL 11, PostGIS 3.2
228229
POSTGRES_IMAGE: postgis/postgis:11-3.2
229-
NODE_VERSION: 18.1.0
230+
NODE_VERSION: 19.3.0
230231
- name: PostgreSQL 11, PostGIS 3.3
231232
POSTGRES_IMAGE: postgis/postgis:11-3.3
232-
NODE_VERSION: 18.1.0
233+
NODE_VERSION: 19.3.0
233234
- name: PostgreSQL 12, PostGIS 3.3
234235
POSTGRES_IMAGE: postgis/postgis:12-3.3
235-
NODE_VERSION: 18.1.0
236+
NODE_VERSION: 19.3.0
236237
- name: PostgreSQL 13, PostGIS 3.3
237238
POSTGRES_IMAGE: postgis/postgis:13-3.3
238-
NODE_VERSION: 18.1.0
239+
NODE_VERSION: 19.3.0
239240
- name: PostgreSQL 14, PostGIS 3.3
240241
POSTGRES_IMAGE: postgis/postgis:14-3.3
241-
NODE_VERSION: 18.1.0
242+
NODE_VERSION: 19.3.0
242243
- name: PostgreSQL 15, PostGIS 3.3
243244
POSTGRES_IMAGE: postgis/postgis:15-3.3
244-
NODE_VERSION: 18.1.0
245+
NODE_VERSION: 19.3.0
245246
fail-fast: false
246247
name: ${{ matrix.name }}
247248
timeout-minutes: 15
248-
runs-on: ubuntu-20.04
249+
runs-on: ubuntu-latest
249250
services:
250251
redis:
251252
image: redis

.github/workflows/release-automated.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: release-automated
22
on:
33
push:
4-
branches: [ release, alpha, beta, next-major ]
4+
branches: [ release, alpha, beta, next-major, 'release-[0-9]+.x.x' ]
55
jobs:
66
release:
77
runs-on: ubuntu-latest
@@ -17,7 +17,7 @@ jobs:
1717
persist-credentials: false
1818
- uses: actions/setup-node@v2
1919
with:
20-
node-version: 14
20+
node-version: 18.1.0
2121
registry-url: https://registry.npmjs.org/
2222
- name: Cache Node.js modules
2323
uses: actions/cache@v2
@@ -93,7 +93,7 @@ jobs:
9393
- name: Use Node.js
9494
uses: actions/setup-node@v1
9595
with:
96-
node-version: 14
96+
node-version: 18.1.0
9797
- name: Cache Node.js modules
9898
uses: actions/cache@v2
9999
with:

0 commit comments

Comments
 (0)