Skip to content

Commit e91f3a8

Browse files
Update deps (#3320)
1 parent 7c6bf48 commit e91f3a8

13 files changed

+875
-1450
lines changed

.eslintrc.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ rules:
8585
node/prefer-promises/fs: off
8686

8787
##############################################################################
88-
# `eslint-plugin-import` rule list based on `v2.24.x`
88+
# `eslint-plugin-import` rule list based on `v2.25.x`
8989
##############################################################################
9090

9191
# Static analysis
@@ -461,7 +461,7 @@ overrides:
461461
tsdoc/syntax: error
462462

463463
##########################################################################
464-
# `@typescript-eslint/eslint-plugin` rule list based on `v4.31.x`
464+
# `@typescript-eslint/eslint-plugin` rule list based on `v5.0.x`
465465
##########################################################################
466466

467467
# Supported Rules
@@ -501,6 +501,7 @@ overrides:
501501
'@typescript-eslint/no-misused-new': error
502502
'@typescript-eslint/no-misused-promises': error
503503
'@typescript-eslint/no-namespace': error
504+
'@typescript-eslint/no-non-null-asserted-nullish-coalescing': error
504505
'@typescript-eslint/no-non-null-asserted-optional-chain': error
505506
'@typescript-eslint/no-non-null-assertion': error
506507
'@typescript-eslint/no-parameter-properties': error
@@ -601,6 +602,7 @@ overrides:
601602
# Disable for JS and TS
602603
'@typescript-eslint/init-declarations': off
603604
'@typescript-eslint/no-magic-numbers': off
605+
'@typescript-eslint/no-restricted-imports': off
604606
'@typescript-eslint/no-use-before-define': off
605607
'@typescript-eslint/no-duplicate-imports': off # Superseded by `import/no-duplicates`
606608

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
/diff-npm-package.html
99
/.eslintcache
10+
/.cspellcache
1011
/node_modules
1112
/coverage
1213
/npmDist

cspell.yml

+1-10
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
11
language: en
2+
useGitignore: true
23
ignorePaths:
3-
# Copied from '.gitignore', please keep it in sync.
4-
- diff-npm-package.html
5-
- .eslintcache
6-
- node_modules
7-
- coverage
8-
- npmDist
9-
- denoDist
10-
- npm
11-
- deno
12-
134
# Excluded from spelling check
145
- cspell.yml
156
- package.json

package-lock.json

+785-1,354
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+12-12
Original file line numberDiff line numberDiff line change
@@ -49,36 +49,36 @@
4949
"testonly:cover": "nyc npm run testonly",
5050
"prettier": "prettier --write --list-different .",
5151
"prettier:check": "prettier --check .",
52-
"check:spelling": "cspell --no-progress '**/*'",
52+
"check:spelling": "cspell --cache --no-progress '**/*'",
5353
"check:integrations": "npm run build:npm && npm run build:deno && mocha --full-trace integrationTests/*-test.js",
5454
"build:npm": "node resources/build-npm.js",
5555
"build:deno": "node resources/build-deno.js",
5656
"gitpublish:npm": "bash ./resources/gitpublish.sh npm npmDist",
5757
"gitpublish:deno": "bash ./resources/gitpublish.sh deno denoDist"
5858
},
5959
"devDependencies": {
60-
"@babel/core": "7.15.5",
61-
"@babel/eslint-parser": "7.15.7",
60+
"@babel/core": "7.15.8",
61+
"@babel/eslint-parser": "7.15.8",
6262
"@babel/plugin-syntax-typescript": "7.14.5",
63-
"@babel/plugin-transform-typescript": "7.15.4",
64-
"@babel/preset-env": "7.15.6",
63+
"@babel/plugin-transform-typescript": "7.15.8",
64+
"@babel/preset-env": "7.15.8",
6565
"@babel/register": "7.15.3",
6666
"@types/chai": "4.2.22",
6767
"@types/mocha": "9.0.0",
68-
"@types/node": "16.10.1",
69-
"@typescript-eslint/eslint-plugin": "4.31.2",
70-
"@typescript-eslint/parser": "4.31.2",
68+
"@types/node": "16.11.1",
69+
"@typescript-eslint/eslint-plugin": "5.0.0",
70+
"@typescript-eslint/parser": "5.0.0",
7171
"chai": "4.3.4",
72-
"cspell": "5.10.1",
72+
"cspell": "5.12.3",
7373
"eslint": "7.32.0",
74-
"eslint-plugin-import": "2.24.2",
74+
"eslint-plugin-import": "2.25.2",
7575
"eslint-plugin-internal-rules": "file:./resources/eslint-internal-rules",
7676
"eslint-plugin-istanbul": "0.1.2",
7777
"eslint-plugin-node": "11.1.0",
7878
"eslint-plugin-tsdoc": "0.2.14",
79-
"mocha": "9.1.2",
79+
"mocha": "9.1.3",
8080
"nyc": "15.1.0",
8181
"prettier": "2.4.1",
82-
"typescript": "4.4.3"
82+
"typescript": "4.4.4"
8383
}
8484
}

