Skip to content

Commit 6c56e05

Browse files
authored
chore(deps): upgrade dependencies (#4166)
Errata: Left typescript at v5.4.x as deep dependency typedoc requires v5.4.x. Left eslint v8.x as not all plugins are compatible with v9. Code changes, in no particular order: 1. Prettier formatting changes. 2. Prettier moved to an async API, but the `writeGeneratedFile` utility, which previously included prettifying was passed as a callback function to TS and had to stay sync, so prettifying was separated into a separate async function -- the callback function luckily did not seem to actually requiring another round of prettifying, as it just involved renaming. All the other callsites of the new utility had to be made async. In the alternate, I investigated @prettier/sync and the lower-level make-synchronized and make-synchronous packages, but I could not get them working. 3. Plenty of eslint rule changes! I have tried to make sure that the rule list orders now match the linked documentation, so that further updates might be easier. 4. Minor docusaurus config tweaks to get the build to pass.
1 parent 1dbdadc commit 6c56e05

34 files changed

+14425
-9946
lines changed

.eslintrc.cjs

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

benchmark/fixtures.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import fs from 'fs';
1+
import fs from 'node:fs';
22

33
export const bigSchemaSDL = fs.readFileSync(
44
new URL('github-schema.graphql', import.meta.url),

benchmark/github-schema.graphql

+8-8
Original file line numberDiff line numberDiff line change
@@ -3363,7 +3363,7 @@ type CreatedIssueContributionEdge {
33633363
Represents either a issue the viewer can access or a restricted contribution.
33643364
"""
33653365
union CreatedIssueOrRestrictedContribution =
3366-
CreatedIssueContribution
3366+
| CreatedIssueContribution
33673367
| RestrictedContribution
33683368

33693369
"""
@@ -3447,7 +3447,7 @@ type CreatedPullRequestContributionEdge {
34473447
Represents either a pull request the viewer can access or a restricted contribution.
34483448
"""
34493449
union CreatedPullRequestOrRestrictedContribution =
3450-
CreatedPullRequestContribution
3450+
| CreatedPullRequestContribution
34513451
| RestrictedContribution
34523452

34533453
"""
@@ -3618,7 +3618,7 @@ type CreatedRepositoryContributionEdge {
36183618
Represents either a repository the viewer can access or a restricted contribution.
36193619
"""
36203620
union CreatedRepositoryOrRestrictedContribution =
3621-
CreatedRepositoryContribution
3621+
| CreatedRepositoryContribution
36223622
| RestrictedContribution
36233623

36243624
"""
@@ -6635,7 +6635,7 @@ type IssueTimelineConnection {
66356635
An item in an issue timeline
66366636
"""
66376637
union IssueTimelineItem =
6638-
Commit
6638+
| Commit
66396639
| IssueComment
66406640
| CrossReferencedEvent
66416641
| ClosedEvent
@@ -6674,7 +6674,7 @@ type IssueTimelineItemEdge {
66746674
An item in an issue timeline
66756675
"""
66766676
union IssueTimelineItems =
6677-
IssueComment
6677+
| IssueComment
66786678
| CrossReferencedEvent
66796679
| AddedToProjectEvent
66806680
| AssignedEvent
@@ -12534,7 +12534,7 @@ type PullRequestTimelineConnection {
1253412534
An item in an pull request timeline
1253512535
"""
1253612536
union PullRequestTimelineItem =
12537-
Commit
12537+
| Commit
1253812538
| CommitCommentThread
1253912539
| PullRequestReview
1254012540
| PullRequestReviewThread
@@ -12586,7 +12586,7 @@ type PullRequestTimelineItemEdge {
1258612586
An item in a pull request timeline
1258712587
"""
1258812588
union PullRequestTimelineItems =
12589-
PullRequestCommit
12589+
| PullRequestCommit
1259012590
| PullRequestCommitCommentThread
1259112591
| PullRequestReview
1259212592
| PullRequestReviewThread
@@ -16467,7 +16467,7 @@ type ReviewRequestRemovedEvent implements Node {
1646716467
The results of a search.
1646816468
"""
1646916469
union SearchResultItem =
16470-
Issue
16470+
| Issue
1647116471
| PullRequest
1647216472
| Repository
1647316473
| User

cspell.yml

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ words:
5050

5151
# TODO: contribute upstream
5252
- deno
53+
- hashbang
5354

5455
# TODO: remove bellow words
5556
- QLID # GraphQLID

integrationTests/node/test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import childProcess from 'child_process';
2-
import fs from 'fs';
1+
import childProcess from 'node:child_process';
2+
import fs from 'node:fs';
33

44
const graphqlPackageJSON = JSON.parse(
55
fs.readFileSync('./node_modules/graphql/package.json', 'utf-8'),

integrationTests/ts/package.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
"typescript-4.7": "npm:[email protected]",
1515
"typescript-4.8": "npm:[email protected]",
1616
"typescript-4.9": "npm:[email protected]",
17-
"typescript-4.9": "npm:[email protected]"
17+
"typescript-5.0": "npm:[email protected]",
18+
"typescript-5.1": "npm:[email protected]",
19+
"typescript-5.2": "npm:[email protected]",
20+
"typescript-5.3": "npm:[email protected]",
21+
"typescript-5.4": "npm:[email protected]",
22+
"typescript-5.5": "npm:[email protected]"
1823
}
1924
}

integrationTests/ts/test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import childProcess from 'child_process';
2-
import fs from 'fs';
3-
import path from 'path';
1+
import childProcess from 'node:child_process';
2+
import fs from 'node:fs';
3+
import path from 'node:path';
44

55
const { dependencies } = JSON.parse(fs.readFileSync('./package.json', 'utf-8'));
66

integrationTests/webpack/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import assert from 'assert';
1+
import assert from 'node:assert';
22

33
/* eslint-disable n/no-missing-import */
44
import cjs from './dist/main-cjs.cjs';

0 commit comments

Comments
 (0)