diff --git a/.changeset/fair-eels-march.md b/.changeset/fair-eels-march.md deleted file mode 100644 index 7cebb0d1e3..0000000000 --- a/.changeset/fair-eels-march.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/exchange-persisted': major ---- - -Update the `preferGetForPersistedQueries` option to include the `'force'` and `'within-url-limit'` values from the Client's `preferGetMethod` option. The default value of `true` no longer sets `OperationContext`'s `preferGetMethod` setting to `'force'`. Instead, the value of `preferGetForPersistedQueries` carries through to the `OperationContext`'s `preferGetMethod` setting for persisted queries. diff --git a/.changeset/sixty-masks-itch.md b/.changeset/sixty-masks-itch.md deleted file mode 100644 index 4c14c35432..0000000000 --- a/.changeset/sixty-masks-itch.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/exchange-graphcache': patch ---- - -Fix missing cache updates, when a query that was previously torn down restarts and retrieves results from the cache. In this case a regression caused cache updates to not be correctly applied to the queried results, since the operation wouldn’t be recognised properly diff --git a/examples/with-defer-stream-directives/package.json b/examples/with-defer-stream-directives/package.json index ad5b7cbeed..0e7bc506cc 100644 --- a/examples/with-defer-stream-directives/package.json +++ b/examples/with-defer-stream-directives/package.json @@ -18,7 +18,7 @@ "dependencies": { "@graphql-yoga/plugin-defer-stream": "^1.7.1", "@urql/core": "^4.0.7", - "@urql/exchange-graphcache": "^6.0.3", + "@urql/exchange-graphcache": "^6.0.4", "graphql": "17.0.0-alpha.2", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/examples/with-graphcache-pagination/package.json b/examples/with-graphcache-pagination/package.json index 97e89d6aa0..c654323753 100644 --- a/examples/with-graphcache-pagination/package.json +++ b/examples/with-graphcache-pagination/package.json @@ -7,7 +7,7 @@ }, "dependencies": { "@urql/core": "^4.0.7", - "@urql/exchange-graphcache": "^6.0.3", + "@urql/exchange-graphcache": "^6.0.4", "graphql": "^16.6.0", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/examples/with-graphcache-updates/package.json b/examples/with-graphcache-updates/package.json index 384e4139da..362f63ca5d 100644 --- a/examples/with-graphcache-updates/package.json +++ b/examples/with-graphcache-updates/package.json @@ -8,7 +8,7 @@ "dependencies": { "@urql/core": "^4.0.7", "@urql/exchange-auth": "^2.1.2", - "@urql/exchange-graphcache": "^6.0.3", + "@urql/exchange-graphcache": "^6.0.4", "graphql": "^16.6.0", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/exchanges/graphcache/CHANGELOG.md b/exchanges/graphcache/CHANGELOG.md index 9c55cf3073..30862d9470 100644 --- a/exchanges/graphcache/CHANGELOG.md +++ b/exchanges/graphcache/CHANGELOG.md @@ -1,5 +1,12 @@ # @urql/exchange-graphcache +## 6.0.4 + +### Patch Changes + +- ⚠️ Fix missing cache updates, when a query that was previously torn down restarts and retrieves results from the cache. In this case a regression caused cache updates to not be correctly applied to the queried results, since the operation wouldn’t be recognised properly + Submitted by [@kitten](https://github.com/kitten) (See [#3193](https://github.com/urql-graphql/urql/pull/3193)) + ## 6.0.3 ### Patch Changes diff --git a/exchanges/graphcache/package.json b/exchanges/graphcache/package.json index 9801eccdd9..8a948a60ff 100644 --- a/exchanges/graphcache/package.json +++ b/exchanges/graphcache/package.json @@ -1,6 +1,6 @@ { "name": "@urql/exchange-graphcache", - "version": "6.0.3", + "version": "6.0.4", "description": "A normalized and configurable cache exchange for urql", "sideEffects": false, "homepage": "https://formidable.com/open-source/urql/docs/graphcache", diff --git a/exchanges/persisted/CHANGELOG.md b/exchanges/persisted/CHANGELOG.md index 806e7dc778..7cce8d26cc 100644 --- a/exchanges/persisted/CHANGELOG.md +++ b/exchanges/persisted/CHANGELOG.md @@ -1,5 +1,12 @@ # @urql/exchange-persisted-fetch +## 4.0.0 + +### Major Changes + +- Update the `preferGetForPersistedQueries` option to include the `'force'` and `'within-url-limit'` values from the Client's `preferGetMethod` option. The default value of `true` no longer sets `OperationContext`'s `preferGetMethod` setting to `'force'`. Instead, the value of `preferGetForPersistedQueries` carries through to the `OperationContext`'s `preferGetMethod` setting for persisted queries + Submitted by [@NWRichmond](https://github.com/NWRichmond) (See [#3192](https://github.com/urql-graphql/urql/pull/3192)) + ## 3.0.1 ### Patch Changes diff --git a/exchanges/persisted/package.json b/exchanges/persisted/package.json index 9fcb280318..7d7a41dddd 100644 --- a/exchanges/persisted/package.json +++ b/exchanges/persisted/package.json @@ -1,6 +1,6 @@ { "name": "@urql/exchange-persisted", - "version": "3.0.1", + "version": "4.0.0", "description": "An exchange that allows for persisted queries support when fetching queries", "sideEffects": false, "homepage": "https://formidable.com/open-source/urql/docs/",