diff --git a/.changeset/brown-bikes-divide.md b/.changeset/brown-bikes-divide.md deleted file mode 100644 index 8701c21eae9..00000000000 --- a/.changeset/brown-bikes-divide.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@apollo/client": patch ---- - -switch `useRenderGuard` to an approach not accessing React's internals diff --git a/.changeset/famous-camels-rescue.md b/.changeset/famous-camels-rescue.md deleted file mode 100644 index fbf8b08722b..00000000000 --- a/.changeset/famous-camels-rescue.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@apollo/client": patch ---- - -`useLoadableQuery`: ensure that `loadQuery` is updated if the ApolloClient instance changes diff --git a/.changeset/late-days-give.md b/.changeset/late-days-give.md deleted file mode 100644 index 4fe36c2d495..00000000000 --- a/.changeset/late-days-give.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@apollo/client": patch ---- - -Fixes [#11849](https://github.com/apollographql/apollo-client/issues/11849) by reevaluating `window.fetch` each time `BatchHttpLink` uses it, if not configured via `options.fetch`. Takes the same approach as PR [#8603](https://github.com/apollographql/apollo-client/pull/8603) which fixed the same issue in `HttpLink`. diff --git a/.changeset/loud-hairs-think.md b/.changeset/loud-hairs-think.md deleted file mode 100644 index 7e29ffae5ec..00000000000 --- a/.changeset/loud-hairs-think.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@apollo/client": patch ---- - -Fix a bug where calling the `useMutation` `reset` function would point the hook to an outdated `client` reference. diff --git a/.changeset/loud-hounds-heal.md b/.changeset/loud-hounds-heal.md deleted file mode 100644 index f80a0a34105..00000000000 --- a/.changeset/loud-hounds-heal.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@apollo/client": patch ---- - -Fix graphQLErrors in Error Link if networkError.result is an empty string diff --git a/.changeset/mighty-monkeys-explain.md b/.changeset/mighty-monkeys-explain.md deleted file mode 100644 index 4629cd11273..00000000000 --- a/.changeset/mighty-monkeys-explain.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@apollo/client": patch ---- - -Prevent writing to a ref in render in `useMutation`. -As a result, you might encounter problems in the future if you call the mutation's `execute` function during render. Please note that this was never supported behavior, and we strongly recommend against it. diff --git a/.changeset/nasty-pens-dress.md b/.changeset/nasty-pens-dress.md deleted file mode 100644 index 7eb2f16b3c6..00000000000 --- a/.changeset/nasty-pens-dress.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@apollo/client": patch ---- - -Ensure covariant behavior: `MockedResponse` should be assignable to `MockedResponse` diff --git a/.changeset/shaggy-mirrors-judge.md b/.changeset/shaggy-mirrors-judge.md deleted file mode 100644 index f5e599284ab..00000000000 --- a/.changeset/shaggy-mirrors-judge.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@apollo/client": patch ---- - -Avoid usage of useRef in useInternalState to prevent ref access in render. diff --git a/.changeset/sharp-cats-taste.md b/.changeset/sharp-cats-taste.md deleted file mode 100644 index 6d2946fe28d..00000000000 --- a/.changeset/sharp-cats-taste.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@apollo/client": patch ---- - -Add missing name to tuple member (fix TS5084) diff --git a/.changeset/stupid-planes-nail.md b/.changeset/stupid-planes-nail.md deleted file mode 100644 index 200a00ac26b..00000000000 --- a/.changeset/stupid-planes-nail.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@apollo/client": patch ---- - -Fix a bug where `useLazyQuery` would not pick up a client change. diff --git a/CHANGELOG.md b/CHANGELOG.md index e4473180110..1791cbeafe8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,30 @@ # @apollo/client +## 3.10.5 + +### Patch Changes + +- [#11888](https://github.com/apollographql/apollo-client/pull/11888) [`7fb7939`](https://github.com/apollographql/apollo-client/commit/7fb7939edb7ca8f4273b75554f96ea9936731458) Thanks [@phryneas](https://github.com/phryneas)! - switch `useRenderGuard` to an approach not accessing React's internals + +- [#11511](https://github.com/apollographql/apollo-client/pull/11511) [`6536369`](https://github.com/apollographql/apollo-client/commit/6536369cf213469d20d15b779c344268d70fecd5) Thanks [@phryneas](https://github.com/phryneas)! - `useLoadableQuery`: ensure that `loadQuery` is updated if the ApolloClient instance changes + +- [#11860](https://github.com/apollographql/apollo-client/pull/11860) [`8740f19`](https://github.com/apollographql/apollo-client/commit/8740f198805a99e01136617c4055d611b92cc231) Thanks [@alessbell](https://github.com/alessbell)! - Fixes [#11849](https://github.com/apollographql/apollo-client/issues/11849) by reevaluating `window.fetch` each time `BatchHttpLink` uses it, if not configured via `options.fetch`. Takes the same approach as PR [#8603](https://github.com/apollographql/apollo-client/pull/8603) which fixed the same issue in `HttpLink`. + +- [#11852](https://github.com/apollographql/apollo-client/pull/11852) [`d502a69`](https://github.com/apollographql/apollo-client/commit/d502a69654d8ffa31e09467da028304a934a9874) Thanks [@phryneas](https://github.com/phryneas)! - Fix a bug where calling the `useMutation` `reset` function would point the hook to an outdated `client` reference. + +- [#11329](https://github.com/apollographql/apollo-client/pull/11329) [`3d164ea`](https://github.com/apollographql/apollo-client/commit/3d164ea16c17d271f6fa9e5ad8f013623eec23a0) Thanks [@PaLy](https://github.com/PaLy)! - Fix graphQLErrors in Error Link if networkError.result is an empty string + +- [#11852](https://github.com/apollographql/apollo-client/pull/11852) [`d502a69`](https://github.com/apollographql/apollo-client/commit/d502a69654d8ffa31e09467da028304a934a9874) Thanks [@phryneas](https://github.com/phryneas)! - Prevent writing to a ref in render in `useMutation`. + As a result, you might encounter problems in the future if you call the mutation's `execute` function during render. Please note that this was never supported behavior, and we strongly recommend against it. + +- [#11848](https://github.com/apollographql/apollo-client/pull/11848) [`ad63924`](https://github.com/apollographql/apollo-client/commit/ad6392424ddbeb6f91b165c806251490e1cdd69e) Thanks [@phryneas](https://github.com/phryneas)! - Ensure covariant behavior: `MockedResponse` should be assignable to `MockedResponse` + +- [#11851](https://github.com/apollographql/apollo-client/pull/11851) [`45c47be`](https://github.com/apollographql/apollo-client/commit/45c47be26d4e020cfcff359a5af19ccfc39b930e) Thanks [@phryneas](https://github.com/phryneas)! - Avoid usage of useRef in useInternalState to prevent ref access in render. + +- [#11877](https://github.com/apollographql/apollo-client/pull/11877) [`634d91a`](https://github.com/apollographql/apollo-client/commit/634d91aeb10ab308b05d5ffb918678806046af09) Thanks [@phryneas](https://github.com/phryneas)! - Add missing name to tuple member (fix TS5084) + +- [#11851](https://github.com/apollographql/apollo-client/pull/11851) [`45c47be`](https://github.com/apollographql/apollo-client/commit/45c47be26d4e020cfcff359a5af19ccfc39b930e) Thanks [@phryneas](https://github.com/phryneas)! - Fix a bug where `useLazyQuery` would not pick up a client change. + ## 3.10.4 ### Patch Changes diff --git a/package-lock.json b/package-lock.json index 0684be839e5..ec5a1503faa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@apollo/client", - "version": "3.10.4", + "version": "3.10.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@apollo/client", - "version": "3.10.4", + "version": "3.10.5", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index a36db028e60..b88727f93ed 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@apollo/client", - "version": "3.10.4", + "version": "3.10.5", "description": "A fully-featured caching GraphQL client.", "private": true, "keywords": [