Skip to content

Commit 040b383

Browse files
chore(deps): update dependency graphql to v16.10.0 (#924)
* chore(deps): update dependency graphql to v16.10.0 * Go * Snapshot * Go --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Arda TANRIKULU <ardatanrikulu@gmail.com>
1 parent 906d443 commit 040b383

6 files changed

Lines changed: 26 additions & 11 deletions

File tree

dev-test/githunt/types.urql.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,12 +533,15 @@ export default {
533533
__schema: {
534534
queryType: {
535535
name: 'Query',
536+
kind: 'OBJECT',
536537
},
537538
mutationType: {
538539
name: 'Mutation',
540+
kind: 'OBJECT',
539541
},
540542
subscriptionType: {
541543
name: 'Subscription',
544+
kind: 'OBJECT',
542545
},
543546
types: [
544547
{

jest.project.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,17 @@ const TSCONFIG = resolve(ROOT_DIR, 'tsconfig.json');
66
const tsconfig = require(TSCONFIG);
77
const CI = !!process.env.CI;
88

9+
const { versionInfo } = require('graphql');
10+
911
module.exports = ({ dirname, projectMode = true }) => {
1012
const pkg = require(resolve(dirname, 'package.json'));
1113

14+
const testMatch = ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[jt]s?(x)'];
15+
16+
if (versionInfo.major >= 16) {
17+
testMatch.push('**/nhost/**');
18+
}
19+
1220
return {
1321
...(CI || !projectMode ? {} : { displayName: pkg.name.replace('@graphql-codegen/', '') }),
1422
transform: { '^.+\\.tsx?$': 'babel-jest' },
@@ -24,6 +32,7 @@ module.exports = ({ dirname, projectMode = true }) => {
2432
setupFiles: [`${ROOT_DIR}/dev-test/setup.js`],
2533
collectCoverage: false,
2634
testTimeout: 20000,
35+
testMatch: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[jt]s?(x)', '!**/nhost/**'],
2736
resolver: './node_modules/bob-the-bundler/jest-resolver.cjs',
2837
snapshotFormat: {
2938
escapeString: false,

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"build": "bob build",
1717
"ci:lint": "cross-env \"ESLINT_USE_FLAT_CONFIG=false\" eslint --cache --ignore-path .gitignore --output-file eslint_report.json --format json .",
1818
"clean": "rimraf node_modules/",
19-
"generate:examples": "yarn generate:examples:cjs",
19+
"generate:examples": "yarn generate:examples:cjs && yarn generate:examples:esm",
2020
"generate:examples:cjs": "graphql-codegen --require dotenv/config --config ./dev-test/codegen.ts dotenv_config_path=dev-test/.env",
2121
"generate:examples:esm": "graphql-codegen-esm --require dotenv/config --config ./dev-test/codegen.ts dotenv_config_path=dev-test/.env",
2222
"lint": "cross-env \"ESLINT_USE_FLAT_CONFIG=false\" eslint --cache --ignore-path .gitignore .",
@@ -47,7 +47,7 @@
4747
"cross-env": "7.0.3",
4848
"eslint": "9.17.0",
4949
"eslint-plugin-import": "2.31.0",
50-
"graphql": "16.9.0",
50+
"graphql": "16.10.0",
5151
"husky": "9.1.7",
5252
"jest": "28.1.3",
5353
"jest-docblock": "28.1.1",
@@ -63,7 +63,7 @@
6363
},
6464
"resolutions": {
6565
"babel-jest": "28.1.3",
66-
"graphql": "16.9.0",
66+
"graphql": "16.10.0",
6767
"graphql-language-service-interface": "2.10.2",
6868
"jest-runner": "28.1.3",
6969
"ts-node": "10.9.2"

packages/plugins/typescript/nhost/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"tslib": "^2.8.1"
4848
},
4949
"devDependencies": {
50-
"graphql": "16.9.0"
50+
"graphql": "16.10.0"
5151
},
5252
"publishConfig": {
5353
"directory": "dist",

packages/plugins/typescript/nhost/tests/__snapshots__/nhost.spec.ts.snap

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,16 @@ export default {
108108
introspection: {
109109
"__schema": {
110110
"queryType": {
111-
"name": "Query"
111+
"name": "Query",
112+
"kind": "OBJECT"
112113
},
113114
"mutationType": {
114-
"name": "Mutation"
115+
"name": "Mutation",
116+
"kind": "OBJECT"
115117
},
116118
"subscriptionType": {
117-
"name": "Subscription"
119+
"name": "Subscription",
120+
"kind": "OBJECT"
118121
},
119122
"types": [
120123
{

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4566,10 +4566,10 @@ graphql-ws@5.12.1:
45664566
resolved "https://registry.yarnpkg.com/graphql-ws/-/graphql-ws-5.12.1.tgz#c62d5ac54dbd409cc6520b0b39de374b3d59d0dd"
45674567
integrity sha512-umt4f5NnMK46ChM2coO36PTFhHouBrK9stWWBczERguwYrGnPNxJ9dimU6IyOBfOkC6Izhkg4H8+F51W/8CYDg==
45684568

4569-
graphql@16.9.0:
4570-
version "16.9.0"
4571-
resolved "https://registry.yarnpkg.com/graphql/-/graphql-16.9.0.tgz#1c310e63f16a49ce1fbb230bd0a000e99f6f115f"
4572-
integrity sha512-GGTKBX4SD7Wdb8mqeDLni2oaRGYQWjWHGKPQ24ZMnUtKfcsVoiv4uX8+LJr1K6U5VW2Lu1BwJnj7uiori0YtRw==
4569+
graphql@16.10.0:
4570+
version "16.10.0"
4571+
resolved "https://registry.yarnpkg.com/graphql/-/graphql-16.10.0.tgz#24c01ae0af6b11ea87bf55694429198aaa8e220c"
4572+
integrity sha512-AjqGKbDGUFRKIRCP9tCKiIGHyriz2oHEbPIbEtcSLSs4YjReZOIPQQWek4+6hjw62H9QShXHyaGivGiYVLeYFQ==
45734573

45744574
has-bigints@^1.0.2:
45754575
version "1.1.0"

0 commit comments

Comments
 (0)