diff --git a/.changeset/few-garlics-judge.md b/.changeset/few-garlics-judge.md deleted file mode 100644 index ca3f5b32f3..0000000000 --- a/.changeset/few-garlics-judge.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/exchange-graphcache': patch ---- - -Reset `partial` result marker when reading from selections when a child value sees a cache miss. This only affects resolvers on child values enabling `info.partial` while a parent may abort early instead. diff --git a/.changeset/heavy-shirts-smash.md b/.changeset/heavy-shirts-smash.md deleted file mode 100644 index 1d13425043..0000000000 --- a/.changeset/heavy-shirts-smash.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/exchange-graphcache': patch ---- - -Fix `@_optional` directive not setting `info.partial = true` on cache miss and fix usage of `info.parentKey` and `info.parentFieldKey` usage in default directives. diff --git a/examples/with-defer-stream-directives/package.json b/examples/with-defer-stream-directives/package.json index 48937c9f8d..a25319a1de 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.1.0", - "@urql/exchange-graphcache": "^6.3.0", + "@urql/exchange-graphcache": "^6.3.1", "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 9b229c8bef..2711868540 100644 --- a/examples/with-graphcache-pagination/package.json +++ b/examples/with-graphcache-pagination/package.json @@ -7,7 +7,7 @@ }, "dependencies": { "@urql/core": "^4.1.0", - "@urql/exchange-graphcache": "^6.3.0", + "@urql/exchange-graphcache": "^6.3.1", "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 5109b8066d..6b01242e3d 100644 --- a/examples/with-graphcache-updates/package.json +++ b/examples/with-graphcache-updates/package.json @@ -8,7 +8,7 @@ "dependencies": { "@urql/core": "^4.1.0", "@urql/exchange-auth": "^2.1.5", - "@urql/exchange-graphcache": "^6.3.0", + "@urql/exchange-graphcache": "^6.3.1", "graphql": "^16.6.0", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/examples/with-subscriptions-via-fetch/package.json b/examples/with-subscriptions-via-fetch/package.json index 4fb3ca0bc3..dbb3907a28 100644 --- a/examples/with-subscriptions-via-fetch/package.json +++ b/examples/with-subscriptions-via-fetch/package.json @@ -9,7 +9,7 @@ }, "dependencies": { "@urql/core": "^4.1.0", - "@urql/exchange-graphcache": "^6.3.0", + "@urql/exchange-graphcache": "^6.3.1", "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 25e98127c1..67aa7e8a91 100644 --- a/exchanges/graphcache/CHANGELOG.md +++ b/exchanges/graphcache/CHANGELOG.md @@ -1,5 +1,14 @@ # @urql/exchange-graphcache +## 6.3.1 + +### Patch Changes + +- Reset `partial` result marker when reading from selections when a child value sees a cache miss. This only affects resolvers on child values enabling `info.partial` while a parent may abort early instead + Submitted by [@kitten](https://github.com/kitten) (See [#3340](https://github.com/urql-graphql/urql/pull/3340)) +- ⚠️ Fix `@_optional` directive not setting `info.partial = true` on cache miss and fix usage of `info.parentKey` and `info.parentFieldKey` usage in default directives + Submitted by [@kitten](https://github.com/kitten) (See [#3338](https://github.com/urql-graphql/urql/pull/3338)) + ## 6.3.0 ### Minor Changes diff --git a/exchanges/graphcache/package.json b/exchanges/graphcache/package.json index f2f6007944..3cdf8b9bf7 100644 --- a/exchanges/graphcache/package.json +++ b/exchanges/graphcache/package.json @@ -1,6 +1,6 @@ { "name": "@urql/exchange-graphcache", - "version": "6.3.0", + "version": "6.3.1", "description": "A normalized and configurable cache exchange for urql", "sideEffects": false, "homepage": "https://formidable.com/open-source/urql/docs/graphcache",