Skip to content

Commit 97f0ab1

Browse files
committed
Merge remote-tracking branch 'upstream/main' into pr/4088
2 parents d81c560 + 0ea9241 commit 97f0ab1

File tree

159 files changed

+23711
-13992
lines changed

Some content is hidden

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

159 files changed

+23711
-13992
lines changed

.eslintignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Copied from '.gitignore', please keep it in sync.
22
/.eslintcache
33
/.docusaurus
4-
/.stryker-tmp
54
/node_modules
65
/reports
76
/npmDist

.eslintrc.cjs

+117-197
Large diffs are not rendered by default.

.github/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @graphql/graphql-js-reviewers

.github/CONTRIBUTING.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ ensure your pull request matches the style guides, run `npm run prettier`.
8282

8383
## Merge Process
8484

85-
Once a pull request has been approved by 2 reviewers from [`@graphql/graphql-js-reviewers`](https://github.com/orgs/graphql/teams/graphql-js-reviewers) team, we must wait 2 weeks before merging the pull request, this allows for other reviewers to give feedback without rushing any merges. Pull request can be merged by a member of the [`@graphql/graphql-js-reviewers`](https://github.com/orgs/graphql/teams/graphql-js-reviewers-write) team.
85+
Once a pull request has been approved by 2 reviewers from [`@graphql/graphql-js-reviewers`](https://github.com/orgs/graphql/teams/graphql-js-reviewers) team, it may be merged by any member of the [`@graphql/graphql-js-reviewers`](https://github.com/orgs/graphql/teams/graphql-js-reviewers-write) team. For more complex pull requests, a larger cohort of reviewers is suggested. Any reviewer may request that the topic be brought for more in depth discussion at GraphQL JS Working Group meeting, where decisions will be made by consensus. A PR that has been merged without discussion at a GraphQL JS Working Group meeting may be reverted if a more in depth discussion is later requested.
8686

8787
## Release on NPM
8888

@@ -93,18 +93,22 @@ then use `npm version patch|minor|major` in order to increment the version in
9393
package.json and tag and commit a release. Then `git push && git push --tags`
9494
to sync this change with source control. Then `npm publish npmDist` to actually
9595
publish the release to NPM.
96-
Once published, add [release notes](https://github.com/graphql/graphql-js/tags).
96+
Once published, add [release notes](https://github.com/graphql/graphql-js/releases).
9797
Use [semver](https://semver.org/) to determine which version part to increment.
9898

9999
Example for a patch release:
100100

101101
```sh
102+
npm ci
102103
npm test
103104
npm version patch
104105
git push --follow-tags
105-
npm publish npmDist
106+
cd npmDist && npm publish
107+
npm run changelog
106108
```
107109

110+
Then upload the changelog to [https://github.com/graphql/graphql-js/releases](https://github.com/graphql/graphql-js/releases).
111+
108112
## License
109113

110114
By contributing to graphql-js, you agree that your contributions will be

.github/workflows/ci.yml

+23-23
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ jobs:
99
contents: read # for actions/checkout
1010
steps:
1111
- name: Checkout repo
12-
uses: actions/checkout@v3
12+
uses: actions/checkout@v4
1313
with:
1414
persist-credentials: false
1515

1616
- name: Setup Node.js
17-
uses: actions/setup-node@v3
17+
uses: actions/setup-node@v4
1818
with:
1919
cache: npm
2020
node-version-file: '.node-version'
@@ -46,7 +46,7 @@ jobs:
4646
contents: read # for actions/checkout
4747
steps:
4848
- name: Checkout repo
49-
uses: actions/checkout@v3
49+
uses: actions/checkout@v4
5050
with:
5151
persist-credentials: false
5252

@@ -71,12 +71,12 @@ jobs:
7171
contents: read # for actions/checkout
7272
steps:
7373
- name: Checkout repo
74-
uses: actions/checkout@v3
74+
uses: actions/checkout@v4
7575
with:
7676
persist-credentials: false
7777

7878
- name: Setup Node.js
79-
uses: actions/setup-node@v3
79+
uses: actions/setup-node@v4
8080
with:
8181
cache: npm
8282
node-version-file: '.node-version'
@@ -100,12 +100,12 @@ jobs:
100100
contents: read # for actions/checkout
101101
steps:
102102
- name: Checkout repo
103-
uses: actions/checkout@v3
103+
uses: actions/checkout@v4
104104
with:
105105
persist-credentials: false
106106

107107
- name: Setup Node.js
108-
uses: actions/setup-node@v3
108+
uses: actions/setup-node@v4
109109
with:
110110
node-version-file: '.node-version'
111111
# We install bunch of packages during integration tests without locking them
@@ -124,12 +124,12 @@ jobs:
124124
contents: read # for actions/checkout
125125
steps:
126126
- name: Checkout repo
127-
uses: actions/checkout@v3
127+
uses: actions/checkout@v4
128128
with:
129129
persist-credentials: false
130130

131131
- name: Setup Node.js
132-
uses: actions/setup-node@v3
132+
uses: actions/setup-node@v4
133133
with:
134134
cache: npm
135135
node-version-file: '.node-version'
@@ -150,12 +150,12 @@ jobs:
150150
contents: read # for actions/checkout
151151
steps:
152152
- name: Checkout repo
153-
uses: actions/checkout@v3
153+
uses: actions/checkout@v4
154154
with:
155155
persist-credentials: false
156156

157157
- name: Setup Node.js v${{ matrix.node_version_to_setup }}
158-
uses: actions/setup-node@v3
158+
uses: actions/setup-node@v4
159159
with:
160160
cache: npm
161161
node-version: ${{ matrix.node_version_to_setup }}
@@ -174,17 +174,17 @@ jobs:
174174
security-events: write # for codeql-action
175175
steps:
176176
- name: Checkout repo
177-
uses: actions/checkout@v3
177+
uses: actions/checkout@v4
178178
with:
179179
persist-credentials: false
180180

181181
- name: Initialize CodeQL
182-
uses: github/codeql-action/init@v2
182+
uses: github/codeql-action/init@v3
183183
with:
184184
languages: 'javascript, typescript'
185185

186186
- name: Perform CodeQL analysis
187-
uses: github/codeql-action/analyze@v2
187+
uses: github/codeql-action/analyze@v3
188188

189189
build-npm-dist:
190190
name: Build 'npmDist' artifact
@@ -193,12 +193,12 @@ jobs:
193193
contents: read # for actions/checkout
194194
steps:
195195
- name: Checkout repo
196-
uses: actions/checkout@v3
196+
uses: actions/checkout@v4
197197
with:
198198
persist-credentials: false
199199

200200
- name: Setup Node.js
201-
uses: actions/setup-node@v3
201+
uses: actions/setup-node@v4
202202
with:
203203
cache: npm
204204
node-version-file: '.node-version'
@@ -210,7 +210,7 @@ jobs:
210210
run: npm run build:npm
211211

212212
- name: Upload npmDist package
213-
uses: actions/upload-artifact@v3
213+
uses: actions/upload-artifact@v4
214214
with:
215215
name: npmDist
216216
path: ./npmDist
@@ -222,12 +222,12 @@ jobs:
222222
contents: read # for actions/checkout
223223
steps:
224224
- name: Checkout repo
225-
uses: actions/checkout@v3
225+
uses: actions/checkout@v4
226226
with:
227227
persist-credentials: false
228228

229229
- name: Setup Node.js
230-
uses: actions/setup-node@v3
230+
uses: actions/setup-node@v4
231231
with:
232232
cache: npm
233233
node-version-file: '.node-version'
@@ -239,7 +239,7 @@ jobs:
239239
run: npm run build:deno
240240

241241
- name: Upload denoDist package
242-
uses: actions/upload-artifact@v3
242+
uses: actions/upload-artifact@v4
243243
with:
244244
name: denoDist
245245
path: ./denoDist
@@ -251,12 +251,12 @@ jobs:
251251
contents: read # for actions/checkout
252252
steps:
253253
- name: Checkout repo
254-
uses: actions/checkout@v3
254+
uses: actions/checkout@v4
255255
with:
256256
persist-credentials: false
257257

258258
- name: Setup Node.js
259-
uses: actions/setup-node@v3
259+
uses: actions/setup-node@v4
260260
with:
261261
cache: npm
262262
node-version-file: '.node-version'
@@ -268,7 +268,7 @@ jobs:
268268
run: npm run build:website
269269

270270
- name: Upload denoDist package
271-
uses: actions/upload-artifact@v3
271+
uses: actions/upload-artifact@v4
272272
with:
273273
name: websiteDist
274274
path: ./websiteDist

.github/workflows/cmd-publish-pr-on-npm.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ jobs:
1818
contents: read # for actions/checkout
1919
steps:
2020
- name: Checkout repo
21-
uses: actions/checkout@v3
21+
uses: actions/checkout@v4
2222
with:
2323
persist-credentials: false
2424
ref: ${{ fromJSON(inputs.pull_request_json).merge_commit_sha }}
2525

2626
- name: Setup Node.js
27-
uses: actions/setup-node@v3
27+
uses: actions/setup-node@v4
2828
with:
2929
cache: npm
3030
node-version-file: '.node-version'
@@ -36,7 +36,7 @@ jobs:
3636
run: npm run build:npm
3737

3838
- name: Upload npmDist package
39-
uses: actions/upload-artifact@v3
39+
uses: actions/upload-artifact@v4
4040
with:
4141
name: npmDist
4242
path: ./npmDist
@@ -50,27 +50,27 @@ jobs:
5050
contents: read # for actions/checkout
5151
steps:
5252
- name: Checkout repo
53-
uses: actions/checkout@v3
53+
uses: actions/checkout@v4
5454
with:
5555
persist-credentials: false
5656

5757
- name: Setup Node.js
58-
uses: actions/setup-node@v3
58+
uses: actions/setup-node@v4
5959
with:
6060
cache: npm
6161
node-version-file: '.node-version'
6262
# 'registry-url' is required for 'npm publish'
6363
registry-url: 'https://registry.npmjs.org'
6464

65-
- uses: actions/download-artifact@v3
65+
- uses: actions/download-artifact@v4
6666
with:
6767
name: npmDist
6868
path: npmDist
6969

7070
- name: Modify NPM package to be canary release
7171
env:
7272
PULL_REQUEST_JSON: ${{ inputs.pull_request_json }}
73-
uses: actions/github-script@v6
73+
uses: actions/github-script@v7
7474
with:
7575
script: |
7676
const fs = require('node:fs');
@@ -113,7 +113,7 @@ jobs:
113113
NODE_AUTH_TOKEN: ${{ secrets.npm_canary_pr_publish_token }}
114114

115115
- name: Upload replyMessage
116-
uses: actions/upload-artifact@v3
116+
uses: actions/upload-artifact@v4
117117
with:
118118
name: replyMessage
119119
path: ./replyMessage.txt

.github/workflows/cmd-run-benchmark.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
actions: read # to list workflow runs
1717
steps:
1818
- name: Checkout repo
19-
uses: actions/checkout@v3
19+
uses: actions/checkout@v4
2020
with:
2121
persist-credentials: false
2222
ref: ${{ fromJSON(inputs.pull_request_json).merge_commit_sha }}
@@ -27,7 +27,7 @@ jobs:
2727
run: 'git fetch --depth=1 origin "$BASE_SHA:refs/tags/BASE"'
2828

2929
- name: Setup Node.js
30-
uses: actions/setup-node@v3
30+
uses: actions/setup-node@v4
3131
with:
3232
cache: npm
3333
node-version-file: '.node-version'
@@ -40,7 +40,7 @@ jobs:
4040
npm run benchmark -- --revs HEAD BASE
4141
4242
- name: Create replyMessage
43-
uses: actions/github-script@v6
43+
uses: actions/github-script@v7
4444
with:
4545
script: |
4646
const fs = require('node:fs');
@@ -63,7 +63,7 @@ jobs:
6363
);
6464
6565
- name: Upload replyMessage
66-
uses: actions/upload-artifact@v3
66+
uses: actions/upload-artifact@v4
6767
with:
6868
name: replyMessage
6969
path: ./replyMessage.txt

.github/workflows/deploy-artifact-as-branch.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ jobs:
2929
contents: write # for actions/checkout and to push branch
3030
steps:
3131
- name: Checkout `${{ inputs.target_branch }}` branch
32-
uses: actions/checkout@v3
32+
uses: actions/checkout@v4
3333
with:
3434
ref: ${{ inputs.target_branch }}
3535

3636
- name: Remove existing files first
3737
run: git rm -r .
3838

39-
- uses: actions/download-artifact@v3
39+
- uses: actions/download-artifact@v4
4040
with:
4141
name: ${{ inputs.artifact_name }}
4242

.github/workflows/github-actions-bot.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
WORKFLOW_ID: ${{github.event.workflow_run.id}}
3939

4040
- name: Add comment on PR
41-
uses: actions/github-script@v6
41+
uses: actions/github-script@v7
4242
with:
4343
script: |
4444
const fs = require('node:fs');
@@ -64,7 +64,7 @@ jobs:
6464
cmd: ${{ steps.parse-cmd.outputs.cmd }}
6565
pull_request_json: ${{ steps.parse-cmd.outputs.pull_request_json }}
6666
steps:
67-
- uses: actions/github-script@v6
67+
- uses: actions/github-script@v7
6868
with:
6969
script: |
7070
await github.rest.reactions.createForIssueComment({
@@ -74,7 +74,7 @@ jobs:
7474
});
7575
7676
- id: parse-cmd
77-
uses: actions/github-script@v6
77+
uses: actions/github-script@v7
7878
with:
7979
script: |
8080
const comment = context.payload.comment.body;
@@ -115,12 +115,12 @@ jobs:
115115
permissions:
116116
pull-requests: write # to add comment to pull request
117117
steps:
118-
- uses: actions/download-artifact@v3
118+
- uses: actions/download-artifact@v4
119119
with:
120120
name: replyMessage
121121

122122
- if: failure()
123-
uses: actions/github-script@v6
123+
uses: actions/github-script@v7
124124
with:
125125
script: |
126126
const fs = require('node:fs');
@@ -144,7 +144,7 @@ jobs:
144144
RUN_URL: ${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}
145145

146146
- if: always()
147-
uses: actions/github-script@v6
147+
uses: actions/github-script@v7
148148
with:
149149
script: |
150150
const fs = require('node:fs');

0 commit comments

Comments
 (0)