Skip to content

Commit 4c328cb

Browse files
authored
Merge branch 'alpha' into create-indexes
2 parents 35591c4 + 82fdb0d commit 4c328cb

File tree

252 files changed

+38805
-26504
lines changed

Some content is hidden

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

252 files changed

+38805
-26504
lines changed

.babelrc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"plugins": [
3-
"@babel/plugin-transform-flow-strip-types",
4-
"@babel/plugin-proposal-object-rest-spread"
3+
"@babel/plugin-transform-flow-strip-types"
54
],
65
"presets": [
6+
"@babel/preset-typescript",
77
["@babel/preset-env", {
88
"targets": {
9-
"node": "14",
9+
"node": "18"
1010
},
1111
"exclude": ["proposal-dynamic-import"]
1212
}]

.eslintignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/---1-report-an-issue.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,10 @@ assignees: ''
88
---
99

1010
### New Issue Checklist
11-
<!--
12-
Check every following box [x] before submitting your issue.
13-
Click the "Preview" tab for better readability.
14-
Thanks for contributing to Parse Platform!
15-
-->
1611

17-
- [ ] I am not disclosing a [vulnerability](https://github.com/parse-community/parse-server/blob/master/SECURITY.md).
18-
- [ ] I am not just asking a [question](https://github.com/parse-community/.github/blob/master/SUPPORT.md).
19-
- [ ] I have searched through [existing issues](https://github.com/parse-community/parse-server/issues?q=is%3Aissue).
20-
- [ ] I can reproduce the issue with the [latest version of Parse Server](https://github.com/parse-community/parse-server/releases). <!-- We don't investigate issues for outdated releases. -->
12+
- Report security issues [confidentially](https://github.com/parse-community/parse-server/security/policy).
13+
- Any contribution is under this [license](https://github.com/parse-community/parse-server/blob/alpha/LICENSE).
14+
- Before posting search [existing issues](https://github.com/parse-community/parse-server/issues?q=is%3Aissue).
2115

2216
### Issue Description
2317
<!-- What is the specific issue with Parse Server? -->
@@ -30,6 +24,7 @@ assignees: ''
3024

3125
### Expected Outcome
3226
<!-- What outcome, for example query result, did you expect? -->
27+
3328
### Environment
3429
<!-- Be specific with versions, don't use "latest" or semver ranges like "~x.y.z" or "^x.y.z". -->
3530

.github/ISSUE_TEMPLATE/---2-feature-request.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,10 @@ assignees: ''
88
---
99

1010
### New Feature / Enhancement Checklist
11-
<!--
12-
Check every following box [x] before submitting your issue.
13-
Click the "Preview" tab for better readability.
14-
Thanks for contributing to Parse Platform!
15-
-->
16-
17-
- [ ] I am not disclosing a [vulnerability](https://github.com/parse-community/parse-server/blob/master/SECURITY.md).
18-
- [ ] I am not just asking a [question](https://github.com/parse-community/.github/blob/master/SUPPORT.md).
19-
- [ ] I have searched through [existing issues](https://github.com/parse-community/parse-server/issues?q=is%3Aissue).
11+
12+
- Report security issues [confidentially](https://github.com/parse-community/parse-server/security/policy).
13+
- Any contribution is under this [license](https://github.com/parse-community/parse-server/blob/alpha/LICENSE).
14+
- Before posting search [existing issues](https://github.com/parse-community/parse-server/issues?q=is%3Aissue).
2015

2116
### Current Limitation
2217
<!-- Which current limitation is the feature or enhancement addressing? -->

.github/dependabot.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Dependabot dependency updates
2+
# Docs: https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
3+
4+
version: 2
5+
updates:
6+
- package-ecosystem: "npm"
7+
# Location of package-lock.json
8+
directory: "/"
9+
# Check daily for updates
10+
schedule:
11+
interval: "daily"
12+
commit-message:
13+
# Set commit message prefix
14+
prefix: "refactor"

.github/workflows/ci-automated-check-environment.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,8 @@ jobs:
1717
- name: Setup Node
1818
uses: actions/setup-node@v2
1919
with:
20-
node-version: 14
21-
- name: Cache Node.js modules
22-
uses: actions/cache@v4
23-
with:
24-
path: ~/.npm
25-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
26-
restore-keys: |
27-
${{ runner.os }}-node-
20+
node-version: 20
21+
cache: 'npm'
2822
- name: Install dependencies
2923
run: npm ci
3024
- name: CI Environments Check

.github/workflows/ci.yml

Lines changed: 62 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ on:
88
paths-ignore:
99
- '**/**.md'
1010
env:
11-
NODE_VERSION: 20.11.1
11+
NODE_VERSION: 22.12.0
1212
PARSE_SERVER_TEST_TIMEOUT: 20000
13+
permissions:
14+
actions: write
1315
jobs:
1416
check-code-analysis:
1517
name: Code Analysis
@@ -42,15 +44,10 @@ jobs:
4244
uses: actions/setup-node@v4
4345
with:
4446
node-version: ${{ matrix.node-version }}
45-
- name: Cache Node.js modules
46-
uses: actions/cache@v4
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
47+
- name: Install prod dependencies
5348
run: npm ci
49+
- name: Remove dev dependencies
50+
run: ./ci/uninstallDevDeps.sh @actions/core
5451
- name: CI Node Engine Check
5552
run: npm run ci:checkNodeEngine
5653
check-lint:
@@ -117,7 +114,7 @@ jobs:
117114
check-docker:
118115
name: Docker Build
119116
timeout-minutes: 15
120-
runs-on: ubuntu-20.04
117+
runs-on: ubuntu-latest
121118
steps:
122119
- name: Checkout repository
123120
uses: actions/checkout@v4
@@ -141,42 +138,49 @@ jobs:
141138
uses: mansona/npm-lockfile-version@v1
142139
with:
143140
version: 2
141+
check-types:
142+
name: Check Types
143+
timeout-minutes: 5
144+
runs-on: ubuntu-latest
145+
steps:
146+
- uses: actions/checkout@v3
147+
- run: npm ci
148+
- name: Build types
149+
run: npm run build:types
150+
- name: Test Types
151+
run: npm run test:types
144152
check-mongo:
145153
strategy:
146154
matrix:
147155
include:
148-
- name: MongoDB 4.2, ReplicaSet
149-
MONGODB_VERSION: 4.2.19
150-
MONGODB_TOPOLOGY: replset
151-
NODE_VERSION: 20.11.1
152-
- name: MongoDB 4.4, ReplicaSet
153-
MONGODB_VERSION: 4.4.13
154-
MONGODB_TOPOLOGY: replset
155-
NODE_VERSION: 20.11.1
156-
- name: MongoDB 5, ReplicaSet
157-
MONGODB_VERSION: 5.3.2
158-
MONGODB_TOPOLOGY: replset
159-
NODE_VERSION: 20.11.1
160156
- name: MongoDB 6, ReplicaSet
161-
MONGODB_VERSION: 6.0.2
157+
MONGODB_VERSION: 6.0.19
162158
MONGODB_TOPOLOGY: replset
163-
NODE_VERSION: 20.11.1
159+
NODE_VERSION: 22.12.0
164160
- name: MongoDB 7, ReplicaSet
165-
MONGODB_VERSION: 7.0.1
161+
MONGODB_VERSION: 7.0.16
166162
MONGODB_TOPOLOGY: replset
167-
NODE_VERSION: 20.11.1
163+
NODE_VERSION: 22.12.0
164+
- name: MongoDB 8, ReplicaSet
165+
MONGODB_VERSION: 8.0.4
166+
MONGODB_TOPOLOGY: replset
167+
NODE_VERSION: 22.12.0
168168
- name: Redis Cache
169169
PARSE_SERVER_TEST_CACHE: redis
170-
MONGODB_VERSION: 4.4.13
170+
MONGODB_VERSION: 8.0.4
171+
MONGODB_TOPOLOGY: standalone
172+
NODE_VERSION: 22.12.0
173+
- name: Node 20
174+
MONGODB_VERSION: 8.0.4
171175
MONGODB_TOPOLOGY: standalone
172-
NODE_VERSION: 20.11.1
176+
NODE_VERSION: 20.18.0
173177
- name: Node 18
174-
MONGODB_VERSION: 4.4.13
178+
MONGODB_VERSION: 8.0.4
175179
MONGODB_TOPOLOGY: standalone
176-
NODE_VERSION: 18.19.1
180+
NODE_VERSION: 18.20.4
177181
fail-fast: false
178182
name: ${{ matrix.name }}
179-
timeout-minutes: 15
183+
timeout-minutes: 20
180184
runs-on: ubuntu-latest
181185
services:
182186
redis:
@@ -210,35 +214,34 @@ jobs:
210214
- run: npm run coverage
211215
env:
212216
CI: true
213-
- run: bash <(curl -s https://codecov.io/bash)
217+
- name: Upload code coverage
218+
uses: codecov/codecov-action@v4
219+
with:
220+
# Set to `true` once codecov token bug is fixed; https://github.com/parse-community/parse-server/issues/9129
221+
fail_ci_if_error: false
222+
token: ${{ secrets.CODECOV_TOKEN }}
214223
check-postgres:
215224
strategy:
216225
matrix:
217226
include:
218-
- name: PostgreSQL 13, PostGIS 3.1
219-
POSTGRES_IMAGE: postgis/postgis:13-3.1
220-
NODE_VERSION: 20.11.1
221-
- name: PostgreSQL 13, PostGIS 3.2
222-
POSTGRES_IMAGE: postgis/postgis:13-3.2
223-
NODE_VERSION: 20.11.1
224-
- name: PostgreSQL 13, PostGIS 3.3
225-
POSTGRES_IMAGE: postgis/postgis:13-3.3
226-
NODE_VERSION: 20.11.1
227-
- name: PostgreSQL 13, PostGIS 3.4
228-
POSTGRES_IMAGE: postgis/postgis:13-3.4
229-
NODE_VERSION: 20.11.1
230-
- name: PostgreSQL 14, PostGIS 3.4
231-
POSTGRES_IMAGE: postgis/postgis:14-3.4
232-
NODE_VERSION: 20.11.1
227+
- name: PostgreSQL 15, PostGIS 3.3
228+
POSTGRES_IMAGE: postgis/postgis:15-3.3
229+
NODE_VERSION: 22.12.0
233230
- name: PostgreSQL 15, PostGIS 3.4
234231
POSTGRES_IMAGE: postgis/postgis:15-3.4
235-
NODE_VERSION: 20.11.1
236-
- name: PostgreSQL 16, PostGIS 3.4
237-
POSTGRES_IMAGE: postgis/postgis:15-3.4
238-
NODE_VERSION: 20.11.1
232+
NODE_VERSION: 22.12.0
233+
- name: PostgreSQL 15, PostGIS 3.5
234+
POSTGRES_IMAGE: postgis/postgis:15-3.5
235+
NODE_VERSION: 22.12.0
236+
- name: PostgreSQL 16, PostGIS 3.5
237+
POSTGRES_IMAGE: postgis/postgis:16-3.5
238+
NODE_VERSION: 22.12.0
239+
- name: PostgreSQL 17, PostGIS 3.5
240+
POSTGRES_IMAGE: postgis/postgis:17-3.5
241+
NODE_VERSION: 22.12.0
239242
fail-fast: false
240243
name: ${{ matrix.name }}
241-
timeout-minutes: 15
244+
timeout-minutes: 20
242245
runs-on: ubuntu-latest
243246
services:
244247
redis:
@@ -281,7 +284,13 @@ jobs:
281284
- run: npm run coverage
282285
env:
283286
CI: true
284-
- run: bash <(curl -s https://codecov.io/bash)
287+
- name: Upload code coverage
288+
uses: codecov/codecov-action@v4
289+
with:
290+
fail_ci_if_error: false
291+
token: ${{ secrets.CODECOV_TOKEN }}
292+
env:
293+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
285294
concurrency:
286295
group: ${{ github.workflow }}-${{ github.ref }}
287296
cancel-in-progress: true

.github/workflows/release-automated.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
persist-credentials: false
1818
- uses: actions/setup-node@v4
1919
with:
20-
node-version: 18.19.1
20+
node-version: 20
2121
registry-url: https://registry.npmjs.org/
2222
- name: Cache Node.js modules
2323
uses: actions/cache@v4
@@ -42,7 +42,7 @@ jobs:
4242
env:
4343
REGISTRY: docker.io
4444
IMAGE_NAME: parseplatform/parse-server
45-
runs-on: ubuntu-20.04
45+
runs-on: ubuntu-latest
4646
permissions:
4747
contents: read
4848
packages: write
@@ -78,7 +78,7 @@ jobs:
7878
uses: docker/build-push-action@v3
7979
with:
8080
context: .
81-
platforms: linux/amd64, linux/arm/v6, linux/arm/v7, linux/arm64/v8
81+
platforms: linux/amd64, linux/arm64/v8
8282
push: ${{ github.event_name != 'pull_request' }}
8383
tags: ${{ steps.meta.outputs.tags }}
8484
labels: ${{ steps.meta.outputs.labels }}
@@ -93,7 +93,7 @@ jobs:
9393
- name: Use Node.js
9494
uses: actions/setup-node@v4
9595
with:
96-
node-version: 18.19.1
96+
node-version: 18.20.4
9797
- name: Cache Node.js modules
9898
uses: actions/cache@v4
9999
with:

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ env:
1414
IMAGE_NAME: parseplatform/parse-server
1515
jobs:
1616
build:
17-
runs-on: ubuntu-20.04
17+
runs-on: ubuntu-latest
1818
permissions:
1919
contents: read
2020
packages: write
@@ -51,7 +51,7 @@ jobs:
5151
uses: docker/build-push-action@v3
5252
with:
5353
context: .
54-
platforms: linux/amd64, linux/arm/v6, linux/arm/v7, linux/arm64/v8
54+
platforms: linux/amd64, linux/arm64/v8
5555
push: ${{ github.event_name != 'pull_request' }}
5656
tags: ${{ steps.meta.outputs.tags }}
5757
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)