Skip to content

Commit 206daf6

Browse files
committed
Merge remote-tracking branch 'upstream/alpha' into log
2 parents e3284a7 + dcaccc2 commit 206daf6

File tree

273 files changed

+65509
-19971
lines changed

Some content is hidden

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

273 files changed

+65509
-19971
lines changed

.eslintrc.json

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

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
* text=auto eol=lf
22

33
*.js text
4+
*.ts text
5+
*.mjs text
46
*.html text
57
*.less text
68
*.json text

.github/dependabot.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,7 @@ updates:
1414
prefix: "refactor"
1515
# Define dependencies to update
1616
allow:
17+
# Allow updates on every commit of parse-server
1718
- dependency-name: "parse-server"
19+
# Allow direct updates for all packages
20+
- dependency-type: "direct"

.github/pull_request_template.md

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,19 @@
1-
### New Pull Request Checklist
2-
<!--
3-
Check every following box [x] before submitting your PR.
4-
Click the "Preview" tab for better readability.
5-
Thanks for contributing to Parse Platform!
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-SDK-JS/issues?q=is%3Aissue).
3+
- Report security issues [confidentially](https://github.com/parse-community/Parse-SDK-JS/security/policy).
4+
- Any contribution is under this [license](https://github.com/parse-community/Parse-SDK-JS/blob/alpha/LICENSE).
5+
- Link this pull request to an [issue](https://github.com/parse-community/Parse-SDK-JS/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 TODOs that do not apply to this PR.
23-
-->
15+
## Tasks
16+
<!-- Delete tasks that don't apply. -->
2417

2518
- [ ] Add tests
26-
- [ ] Add entry to changelog
27-
- [ ] Add changes to documentation (guides, repository pages, in-code descriptions)
19+
- [ ] Add changes to documentation (guides, repository pages, code comments)

.github/workflows/ci.yml

Lines changed: 86 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,39 +9,103 @@ jobs:
99
check-lock-file-version:
1010
name: NPM Lock File Version
1111
timeout-minutes: 5
12-
runs-on: ubuntu-18.04
12+
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v3
1515
- name: Check NPM lock file version
1616
uses: mansona/npm-lockfile-version@v1
1717
with:
18-
version: 1
18+
version: 2
19+
check-types:
20+
name: Check Types
21+
timeout-minutes: 10
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v3
25+
- name: Use Node.js
26+
uses: actions/setup-node@v4
27+
with:
28+
cache: npm
29+
- run: npm ci
30+
- name: Type Definition Check
31+
run: npm run ci:typecheck
32+
- name: Test Types
33+
run: npm run test:types
34+
check-docs:
35+
name: Check Docs
36+
timeout-minutes: 10
37+
runs-on: ubuntu-latest
38+
steps:
39+
- uses: actions/checkout@v3
40+
- name: Use Node.js
41+
uses: actions/setup-node@v4
42+
with:
43+
cache: npm
44+
- run: npm ci
45+
- name: Check Docs
46+
run: npm run docs
47+
check-circular:
48+
name: Check Circular Dependencies
49+
timeout-minutes: 15
50+
runs-on: ubuntu-latest
51+
steps:
52+
- uses: actions/checkout@v3
53+
- name: Use Node.js
54+
uses: actions/setup-node@v4
55+
with:
56+
cache: npm
57+
- run: npm ci
58+
- name: Circular Dependencies
59+
run: npm run madge:circular
60+
check-lint:
61+
name: Lint
62+
timeout-minutes: 15
63+
runs-on: ubuntu-latest
64+
steps:
65+
- uses: actions/checkout@v4
66+
- name: Use Node.js
67+
uses: actions/setup-node@v4
68+
with:
69+
cache: npm
70+
- name: Install dependencies
71+
run: npm ci
72+
- name: Lint
73+
run: npm run lint
1974
build:
20-
runs-on: ubuntu-18.04
75+
runs-on: ubuntu-latest
2176
timeout-minutes: 30
22-
env:
23-
MONGODB_VERSION: 3.6.9
77+
strategy:
78+
matrix:
79+
include:
80+
- name: Node 18
81+
NODE_VERSION: 18.20.4
82+
- name: Node 20
83+
NODE_VERSION: 20.15.1
84+
- name: Node 22
85+
NODE_VERSION: 22.4.1
86+
fail-fast: false
2487
steps:
2588
- name: Fix usage of insecure GitHub protocol
2689
run: sudo git config --system url."https://github".insteadOf "git://github"
27-
- uses: actions/checkout@v2
90+
- uses: actions/checkout@v3
2891
- name: Use Node.js
29-
uses: actions/setup-node@v1
92+
uses: actions/setup-node@v3
3093
with:
31-
node-version: 14
32-
- name: Cache Node.js modules
33-
uses: actions/cache@v2
34-
with:
35-
path: ~/.npm
36-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
37-
restore-keys: |
38-
${{ runner.os }}-node-
94+
node-version: ${{ matrix.NODE_VERSION }}
95+
cache: npm
3996
- run: npm ci
40-
- run: npm install -g mongodb-runner
41-
- run: mongodb-runner start
42-
- run: npm run lint
43-
- run: npm test -- --maxWorkers=4
44-
- run: npm run integration
97+
# Run unit tests
98+
- run: npm test -- --maxWorkers=4
99+
# Run integration tests
100+
- run: npm run test:mongodb
45101
env:
46102
CI: true
47-
- run: bash <(curl -s https://codecov.io/bash)
103+
- name: Upload code coverage
104+
uses: codecov/codecov-action@v4
105+
with:
106+
# Set to `true` once codecov token bug is fixed; https://github.com/parse-community/parse-server/issues/9129
107+
fail_ci_if_error: false
108+
token: ${{ secrets.CODECOV_TOKEN }}
109+
concurrency:
110+
group: ${{ github.workflow }}-${{ github.ref }}
111+
cancel-in-progress: true

.github/workflows/release-automated-scheduler.yml

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

.github/workflows/release-automated.yml

Lines changed: 6 additions & 18 deletions
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: 14
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,11 +29,11 @@ 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'
42-
runs-on: ubuntu-18.04
36+
runs-on: ubuntu-latest
4337
timeout-minutes: 15
4438
steps:
4539
- uses: actions/checkout@v2
@@ -48,14 +42,8 @@ jobs:
4842
- name: Use Node.js
4943
uses: actions/setup-node@v1
5044
with:
51-
node-version: 14
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

0 commit comments

Comments
 (0)