From 0829935deb0597ba10e99130c0278de91fcfffae Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 6 Jul 2021 16:21:54 +0000 Subject: [PATCH] Version Packages --- .changeset/chilly-laws-trade.md | 5 ----- .changeset/cuddly-readers-walk.md | 5 ----- .changeset/fresh-moose-exist.md | 5 ----- .changeset/quick-shrimps-fetch.md | 5 ----- .changeset/quiet-pants-refuse.md | 5 ----- .changeset/silent-carpets-judge.md | 5 ----- .changeset/spicy-impalas-repair.md | 5 ----- .changeset/strange-windows-repair.md | 5 ----- .changeset/sweet-beers-brush.md | 5 ----- .changeset/tame-pandas-hope.md | 5 ----- exchanges/graphcache/CHANGELOG.md | 12 ++++++++++++ exchanges/graphcache/package.json | 4 ++-- exchanges/persisted-fetch/CHANGELOG.md | 8 ++++++++ exchanges/persisted-fetch/package.json | 4 ++-- exchanges/request-policy/CHANGELOG.md | 8 ++++++++ exchanges/request-policy/package.json | 4 ++-- packages/core/CHANGELOG.md | 7 +++++++ packages/core/package.json | 2 +- packages/next-urql/CHANGELOG.md | 6 ++++++ packages/next-urql/package.json | 2 +- packages/svelte-urql/CHANGELOG.md | 12 ++++++++++++ packages/svelte-urql/package.json | 4 ++-- packages/vue-urql/CHANGELOG.md | 8 ++++++++ packages/vue-urql/package.json | 4 ++-- 24 files changed, 73 insertions(+), 62 deletions(-) delete mode 100644 .changeset/chilly-laws-trade.md delete mode 100644 .changeset/cuddly-readers-walk.md delete mode 100644 .changeset/fresh-moose-exist.md delete mode 100644 .changeset/quick-shrimps-fetch.md delete mode 100644 .changeset/quiet-pants-refuse.md delete mode 100644 .changeset/silent-carpets-judge.md delete mode 100644 .changeset/spicy-impalas-repair.md delete mode 100644 .changeset/strange-windows-repair.md delete mode 100644 .changeset/sweet-beers-brush.md delete mode 100644 .changeset/tame-pandas-hope.md diff --git a/.changeset/chilly-laws-trade.md b/.changeset/chilly-laws-trade.md deleted file mode 100644 index dd2f722e79..0000000000 --- a/.changeset/chilly-laws-trade.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/svelte': minor ---- - -Improve granularity of `operationStore` updates when `query`, `variables`, and `context` are changed. This also adds an `operationStore(...).reexecute()` method, which optionally accepts a new context value and forces an update on the store, so that a query may reexecute. diff --git a/.changeset/cuddly-readers-walk.md b/.changeset/cuddly-readers-walk.md deleted file mode 100644 index c593ad747f..0000000000 --- a/.changeset/cuddly-readers-walk.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/core': patch ---- - -Prevent `ssrExchange().restoreData()` from adding results to the exchange that have already been invalidated. This may happen when `restoreData()` is called repeatedly, e.g. per page. When a prior run has already invalidated an SSR result then the result is 'migrated' to the user's `cacheExchange`, which means that `restoreData()` should never attempt to re-add it again. diff --git a/.changeset/fresh-moose-exist.md b/.changeset/fresh-moose-exist.md deleted file mode 100644 index f6e46408fd..0000000000 --- a/.changeset/fresh-moose-exist.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/core': patch ---- - -Fix accidental change in passive `stale: true`, where a `cache-first` operation issued by Graphcache wouldn't yield an affected query and update its result to reflect the loading state with `stale: true`. This is a regression from `v2.1.0` and mostly becomes unexpected when `cache.invalidate(...)` is used. diff --git a/.changeset/quick-shrimps-fetch.md b/.changeset/quick-shrimps-fetch.md deleted file mode 100644 index c37efb19b5..0000000000 --- a/.changeset/quick-shrimps-fetch.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/svelte': patch ---- - -Loosen `subscription(...)` type further to allow any `operationStore` input, regardless of the `Result` produced. diff --git a/.changeset/quiet-pants-refuse.md b/.changeset/quiet-pants-refuse.md deleted file mode 100644 index ca3fe10e6e..0000000000 --- a/.changeset/quiet-pants-refuse.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/exchange-graphcache': minor ---- - -Fixed typing of OptimisticMutationResolver. diff --git a/.changeset/silent-carpets-judge.md b/.changeset/silent-carpets-judge.md deleted file mode 100644 index 70f332da0a..0000000000 --- a/.changeset/silent-carpets-judge.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/exchange-persisted-fetch': patch ---- - -Optimize for minification by avoiding direct eval call. diff --git a/.changeset/spicy-impalas-repair.md b/.changeset/spicy-impalas-repair.md deleted file mode 100644 index d8c8e7913f..0000000000 --- a/.changeset/spicy-impalas-repair.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'next-urql': patch ---- - -Fix `resetUrqlClient` not resetting the SSR cache itself and instead restoring data when all data related to this `Client` and session should've been deleted. diff --git a/.changeset/strange-windows-repair.md b/.changeset/strange-windows-repair.md deleted file mode 100644 index 3c1a3fc18a..0000000000 --- a/.changeset/strange-windows-repair.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/vue': patch ---- - -Refactor `useQuery` implementation to utilise the single-source implementation of `@urql/core@2.1.0`. This should improve the stability of promisified `useQuery()` calls and prevent operations from not being issued in some edge cases. diff --git a/.changeset/sweet-beers-brush.md b/.changeset/sweet-beers-brush.md deleted file mode 100644 index bc0a337422..0000000000 --- a/.changeset/sweet-beers-brush.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/exchange-request-policy': patch ---- - -Do not set the TTL unless cache outcome is "miss". Previously we set the TTL on cache "miss" if it was the first time an operation returned a result, now the TTL is only set on cache miss results. This allows the request policy exchange to work when using persisted caching. diff --git a/.changeset/tame-pandas-hope.md b/.changeset/tame-pandas-hope.md deleted file mode 100644 index 4ed194b91f..0000000000 --- a/.changeset/tame-pandas-hope.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/exchange-graphcache': patch ---- - -Type the `relayPagination` and `simplePagination` helpers return value as `Resolver` as there's no way to match them consistently to either generated or non-generated resolver types anymore. diff --git a/exchanges/graphcache/CHANGELOG.md b/exchanges/graphcache/CHANGELOG.md index a59153b4e7..07a231abba 100644 --- a/exchanges/graphcache/CHANGELOG.md +++ b/exchanges/graphcache/CHANGELOG.md @@ -1,5 +1,17 @@ # @urql/exchange-graphcache +## 4.2.0 + +### Minor Changes + +- Fixed typing of OptimisticMutationResolver, by [@taneba](https://github.com/taneba) (See [#1765](https://github.com/FormidableLabs/urql/pull/1765)) + +### Patch Changes + +- Type the `relayPagination` and `simplePagination` helpers return value as `Resolver` as there's no way to match them consistently to either generated or non-generated resolver types anymore, by [@kitten](https://github.com/kitten) (See [#1778](https://github.com/FormidableLabs/urql/pull/1778)) +- Updated dependencies (See [#1776](https://github.com/FormidableLabs/urql/pull/1776) and [#1755](https://github.com/FormidableLabs/urql/pull/1755)) + - @urql/core@2.1.5 + ## 4.1.4 ### Patch Changes diff --git a/exchanges/graphcache/package.json b/exchanges/graphcache/package.json index f757ae8822..30c69e53de 100644 --- a/exchanges/graphcache/package.json +++ b/exchanges/graphcache/package.json @@ -1,6 +1,6 @@ { "name": "@urql/exchange-graphcache", - "version": "4.1.4", + "version": "4.2.0", "description": "A normalized and configurable cache exchange for urql", "sideEffects": false, "homepage": "https://formidable.com/open-source/urql/docs/graphcache", @@ -65,7 +65,7 @@ "preset": "../../scripts/jest/preset" }, "dependencies": { - "@urql/core": ">=2.1.4", + "@urql/core": ">=2.1.5", "wonka": "^4.0.14" }, "peerDependencies": { diff --git a/exchanges/persisted-fetch/CHANGELOG.md b/exchanges/persisted-fetch/CHANGELOG.md index ffaa13520b..62efbf3ea2 100644 --- a/exchanges/persisted-fetch/CHANGELOG.md +++ b/exchanges/persisted-fetch/CHANGELOG.md @@ -1,5 +1,13 @@ # @urql/exchange-persisted-fetch +## 1.3.2 + +### Patch Changes + +- Optimize for minification by avoiding direct eval call, by [@nderscore](https://github.com/nderscore) (See [#1744](https://github.com/FormidableLabs/urql/pull/1744)) +- Updated dependencies (See [#1776](https://github.com/FormidableLabs/urql/pull/1776) and [#1755](https://github.com/FormidableLabs/urql/pull/1755)) + - @urql/core@2.1.5 + ## 1.3.1 ### Patch Changes diff --git a/exchanges/persisted-fetch/package.json b/exchanges/persisted-fetch/package.json index 255d06373e..74f8383389 100644 --- a/exchanges/persisted-fetch/package.json +++ b/exchanges/persisted-fetch/package.json @@ -1,6 +1,6 @@ { "name": "@urql/exchange-persisted-fetch", - "version": "1.3.1", + "version": "1.3.2", "description": "An exchange that allows for persisted queries support when fetching queries", "sideEffects": false, "homepage": "https://formidable.com/open-source/urql/docs/", @@ -49,7 +49,7 @@ "preset": "../../scripts/jest/preset" }, "dependencies": { - "@urql/core": ">=2.1.0", + "@urql/core": ">=2.1.5", "wonka": "^4.0.14" }, "peerDependencies": { diff --git a/exchanges/request-policy/CHANGELOG.md b/exchanges/request-policy/CHANGELOG.md index d3af4998aa..30c7b9f5af 100644 --- a/exchanges/request-policy/CHANGELOG.md +++ b/exchanges/request-policy/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.1.4 + +### Patch Changes + +- Do not set the TTL unless cache outcome is "miss". Previously we set the TTL on cache "miss" if it was the first time an operation returned a result, now the TTL is only set on cache miss results. This allows the request policy exchange to work when using persisted caching, by [@Mookiies](https://github.com/Mookiies) (See [#1742](https://github.com/FormidableLabs/urql/pull/1742)) +- Updated dependencies (See [#1776](https://github.com/FormidableLabs/urql/pull/1776) and [#1755](https://github.com/FormidableLabs/urql/pull/1755)) + - @urql/core@2.1.5 + ## 0.1.3 ### Patch Changes diff --git a/exchanges/request-policy/package.json b/exchanges/request-policy/package.json index a844794222..27b9b603ad 100644 --- a/exchanges/request-policy/package.json +++ b/exchanges/request-policy/package.json @@ -1,6 +1,6 @@ { "name": "@urql/exchange-request-policy", - "version": "0.1.3", + "version": "0.1.4", "description": "An exchange for operation request-policy upgrading in urql", "sideEffects": false, "homepage": "https://formidable.com/open-source/urql/docs/", @@ -56,7 +56,7 @@ "graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0" }, "dependencies": { - "@urql/core": ">=2.1.2", + "@urql/core": ">=2.1.5", "wonka": "^4.0.14" }, "publishConfig": { diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 546814cba7..0dd6f44b09 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,12 @@ # @urql/core +## 2.1.5 + +### Patch Changes + +- Prevent `ssrExchange().restoreData()` from adding results to the exchange that have already been invalidated. This may happen when `restoreData()` is called repeatedly, e.g. per page. When a prior run has already invalidated an SSR result then the result is 'migrated' to the user's `cacheExchange`, which means that `restoreData()` should never attempt to re-add it again, by [@kitten](https://github.com/kitten) (See [#1776](https://github.com/FormidableLabs/urql/pull/1776)) +- ⚠️ Fix accidental change in passive `stale: true`, where a `cache-first` operation issued by Graphcache wouldn't yield an affected query and update its result to reflect the loading state with `stale: true`. This is a regression from `v2.1.0` and mostly becomes unexpected when `cache.invalidate(...)` is used, by [@kitten](https://github.com/kitten) (See [#1755](https://github.com/FormidableLabs/urql/pull/1755)) + ## 2.1.4 ### Patch Changes diff --git a/packages/core/package.json b/packages/core/package.json index 61bb82e437..dad3a8a16d 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@urql/core", - "version": "2.1.4", + "version": "2.1.5", "description": "The shared core for the highly customizable and versatile GraphQL client", "sideEffects": false, "homepage": "https://formidable.com/open-source/urql/docs/", diff --git a/packages/next-urql/CHANGELOG.md b/packages/next-urql/CHANGELOG.md index 0d79cd79f0..33bbdd8405 100644 --- a/packages/next-urql/CHANGELOG.md +++ b/packages/next-urql/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 3.1.1 + +### Patch Changes + +- ⚠️ Fix `resetUrqlClient` not resetting the SSR cache itself and instead restoring data when all data related to this `Client` and session should've been deleted, by [@Biboswan](https://github.com/Biboswan) (See [#1715](https://github.com/FormidableLabs/urql/pull/1715)) + ## 3.1.0 ### Minor Changes diff --git a/packages/next-urql/package.json b/packages/next-urql/package.json index e2ada7f80c..c559854461 100644 --- a/packages/next-urql/package.json +++ b/packages/next-urql/package.json @@ -1,6 +1,6 @@ { "name": "next-urql", - "version": "3.1.0", + "version": "3.1.1", "description": "Convenience wrappers for using urql with NextJS.", "sideEffects": false, "homepage": "https://formidable.com/open-source/urql/docs/", diff --git a/packages/svelte-urql/CHANGELOG.md b/packages/svelte-urql/CHANGELOG.md index 0f07fe665d..5c2c51d357 100644 --- a/packages/svelte-urql/CHANGELOG.md +++ b/packages/svelte-urql/CHANGELOG.md @@ -1,5 +1,17 @@ # @urql/svelte +## 1.3.0 + +### Minor Changes + +- Improve granularity of `operationStore` updates when `query`, `variables`, and `context` are changed. This also adds an `operationStore(...).reexecute()` method, which optionally accepts a new context value and forces an update on the store, so that a query may reexecute, by [@kitten](https://github.com/kitten) (See [#1780](https://github.com/FormidableLabs/urql/pull/1780)) + +### Patch Changes + +- Loosen `subscription(...)` type further to allow any `operationStore` input, regardless of the `Result` produced, by [@kitten](https://github.com/kitten) (See [#1779](https://github.com/FormidableLabs/urql/pull/1779)) +- Updated dependencies (See [#1776](https://github.com/FormidableLabs/urql/pull/1776) and [#1755](https://github.com/FormidableLabs/urql/pull/1755)) + - @urql/core@2.1.5 + ## 1.2.3 ### Patch Changes diff --git a/packages/svelte-urql/package.json b/packages/svelte-urql/package.json index fe1e136578..d75b95f72c 100644 --- a/packages/svelte-urql/package.json +++ b/packages/svelte-urql/package.json @@ -1,6 +1,6 @@ { "name": "@urql/svelte", - "version": "1.2.3", + "version": "1.3.0", "description": "A highly customizable and versatile GraphQL client for Svelte", "sideEffects": false, "homepage": "https://formidable.com/open-source/urql/docs/", @@ -55,7 +55,7 @@ "svelte": "^3.0.0" }, "dependencies": { - "@urql/core": "^2.1.4", + "@urql/core": "^2.1.5", "wonka": "^4.0.14" }, "devDependencies": { diff --git a/packages/vue-urql/CHANGELOG.md b/packages/vue-urql/CHANGELOG.md index 028cb474e8..bf67bc612c 100644 --- a/packages/vue-urql/CHANGELOG.md +++ b/packages/vue-urql/CHANGELOG.md @@ -1,5 +1,13 @@ # @urql/vue +## 0.4.2 + +### Patch Changes + +- Refactor `useQuery` implementation to utilise the single-source implementation of `@urql/core@2.1.0`. This should improve the stability of promisified `useQuery()` calls and prevent operations from not being issued in some edge cases, by [@kitten](https://github.com/kitten) (See [#1758](https://github.com/FormidableLabs/urql/pull/1758)) +- Updated dependencies (See [#1776](https://github.com/FormidableLabs/urql/pull/1776) and [#1755](https://github.com/FormidableLabs/urql/pull/1755)) + - @urql/core@2.1.5 + ## 0.4.1 ### Patch Changes diff --git a/packages/vue-urql/package.json b/packages/vue-urql/package.json index cffbedb907..13396d59ea 100644 --- a/packages/vue-urql/package.json +++ b/packages/vue-urql/package.json @@ -1,6 +1,6 @@ { "name": "@urql/vue", - "version": "0.4.1", + "version": "0.4.2", "description": "A highly customizable and versatile GraphQL client for vue", "sideEffects": false, "homepage": "https://formidable.com/open-source/urql/docs/", @@ -59,7 +59,7 @@ "vue": "^3.0.0" }, "dependencies": { - "@urql/core": "^2.1.4", + "@urql/core": "^2.1.5", "wonka": "^4.0.14" }, "publishConfig": {