Skip to content

Commit 09f81dd

Browse files
renovate[bot]renovate-botardatan
authored
GraphQL v16 support (ardatan#3072)
* chore(deps): update dependency graphql to v16 * GraphQL v16 compatiblity * more * Update babel config * Bump utils and remove incremental * Update snapshot * Upgrade Node * .. Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Arda TANRIKULU <[email protected]>
1 parent b9e7c94 commit 09f81dd

File tree

85 files changed

+1668
-1073
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+1668
-1073
lines changed

.changeset/nasty-llamas-invent.md

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
'@graphql-mesh/cache-file': minor
3+
'@graphql-mesh/cli': minor
4+
'@graphql-mesh/config': minor
5+
'@graphql-mesh/container': minor
6+
'@graphql-mesh/graphql': minor
7+
'@graphql-mesh/json-schema': minor
8+
'@graphql-mesh/mongoose': minor
9+
'@graphql-mesh/mysql': minor
10+
'@graphql-mesh/neo4j': minor
11+
'@graphql-mesh/odata': minor
12+
'@graphql-mesh/openapi': minor
13+
'@graphql-mesh/postgraphile': minor
14+
'@graphql-mesh/soap': minor
15+
'@graphql-mesh/thrift': minor
16+
'@omnigraph/json-schema': minor
17+
'@graphql-mesh/merger-bare': minor
18+
'@graphql-mesh/merger-federation': minor
19+
'@graphql-mesh/merger-stitching': minor
20+
'@graphql-mesh/playground': minor
21+
'@graphql-mesh/runtime': minor
22+
'@graphql-mesh/store': minor
23+
'@graphql-mesh/transform-cache': minor
24+
'@graphql-mesh/transform-encapsulate': minor
25+
'@graphql-mesh/transform-extend': minor
26+
'@graphql-mesh/transform-federation': minor
27+
'@graphql-mesh/transform-filter-schema': minor
28+
'@graphql-mesh/transform-mock': minor
29+
'@graphql-mesh/transform-naming-convention': minor
30+
'@graphql-mesh/transform-prefix': minor
31+
'@graphql-mesh/transform-rename': minor
32+
'@graphql-mesh/transform-replace-field': minor
33+
'@graphql-mesh/transform-resolvers-composition': minor
34+
'@graphql-mesh/transform-snapshot': minor
35+
'@graphql-mesh/transform-type-merging': minor
36+
'@graphql-mesh/types': minor
37+
'@graphql-mesh/utils': minor
38+
---
39+
40+
GraphQL v16 compatibility

.changeset/thirty-ants-promise.md

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
'@graphql-mesh/cache-file': minor
3+
'@graphql-mesh/cli': minor
4+
'@graphql-mesh/config': minor
5+
'@graphql-mesh/container': minor
6+
'@graphql-mesh/graphql': minor
7+
'@graphql-mesh/grpc': minor
8+
'@graphql-mesh/json-schema': minor
9+
'@graphql-mesh/mongoose': minor
10+
'@graphql-mesh/mysql': minor
11+
'@graphql-mesh/neo4j': minor
12+
'@graphql-mesh/odata': minor
13+
'@graphql-mesh/openapi': minor
14+
'@graphql-mesh/postgraphile': minor
15+
'@graphql-mesh/soap': minor
16+
'@graphql-mesh/thrift': minor
17+
'@omnigraph/json-schema': minor
18+
'@graphql-mesh/merger-bare': minor
19+
'@graphql-mesh/merger-federation': minor
20+
'@graphql-mesh/merger-stitching': minor
21+
'@graphql-mesh/runtime': minor
22+
'@graphql-mesh/store': minor
23+
'@graphql-mesh/transform-cache': minor
24+
'@graphql-mesh/transform-encapsulate': minor
25+
'@graphql-mesh/transform-extend': minor
26+
'@graphql-mesh/transform-federation': minor
27+
'@graphql-mesh/transform-filter-schema': minor
28+
'@graphql-mesh/transform-mock': minor
29+
'@graphql-mesh/transform-naming-convention': minor
30+
'@graphql-mesh/transform-prefix': minor
31+
'@graphql-mesh/transform-rename': minor
32+
'@graphql-mesh/transform-replace-field': minor
33+
'@graphql-mesh/transform-resolvers-composition': minor
34+
'@graphql-mesh/transform-snapshot': minor
35+
'@graphql-mesh/transform-type-merging': minor
36+
'@graphql-mesh/types': minor
37+
'@graphql-mesh/utils': minor
38+
---
39+
40+
GraphQL v16 compability

.github/workflows/canary.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Use Node
3131
uses: actions/setup-node@v2
3232
with:
33-
node-version: 16
33+
node-version: 17
3434
- name: Configure Git Credentials
3535
run: |
3636
git config --global user.email "[email protected]"
@@ -44,7 +44,7 @@ jobs:
4444
uses: actions/cache@v2
4545
with:
4646
path: '**/node_modules'
47-
key: ${{ runner.os }}-16-yarn-${{ hashFiles('yarn.lock') }}
47+
key: ${{ runner.os }}-17-yarn-${{ hashFiles('yarn.lock') }}
4848
restore-keys: |
4949
5050
- name: Install Dependencies using Yarn

.github/workflows/release.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Use Node
2727
uses: actions/setup-node@v2
2828
with:
29-
node-version: '16.x'
29+
node-version: 17
3030
- name: Setup NPM credentials
3131
run: echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" >> ~/.npmrc
3232
env:
@@ -35,9 +35,9 @@ jobs:
3535
uses: actions/cache@v2
3636
with:
3737
path: '**/node_modules'
38-
key: ${{ runner.os }}-16-yarn-${{ hashFiles('yarn.lock') }}
38+
key: ${{ runner.os }}-17-yarn-${{ hashFiles('yarn.lock') }}
3939
restore-keys: |
40-
${{ runner.os }}-16-yarn-${{ hashFiles('yarn.lock') }}
40+
${{ runner.os }}-17-yarn-${{ hashFiles('yarn.lock') }}
4141
4242
- name: Install Dependencies using Yarn
4343
run: yarn install && git checkout yarn.lock && yarn patch-package

.github/workflows/tests.yml

+14-14
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ jobs:
2020
- name: Use Node
2121
uses: actions/setup-node@master
2222
with:
23-
node-version: 16
23+
node-version: 17
2424
- name: Cache Yarn
2525
uses: actions/cache@v2
2626
with:
2727
path: '**/node_modules'
28-
key: ${{ runner.os }}-16-yarn-${{ hashFiles('yarn.lock') }}
28+
key: ${{ runner.os }}-17-yarn-${{ hashFiles('yarn.lock') }}
2929
restore-keys: |
30-
${{ runner.os }}-16-yarn-${{ hashFiles('yarn.lock') }}
30+
${{ runner.os }}-17-yarn-${{ hashFiles('yarn.lock') }}
3131
3232
- name: Install Dependencies using Yarn
3333
run: yarn install && git checkout yarn.lock
@@ -44,14 +44,14 @@ jobs:
4444
- name: Use Node
4545
uses: actions/setup-node@master
4646
with:
47-
node-version: 16
47+
node-version: 17
4848
- name: Cache Yarn
4949
uses: actions/cache@v2
5050
with:
5151
path: '**/node_modules'
52-
key: ${{ runner.os }}-16-yarn-${{ hashFiles('yarn.lock') }}
52+
key: ${{ runner.os }}-17-yarn-${{ hashFiles('yarn.lock') }}
5353
restore-keys: |
54-
${{ runner.os }}-16-yarn-${{ hashFiles('yarn.lock') }}
54+
${{ runner.os }}-17-yarn-${{ hashFiles('yarn.lock') }}
5555
5656
- name: Install Dependencies using Yarn
5757
run: yarn install && git checkout yarn.lock
@@ -61,12 +61,12 @@ jobs:
6161
run: yarn transpile-ts --noEmit # We need build for playground
6262

6363
test:
64-
name: Testing on Node ${{matrix.node_version}}
64+
name: Testing on Node ${{matrix.node-version}}
6565
timeout-minutes: 60
6666
runs-on: ubuntu-latest
6767
strategy:
6868
matrix:
69-
node_version: [12, 16]
69+
node-version: [12, 17]
7070
# Service containers to run with `runner-job`
7171
services:
7272
# Label used to access the service container
@@ -98,26 +98,26 @@ jobs:
9898
uses: actions/checkout@v2
9999
with:
100100
fetch-depth: 0
101-
- name: Use Node ${{matrix.node_version}}
101+
- name: Use Node ${{matrix.node-version}}
102102
uses: actions/setup-node@master
103103
with:
104-
node-version: ${{ matrix.node_version }}
104+
node-version: ${{ matrix.node-version }}
105105
- name: Cache Yarn
106106
uses: actions/cache@v2
107107
with:
108108
path: '**/node_modules'
109-
key: ${{ runner.os }}-${{matrix.node_version}}-yarn-${{ hashFiles('yarn.lock') }}
109+
key: ${{ runner.os }}-${{matrix.node-version}}-yarn-${{ hashFiles('yarn.lock') }}
110110
restore-keys: |
111-
${{ runner.os }}-${{matrix.node_version}}-yarn-${{ hashFiles('yarn.lock') }}
111+
${{ runner.os }}-${{matrix.node-version}}-yarn-${{ hashFiles('yarn.lock') }}
112112
- name: Install Dependencies using Yarn
113113
run: yarn install && git checkout yarn.lock
114114
- name: Cache Jest
115115
uses: actions/cache@v2
116116
with:
117117
path: .cache/jest
118-
key: ${{ runner.os }}-${{matrix.node_version}}-jest-${{ hashFiles('yarn.lock') }}
118+
key: ${{ runner.os }}-${{matrix.node-version}}-jest-${{ hashFiles('yarn.lock') }}
119119
restore-keys: |
120-
${{ runner.os }}-${{matrix.node_version}}-jest-${{ hashFiles('yarn.lock') }}
120+
${{ runner.os }}-${{matrix.node-version}}-jest-${{ hashFiles('yarn.lock') }}
121121
- name: Download Postgres Dump
122122
run: 'curl https://raw.githubusercontent.com/morenoh149/postgresDBSamples/master/worldDB-1.0/world.sql -o /tmp/backup.sql'
123123
- name: Load Postgres Data

.github/workflows/website.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ jobs:
3030
- name: Use Node
3131
uses: actions/setup-node@v2
3232
with:
33-
node-version: '16.x'
33+
node-version: 17
3434
- name: Cache Yarn
3535
uses: actions/cache@v2
3636
with:
3737
path: '**/node_modules'
38-
key: ${{ runner.os }}-16-yarn-${{ hashFiles('yarn.lock') }}
38+
key: ${{ runner.os }}-17-yarn-${{ hashFiles('yarn.lock') }}
3939
restore-keys: |
40-
${{ runner.os }}-16-yarn-${{ hashFiles('yarn.lock') }}
40+
${{ runner.os }}-17-yarn-${{ hashFiles('yarn.lock') }}
4141
4242
- name: Install Dependencies using Yarn
4343
run: yarn install && git checkout yarn.lock && git checkout package.json

babel.config.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
module.exports = {
2-
presets: [['@babel/preset-env', { targets: { node: 'current' } }], '@babel/preset-typescript'],
2+
presets: [
3+
['@babel/preset-env', { targets: { node: process.versions.node.split('.')[0] } }],
4+
'@babel/preset-typescript',
5+
],
36
plugins: ['@babel/plugin-proposal-class-properties'],
47
};

examples/federation-example/services/inventory/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"start": "node index.js"
88
},
99
"dependencies": {
10-
"@apollo/federation": "0.21.0",
11-
"apollo-server": "2.21.0",
12-
"graphql": "15.5.0"
10+
"@apollo/federation": "0.33.6",
11+
"apollo-server": "3.4.0",
12+
"graphql": "16.0.1"
1313
}
1414
}

