diff --git a/.changeset/nine-walls-behave.md b/.changeset/nine-walls-behave.md deleted file mode 100644 index 8b9e96eec6..0000000000 --- a/.changeset/nine-walls-behave.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/exchange-graphcache': patch ---- - -Only record dependencies that are changing data, this will reduce the amount of operations we re-invoke due to network-only/cache-and-network queries and mutations diff --git a/.changeset/tiny-pots-allow.md b/.changeset/tiny-pots-allow.md deleted file mode 100644 index f1e3555a36..0000000000 --- a/.changeset/tiny-pots-allow.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@urql/core': patch ---- - -Fix issue where a reexecute on an in-flight operation would lead to multiple network-requests. -For example, this issue presents itself when Graphcache is concurrently updating multiple, inter-dependent queries with shared entities. One query completing while others are still in-flight may lead to duplicate operations being issued. diff --git a/examples/with-apq/package.json b/examples/with-apq/package.json index 4c5b67126d..afce2b62a8 100644 --- a/examples/with-apq/package.json +++ b/examples/with-apq/package.json @@ -6,7 +6,7 @@ "start": "vite" }, "dependencies": { - "@urql/core": "^5.0.1", + "@urql/core": "^5.0.2", "@urql/exchange-persisted": "^4.2.0", "graphql": "^16.6.0", "react": "^18.2.0", diff --git a/examples/with-defer-stream-directives/package.json b/examples/with-defer-stream-directives/package.json index 06b982e37a..1d61703075 100644 --- a/examples/with-defer-stream-directives/package.json +++ b/examples/with-defer-stream-directives/package.json @@ -17,8 +17,8 @@ }, "dependencies": { "@graphql-yoga/plugin-defer-stream": "^1.7.1", - "@urql/core": "^5.0.1", - "@urql/exchange-graphcache": "^7.0.1", + "@urql/core": "^5.0.2", + "@urql/exchange-graphcache": "^7.0.2", "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 66bf681ce4..115b509308 100644 --- a/examples/with-graphcache-pagination/package.json +++ b/examples/with-graphcache-pagination/package.json @@ -6,8 +6,8 @@ "start": "vite" }, "dependencies": { - "@urql/core": "^5.0.1", - "@urql/exchange-graphcache": "^7.0.1", + "@urql/core": "^5.0.2", + "@urql/exchange-graphcache": "^7.0.2", "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 62f4f733c9..060eba5e23 100644 --- a/examples/with-graphcache-updates/package.json +++ b/examples/with-graphcache-updates/package.json @@ -6,9 +6,9 @@ "start": "vite" }, "dependencies": { - "@urql/core": "^5.0.1", + "@urql/core": "^5.0.2", "@urql/exchange-auth": "^2.1.6", - "@urql/exchange-graphcache": "^7.0.1", + "@urql/exchange-graphcache": "^7.0.2", "graphql": "^16.6.0", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/examples/with-infinite-pagination/package.json b/examples/with-infinite-pagination/package.json index 97280d87e4..c79f0a13d4 100644 --- a/examples/with-infinite-pagination/package.json +++ b/examples/with-infinite-pagination/package.json @@ -6,7 +6,7 @@ "start": "vite" }, "dependencies": { - "@urql/core": "^5.0.1", + "@urql/core": "^5.0.2", "graphql": "^16.6.0", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/examples/with-multipart/package.json b/examples/with-multipart/package.json index 9ee24478b1..1d209c63ac 100644 --- a/examples/with-multipart/package.json +++ b/examples/with-multipart/package.json @@ -6,7 +6,7 @@ "start": "vite" }, "dependencies": { - "@urql/core": "^5.0.1", + "@urql/core": "^5.0.2", "graphql": "^16.6.0", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/examples/with-next/package.json b/examples/with-next/package.json index e4af9db609..3c195b6bdd 100644 --- a/examples/with-next/package.json +++ b/examples/with-next/package.json @@ -3,7 +3,7 @@ "version": "0.0.0", "private": true, "dependencies": { - "@urql/core": "^5.0.1", + "@urql/core": "^5.0.2", "@urql/next": "^1.1.1", "graphql": "^16.6.0", "next": "13.4.2", diff --git a/examples/with-pagination/package.json b/examples/with-pagination/package.json index 97280d87e4..c79f0a13d4 100644 --- a/examples/with-pagination/package.json +++ b/examples/with-pagination/package.json @@ -6,7 +6,7 @@ "start": "vite" }, "dependencies": { - "@urql/core": "^5.0.1", + "@urql/core": "^5.0.2", "graphql": "^16.6.0", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/examples/with-react-native/package.json b/examples/with-react-native/package.json index ab03ff2c60..d629b0126a 100644 --- a/examples/with-react-native/package.json +++ b/examples/with-react-native/package.json @@ -8,7 +8,7 @@ "start": "react-native start" }, "dependencies": { - "@urql/core": "^5.0.1", + "@urql/core": "^5.0.2", "graphql": "^16.6.0", "react": "18.2.0", "react-native": "0.71.4", diff --git a/examples/with-react/package.json b/examples/with-react/package.json index 1a2eedb3ba..503b2d4868 100644 --- a/examples/with-react/package.json +++ b/examples/with-react/package.json @@ -6,7 +6,7 @@ "start": "vite" }, "dependencies": { - "@urql/core": "^5.0.1", + "@urql/core": "^5.0.2", "graphql": "^16.6.0", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/examples/with-refresh-auth/package.json b/examples/with-refresh-auth/package.json index def5400859..0f0231450c 100644 --- a/examples/with-refresh-auth/package.json +++ b/examples/with-refresh-auth/package.json @@ -6,7 +6,7 @@ "start": "vite" }, "dependencies": { - "@urql/core": "^5.0.1", + "@urql/core": "^5.0.2", "@urql/exchange-auth": "^2.1.6", "graphql": "^16.6.0", "react": "^18.2.0", diff --git a/examples/with-retry/package.json b/examples/with-retry/package.json index 1ae3974749..a74734bbc2 100644 --- a/examples/with-retry/package.json +++ b/examples/with-retry/package.json @@ -6,7 +6,7 @@ "start": "vite" }, "dependencies": { - "@urql/core": "^5.0.1", + "@urql/core": "^5.0.2", "@urql/exchange-retry": "^1.2.1", "graphql": "^16.6.0", "react": "^18.2.0", diff --git a/examples/with-subscriptions-via-fetch/package.json b/examples/with-subscriptions-via-fetch/package.json index 11c0ae1931..ba83238b00 100644 --- a/examples/with-subscriptions-via-fetch/package.json +++ b/examples/with-subscriptions-via-fetch/package.json @@ -8,8 +8,8 @@ "start": "run-p client server" }, "dependencies": { - "@urql/core": "^5.0.1", - "@urql/exchange-graphcache": "^7.0.1", + "@urql/core": "^5.0.2", + "@urql/exchange-graphcache": "^7.0.2", "graphql": "^16.6.0", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/examples/with-svelte/package.json b/examples/with-svelte/package.json index c60a543f2b..ede92ebee0 100644 --- a/examples/with-svelte/package.json +++ b/examples/with-svelte/package.json @@ -8,7 +8,7 @@ "serve": "vite preview" }, "dependencies": { - "@urql/core": "^5.0.1", + "@urql/core": "^5.0.2", "@urql/svelte": "^4.1.1", "graphql": "^16.6.0", "svelte": "^4.0.5" diff --git a/examples/with-vue3/package.json b/examples/with-vue3/package.json index e6f163d9c4..5880527771 100644 --- a/examples/with-vue3/package.json +++ b/examples/with-vue3/package.json @@ -8,7 +8,7 @@ "serve": "vite preview" }, "dependencies": { - "@urql/core": "^5.0.1", + "@urql/core": "^5.0.2", "@urql/vue": "^1.1.3", "graphql": "^16.6.0", "vue": "^3.2.47" diff --git a/exchanges/graphcache/CHANGELOG.md b/exchanges/graphcache/CHANGELOG.md index 18e47b838b..5c239e0426 100644 --- a/exchanges/graphcache/CHANGELOG.md +++ b/exchanges/graphcache/CHANGELOG.md @@ -1,5 +1,12 @@ # @urql/exchange-graphcache +## 7.0.2 + +### Patch Changes + +- Only record dependencies that are changing data, this will reduce the amount of operations we re-invoke due to network-only/cache-and-network queries and mutations + Submitted by [@JoviDeCroock](https://github.com/JoviDeCroock) (See [#3564](https://github.com/urql-graphql/urql/pull/3564)) + ## 7.0.1 ### Patch Changes diff --git a/exchanges/graphcache/package.json b/exchanges/graphcache/package.json index d54da0a303..d667b71daf 100644 --- a/exchanges/graphcache/package.json +++ b/exchanges/graphcache/package.json @@ -1,6 +1,6 @@ { "name": "@urql/exchange-graphcache", - "version": "7.0.1", + "version": "7.0.2", "description": "A normalized and configurable cache exchange for urql", "sideEffects": false, "homepage": "https://formidable.com/open-source/urql/docs/graphcache", diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 94f3f445ab..0ff176c1ac 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,13 @@ # @urql/core +## 5.0.2 + +### Patch Changes + +- ⚠️ Fix issue where a reexecute on an in-flight operation would lead to multiple network-requests. + For example, this issue presents itself when Graphcache is concurrently updating multiple, inter-dependent queries with shared entities. One query completing while others are still in-flight may lead to duplicate operations being issued + Submitted by [@JoviDeCroock](https://github.com/JoviDeCroock) (See [#3573](https://github.com/urql-graphql/urql/pull/3573)) + ## 5.0.1 ### Patch Changes diff --git a/packages/core/package.json b/packages/core/package.json index e196524b5d..f1bd711901 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@urql/core", - "version": "5.0.1", + "version": "5.0.2", "description": "The shared core for the highly customizable and versatile GraphQL client", "sideEffects": false, "homepage": "https://formidable.com/open-source/urql/docs/",