diff --git a/.changeset/fluffy-impalas-cross.md b/.changeset/fluffy-impalas-cross.md deleted file mode 100644 index 55f412a7428..00000000000 --- a/.changeset/fluffy-impalas-cross.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@apollo/client": patch ---- - -Fix an issue where multiple fetches with results that returned errors would sometimes set the `data` property with an `errorPolicy` of `none`. diff --git a/.changeset/nice-worms-juggle.md b/.changeset/nice-worms-juggle.md deleted file mode 100644 index 92aa1051b69..00000000000 --- a/.changeset/nice-worms-juggle.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@apollo/client": patch ---- - -Fix an issue where `fetchMore` would write its result data to the cache when using it with a `no-cache` fetch policy. diff --git a/.changeset/pink-horses-pay.md b/.changeset/pink-horses-pay.md deleted file mode 100644 index c2773153ddf..00000000000 --- a/.changeset/pink-horses-pay.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@apollo/client": patch ---- - -Fix an issue where executing `fetchMore` with a `no-cache` fetch policy could sometimes result in multiple network requests. diff --git a/.changeset/short-scissors-speak.md b/.changeset/short-scissors-speak.md deleted file mode 100644 index 38a6d8aa45b..00000000000 --- a/.changeset/short-scissors-speak.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@apollo/client": patch ---- - -**Potentially disruptive change** - -When calling `fetchMore` with a query that has a `no-cache` fetch policy, `fetchMore` will now throw if an `updateQuery` function is not provided. This provides a mechanism to merge the results from the `fetchMore` call with the query's previous result. diff --git a/CHANGELOG.md b/CHANGELOG.md index 51591c9c575..921f488df6a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,21 @@ # @apollo/client +## 3.11.3 + +### Patch Changes + +- [#11984](https://github.com/apollographql/apollo-client/pull/11984) [`5db1659`](https://github.com/apollographql/apollo-client/commit/5db1659dc07e3de697894fc1c6f00a151d068291) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Fix an issue where multiple fetches with results that returned errors would sometimes set the `data` property with an `errorPolicy` of `none`. + +- [#11974](https://github.com/apollographql/apollo-client/pull/11974) [`c95848e`](https://github.com/apollographql/apollo-client/commit/c95848e859fb7ce0b3b9439ac71dff880f991450) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Fix an issue where `fetchMore` would write its result data to the cache when using it with a `no-cache` fetch policy. + +- [#11974](https://github.com/apollographql/apollo-client/pull/11974) [`c95848e`](https://github.com/apollographql/apollo-client/commit/c95848e859fb7ce0b3b9439ac71dff880f991450) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Fix an issue where executing `fetchMore` with a `no-cache` fetch policy could sometimes result in multiple network requests. + +- [#11974](https://github.com/apollographql/apollo-client/pull/11974) [`c95848e`](https://github.com/apollographql/apollo-client/commit/c95848e859fb7ce0b3b9439ac71dff880f991450) Thanks [@jerelmiller](https://github.com/jerelmiller)! - + + #### Potentially disruptive change + + When calling `fetchMore` with a query that has a `no-cache` fetch policy, `fetchMore` will now throw if an `updateQuery` function is not provided. This provides a mechanism to merge the results from the `fetchMore` call with the query's previous result. + ## 3.11.2 ### Patch Changes diff --git a/package-lock.json b/package-lock.json index 8b04f0cfb83..253b3073f96 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@apollo/client", - "version": "3.11.2", + "version": "3.11.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@apollo/client", - "version": "3.11.2", + "version": "3.11.3", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index d8e4c99a341..93736d8011e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@apollo/client", - "version": "3.11.2", + "version": "3.11.3", "description": "A fully-featured caching GraphQL client.", "private": true, "keywords": [