Skip to content

Commit 9f6d6c6

Browse files
committed
fix: update all dependencies
1 parent 4dc3b43 commit 9f6d6c6

File tree

9 files changed

+7689
-7654
lines changed

9 files changed

+7689
-7654
lines changed

.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

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

.yarn/plugins/@yarnpkg/plugin-typescript.cjs

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

.yarn/releases/yarn-4.0.0-rc.47.cjs

Lines changed: 881 additions & 0 deletions
Large diffs are not rendered by default.

.yarn/releases/yarn-4.0.0-rc.6.cjs

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

.yarnrc.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
compressionLevel: mixed
2+
3+
enableGlobalCache: false
4+
15
nodeLinker: node-modules
26

37
plugins:
4-
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
5-
spec: "@yarnpkg/plugin-interactive-tools"
6-
- path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs
7-
spec: "@yarnpkg/plugin-typescript"
88
- path: .yarn/plugins/@yarnpkg/plugin-postinstall-dev.cjs
99
spec: "https://raw.githubusercontent.com/sachinraja/yarn-plugin-postinstall-dev/main/bundles/%40yarnpkg/plugin-postinstall-dev.js"
1010

11-
yarnPath: .yarn/releases/yarn-4.0.0-rc.6.cjs
11+
yarnPath: .yarn/releases/yarn-4.0.0-rc.47.cjs

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"prepare": "rrun husky install .config/husky && beemo create-config",
5555
"release": "beemo run-script release",
5656
"test": "yarn test:format && yarn test:types && yarn test:lint && yarn test:code",
57-
"test:code": "beemo jest",
57+
"test:code": "yarn rrun jest",
5858
"test:format": "yarn rrun prettier --check \"./{src,tests,.config}/**/!(*.d).{.js,jsx,ts,tsx,json,md}\"",
5959
"test:lint": "rrun eslint 'src/**/*.{js,jsx,ts,tsx}'",
6060
"test:type": "tsc --noEmit",
@@ -82,20 +82,20 @@
8282
"tagFormat": "${version}"
8383
},
8484
"dependencies": {
85-
"@graphql-codegen/plugin-helpers": "^1.18.2",
86-
"@graphql-codegen/visitor-plugin-common": "^1.18.3",
85+
"@graphql-codegen/plugin-helpers": "^5.0.1",
86+
"@graphql-codegen/visitor-plugin-common": "^4.0.1",
8787
"auto-bind": "^4.0.0",
8888
"pascal-case": "^3.1.2"
8989
},
9090
"devDependencies": {
91-
"@niieani/scaffold": "^1.4.2",
92-
"graphql": "^16.5.0"
91+
"@niieani/scaffold": "^1.7.7",
92+
"graphql": "^16.8.0"
9393
},
9494
"publishConfig": {
9595
"access": "public"
9696
},
9797
"collaborators": [
9898
"Bazyli Brzóska <[email protected]>"
9999
],
100-
"packageManager": "[email protected].10"
100+
"packageManager": "[email protected].47"
101101
}

src/main.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ describe('plugin', () => {
55
expect(() =>
66
(validate as unknown as any)(undefined, undefined, undefined, 'file.ts'),
77
).toThrowErrorMatchingInlineSnapshot(
8-
`"Plugin \\"codegen-typescript-graphql-module-declarations\\" requires extension to be \\".d.ts\\"!"`,
8+
`"Plugin "codegen-typescript-graphql-module-declarations" requires extension to be ".d.ts"!"`,
99
)
1010
})
1111
})

src/main.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export const plugin: PluginFunction = (
119119

120120
if (!documentRecord.document) return prev
121121

122-
prev[fileName].push(
122+
prev[fileName]?.push(
123123
...documentRecord.document.definitions.filter(
124124
(
125125
document,
@@ -132,10 +132,9 @@ export const plugin: PluginFunction = (
132132
return prev
133133
}, {})
134134

135-
return Object.keys(mappedDocuments)
136-
.filter((fileName) => mappedDocuments[fileName].length > 0)
137-
.map((fileName) => {
138-
const operations = mappedDocuments[fileName]
135+
return Object.entries(mappedDocuments)
136+
.filter(([fileName, operations]) => operations.length > 0)
137+
.map(([fileName, operations]) => {
139138
const namedOperations = operations.filter((d) => d.name?.value)
140139
const nodesWithNames = namedOperations.map((node) => {
141140
// based on https://github.com/dotansimha/graphql-code-generator/blob/a790904a1ae42e63ef8552c9b0145f5f3292d474/packages/plugins/other/visitor-plugin-common/src/client-side-base-visitor.ts#L552-L566

0 commit comments

Comments
 (0)