src/error/GraphQLError.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@ export class GraphQLError extends Error {
161161
}
162162
}
163163

164+
get [Symbol.toStringTag](): string {
165+
return 'GraphQLError';
166+
}
167+
164168
toString(): string {
165169
let output = this.message;
166170

@@ -202,10 +206,6 @@ export class GraphQLError extends Error {
202206

203207
return formattedError;
204208
}
205-
206-
get [Symbol.toStringTag](): string {
207-
return 'GraphQLError';
208-
}
209209
}
210210

211211
/**

src/language/ast.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ export class Location {
4040
this.source = source;
4141
}
4242

43-
toJSON(): { start: number; end: number } {
44-
return { start: this.start, end: this.end };
45-
}
46-
4743
get [Symbol.toStringTag]() {
4844
return 'Location';
4945
}
46+
47+
toJSON(): { start: number; end: number } {
48+
return { start: this.start, end: this.end };
49+
}
5050
}
5151

5252
/**
@@ -114,6 +114,10 @@ export class Token {
114114
this.next = null;
115115
}
116116

117+
get [Symbol.toStringTag]() {
118+
return 'Token';
119+
}
120+
117121
toJSON(): {
118122
kind: TokenKind;
119123
value?: string;
@@ -127,10 +131,6 @@ export class Token {
127131
column: this.column,
128132
};
129133
}
130-
131-
get [Symbol.toStringTag]() {
132-
return 'Token';
133-
}
134134
}
135135

136136
/**

src/language/lexer.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ export class Lexer {
4747
this.lineStart = 0;
4848
}
4949

50+
get [Symbol.toStringTag]() {
51+
return 'Lexer';
52+
}
53+
5054
/**
5155
* Advances the token stream to the next non-ignored token.
5256
*/
@@ -79,10 +83,6 @@ export class Lexer {
7983
}
8084
return token;
8185
}
82-
83-
get [Symbol.toStringTag]() {
84-
return 'Lexer';
85-
}
8686
}
8787

