From aa2a041f6dd046f512e31971ae8d692af1696850 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 22 Jul 2024 23:23:20 +0000 Subject: [PATCH 1/2] Version Packages --- .changeset/angry-ravens-mate.md | 5 --- .changeset/angry-seals-jog.md | 5 --- .changeset/breezy-deers-dream.md | 5 --- .changeset/chilly-dots-shake.md | 5 --- .changeset/clever-bikes-admire.md | 5 --- .changeset/curly-vans-draw.md | 5 --- .changeset/early-tips-vanish.md | 5 --- .changeset/flat-onions-guess.md | 5 --- .changeset/fluffy-badgers-rush.md | 5 --- .changeset/good-suns-happen.md | 5 --- .changeset/hungry-rings-help.md | 5 --- .changeset/little-suits-return.md | 5 --- .changeset/nasty-olives-act.md | 5 --- .changeset/pink-ants-remember.md | 16 ------- .changeset/pink-flowers-switch.md | 5 --- .changeset/proud-humans-begin.md | 5 --- .changeset/slimy-balloons-cheat.md | 5 --- .changeset/slimy-berries-yawn.md | 14 ------ .changeset/tasty-chairs-dress.md | 5 --- .changeset/thin-lies-begin.md | 5 --- .changeset/unlucky-birds-press.md | 5 --- .changeset/weak-ads-develop.md | 5 --- CHANGELOG.md | 70 ++++++++++++++++++++++++++++++ package-lock.json | 4 +- package.json | 2 +- 25 files changed, 73 insertions(+), 133 deletions(-) delete mode 100644 .changeset/angry-ravens-mate.md delete mode 100644 .changeset/angry-seals-jog.md delete mode 100644 .changeset/breezy-deers-dream.md delete mode 100644 .changeset/chilly-dots-shake.md delete mode 100644 .changeset/clever-bikes-admire.md delete mode 100644 .changeset/curly-vans-draw.md delete mode 100644 .changeset/early-tips-vanish.md delete mode 100644 .changeset/flat-onions-guess.md delete mode 100644 .changeset/fluffy-badgers-rush.md delete mode 100644 .changeset/good-suns-happen.md delete mode 100644 .changeset/hungry-rings-help.md delete mode 100644 .changeset/little-suits-return.md delete mode 100644 .changeset/nasty-olives-act.md delete mode 100644 .changeset/pink-ants-remember.md delete mode 100644 .changeset/pink-flowers-switch.md delete mode 100644 .changeset/proud-humans-begin.md delete mode 100644 .changeset/slimy-balloons-cheat.md delete mode 100644 .changeset/slimy-berries-yawn.md delete mode 100644 .changeset/tasty-chairs-dress.md delete mode 100644 .changeset/thin-lies-begin.md delete mode 100644 .changeset/unlucky-birds-press.md delete mode 100644 .changeset/weak-ads-develop.md diff --git a/.changeset/angry-ravens-mate.md b/.changeset/angry-ravens-mate.md deleted file mode 100644 index 3072009aff1..00000000000 --- a/.changeset/angry-ravens-mate.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@apollo/client": minor ---- - -Add support for `subscribeToMore` function to `useQueryRefHandlers`. diff --git a/.changeset/angry-seals-jog.md b/.changeset/angry-seals-jog.md deleted file mode 100644 index 9ba52ae2f3c..00000000000 --- a/.changeset/angry-seals-jog.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@apollo/client": minor ---- - -Support extensions in useSubscription diff --git a/.changeset/breezy-deers-dream.md b/.changeset/breezy-deers-dream.md deleted file mode 100644 index 71d8b128201..00000000000 --- a/.changeset/breezy-deers-dream.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@apollo/client": patch ---- - -add React 19 RC to `peerDependencies` diff --git a/.changeset/chilly-dots-shake.md b/.changeset/chilly-dots-shake.md deleted file mode 100644 index 0bbb1de7e58..00000000000 --- a/.changeset/chilly-dots-shake.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@apollo/client": minor ---- - -Add support for `subscribeToMore` function to `useLoadableQuery`. diff --git a/.changeset/clever-bikes-admire.md b/.changeset/clever-bikes-admire.md deleted file mode 100644 index 36b9ba5de3a..00000000000 --- a/.changeset/clever-bikes-admire.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@apollo/client": patch ---- - -Add `restart` function to `useSubscription`. diff --git a/.changeset/curly-vans-draw.md b/.changeset/curly-vans-draw.md deleted file mode 100644 index e9096914b90..00000000000 --- a/.changeset/curly-vans-draw.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@apollo/client": patch ---- - -Remove deprecated `watchFragment` option, `canonizeResults` diff --git a/.changeset/early-tips-vanish.md b/.changeset/early-tips-vanish.md deleted file mode 100644 index 3c794284f8e..00000000000 --- a/.changeset/early-tips-vanish.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@apollo/client": patch ---- - -`createSchemaFetch`: simulate serialized errors instead of an `ApolloError` instance diff --git a/.changeset/flat-onions-guess.md b/.changeset/flat-onions-guess.md deleted file mode 100644 index ce7dc67887a..00000000000 --- a/.changeset/flat-onions-guess.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@apollo/client": patch ---- - -Add `cause` field to `ApolloError`. diff --git a/.changeset/fluffy-badgers-rush.md b/.changeset/fluffy-badgers-rush.md deleted file mode 100644 index 62f55a2b0f0..00000000000 --- a/.changeset/fluffy-badgers-rush.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@apollo/client": patch ---- - -MockLink: add query default variables if not specified in mock request diff --git a/.changeset/good-suns-happen.md b/.changeset/good-suns-happen.md deleted file mode 100644 index e184b2c1d09..00000000000 --- a/.changeset/good-suns-happen.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@apollo/client": patch ---- - -`watchFragment`: forward additional options to `diffOptions` diff --git a/.changeset/hungry-rings-help.md b/.changeset/hungry-rings-help.md deleted file mode 100644 index d5fa17d2f35..00000000000 --- a/.changeset/hungry-rings-help.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@apollo/client": patch ---- - -Fix issue where mutations were not accessible by Apollo Client Devtools in 3.11.0-rc.0. diff --git a/.changeset/little-suits-return.md b/.changeset/little-suits-return.md deleted file mode 100644 index 6232f48b7fd..00000000000 --- a/.changeset/little-suits-return.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@apollo/client": minor ---- - -Reimplement `useSubscription` to fix rules of React violations. diff --git a/.changeset/nasty-olives-act.md b/.changeset/nasty-olives-act.md deleted file mode 100644 index 02fadec8cae..00000000000 --- a/.changeset/nasty-olives-act.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@apollo/client": minor ---- - -Rewrite big parts of `useQuery` and `useLazyQuery` to be more compliant with the Rules of React and React Compiler diff --git a/.changeset/pink-ants-remember.md b/.changeset/pink-ants-remember.md deleted file mode 100644 index b5d5506d5b7..00000000000 --- a/.changeset/pink-ants-remember.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -"@apollo/client": minor ---- - -Add the ability to specify a name for the client instance for use with Apollo Client Devtools. This is useful when instantiating multiple clients to identify the client instance more easily. This deprecates the `connectToDevtools` option in favor of a new `devtools` configuration. - -```ts -new ApolloClient({ - devtools: { - enabled: true, - name: "Test Client", - }, -}); -``` - -This option is backwards-compatible with `connectToDevtools` and will be used in the absense of a `devtools` option. diff --git a/.changeset/pink-flowers-switch.md b/.changeset/pink-flowers-switch.md deleted file mode 100644 index c85a3e59376..00000000000 --- a/.changeset/pink-flowers-switch.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@apollo/client": patch ---- - -Allow `IgnoreModifier` to be returned from a `optimisticResponse` function when inferring from a `TypedDocumentNode` when used with a generic argument. diff --git a/.changeset/proud-humans-begin.md b/.changeset/proud-humans-begin.md deleted file mode 100644 index 059cffa65fc..00000000000 --- a/.changeset/proud-humans-begin.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@apollo/client": patch ---- - -Document (and deprecate) the previously undocumented `errors` property on the `useQuery` `QueryResult` type. diff --git a/.changeset/slimy-balloons-cheat.md b/.changeset/slimy-balloons-cheat.md deleted file mode 100644 index 72291902106..00000000000 --- a/.changeset/slimy-balloons-cheat.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@apollo/client": minor ---- - -Add support for `subscribeToMore` function to `useBackgroundQuery`. diff --git a/.changeset/slimy-berries-yawn.md b/.changeset/slimy-berries-yawn.md deleted file mode 100644 index ef7d7ec671c..00000000000 --- a/.changeset/slimy-berries-yawn.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -"@apollo/client": minor ---- - -Changes usages of the `GraphQLError` type to `GraphQLFormattedError`. - -This was a type bug - these errors were never `GraphQLError` instances -to begin with, and the `GraphQLError` class has additional properties that can -never be correctly rehydrated from a GraphQL result. -The correct type to use here is `GraphQLFormattedError`. - -Similarly, please ensure to use the type `FormattedExecutionResult` -instead of `ExecutionResult` - the non-"Formatted" versions of these types -are for use on the server only, but don't get transported over the network. diff --git a/.changeset/tasty-chairs-dress.md b/.changeset/tasty-chairs-dress.md deleted file mode 100644 index 459c72bd44b..00000000000 --- a/.changeset/tasty-chairs-dress.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@apollo/client": patch ---- - -Call `nextFetchPolicy` with "variables-changed" even if there is a `fetchPolicy` specified. (fixes #11365) diff --git a/.changeset/thin-lies-begin.md b/.changeset/thin-lies-begin.md deleted file mode 100644 index bc258c65cdf..00000000000 --- a/.changeset/thin-lies-begin.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@apollo/client": patch ---- - -Allow wrapping `createQueryPreloader` diff --git a/.changeset/unlucky-birds-press.md b/.changeset/unlucky-birds-press.md deleted file mode 100644 index 5696787576d..00000000000 --- a/.changeset/unlucky-birds-press.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@apollo/client": patch ---- - -add `ignoreResults` option to `useSubscription` diff --git a/.changeset/weak-ads-develop.md b/.changeset/weak-ads-develop.md deleted file mode 100644 index 2499c7cb871..00000000000 --- a/.changeset/weak-ads-develop.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@apollo/client": minor ---- - -Deprecates experimental schema testing utilities introduced in 3.10 in favor of recommending [`@apollo/graphql-testing-library`](https://github.com/apollographql/graphql-testing-library). diff --git a/CHANGELOG.md b/CHANGELOG.md index c3ecbd0181c..6ab4038c55d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,75 @@ # @apollo/client +## 3.11.0 + +### Minor Changes + +- [#11923](https://github.com/apollographql/apollo-client/pull/11923) [`d88c7f8`](https://github.com/apollographql/apollo-client/commit/d88c7f8909e3cb31532e8b1fc7dd06be12f35591) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Add support for `subscribeToMore` function to `useQueryRefHandlers`. + +- [#11854](https://github.com/apollographql/apollo-client/pull/11854) [`3812800`](https://github.com/apollographql/apollo-client/commit/3812800c6e4e5e3e64f473543babdba35ce100c2) Thanks [@jcostello-atlassian](https://github.com/jcostello-atlassian)! - Support extensions in useSubscription + +- [#11923](https://github.com/apollographql/apollo-client/pull/11923) [`d88c7f8`](https://github.com/apollographql/apollo-client/commit/d88c7f8909e3cb31532e8b1fc7dd06be12f35591) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Add support for `subscribeToMore` function to `useLoadableQuery`. + +- [#11863](https://github.com/apollographql/apollo-client/pull/11863) [`98e44f7`](https://github.com/apollographql/apollo-client/commit/98e44f74cb7c7e93a81bdc7492c9218bf4a2dcd4) Thanks [@phryneas](https://github.com/phryneas)! - Reimplement `useSubscription` to fix rules of React violations. + +- [#11869](https://github.com/apollographql/apollo-client/pull/11869) [`a69327c`](https://github.com/apollographql/apollo-client/commit/a69327cce1b36e8855258e9b19427511e0af8748) Thanks [@phryneas](https://github.com/phryneas)! - Rewrite big parts of `useQuery` and `useLazyQuery` to be more compliant with the Rules of React and React Compiler + +- [#11936](https://github.com/apollographql/apollo-client/pull/11936) [`1b23337`](https://github.com/apollographql/apollo-client/commit/1b23337e5a9eec4ce3ed69531ca4f4afe8e897a6) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Add the ability to specify a name for the client instance for use with Apollo Client Devtools. This is useful when instantiating multiple clients to identify the client instance more easily. This deprecates the `connectToDevtools` option in favor of a new `devtools` configuration. + + ```ts + new ApolloClient({ + devtools: { + enabled: true, + name: "Test Client", + }, + }); + ``` + + This option is backwards-compatible with `connectToDevtools` and will be used in the absense of a `devtools` option. + +- [#11923](https://github.com/apollographql/apollo-client/pull/11923) [`d88c7f8`](https://github.com/apollographql/apollo-client/commit/d88c7f8909e3cb31532e8b1fc7dd06be12f35591) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Add support for `subscribeToMore` function to `useBackgroundQuery`. + +- [#11789](https://github.com/apollographql/apollo-client/pull/11789) [`5793301`](https://github.com/apollographql/apollo-client/commit/579330147d6bd6f7167a35413a33746103e375cb) Thanks [@phryneas](https://github.com/phryneas)! - Changes usages of the `GraphQLError` type to `GraphQLFormattedError`. + + This was a type bug - these errors were never `GraphQLError` instances + to begin with, and the `GraphQLError` class has additional properties that can + never be correctly rehydrated from a GraphQL result. + The correct type to use here is `GraphQLFormattedError`. + + Similarly, please ensure to use the type `FormattedExecutionResult` + instead of `ExecutionResult` - the non-"Formatted" versions of these types + are for use on the server only, but don't get transported over the network. + +- [#11930](https://github.com/apollographql/apollo-client/pull/11930) [`a768575`](https://github.com/apollographql/apollo-client/commit/a768575ac1454587208aad63abc811b6a966fe72) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Deprecates experimental schema testing utilities introduced in 3.10 in favor of recommending [`@apollo/graphql-testing-library`](https://github.com/apollographql/graphql-testing-library). + +### Patch Changes + +- [#11951](https://github.com/apollographql/apollo-client/pull/11951) [`0de03af`](https://github.com/apollographql/apollo-client/commit/0de03af912a76c4e0111f21b4f90a073317b63b6) Thanks [@phryneas](https://github.com/phryneas)! - add React 19 RC to `peerDependencies` + +- [#11927](https://github.com/apollographql/apollo-client/pull/11927) [`2941824`](https://github.com/apollographql/apollo-client/commit/2941824dd66cdd20eee5f2293373ad7a9cf991a4) Thanks [@phryneas](https://github.com/phryneas)! - Add `restart` function to `useSubscription`. + +- [#11949](https://github.com/apollographql/apollo-client/pull/11949) [`4528918`](https://github.com/apollographql/apollo-client/commit/45289186bcaaa33dfe904913eb6df31e2541c219) Thanks [@alessbell](https://github.com/alessbell)! - Remove deprecated `watchFragment` option, `canonizeResults` + +- [#11937](https://github.com/apollographql/apollo-client/pull/11937) [`78332be`](https://github.com/apollographql/apollo-client/commit/78332be32a9af0da33eb3e4100e7a76c3eac2496) Thanks [@phryneas](https://github.com/phryneas)! - `createSchemaFetch`: simulate serialized errors instead of an `ApolloError` instance + +- [#11902](https://github.com/apollographql/apollo-client/pull/11902) [`96422ce`](https://github.com/apollographql/apollo-client/commit/96422ce95b923b560321a88acd2eec35cf2a1c18) Thanks [@phryneas](https://github.com/phryneas)! - Add `cause` field to `ApolloError`. + +- [#11806](https://github.com/apollographql/apollo-client/pull/11806) [`8df6013`](https://github.com/apollographql/apollo-client/commit/8df6013b6b45452ec058fab3e068b5b6d6c493f7) Thanks [@phryneas](https://github.com/phryneas)! - MockLink: add query default variables if not specified in mock request + +- [#11926](https://github.com/apollographql/apollo-client/pull/11926) [`3dd6432`](https://github.com/apollographql/apollo-client/commit/3dd64324dc5156450cead27f8141ea93315ffe65) Thanks [@phryneas](https://github.com/phryneas)! - `watchFragment`: forward additional options to `diffOptions` + +- [#11946](https://github.com/apollographql/apollo-client/pull/11946) [`7d833b8`](https://github.com/apollographql/apollo-client/commit/7d833b80119a991e6d2eb58f2c71074d697b8e63) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Fix issue where mutations were not accessible by Apollo Client Devtools in 3.11.0-rc.0. + +- [#11944](https://github.com/apollographql/apollo-client/pull/11944) [`8f3d7eb`](https://github.com/apollographql/apollo-client/commit/8f3d7eb3bc2e0c2d79c5b1856655abe829390742) Thanks [@sneyderdev](https://github.com/sneyderdev)! - Allow `IgnoreModifier` to be returned from a `optimisticResponse` function when inferring from a `TypedDocumentNode` when used with a generic argument. + +- [#11954](https://github.com/apollographql/apollo-client/pull/11954) [`4a6e86a`](https://github.com/apollographql/apollo-client/commit/4a6e86aeaf6685abf0dd23110784848c8b085735) Thanks [@phryneas](https://github.com/phryneas)! - Document (and deprecate) the previously undocumented `errors` property on the `useQuery` `QueryResult` type. + +- [#11626](https://github.com/apollographql/apollo-client/pull/11626) [`228429a`](https://github.com/apollographql/apollo-client/commit/228429a1d36eae691473b24fb641ec3cd84c8a3d) Thanks [@phryneas](https://github.com/phryneas)! - Call `nextFetchPolicy` with "variables-changed" even if there is a `fetchPolicy` specified. (fixes #11365) + +- [#11719](https://github.com/apollographql/apollo-client/pull/11719) [`09a6677`](https://github.com/apollographql/apollo-client/commit/09a6677ec1a0cffedeecb2cbac5cd3a3c8aa0fa1) Thanks [@phryneas](https://github.com/phryneas)! - Allow wrapping `createQueryPreloader` + +- [#11921](https://github.com/apollographql/apollo-client/pull/11921) [`70406bf`](https://github.com/apollographql/apollo-client/commit/70406bfd2b9a645d781638569853d9b435e047df) Thanks [@phryneas](https://github.com/phryneas)! - add `ignoreResults` option to `useSubscription` + ## 3.11.0-rc.2 ### Patch Changes diff --git a/package-lock.json b/package-lock.json index 44c82bb973e..58aad49670f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@apollo/client", - "version": "3.10.8", + "version": "3.11.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@apollo/client", - "version": "3.10.8", + "version": "3.11.0", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 6f8e2508b1d..cad475b6972 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@apollo/client", - "version": "3.10.8", + "version": "3.11.0", "description": "A fully-featured caching GraphQL client.", "private": true, "keywords": [ From f967fb62f489faa172a942323a26eef406a42dec Mon Sep 17 00:00:00 2001 From: Jerel Miller Date: Mon, 22 Jul 2024 17:29:43 -0600 Subject: [PATCH 2/2] Add potentially breaking fixes section --- CHANGELOG.md | 55 +++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 42 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ab4038c55d..595d0aa2145 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,48 @@ ## 3.11.0 +### Potentially Breaking Fixes + +- [#11789](https://github.com/apollographql/apollo-client/pull/11789) [`5793301`](https://github.com/apollographql/apollo-client/commit/579330147d6bd6f7167a35413a33746103e375cb) Thanks [@phryneas](https://github.com/phryneas)! - Changes usages of the `GraphQLError` type to `GraphQLFormattedError`. + + This was a type bug - these errors were never `GraphQLError` instances + to begin with, and the `GraphQLError` class has additional properties that can + never be correctly rehydrated from a GraphQL result. + The correct type to use here is `GraphQLFormattedError`. + + Similarly, please ensure to use the type `FormattedExecutionResult` + instead of `ExecutionResult` - the non-"Formatted" versions of these types + are for use on the server only, but don't get transported over the network. + +- [#11626](https://github.com/apollographql/apollo-client/pull/11626) [`228429a`](https://github.com/apollographql/apollo-client/commit/228429a1d36eae691473b24fb641ec3cd84c8a3d) Thanks [@phryneas](https://github.com/phryneas)! - Call `nextFetchPolicy` with "variables-changed" even if there is a `fetchPolicy` specified. + + Previously this would only be called when the current `fetchPolicy` was equal to the `fetchPolicy` option or the option was not specified. If you use `nextFetchPolicy` as a function, expect to see this function called more often. + + Due to this bug, this also meant that the `fetchPolicy` might be reset to the initial `fetchPolicy`, even when you specified a `nextFetchPolicy` function. If you previously relied on this behavior, you will need to update your `nextFetchPolicy` callback function to implement this resetting behavior. + + As an example, if your code looked like the following: + + ```js + useQuery(QUERY, { + nextFetchPolicy(currentFetchPolicy, info) { + // your logic here + } + ); + ``` + + Update your function to the following to reimplement the resetting behavior: + + ```js + useQuery(QUERY, { + nextFetchPolicy(currentFetchPolicy, info) { + if (info.reason === 'variables-changed') { + return info.initialFetchPolicy; + } + // your logic here + } + ); + ``` + ### Minor Changes - [#11923](https://github.com/apollographql/apollo-client/pull/11923) [`d88c7f8`](https://github.com/apollographql/apollo-client/commit/d88c7f8909e3cb31532e8b1fc7dd06be12f35591) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Add support for `subscribeToMore` function to `useQueryRefHandlers`. @@ -29,17 +71,6 @@ - [#11923](https://github.com/apollographql/apollo-client/pull/11923) [`d88c7f8`](https://github.com/apollographql/apollo-client/commit/d88c7f8909e3cb31532e8b1fc7dd06be12f35591) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Add support for `subscribeToMore` function to `useBackgroundQuery`. -- [#11789](https://github.com/apollographql/apollo-client/pull/11789) [`5793301`](https://github.com/apollographql/apollo-client/commit/579330147d6bd6f7167a35413a33746103e375cb) Thanks [@phryneas](https://github.com/phryneas)! - Changes usages of the `GraphQLError` type to `GraphQLFormattedError`. - - This was a type bug - these errors were never `GraphQLError` instances - to begin with, and the `GraphQLError` class has additional properties that can - never be correctly rehydrated from a GraphQL result. - The correct type to use here is `GraphQLFormattedError`. - - Similarly, please ensure to use the type `FormattedExecutionResult` - instead of `ExecutionResult` - the non-"Formatted" versions of these types - are for use on the server only, but don't get transported over the network. - - [#11930](https://github.com/apollographql/apollo-client/pull/11930) [`a768575`](https://github.com/apollographql/apollo-client/commit/a768575ac1454587208aad63abc811b6a966fe72) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Deprecates experimental schema testing utilities introduced in 3.10 in favor of recommending [`@apollo/graphql-testing-library`](https://github.com/apollographql/graphql-testing-library). ### Patch Changes @@ -64,8 +95,6 @@ - [#11954](https://github.com/apollographql/apollo-client/pull/11954) [`4a6e86a`](https://github.com/apollographql/apollo-client/commit/4a6e86aeaf6685abf0dd23110784848c8b085735) Thanks [@phryneas](https://github.com/phryneas)! - Document (and deprecate) the previously undocumented `errors` property on the `useQuery` `QueryResult` type. -- [#11626](https://github.com/apollographql/apollo-client/pull/11626) [`228429a`](https://github.com/apollographql/apollo-client/commit/228429a1d36eae691473b24fb641ec3cd84c8a3d) Thanks [@phryneas](https://github.com/phryneas)! - Call `nextFetchPolicy` with "variables-changed" even if there is a `fetchPolicy` specified. (fixes #11365) - - [#11719](https://github.com/apollographql/apollo-client/pull/11719) [`09a6677`](https://github.com/apollographql/apollo-client/commit/09a6677ec1a0cffedeecb2cbac5cd3a3c8aa0fa1) Thanks [@phryneas](https://github.com/phryneas)! - Allow wrapping `createQueryPreloader` - [#11921](https://github.com/apollographql/apollo-client/pull/11921) [`70406bf`](https://github.com/apollographql/apollo-client/commit/70406bfd2b9a645d781638569853d9b435e047df) Thanks [@phryneas](https://github.com/phryneas)! - add `ignoreResults` option to `useSubscription`