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/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/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..cc2d3967822 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,22 @@ # @apollo/client +## 3.10.5 + +### Patch 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. + +- [#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. + +- [#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 df5d9cf9714..c84a4d4c6fd 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 d8620f4b238..6f113fb2e55 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": [