diff --git a/.changeset/grumpy-pandas-pump.md b/.changeset/grumpy-pandas-pump.md deleted file mode 100644 index ec9ede9616c..00000000000 --- a/.changeset/grumpy-pandas-pump.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@apollo/client": patch ---- - -Allow `cache.modify` to return deeply partial data. diff --git a/.changeset/pink-guests-vanish.md b/.changeset/pink-guests-vanish.md deleted file mode 100644 index df9044e07ea..00000000000 --- a/.changeset/pink-guests-vanish.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"@apollo/client": patch ---- - -Fix a potential crash when calling `clearStore` while a query was running. - -Previously, calling `client.clearStore()` while a query was running had one of these results: -* `useQuery` would stay in a `loading: true` state. -* `useLazyQuery` would stay in a `loading: true` state, but also crash with a `"Cannot read property 'data' of undefined"` error. - -Now, in both cases, the hook will enter an error state with a `networkError`, and the promise returned by the `useLazyQuery` `execute` function will return a result in an error state. diff --git a/.changeset/shaggy-lions-brake.md b/.changeset/shaggy-lions-brake.md deleted file mode 100644 index 0d444d490b3..00000000000 --- a/.changeset/shaggy-lions-brake.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@apollo/client": patch ---- - -Prevent accidental distribution on `cache.modify` field modifiers when a field is a union type array. diff --git a/.size-limits.json b/.size-limits.json index 161c5d01b7a..e8bbc744738 100644 --- a/.size-limits.json +++ b/.size-limits.json @@ -1,4 +1,4 @@ { "dist/apollo-client.min.cjs": 40271, - "import { ApolloClient, InMemoryCache, HttpLink } from \"dist/index.js\" (production)": 33058 + "import { ApolloClient, InMemoryCache, HttpLink } from \"dist/index.js\" (production)": 33059 } diff --git a/CHANGELOG.md b/CHANGELOG.md index 921f488df6a..0338ac7c0e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,22 @@ # @apollo/client +## 3.11.4 + +### Patch Changes + +- [#11994](https://github.com/apollographql/apollo-client/pull/11994) [`41b17e5`](https://github.com/apollographql/apollo-client/commit/41b17e5950f4db5ef9e32ded5bb327b3bf19e6e8) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Update the `Modifier` function type to allow `cache.modify` to return deeply partial data. + +- [#11989](https://github.com/apollographql/apollo-client/pull/11989) [`e609156`](https://github.com/apollographql/apollo-client/commit/e609156c4989def88ae1a28b2e0f0378077a5528) Thanks [@phryneas](https://github.com/phryneas)! - Fix a potential crash when calling `clearStore` while a query was running. + + Previously, calling `client.clearStore()` while a query was running had one of these results: + + - `useQuery` would stay in a `loading: true` state. + - `useLazyQuery` would stay in a `loading: true` state, but also crash with a `"Cannot read property 'data' of undefined"` error. + + Now, in both cases, the hook will enter an error state with a `networkError`, and the promise returned by the `useLazyQuery` `execute` function will return a result in an error state. + +- [#11994](https://github.com/apollographql/apollo-client/pull/11994) [`41b17e5`](https://github.com/apollographql/apollo-client/commit/41b17e5950f4db5ef9e32ded5bb327b3bf19e6e8) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Prevent accidental distribution on `cache.modify` field modifiers when a field is a union type array. + ## 3.11.3 ### Patch Changes diff --git a/package-lock.json b/package-lock.json index 253b3073f96..de7b3c51bb3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@apollo/client", - "version": "3.11.3", + "version": "3.11.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@apollo/client", - "version": "3.11.3", + "version": "3.11.4", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 93736d8011e..6fe4f8d43e4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@apollo/client", - "version": "3.11.3", + "version": "3.11.4", "description": "A fully-featured caching GraphQL client.", "private": true, "keywords": [