examples/federation-example/services/products/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"start": "node index.js"
88
},
99
"dependencies": {
10-
"@apollo/federation": "0.21.0",
10+
"@apollo/federation": "0.33.6",
1111
"apollo-server": "2.21.0",
12-
"graphql": "15.5.0"
12+
"graphql": "16.0.1"
1313
}
1414
}

examples/federation-example/services/reviews/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"start": "node index.js"
88
},
99
"dependencies": {
10-
"@apollo/federation": "0.21.0",
10+
"@apollo/federation": "0.33.6",
1111
"apollo-server": "2.21.0",
12-
"graphql": "15.5.0"
12+
"graphql": "16.0.1"
1313
}
1414
}

examples/grpc-example/tests/__snapshots__/grpc.test.js.snap

+1-2
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ type google_protobuf_Timestamp {
8383
input google_protobuf_Timestamp_Input {
8484
nanos: Int
8585
seconds: BigInt
86-
}
87-
"
86+
}"
8887
`;
8988

9089
exports[`gRPC Example should get movies correctly: get-movies-grpc-example-result 1`] = `

examples/hello-world/tests/__snapshots__/hello-world.test.js.snap

+12-12
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Object {
118118
"kind": "SCALAR",
119119
"name": "Boolean",
120120
"possibleTypes": null,
121-
"specifiedByUrl": null,
121+
"specifiedByURL": null,
122122
},
123123
Object {
124124
"enumValues": null,
@@ -140,7 +140,7 @@ Object {
140140
"kind": "OBJECT",
141141
"name": "Query",
142142
"possibleTypes": null,
143-
"specifiedByUrl": null,
143+
"specifiedByURL": null,
144144
},
145145
Object {
146146
"enumValues": null,
@@ -150,7 +150,7 @@ Object {
150150
"kind": "SCALAR",
151151
"name": "String",
152152
"possibleTypes": null,
153-
"specifiedByUrl": null,
153+
"specifiedByURL": null,
154154
},
155155
Object {
156156
"enumValues": null,
@@ -260,7 +260,7 @@ Object {
260260
"kind": "OBJECT",
261261
"name": "__Directive",
262262
"possibleTypes": null,
263-
"specifiedByUrl": null,
263+
"specifiedByURL": null,
264264
},
265265
Object {
266266
"enumValues": Array [
@@ -366,7 +366,7 @@ Object {
366366
"kind": "ENUM",
367367
"name": "__DirectiveLocation",
368368
"possibleTypes": null,
369-
"specifiedByUrl": null,
369+
"specifiedByURL": null,
370370
},
371371
Object {
372372
"enumValues": null,
@@ -429,7 +429,7 @@ Object {
429429
"kind": "OBJECT",
430430
"name": "__EnumValue",
431431
"possibleTypes": null,
432-
"specifiedByUrl": null,
432+
"specifiedByURL": null,
433433
},
434434
Object {
435435
"enumValues": null,
@@ -542,7 +542,7 @@ Object {
542542
"kind": "OBJECT",
543543
"name": "__Field",
544544
"possibleTypes": null,
545-
"specifiedByUrl": null,
545+
"specifiedByURL": null,
546546
},
547547
Object {
548548
"enumValues": null,
@@ -631,7 +631,7 @@ Object {
631631
"kind": "OBJECT",
632632
"name": "__InputValue",
633633
"possibleTypes": null,
634-
"specifiedByUrl": null,
634+
"specifiedByURL": null,
635635
},
636636
Object {
637637
"enumValues": null,
@@ -736,7 +736,7 @@ Object {
736736
"kind": "OBJECT",
737737
"name": "__Schema",
738738
"possibleTypes": null,
739-
"specifiedByUrl": null,
739+
"specifiedByURL": null,
740740
},
741741
Object {
742742
"enumValues": null,
@@ -782,7 +782,7 @@ Object {
782782
"args": Array [],
783783
"deprecationReason": null,
784784
"isDeprecated": false,
785-
"name": "specifiedByUrl",
785+
"name": "specifiedByURL",
786786
"type": Object {
787787
"kind": "SCALAR",
788788
"name": "String",
@@ -937,7 +937,7 @@ Object {
937937
"kind": "OBJECT",
938938
"name": "__Type",
939939
"possibleTypes": null,
940-
"specifiedByUrl": null,
940+
"specifiedByURL": null,
941941
},
942942
Object {
943943
"enumValues": Array [
@@ -988,7 +988,7 @@ Object {
988988
"kind": "ENUM",
989989
"name": "__TypeKind",
990990
"possibleTypes": null,
991-
"specifiedByUrl": null,
991+
"specifiedByURL": null,
992992
},
993993
],
994994
},

examples/json-schema-covid/tests/__snapshots__/json-schema-covid.test.js.snap

+1-2
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,5 @@ type _records_items_fields {
146146
country_name: String
147147
value: Float
148148
year: String
149-
}
150-
"
149+
}"
151150
`;

examples/json-schema-example/tests/__snapshots__/json-schema-example.test.js.snap

+1-2
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,5 @@ type User {
5353
foos: [Foo]
5454
jobTitle: String
5555
lastName: String
56-
}
57-
"
56+
}"
5857
`;

0 commit comments

Comments
 (0)