8888
/**

src/type/definition.ts

+32-32
Original file line numberDiff line numberDiff line change
@@ -355,17 +355,17 @@ export class GraphQLList<T extends GraphQLType> {
355355
this.ofType = ofType;
356356
}
357357

358+
get [Symbol.toStringTag]() {
359+
return 'GraphQLList';
360+
}
361+
358362
toString(): string {
359363
return '[' + String(this.ofType) + ']';
360364
}
361365

362366
toJSON(): string {
363367
return this.toString();
364368
}
365-
366-
get [Symbol.toStringTag]() {
367-
return 'GraphQLList';
368-
}
369369
}
370370

371371
/**
@@ -401,17 +401,17 @@ export class GraphQLNonNull<T extends GraphQLNullableType> {
401401
this.ofType = ofType;
402402
}
403403

404+
get [Symbol.toStringTag]() {
405+
return 'GraphQLNonNull';
406+
}
407+
404408
toString(): string {
405409
return String(this.ofType) + '!';
406410
}
407411

408412
toJSON(): string {
409413
return this.toString();
410414
}
411-
412-
get [Symbol.toStringTag]() {
413-
return 'GraphQLNonNull';
414-
}
415415
}
416416

417417
/**
@@ -630,6 +630,10 @@ export class GraphQLScalarType<TInternal = unknown, TExternal = TInternal> {
630630
}
631631
}
632632

633+
get [Symbol.toStringTag]() {
634+
return 'GraphQLScalarType';
635+
}
636+
633637
toConfig(): GraphQLScalarTypeNormalizedConfig<TInternal, TExternal> {
634638
return {
635639
name: this.name,
@@ -651,10 +655,6 @@ export class GraphQLScalarType<TInternal = unknown, TExternal = TInternal> {
651655
toJSON(): string {
652656
return this.toString();
653657
}
654-
655-
get [Symbol.toStringTag]() {
656-
return 'GraphQLScalarType';
657-
}
658658
}
659659

660660
export type GraphQLScalarSerializer<TExternal> = (
@@ -778,6 +778,10 @@ export class GraphQLObjectType<TSource = any, TContext = any> {
778778
);
779779
}
780780

781+
get [Symbol.toStringTag]() {
782+
return 'GraphQLObjectType';
783+
}
784+
781785
getFields(): GraphQLFieldMap<TSource, TContext> {
782786
if (typeof this._fields === 'function') {
783787
this._fields = this._fields();
@@ -812,10 +816,6 @@ export class GraphQLObjectType<TSource = any, TContext = any> {
812816
toJSON(): string {
813817
return this.toString();
814818
}
815-
816-
get [Symbol.toStringTag]() {
817-
return 'GraphQLObjectType';
818-
}
819819
}
820820

821821
function defineInterfaces(
@@ -1143,6 +1143,10 @@ export class GraphQLInterfaceType {
11431143
);
11441144
}
11451145

1146+
get [Symbol.toStringTag]() {
1147+
return 'GraphQLInterfaceType';
1148+
}
1149+
11461150
getFields(): GraphQLFieldMap<any, any> {
11471151
if (typeof this._fields === 'function') {
11481152
this._fields = this._fields();
@@ -1177,10 +1181,6 @@ export class GraphQLInterfaceType {
11771181
toJSON(): string {
11781182
return this.toString();
11791183
}
1180-
1181-
get [Symbol.toStringTag]() {
1182-
return 'GraphQLInterfaceType';
1183-
}
11841184
}
11851185

11861186
export interface GraphQLInterfaceTypeConfig<TSource, TContext> {
@@ -1270,6 +1270,10 @@ export class GraphQLUnionType {
12701270
);
12711271
}
12721272

1273+
get [Symbol.toStringTag]() {
1274+
return 'GraphQLUnionType';
1275+
}
1276+
12731277
getTypes(): ReadonlyArray<GraphQLObjectType> {
12741278
if (typeof this._types === 'function') {
12751279
this._types = this._types();
@@ -1296,10 +1300,6 @@ export class GraphQLUnionType {
12961300
toJSON(): string {
12971301
return this.toString();
12981302
}
1299-
1300-
get [Symbol.toStringTag]() {
1301-
return 'GraphQLUnionType';
1302-
}
13031303
}
13041304

13051305
function defineTypes(
@@ -1396,6 +1396,10 @@ export class GraphQLEnumType /* <T> */ {
13961396
this._nameLookup = keyMap(this._values, (value) => value.name);
13971397
}
13981398

1399+
get [Symbol.toStringTag]() {
1400+
return 'GraphQLEnumType';
1401+
}
1402+
13991403
getValues(): ReadonlyArray<GraphQLEnumValue /* <T> */> {
14001404
return this._values;
14011405
}
@@ -1489,10 +1493,6 @@ export class GraphQLEnumType /* <T> */ {
14891493
toJSON(): string {
14901494
return this.toString();
14911495
}
1492-
1493-
get [Symbol.toStringTag]() {
1494-
return 'GraphQLEnumType';
1495-
}
14961496
}
14971497

14981498
function didYouMeanEnumValue(
@@ -1630,6 +1630,10 @@ export class GraphQLInputObjectType {
16301630
this._fields = defineInputFieldMap.bind(undefined, config);
16311631
}
16321632

1633+
get [Symbol.toStringTag]() {
1634+
return 'GraphQLInputObjectType';
1635+
}
1636+
16331637
getFields(): GraphQLInputFieldMap {
16341638
if (typeof this._fields === 'function') {
16351639
this._fields = this._fields();
@@ -1664,10 +1668,6 @@ export class GraphQLInputObjectType {
16641668
toJSON(): string {
16651669
return this.toString();
16661670
}
1667-
1668-
get [Symbol.toStringTag]() {
1669-
return 'GraphQLInputObjectType';
1670-
}
16711671
}
16721672

16731673
function defineInputFieldMap(

src/type/directives.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ export class GraphQLDirective {
8484
this.args = defineArguments(args);
8585
}
8686

87+
get [Symbol.toStringTag]() {
88+
return 'GraphQLDirective';
89+
}
90+
8791
toConfig(): GraphQLDirectiveNormalizedConfig {
8892
return {
8993
name: this.name,
@@ -103,10 +107,6 @@ export class GraphQLDirective {
103107
toJSON(): string {
104108
return this.toString();
105109
}
106-
107-
get [Symbol.toStringTag]() {
108-
return 'GraphQLDirective';
109-
}
110110
}
111111

112112
export interface GraphQLDirectiveConfig {

0 commit comments

Comments
 (0)