Skip to content

Commit 8fa5340

Browse files
authored
feat: bump code generator plugin versions (#46)
1 parent b929e6f commit 8fa5340

File tree

5 files changed

+1330
-1513
lines changed

5 files changed

+1330
-1513
lines changed

Diff for: .eslintrc.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
"plugin:eslint-comments/recommended",
1111
"plugin:@typescript-eslint/recommended",
1212
"plugin:import/typescript",
13-
"prettier",
14-
"prettier/@typescript-eslint"
13+
"prettier"
1514
],
1615
"globals": { "BigInt": true, "console": true, "WebAssembly": true },
1716
"rules": {

Diff for: .nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v14.18.2
1+
v18.12.1

Diff for: package.json

+17-15
Original file line numberDiff line numberDiff line change
@@ -30,26 +30,28 @@
3030
"node": ">=12"
3131
},
3232
"dependencies": {
33-
"@graphql-codegen/typescript": "^2.4.8"
33+
"@graphql-codegen/typescript": "^2.8.5",
34+
"@graphql-codegen/plugin-helpers": "^3.1.1"
3435
},
3536
"devDependencies": {
36-
"@graphql-codegen/testing": "^1.17.7",
37-
"@types/jest": "^27.4.1",
38-
"@types/node": "^14.18.3",
39-
"@typescript-eslint/eslint-plugin": "^5.21.0",
40-
"@typescript-eslint/parser": "^5.21.0",
37+
"@graphql-codegen/testing": "^1.18.2",
38+
"@types/jest": "^28.1.8",
39+
"@types/node": "^18.11.17",
40+
"@typescript-eslint/eslint-plugin": "^5.47.0",
41+
"@typescript-eslint/parser": "^5.47.0",
4142
"cz-conventional-changelog": "^3.3.0",
42-
"eslint": "^7.8.0",
43-
"eslint-config-prettier": "^6.11.0",
43+
"eslint": "^8.30.0",
44+
"eslint-config-prettier": "^8.5.0",
4445
"eslint-plugin-eslint-comments": "^3.2.0",
45-
"eslint-plugin-import": "^2.22.0",
46-
"graphql": "^16.0.0",
47-
"jest": "^27.4.5",
46+
"eslint-plugin-import": "^2.26.0",
47+
"graphql": "^16.6.0",
48+
"jest": "^28.1.3",
49+
"jest-diff": "^28.1.3",
4850
"npm-run-all": "^4.1.5",
49-
"prettier": "^2.6.2",
50-
"ts-jest": "^27.1.2",
51-
"ts-node": "^9.0.0",
52-
"typescript": "^4.0.2"
51+
"prettier": "^2.8.1",
52+
"ts-jest": "^28.0.8",
53+
"ts-node": "^10.9.1",
54+
"typescript": "^4.9.4"
5355
},
5456
"peerDependencies": {
5557
"graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"

Diff for: src/lib/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export const plugin: PluginFunction<
4242
const visitor = new SpecificTypesVisitor(schema, config, discoveredTypes);
4343

4444
// This is generally the same as the typescript plugin, just with only the types discovered in the operations
45+
// @ts-expect-error The types are incompatible for some reason. This is actually due to the other typescript plugin not being in strict mode as this just inherits that visitor from that plugin.
4546
const visitorResult = oldVisit(ast, { leave: visitor });
4647
const scalars = visitor.scalarsDefinition;
4748
const directiveArgumentAndInputFieldMappings =

0 commit comments

Comments
 (0)