Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(chore) - Upgrade to graphql@16 and extend peer dependency range #2133

Merged
merged 7 commits into from
Dec 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .changeset/silver-ads-fry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
'@urql/exchange-auth': patch
'@urql/exchange-execute': patch
'@urql/exchange-graphcache': patch
'@urql/exchange-multipart-fetch': patch
'@urql/exchange-persisted-fetch': patch
'@urql/exchange-populate': patch
'@urql/exchange-refocus': patch
'@urql/exchange-request-policy': patch
'@urql/exchange-retry': patch
'@urql/core': patch
'@urql/introspection': patch
'next-urql': patch
'@urql/preact': patch
'urql': patch
'@urql/storybook-addon': patch
'@urql/svelte': patch
'@urql/vue': patch
---

Extend peer dependency range of `graphql` to include `^16.0.0`.
As always when upgrading across many packages of `urql`, especially including `@urql/core` we recommend you to deduplicate dependencies after upgrading, using `npm dedupe` or `npx yarn-deduplicate`.
4 changes: 2 additions & 2 deletions exchanges/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@
"wonka": "^4.0.14"
},
"peerDependencies": {
"graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0"
"graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"
},
"devDependencies": {
"graphql": "^15.4.0"
"graphql": "^16.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion exchanges/auth/src/authExchange.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ it('supports calls to the mutate() method in getAuth()', async () => {
authExchange<{ token: string }>({
getAuth: async ({ mutate }) => {
const result = await mutate('mutation { auth }');
expect(print(result.operation.query)).toBe('mutation {\n auth\n}\n');
expect(print(result.operation.query)).toBe('mutation {\n auth\n}');
return { token: 'async-token' };
},
willAuthError: () => false,
Expand Down
4 changes: 2 additions & 2 deletions exchanges/execute/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@
"wonka": "^4.0.14"
},
"peerDependencies": {
"graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0"
"graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"
},
"devDependencies": {
"graphql": "^15.4.0"
"graphql": "^16.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 2 additions & 2 deletions exchanges/graphcache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@
"wonka": "^4.0.14"
},
"peerDependencies": {
"graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0"
"graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"
},
"devDependencies": {
"graphql": "^15.4.0"
"graphql": "^16.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion exchanges/graphcache/src/ast/variables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const filterVariables = (
/** Returns a normalized form of variables with defaulted values */
export const normalizeVariables = (
node: OperationDefinitionNode,
input: void | object
input: void | Record<string, unknown>
): Variables => {
const vars = {};
if (!input) return vars;
Expand Down
6 changes: 2 additions & 4 deletions exchanges/graphcache/src/offlineExchange.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,7 @@ describe('offline', () => {
name
__typename
}
}
`,
}`,
variables: {},
},
]);
Expand Down Expand Up @@ -311,8 +310,7 @@ describe('offline', () => {
name
__typename
}
}
`,
}`,
variables: {},
},
]);
Expand Down
4 changes: 2 additions & 2 deletions exchanges/multipart-fetch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@
"wonka": "^4.0.14"
},
"peerDependencies": {
"graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0"
"graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"
},
"devDependencies": {
"graphql": "^15.4.0"
"graphql": "^16.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
Loading