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/fifty-sheep-battle.md b/.changeset/fifty-sheep-battle.md deleted file mode 100644 index 30fab153c6..0000000000 --- a/.changeset/fifty-sheep-battle.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'urql': patch ---- - -Avoid unnecessary re-render when two components use the same query but receive unchanging results, due to differing operations 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-apq/package.json b/examples/with-apq/package.json index 11c09bb351..b30c026fcc 100644 --- a/examples/with-apq/package.json +++ b/examples/with-apq/package.json @@ -11,7 +11,7 @@ "graphql": "^16.6.0", "react": "^18.2.0", "react-dom": "^18.2.0", - "urql": "^4.0.1" + "urql": "^4.0.2" }, "devDependencies": { "@vitejs/plugin-react": "^3.1.0", diff --git a/examples/with-defer-stream-directives/package.json b/examples/with-defer-stream-directives/package.json index ad5b7cbeed..9cae978566 100644 --- a/examples/with-defer-stream-directives/package.json +++ b/examples/with-defer-stream-directives/package.json @@ -18,11 +18,11 @@ "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", - "urql": "^4.0.1" + "urql": "^4.0.2" }, "devDependencies": { "@apollo/server": "^4.4.1", diff --git a/examples/with-graphcache-pagination/package.json b/examples/with-graphcache-pagination/package.json index 97e89d6aa0..419aa8efe4 100644 --- a/examples/with-graphcache-pagination/package.json +++ b/examples/with-graphcache-pagination/package.json @@ -7,11 +7,11 @@ }, "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", - "urql": "^4.0.1" + "urql": "^4.0.2" }, "devDependencies": { "@vitejs/plugin-react": "^3.1.0", diff --git a/examples/with-graphcache-updates/package.json b/examples/with-graphcache-updates/package.json index 384e4139da..210460368a 100644 --- a/examples/with-graphcache-updates/package.json +++ b/examples/with-graphcache-updates/package.json @@ -8,11 +8,11 @@ "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", - "urql": "^4.0.1" + "urql": "^4.0.2" }, "devDependencies": { "@vitejs/plugin-react": "^3.1.0", diff --git a/examples/with-multipart/package.json b/examples/with-multipart/package.json index 069c036e74..00c91931d5 100644 --- a/examples/with-multipart/package.json +++ b/examples/with-multipart/package.json @@ -10,7 +10,7 @@ "graphql": "^16.6.0", "react": "^18.2.0", "react-dom": "^18.2.0", - "urql": "^4.0.1" + "urql": "^4.0.2" }, "devDependencies": { "@vitejs/plugin-react": "^3.1.0", diff --git a/examples/with-next/package.json b/examples/with-next/package.json index d9d504ca9b..cfaf54922e 100644 --- a/examples/with-next/package.json +++ b/examples/with-next/package.json @@ -9,7 +9,7 @@ "next-urql": "^5.0.1", "react": "^18.2.0", "react-dom": "^18.2.0", - "urql": "^4.0.1" + "urql": "^4.0.2" }, "scripts": { "dev": "next dev", diff --git a/examples/with-pagination/package.json b/examples/with-pagination/package.json index 34f03d97b8..abf837eb00 100644 --- a/examples/with-pagination/package.json +++ b/examples/with-pagination/package.json @@ -10,7 +10,7 @@ "graphql": "^16.6.0", "react": "^18.2.0", "react-dom": "^18.2.0", - "urql": "^4.0.1" + "urql": "^4.0.2" }, "devDependencies": { "@vitejs/plugin-react": "^3.1.0", diff --git a/examples/with-react-native/package.json b/examples/with-react-native/package.json index 6afad63366..7a88fe027e 100644 --- a/examples/with-react-native/package.json +++ b/examples/with-react-native/package.json @@ -12,7 +12,7 @@ "graphql": "^16.6.0", "react": "18.2.0", "react-native": "0.71.4", - "urql": "^4.0.1" + "urql": "^4.0.2" }, "devDependencies": { "@babel/core": "^7.12.9", diff --git a/examples/with-react/package.json b/examples/with-react/package.json index d003db0b50..26c0b01c93 100644 --- a/examples/with-react/package.json +++ b/examples/with-react/package.json @@ -10,7 +10,7 @@ "graphql": "^16.6.0", "react": "^18.2.0", "react-dom": "^18.2.0", - "urql": "^4.0.1" + "urql": "^4.0.2" }, "devDependencies": { "@vitejs/plugin-react": "^3.1.0", diff --git a/examples/with-refresh-auth/package.json b/examples/with-refresh-auth/package.json index 26f7fa80f5..55c7c28b44 100644 --- a/examples/with-refresh-auth/package.json +++ b/examples/with-refresh-auth/package.json @@ -11,7 +11,7 @@ "graphql": "^16.6.0", "react": "^18.2.0", "react-dom": "^18.2.0", - "urql": "^4.0.1" + "urql": "^4.0.2" }, "devDependencies": { "@vitejs/plugin-react": "^3.1.0", diff --git a/examples/with-retry/package.json b/examples/with-retry/package.json index 4ef67e8cca..d0dbb00b56 100644 --- a/examples/with-retry/package.json +++ b/examples/with-retry/package.json @@ -11,7 +11,7 @@ "graphql": "^16.6.0", "react": "^18.2.0", "react-dom": "^18.2.0", - "urql": "^4.0.1" + "urql": "^4.0.2" }, "devDependencies": { "@vitejs/plugin-react": "^3.1.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/", diff --git a/packages/react-urql/CHANGELOG.md b/packages/react-urql/CHANGELOG.md index 1a9f02b719..154a9abf0a 100644 --- a/packages/react-urql/CHANGELOG.md +++ b/packages/react-urql/CHANGELOG.md @@ -1,5 +1,12 @@ # urql +## 4.0.2 + +### Patch Changes + +- Avoid unnecessary re-render when two components use the same query but receive unchanging results, due to differing operations + Submitted by [@nathan-knight](https://github.com/nathan-knight) (See [#3195](https://github.com/urql-graphql/urql/pull/3195)) + ## 4.0.1 ### Patch Changes diff --git a/packages/react-urql/package.json b/packages/react-urql/package.json index 0eb4d01743..b03c945277 100644 --- a/packages/react-urql/package.json +++ b/packages/react-urql/package.json @@ -1,6 +1,6 @@ { "name": "urql", - "version": "4.0.1", + "version": "4.0.2", "description": "A highly customizable and versatile GraphQL client for React", "sideEffects": false, "homepage": "https://formidable.com/open-source/urql/docs/",