From bcd07c857c2cbf0c37d28d6be6936316b7b15db1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 31 Mar 2023 14:26:31 +0000 Subject: [PATCH] Version Packages --- .changeset/afraid-geckos-raise.md | 5 -- .changeset/brave-sloths-bathe.md | 5 -- .changeset/calm-buckets-scream.md | 18 ---- .changeset/clever-plants-greet.md | 5 -- .changeset/cuddly-actors-look.md | 11 --- .changeset/cuddly-carrots-tan.md | 11 --- .changeset/curly-bees-rhyme.md | 5 -- .changeset/dry-days-wait.md | 5 -- .changeset/early-crabs-draw.md | 5 -- .changeset/eighty-pigs-joke.md | 19 ---- .changeset/fifty-jeans-invite.md | 5 -- .changeset/five-lies-collect.md | 5 -- .changeset/fluffy-tools-marry.md | 6 -- .changeset/four-boxes-impress.md | 7 -- .changeset/fuzzy-baboons-add.md | 5 -- .changeset/giant-flies-exercise.md | 5 -- .changeset/good-ads-watch.md | 5 -- .changeset/honest-apples-join.md | 6 -- .changeset/hungry-panthers-fly.md | 5 -- .changeset/lucky-months-fail.md | 5 -- .changeset/many-cats-travel.md | 5 -- .changeset/mighty-nails-learn.md | 8 -- .changeset/pink-penguins-grin.md | 5 -- .changeset/polite-penguins-notice.md | 6 -- .changeset/poor-pumpkins-greet.md | 5 -- .changeset/pretty-cows-dance.md | 5 -- .changeset/proud-buses-change.md | 5 -- .changeset/quick-seahorses-cross.md | 5 -- .changeset/quiet-ants-collect.md | 5 -- .changeset/real-donkeys-act.md | 7 -- .changeset/rotten-planes-heal.md | 5 -- .changeset/silent-numbers-look.md | 5 -- .changeset/slow-glasses-attend.md | 5 -- .changeset/soft-glasses-guess.md | 7 -- .changeset/strange-apples-trade.md | 5 -- .changeset/strong-shirts-hear.md | 7 -- .changeset/tame-pumas-promise.md | 5 -- .changeset/three-poets-think.md | 5 -- .changeset/tricky-cherries-glow.md | 8 -- .changeset/tricky-poets-clap.md | 5 -- .changeset/violet-kings-fold.md | 5 -- .changeset/wise-cherries-juggle.md | 10 --- .changeset/wise-hairs-pump.md | 12 --- .changeset/young-lamps-help.md | 6 -- examples/with-apq/package.json | 4 +- .../with-defer-stream-directives/package.json | 6 +- .../with-graphcache-pagination/package.json | 6 +- examples/with-graphcache-updates/package.json | 8 +- examples/with-multipart/package.json | 4 +- examples/with-next/package.json | 6 +- examples/with-pagination/package.json | 4 +- examples/with-react-native/package.json | 4 +- examples/with-react/package.json | 4 +- examples/with-refresh-auth/package.json | 6 +- examples/with-retry/package.json | 6 +- examples/with-svelte/package.json | 4 +- examples/with-vue3/package.json | 4 +- exchanges/auth/CHANGELOG.md | 18 ++++ exchanges/auth/package.json | 4 +- exchanges/context/CHANGELOG.md | 16 ++++ exchanges/context/package.json | 4 +- exchanges/execute/CHANGELOG.md | 18 ++++ exchanges/execute/package.json | 4 +- exchanges/graphcache/CHANGELOG.md | 31 +++++++ exchanges/graphcache/package.json | 4 +- exchanges/multipart-fetch/CHANGELOG.md | 16 ++++ exchanges/multipart-fetch/package.json | 4 +- exchanges/persisted/CHANGELOG.md | 25 ++++++ exchanges/persisted/package.json | 4 +- exchanges/populate/CHANGELOG.md | 11 +++ exchanges/populate/package.json | 4 +- exchanges/refocus/CHANGELOG.md | 11 +++ exchanges/refocus/package.json | 4 +- exchanges/request-policy/CHANGELOG.md | 11 +++ exchanges/request-policy/package.json | 4 +- exchanges/retry/CHANGELOG.md | 16 ++++ exchanges/retry/package.json | 4 +- packages/core/CHANGELOG.md | 88 +++++++++++++++++++ packages/core/package.json | 2 +- packages/introspection/CHANGELOG.md | 7 ++ packages/introspection/package.json | 2 +- packages/next-urql/CHANGELOG.md | 9 ++ packages/next-urql/package.json | 4 +- packages/preact-urql/CHANGELOG.md | 23 +++++ packages/preact-urql/package.json | 4 +- packages/react-urql/CHANGELOG.md | 25 ++++++ packages/react-urql/package.json | 4 +- packages/storage-rn/CHANGELOG.md | 7 ++ packages/storage-rn/package.json | 2 +- packages/svelte-urql/CHANGELOG.md | 25 ++++++ packages/svelte-urql/package.json | 4 +- packages/vue-urql/CHANGELOG.md | 18 ++++ packages/vue-urql/package.json | 4 +- pnpm-lock.yaml | 28 +++--- 94 files changed, 455 insertions(+), 369 deletions(-) delete mode 100644 .changeset/afraid-geckos-raise.md delete mode 100644 .changeset/brave-sloths-bathe.md delete mode 100644 .changeset/calm-buckets-scream.md delete mode 100644 .changeset/clever-plants-greet.md delete mode 100644 .changeset/cuddly-actors-look.md delete mode 100644 .changeset/cuddly-carrots-tan.md delete mode 100644 .changeset/curly-bees-rhyme.md delete mode 100644 .changeset/dry-days-wait.md delete mode 100644 .changeset/early-crabs-draw.md delete mode 100644 .changeset/eighty-pigs-joke.md delete mode 100644 .changeset/fifty-jeans-invite.md delete mode 100644 .changeset/five-lies-collect.md delete mode 100644 .changeset/fluffy-tools-marry.md delete mode 100644 .changeset/four-boxes-impress.md delete mode 100644 .changeset/fuzzy-baboons-add.md delete mode 100644 .changeset/giant-flies-exercise.md delete mode 100644 .changeset/good-ads-watch.md delete mode 100644 .changeset/honest-apples-join.md delete mode 100644 .changeset/hungry-panthers-fly.md delete mode 100644 .changeset/lucky-months-fail.md delete mode 100644 .changeset/many-cats-travel.md delete mode 100644 .changeset/mighty-nails-learn.md delete mode 100644 .changeset/pink-penguins-grin.md delete mode 100644 .changeset/polite-penguins-notice.md delete mode 100644 .changeset/poor-pumpkins-greet.md delete mode 100644 .changeset/pretty-cows-dance.md delete mode 100644 .changeset/proud-buses-change.md delete mode 100644 .changeset/quick-seahorses-cross.md delete mode 100644 .changeset/quiet-ants-collect.md delete mode 100644 .changeset/real-donkeys-act.md delete mode 100644 .changeset/rotten-planes-heal.md delete mode 100644 .changeset/silent-numbers-look.md delete mode 100644 .changeset/slow-glasses-attend.md delete mode 100644 .changeset/soft-glasses-guess.md delete mode 100644 .changeset/strange-apples-trade.md delete mode 100644 .changeset/strong-shirts-hear.md delete mode 100644 .changeset/tame-pumas-promise.md delete mode 100644 .changeset/three-poets-think.md delete mode 100644 .changeset/tricky-cherries-glow.md delete mode 100644 .changeset/tricky-poets-clap.md delete mode 100644 .changeset/violet-kings-fold.md delete mode 100644 .changeset/wise-cherries-juggle.md delete mode 100644 .changeset/wise-hairs-pump.md delete mode 100644 .changeset/young-lamps-help.md diff --git a/.changeset/afraid-geckos-raise.md b/.changeset/afraid-geckos-raise.md deleted file mode 100644 index c5b226a4f9..0000000000 --- a/.changeset/afraid-geckos-raise.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/core': patch ---- - -Deduplicate operations as the `dedupExchange` did; by filtering out duplicate operations until either the original operation has been cancelled (teardown) or a first result (without `hasNext: true`) has come in. diff --git a/.changeset/brave-sloths-bathe.md b/.changeset/brave-sloths-bathe.md deleted file mode 100644 index ad709fc71c..0000000000 --- a/.changeset/brave-sloths-bathe.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/exchange-persisted': patch ---- - -Refactor SHA256 logic to save on bundlesize. diff --git a/.changeset/calm-buckets-scream.md b/.changeset/calm-buckets-scream.md deleted file mode 100644 index c9de0dd453..0000000000 --- a/.changeset/calm-buckets-scream.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@urql/core': major ---- - -Remove `defaultExchanges` from `@urql/core` and make `exchanges` a required property on `Client` construction. -In doing so we make the `urql` package more tree-shakeable as the three default exchanges are in no code paths -meaning they can be removed if not used. - -A migration would look as follows if you are currently creating a client without exchanges - -```js -import { createClient, cacheExchange, fetchExchange } from '@urql/core' - -const client = createClient({ - url: '', - exchanges: [cacheExchange, fetchExchange] -}); -``` diff --git a/.changeset/clever-plants-greet.md b/.changeset/clever-plants-greet.md deleted file mode 100644 index 49a44136d8..0000000000 --- a/.changeset/clever-plants-greet.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/core': major ---- - -Update `subscriptionExchange` to receive `FetchBody` instead. In the usual usage of `subscriptionExchange` (for instance with `graphql-ws`) you can expect no breaking changes. However, the `key` and `extensions` field has been removed and instead the `forwardSubscription` function receives the full `Operation` as a second argument. diff --git a/.changeset/cuddly-actors-look.md b/.changeset/cuddly-actors-look.md deleted file mode 100644 index 866b0b4db5..0000000000 --- a/.changeset/cuddly-actors-look.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@urql/exchange-multipart-fetch': minor -'@urql/exchange-graphcache': minor -'@urql/exchange-persisted': minor -'@urql/exchange-context': minor -'@urql/exchange-execute': minor -'@urql/exchange-retry': minor -'@urql/exchange-auth': minor ---- - -Update exchanges to drop redundant `share` calls, since `@urql/core`’s `composeExchanges` utility now automatically does so for us. diff --git a/.changeset/cuddly-carrots-tan.md b/.changeset/cuddly-carrots-tan.md deleted file mode 100644 index 6147283300..0000000000 --- a/.changeset/cuddly-carrots-tan.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@urql/exchange-auth': patch -'@urql/exchange-graphcache': patch -'@urql/core': patch -'@urql/preact': patch -'urql': patch -'@urql/svelte': patch -'@urql/vue': patch ---- - -Fix source maps included with recently published packages, which lost their `sourcesContent`, including additional source files, and had incorrect paths in some of them. diff --git a/.changeset/curly-bees-rhyme.md b/.changeset/curly-bees-rhyme.md deleted file mode 100644 index c17d804464..0000000000 --- a/.changeset/curly-bees-rhyme.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/core': minor ---- - -Return a new `OperationResultSource` from all `Client` methods (which replaces `PromisifiedSource` on shortcut methods). This allows not only `toPromise()` to be called, but it can also be used as an awaitable `PromiseLike` and has a `.subscribe(onResult)` method aliasing the subscribe utility from `wonka`. diff --git a/.changeset/dry-days-wait.md b/.changeset/dry-days-wait.md deleted file mode 100644 index e159131f8c..0000000000 --- a/.changeset/dry-days-wait.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/core': patch ---- - -Allow `makeOperation` to be called with a partial `OperationContext` when it’s called to copy an operation. When it receives an `Operation` as a second argument now, the third argument, the context, will be spread into the prior `operation.context`. diff --git a/.changeset/early-crabs-draw.md b/.changeset/early-crabs-draw.md deleted file mode 100644 index c3665a6ced..0000000000 --- a/.changeset/early-crabs-draw.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/core': patch ---- - -Move `multipart/mixed` to end of `Accept` header to avoid cauing Yoga to unnecessarily use it. diff --git a/.changeset/eighty-pigs-joke.md b/.changeset/eighty-pigs-joke.md deleted file mode 100644 index fcf8d6f2ee..0000000000 --- a/.changeset/eighty-pigs-joke.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@urql/exchange-multipart-fetch': patch -'@urql/exchange-request-policy': patch -'@urql/exchange-graphcache': patch -'@urql/preact': patch -'@urql/svelte': patch -'@urql/exchange-persisted': patch -'urql': patch -'@urql/exchange-populate': patch -'@urql/exchange-context': patch -'@urql/exchange-execute': patch -'@urql/exchange-refocus': patch -'@urql/vue': patch -'@urql/exchange-retry': patch -'@urql/exchange-auth': patch -'@urql/core': patch ---- - -Upgrade to `wonka@^6.3.0` diff --git a/.changeset/fifty-jeans-invite.md b/.changeset/fifty-jeans-invite.md deleted file mode 100644 index 550d377332..0000000000 --- a/.changeset/fifty-jeans-invite.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/exchange-graphcache': patch ---- - -Restore variables correctly on mutations diff --git a/.changeset/five-lies-collect.md b/.changeset/five-lies-collect.md deleted file mode 100644 index 89c20574fd..0000000000 --- a/.changeset/five-lies-collect.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/core': patch ---- - -Update `Exchange` contract and `composeExchanges` utility to remove the need to manually call `share` on either incoming `Source` or `forward()`’s `Source`. This is now taken care of internally in `composeExchanges` and should make it easier for you to create custom exchanges and for us to explain them. diff --git a/.changeset/fluffy-tools-marry.md b/.changeset/fluffy-tools-marry.md deleted file mode 100644 index e49ac45175..0000000000 --- a/.changeset/fluffy-tools-marry.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@urql/exchange-graphcache': major -'@urql/core': major ---- - -Remove dependence on `graphql` package and replace it with `@0no-co/graphql.web`, which reduces the default bundlesize impact of `urql` packages to a minimum. All types should remain compatible, even if you use `graphql` elsewhere in your app, and if other dependencies are using `graphql` you may alias it to `graphql-web-lite`. diff --git a/.changeset/four-boxes-impress.md b/.changeset/four-boxes-impress.md deleted file mode 100644 index 79814c48d3..0000000000 --- a/.changeset/four-boxes-impress.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@urql/exchange-graphcache': major -'@urql/svelte': major -'@urql/core': major ---- - -Update `OperationResult.hasNext` and `OperationResult.stale` to be required fields. If you have a custom exchange creating results, you'll have to add these fields or use the `makeResult`, `mergeResultPatch`, or `makeErrorResult` helpers. diff --git a/.changeset/fuzzy-baboons-add.md b/.changeset/fuzzy-baboons-add.md deleted file mode 100644 index 78f0a68836..0000000000 --- a/.changeset/fuzzy-baboons-add.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/core': minor ---- - -Update `subscriptionExchange` to support incremental results out of the box. If a subscription proactively completes, results are also now updated with `hasNext: false`. diff --git a/.changeset/giant-flies-exercise.md b/.changeset/giant-flies-exercise.md deleted file mode 100644 index fec9a88edc..0000000000 --- a/.changeset/giant-flies-exercise.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/exchange-graphcache': patch ---- - -Use `stringifyDocument` in `offlineExchange` rather than `print` and serialize `operation.extensions` as needed. diff --git a/.changeset/good-ads-watch.md b/.changeset/good-ads-watch.md deleted file mode 100644 index fe89fda6fa..0000000000 --- a/.changeset/good-ads-watch.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'urql': patch ---- - -Silence "Cannot update a component (%s) while rendering a different component (%s)." warning forcefully. diff --git a/.changeset/honest-apples-join.md b/.changeset/honest-apples-join.md deleted file mode 100644 index dc5efc5d07..0000000000 --- a/.changeset/honest-apples-join.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@urql/preact': major -'urql': major ---- - -Remove the default `Client` from `Context`. Previously, `urql` kept a legacy default client in its context, with default exchanges and calling an API at `/graphql`. This has now been removed and you will have to create your own `Client` if you were relying on this behaviour. diff --git a/.changeset/hungry-panthers-fly.md b/.changeset/hungry-panthers-fly.md deleted file mode 100644 index f9bb48ac3f..0000000000 --- a/.changeset/hungry-panthers-fly.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/core': patch ---- - -Add support for `graphql`’s built-in `TypedQueryDocumentNode` typings for type inference. diff --git a/.changeset/lucky-months-fail.md b/.changeset/lucky-months-fail.md deleted file mode 100644 index fa8b5f0851..0000000000 --- a/.changeset/lucky-months-fail.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/core': patch ---- - -Add missing type exports of SSR-related types (`SerializedResult`, `SSRExchangeParams`, `SSRExchange`, and `SSRData`) to `@urql/core`'s type exports. diff --git a/.changeset/many-cats-travel.md b/.changeset/many-cats-travel.md deleted file mode 100644 index 19a0137239..0000000000 --- a/.changeset/many-cats-travel.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/svelte': major ---- - -Move `handler`, which combines subscription events, from `mutationStore` to `subscriptionStore`. It’s accidentally been defined and implemented on the wrong store and was meant to be on `subscriptionStore`. diff --git a/.changeset/mighty-nails-learn.md b/.changeset/mighty-nails-learn.md deleted file mode 100644 index 9105284216..0000000000 --- a/.changeset/mighty-nails-learn.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@urql/preact': minor -'@urql/svelte': minor -'urql': minor -'@urql/vue': minor ---- - -Allow mutations to update their results in bindings when `hasNext: true` is set, which indicates deferred or streamed results. diff --git a/.changeset/pink-penguins-grin.md b/.changeset/pink-penguins-grin.md deleted file mode 100644 index 0b99f32076..0000000000 --- a/.changeset/pink-penguins-grin.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/core': patch ---- - -Allow any object fitting the `GraphQLError` shape to rehydrate without passing through a `GraphQLError` constructor in `CombinedError`. diff --git a/.changeset/polite-penguins-notice.md b/.changeset/polite-penguins-notice.md deleted file mode 100644 index 72bd74806d..0000000000 --- a/.changeset/polite-penguins-notice.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@urql/exchange-graphcache': patch -'@urql/core': patch ---- - -Add missing `hasNext` and `stale` passthroughs on caching exchanges. diff --git a/.changeset/poor-pumpkins-greet.md b/.changeset/poor-pumpkins-greet.md deleted file mode 100644 index 6fd4a0dff8..0000000000 --- a/.changeset/poor-pumpkins-greet.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/core': patch ---- - -Fix incremental results not merging `errors` from subsequent non-incremental results. diff --git a/.changeset/pretty-cows-dance.md b/.changeset/pretty-cows-dance.md deleted file mode 100644 index 443cecbf44..0000000000 --- a/.changeset/pretty-cows-dance.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/core': patch ---- - -Add logic for `request.extensions.persistedQuery` to `@urql/core` to omit sending `query` as needed. diff --git a/.changeset/proud-buses-change.md b/.changeset/proud-buses-change.md deleted file mode 100644 index 564f6547e9..0000000000 --- a/.changeset/proud-buses-change.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/core': minor ---- - -Implement `text/event-stream` response support. This generally adheres to the GraphQL SSE protocol and GraphQL Yoga push responses, and is an alternative to `multipart/mixed`. diff --git a/.changeset/quick-seahorses-cross.md b/.changeset/quick-seahorses-cross.md deleted file mode 100644 index 1353a1e7b4..0000000000 --- a/.changeset/quick-seahorses-cross.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/core': patch ---- - -Fix incorrect operation name being picked from queries that contain multiple operations. diff --git a/.changeset/quiet-ants-collect.md b/.changeset/quiet-ants-collect.md deleted file mode 100644 index e97416fbdd..0000000000 --- a/.changeset/quiet-ants-collect.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/core': minor ---- - -Implement GraphQL Multipart Request support in `@urql/core`. This adds the File/Blob upload support to `@urql/core`, which effectively deprecates `@urql/exchange-multipart-fetch` diff --git a/.changeset/real-donkeys-act.md b/.changeset/real-donkeys-act.md deleted file mode 100644 index 50177fe70a..0000000000 --- a/.changeset/real-donkeys-act.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@urql/core': patch ---- - -Replace fetch source implementation with async generator implementation, based on Wonka's `fromAsyncIterable`. -This also further hardens our support for the "Incremental Delivery" specification and -refactors its implementation and covers more edge cases. diff --git a/.changeset/rotten-planes-heal.md b/.changeset/rotten-planes-heal.md deleted file mode 100644 index 33067e365a..0000000000 --- a/.changeset/rotten-planes-heal.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/exchange-auth': patch ---- - -Avoid infinite loop when `didAuthError` keeps returning true diff --git a/.changeset/silent-numbers-look.md b/.changeset/silent-numbers-look.md deleted file mode 100644 index 888b24220b..0000000000 --- a/.changeset/silent-numbers-look.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/core': patch ---- - -Ensure network errors are always issued with `CombinedError`s, while downstream errors are re-thrown. diff --git a/.changeset/slow-glasses-attend.md b/.changeset/slow-glasses-attend.md deleted file mode 100644 index 938f3d1cd7..0000000000 --- a/.changeset/slow-glasses-attend.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/core': minor ---- - -Support `GraphQLRequest.extensions` as spec-extensions input to GraphQL requests. diff --git a/.changeset/soft-glasses-guess.md b/.changeset/soft-glasses-guess.md deleted file mode 100644 index 3f256e4c5e..0000000000 --- a/.changeset/soft-glasses-guess.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@urql/core': patch ---- - -Refactor `Client` result source construction code and allow multiple mutation -results, if `result.hasNext` on a mutation result is set to `true`, indicating -deferred or streamed results. diff --git a/.changeset/strange-apples-trade.md b/.changeset/strange-apples-trade.md deleted file mode 100644 index ecb66e6268..0000000000 --- a/.changeset/strange-apples-trade.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/exchange-persisted': major ---- - -Remove `persistedFetchExchange` and instead implement `persistedExchange`. This exchange must be placed in front of a terminating exchange (such as the default `fetchExchange` or a `subscriptionExchange` that supports persisted queries), and only modifies incoming operations to contain `extensions.persistedQuery`, which is sent on via the API. If the API expects Automatic Persisted Queries, requests are retried by this exchange internally. diff --git a/.changeset/strong-shirts-hear.md b/.changeset/strong-shirts-hear.md deleted file mode 100644 index c1f011e4d5..0000000000 --- a/.changeset/strong-shirts-hear.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@urql/introspection': patch -'@urql/storage-rn': patch -'next-urql': patch ---- - -Add TSDocs to `@urql/*` packages. diff --git a/.changeset/tame-pumas-promise.md b/.changeset/tame-pumas-promise.md deleted file mode 100644 index 19cddf3454..0000000000 --- a/.changeset/tame-pumas-promise.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/core': patch ---- - -Remove dependence on `import { visit } from 'graphql';` with smaller but functionally equivalent alternative. diff --git a/.changeset/three-poets-think.md b/.changeset/three-poets-think.md deleted file mode 100644 index a379c83a6f..0000000000 --- a/.changeset/three-poets-think.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/exchange-persisted': major ---- - -Rename `@urql/exchange-persisted-fetch` to `@urql/exchange-persisted` diff --git a/.changeset/tricky-cherries-glow.md b/.changeset/tricky-cherries-glow.md deleted file mode 100644 index 02e1b3f3dc..0000000000 --- a/.changeset/tricky-cherries-glow.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@urql/preact': patch -'@urql/svelte': patch -'urql': patch -'@urql/vue': patch ---- - -Add TSDocs to all `urql` bindings packages. diff --git a/.changeset/tricky-poets-clap.md b/.changeset/tricky-poets-clap.md deleted file mode 100644 index 0b7a33fcf0..0000000000 --- a/.changeset/tricky-poets-clap.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/core': minor ---- - -Allow subscriptions to be handled by the `fetchExchange` when `fetchSubscriptions` is turned on. diff --git a/.changeset/violet-kings-fold.md b/.changeset/violet-kings-fold.md deleted file mode 100644 index 22d97fbb96..0000000000 --- a/.changeset/violet-kings-fold.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@urql/exchange-multipart-fetch': patch ---- - -Deprecate `@urql/exchange-multipart-fetch` as behaviour has been absorbed into `@urql/core`. If you're using the `multipartFetchExchange`, you should now be able to simply remove it. diff --git a/.changeset/wise-cherries-juggle.md b/.changeset/wise-cherries-juggle.md deleted file mode 100644 index 310f8c76ef..0000000000 --- a/.changeset/wise-cherries-juggle.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@urql/core': minor ---- - -Deprecate the `dedupExchange`. The functionality of deduplicating queries and subscriptions has now been moved into and absorbed by the `Client`. - -Previously, the `Client` already started doing some work to share results between -queries, and to avoid dispatching operations as needed. It now only dispatches operations -strictly when the `dedupExchange` would allow so as well, moving its logic into the -`Client`. diff --git a/.changeset/wise-hairs-pump.md b/.changeset/wise-hairs-pump.md deleted file mode 100644 index 640d4a0bf3..0000000000 --- a/.changeset/wise-hairs-pump.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@urql/exchange-request-policy': patch -'@urql/exchange-graphcache': patch -'@urql/exchange-persisted': patch -'@urql/exchange-populate': patch -'@urql/exchange-context': patch -'@urql/exchange-execute': patch -'@urql/exchange-refocus': patch -'@urql/exchange-retry': patch ---- - -Add TSDocs for all exchanges, documenting API internals. diff --git a/.changeset/young-lamps-help.md b/.changeset/young-lamps-help.md deleted file mode 100644 index a1880c877f..0000000000 --- a/.changeset/young-lamps-help.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@urql/core': major -'@urql/exchange-execute': minor ---- - -Remove `getOperationName` export from `@urql/core` diff --git a/examples/with-apq/package.json b/examples/with-apq/package.json index 4dff09314a..ff7dc0c308 100644 --- a/examples/with-apq/package.json +++ b/examples/with-apq/package.json @@ -6,12 +6,12 @@ "start": "vite" }, "dependencies": { - "@urql/core": "^3.2.2", + "@urql/core": "^4.0.0", "@urql/exchange-persisted-fetch": "^1.3.0", "graphql": "^16.6.0", "react": "^18.2.0", "react-dom": "^18.2.0", - "urql": "^3.0.4" + "urql": "^4.0.0" }, "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 70ca028ef3..77539cda31 100644 --- a/examples/with-defer-stream-directives/package.json +++ b/examples/with-defer-stream-directives/package.json @@ -17,12 +17,12 @@ }, "dependencies": { "@graphql-yoga/plugin-defer-stream": "^1.7.1", - "@urql/core": "^3.2.2", - "@urql/exchange-graphcache": "^5.2.0", + "@urql/core": "^4.0.0", + "@urql/exchange-graphcache": "^6.0.0", "graphql": "17.0.0-alpha.2", "react": "^18.2.0", "react-dom": "^18.2.0", - "urql": "^3.0.4" + "urql": "^4.0.0" }, "devDependencies": { "@apollo/server": "^4.4.1", diff --git a/examples/with-graphcache-pagination/package.json b/examples/with-graphcache-pagination/package.json index b8b4efd40f..e936b756e4 100644 --- a/examples/with-graphcache-pagination/package.json +++ b/examples/with-graphcache-pagination/package.json @@ -6,12 +6,12 @@ "start": "vite" }, "dependencies": { - "@urql/core": "^3.2.2", - "@urql/exchange-graphcache": "^5.2.0", + "@urql/core": "^4.0.0", + "@urql/exchange-graphcache": "^6.0.0", "graphql": "^16.6.0", "react": "^18.2.0", "react-dom": "^18.2.0", - "urql": "^3.0.4" + "urql": "^4.0.0" }, "devDependencies": { "@vitejs/plugin-react": "^3.1.0", diff --git a/examples/with-graphcache-updates/package.json b/examples/with-graphcache-updates/package.json index eb4d4f6276..8c0af4e5c5 100644 --- a/examples/with-graphcache-updates/package.json +++ b/examples/with-graphcache-updates/package.json @@ -6,13 +6,13 @@ "start": "vite" }, "dependencies": { - "@urql/core": "^3.2.2", - "@urql/exchange-auth": "^2.0.0", - "@urql/exchange-graphcache": "^5.2.0", + "@urql/core": "^4.0.0", + "@urql/exchange-auth": "^2.1.0", + "@urql/exchange-graphcache": "^6.0.0", "graphql": "^16.6.0", "react": "^18.2.0", "react-dom": "^18.2.0", - "urql": "^3.0.4" + "urql": "^4.0.0" }, "devDependencies": { "@vitejs/plugin-react": "^3.1.0", diff --git a/examples/with-multipart/package.json b/examples/with-multipart/package.json index 06a457ff15..7592012421 100644 --- a/examples/with-multipart/package.json +++ b/examples/with-multipart/package.json @@ -6,11 +6,11 @@ "start": "vite" }, "dependencies": { - "@urql/core": "^3.2.2", + "@urql/core": "^4.0.0", "graphql": "^16.6.0", "react": "^18.2.0", "react-dom": "^18.2.0", - "urql": "^3.0.4" + "urql": "^4.0.0" }, "devDependencies": { "@vitejs/plugin-react": "^3.1.0", diff --git a/examples/with-next/package.json b/examples/with-next/package.json index ddb7d8992f..2e9d582ee1 100644 --- a/examples/with-next/package.json +++ b/examples/with-next/package.json @@ -3,13 +3,13 @@ "version": "0.0.0", "private": true, "dependencies": { - "@urql/core": "^3.2.2", + "@urql/core": "^4.0.0", "graphql": "^16.6.0", "next": "13.2.4", - "next-urql": "^4.0.3", + "next-urql": "^5.0.0", "react": "^18.2.0", "react-dom": "^18.2.0", - "urql": "^3.0.4" + "urql": "^4.0.0" }, "scripts": { "dev": "next dev", diff --git a/examples/with-pagination/package.json b/examples/with-pagination/package.json index 33ee35bb7d..29afd3ce5f 100644 --- a/examples/with-pagination/package.json +++ b/examples/with-pagination/package.json @@ -6,11 +6,11 @@ "start": "vite" }, "dependencies": { - "@urql/core": "^3.2.2", + "@urql/core": "^4.0.0", "graphql": "^16.6.0", "react": "^18.2.0", "react-dom": "^18.2.0", - "urql": "^3.0.4" + "urql": "^4.0.0" }, "devDependencies": { "@vitejs/plugin-react": "^3.1.0", diff --git a/examples/with-react-native/package.json b/examples/with-react-native/package.json index b9efb2d925..382bd0588b 100644 --- a/examples/with-react-native/package.json +++ b/examples/with-react-native/package.json @@ -8,11 +8,11 @@ "start": "react-native start" }, "dependencies": { - "@urql/core": "^3.2.2", + "@urql/core": "^4.0.0", "graphql": "^16.6.0", "react": "18.2.0", "react-native": "0.71.4", - "urql": "^3.0.4" + "urql": "^4.0.0" }, "devDependencies": { "@babel/core": "^7.12.9", diff --git a/examples/with-react/package.json b/examples/with-react/package.json index 0f7bb36541..2c7df86842 100644 --- a/examples/with-react/package.json +++ b/examples/with-react/package.json @@ -6,11 +6,11 @@ "start": "vite" }, "dependencies": { - "@urql/core": "^3.2.2", + "@urql/core": "^4.0.0", "graphql": "^16.6.0", "react": "^18.2.0", "react-dom": "^18.2.0", - "urql": "^3.0.4" + "urql": "^4.0.0" }, "devDependencies": { "@vitejs/plugin-react": "^3.1.0", diff --git a/examples/with-refresh-auth/package.json b/examples/with-refresh-auth/package.json index cef4da25b0..7a174355e1 100644 --- a/examples/with-refresh-auth/package.json +++ b/examples/with-refresh-auth/package.json @@ -6,12 +6,12 @@ "start": "vite" }, "dependencies": { - "@urql/core": "^3.2.2", - "@urql/exchange-auth": "^2.0.0", + "@urql/core": "^4.0.0", + "@urql/exchange-auth": "^2.1.0", "graphql": "^16.6.0", "react": "^18.2.0", "react-dom": "^18.2.0", - "urql": "^3.0.4" + "urql": "^4.0.0" }, "devDependencies": { "@vitejs/plugin-react": "^3.1.0", diff --git a/examples/with-retry/package.json b/examples/with-retry/package.json index 48712f7a10..9d8cc23983 100644 --- a/examples/with-retry/package.json +++ b/examples/with-retry/package.json @@ -6,12 +6,12 @@ "start": "vite" }, "dependencies": { - "@urql/core": "^3.2.2", - "@urql/exchange-retry": "^1.0.0", + "@urql/core": "^4.0.0", + "@urql/exchange-retry": "^1.1.0", "graphql": "^16.6.0", "react": "^18.2.0", "react-dom": "^18.2.0", - "urql": "^3.0.4" + "urql": "^4.0.0" }, "devDependencies": { "@vitejs/plugin-react": "^3.1.0", diff --git a/examples/with-svelte/package.json b/examples/with-svelte/package.json index 38f93e8e77..20633da829 100644 --- a/examples/with-svelte/package.json +++ b/examples/with-svelte/package.json @@ -8,8 +8,8 @@ "serve": "vite preview" }, "dependencies": { - "@urql/core": "^3.2.2", - "@urql/svelte": "^3.0.4", + "@urql/core": "^4.0.0", + "@urql/svelte": "^4.0.0", "graphql": "^16.6.0", "svelte": "^3.57.0" }, diff --git a/examples/with-vue3/package.json b/examples/with-vue3/package.json index bbebe86b4b..54f029a05e 100644 --- a/examples/with-vue3/package.json +++ b/examples/with-vue3/package.json @@ -8,8 +8,8 @@ "serve": "vite preview" }, "dependencies": { - "@urql/core": "^3.2.2", - "@urql/vue": "^1.0.5", + "@urql/core": "^4.0.0", + "@urql/vue": "^1.1.0", "graphql": "^16.6.0", "vue": "^3.2.47" }, diff --git a/exchanges/auth/CHANGELOG.md b/exchanges/auth/CHANGELOG.md index dd24bb2ed4..b3bc0373b5 100644 --- a/exchanges/auth/CHANGELOG.md +++ b/exchanges/auth/CHANGELOG.md @@ -1,5 +1,23 @@ # Changelog +## 2.1.0 + +### Minor Changes + +- Update exchanges to drop redundant `share` calls, since `@urql/core`’s `composeExchanges` utility now automatically does so for us + Submitted by [@kitten](https://github.com/kitten) (See [#3082](https://github.com/urql-graphql/urql/pull/3082)) + +### Patch Changes + +- ⚠️ Fix source maps included with recently published packages, which lost their `sourcesContent`, including additional source files, and had incorrect paths in some of them + Submitted by [@kitten](https://github.com/kitten) (See [#3053](https://github.com/urql-graphql/urql/pull/3053)) +- Upgrade to `wonka@^6.3.0` + Submitted by [@kitten](https://github.com/kitten) (See [#3104](https://github.com/urql-graphql/urql/pull/3104)) +- Avoid infinite loop when `didAuthError` keeps returning true + Submitted by [@JoviDeCroock](https://github.com/JoviDeCroock) (See [#3112](https://github.com/urql-graphql/urql/pull/3112)) +- Updated dependencies (See [#3101](https://github.com/urql-graphql/urql/pull/3101), [#3033](https://github.com/urql-graphql/urql/pull/3033), [#3054](https://github.com/urql-graphql/urql/pull/3054), [#3053](https://github.com/urql-graphql/urql/pull/3053), [#3060](https://github.com/urql-graphql/urql/pull/3060), [#3081](https://github.com/urql-graphql/urql/pull/3081), [#3039](https://github.com/urql-graphql/urql/pull/3039), [#3104](https://github.com/urql-graphql/urql/pull/3104), [#3082](https://github.com/urql-graphql/urql/pull/3082), [#3097](https://github.com/urql-graphql/urql/pull/3097), [#3061](https://github.com/urql-graphql/urql/pull/3061), [#3055](https://github.com/urql-graphql/urql/pull/3055), [#3085](https://github.com/urql-graphql/urql/pull/3085), [#3079](https://github.com/urql-graphql/urql/pull/3079), [#3087](https://github.com/urql-graphql/urql/pull/3087), [#3059](https://github.com/urql-graphql/urql/pull/3059), [#3055](https://github.com/urql-graphql/urql/pull/3055), [#3057](https://github.com/urql-graphql/urql/pull/3057), [#3050](https://github.com/urql-graphql/urql/pull/3050), [#3062](https://github.com/urql-graphql/urql/pull/3062), [#3051](https://github.com/urql-graphql/urql/pull/3051), [#3043](https://github.com/urql-graphql/urql/pull/3043), [#3063](https://github.com/urql-graphql/urql/pull/3063), [#3054](https://github.com/urql-graphql/urql/pull/3054), [#3102](https://github.com/urql-graphql/urql/pull/3102), [#3097](https://github.com/urql-graphql/urql/pull/3097), [#3106](https://github.com/urql-graphql/urql/pull/3106), [#3058](https://github.com/urql-graphql/urql/pull/3058), and [#3062](https://github.com/urql-graphql/urql/pull/3062)) + - @urql/core@4.0.0 + ## 2.0.0 ### Major Changes diff --git a/exchanges/auth/package.json b/exchanges/auth/package.json index e7534b8cf7..04d7c0b02b 100644 --- a/exchanges/auth/package.json +++ b/exchanges/auth/package.json @@ -1,6 +1,6 @@ { "name": "@urql/exchange-auth", - "version": "2.0.0", + "version": "2.1.0", "description": "An exchange for managing authentication and token refresh in urql", "sideEffects": false, "homepage": "https://formidable.com/open-source/urql/docs/", @@ -48,7 +48,7 @@ "prepublishOnly": "run-s clean build" }, "dependencies": { - "@urql/core": ">=3.2.2", + "@urql/core": ">=4.0.0", "wonka": "^6.3.0" }, "devDependencies": { diff --git a/exchanges/context/CHANGELOG.md b/exchanges/context/CHANGELOG.md index 8c30f86a21..dccc7be4df 100644 --- a/exchanges/context/CHANGELOG.md +++ b/exchanges/context/CHANGELOG.md @@ -1,5 +1,21 @@ # Changelog +## 0.2.0 + +### Minor Changes + +- Update exchanges to drop redundant `share` calls, since `@urql/core`’s `composeExchanges` utility now automatically does so for us + Submitted by [@kitten](https://github.com/kitten) (See [#3082](https://github.com/urql-graphql/urql/pull/3082)) + +### Patch Changes + +- Upgrade to `wonka@^6.3.0` + Submitted by [@kitten](https://github.com/kitten) (See [#3104](https://github.com/urql-graphql/urql/pull/3104)) +- Add TSDocs for all exchanges, documenting API internals + Submitted by [@kitten](https://github.com/kitten) (See [#3072](https://github.com/urql-graphql/urql/pull/3072)) +- Updated dependencies (See [#3101](https://github.com/urql-graphql/urql/pull/3101), [#3033](https://github.com/urql-graphql/urql/pull/3033), [#3054](https://github.com/urql-graphql/urql/pull/3054), [#3053](https://github.com/urql-graphql/urql/pull/3053), [#3060](https://github.com/urql-graphql/urql/pull/3060), [#3081](https://github.com/urql-graphql/urql/pull/3081), [#3039](https://github.com/urql-graphql/urql/pull/3039), [#3104](https://github.com/urql-graphql/urql/pull/3104), [#3082](https://github.com/urql-graphql/urql/pull/3082), [#3097](https://github.com/urql-graphql/urql/pull/3097), [#3061](https://github.com/urql-graphql/urql/pull/3061), [#3055](https://github.com/urql-graphql/urql/pull/3055), [#3085](https://github.com/urql-graphql/urql/pull/3085), [#3079](https://github.com/urql-graphql/urql/pull/3079), [#3087](https://github.com/urql-graphql/urql/pull/3087), [#3059](https://github.com/urql-graphql/urql/pull/3059), [#3055](https://github.com/urql-graphql/urql/pull/3055), [#3057](https://github.com/urql-graphql/urql/pull/3057), [#3050](https://github.com/urql-graphql/urql/pull/3050), [#3062](https://github.com/urql-graphql/urql/pull/3062), [#3051](https://github.com/urql-graphql/urql/pull/3051), [#3043](https://github.com/urql-graphql/urql/pull/3043), [#3063](https://github.com/urql-graphql/urql/pull/3063), [#3054](https://github.com/urql-graphql/urql/pull/3054), [#3102](https://github.com/urql-graphql/urql/pull/3102), [#3097](https://github.com/urql-graphql/urql/pull/3097), [#3106](https://github.com/urql-graphql/urql/pull/3106), [#3058](https://github.com/urql-graphql/urql/pull/3058), and [#3062](https://github.com/urql-graphql/urql/pull/3062)) + - @urql/core@4.0.0 + ## v0.1.0 **Initial Release** diff --git a/exchanges/context/package.json b/exchanges/context/package.json index 6234e7e67c..dbf300f05d 100644 --- a/exchanges/context/package.json +++ b/exchanges/context/package.json @@ -1,6 +1,6 @@ { "name": "@urql/exchange-context", - "version": "0.1.0", + "version": "0.2.0", "description": "An exchange for setting (a)synchronous operation-context in urql", "sideEffects": false, "homepage": "https://formidable.com/open-source/urql/docs/", @@ -47,7 +47,7 @@ "prepublishOnly": "run-s clean build" }, "dependencies": { - "@urql/core": ">=3.2.2", + "@urql/core": ">=4.0.0", "wonka": "^6.3.0" }, "devDependencies": { diff --git a/exchanges/execute/CHANGELOG.md b/exchanges/execute/CHANGELOG.md index e738feee35..13f825b66c 100644 --- a/exchanges/execute/CHANGELOG.md +++ b/exchanges/execute/CHANGELOG.md @@ -1,5 +1,23 @@ # Changelog +## 2.2.0 + +### Minor Changes + +- Update exchanges to drop redundant `share` calls, since `@urql/core`’s `composeExchanges` utility now automatically does so for us + Submitted by [@kitten](https://github.com/kitten) (See [#3082](https://github.com/urql-graphql/urql/pull/3082)) +- Remove `getOperationName` export from `@urql/core` + Submitted by [@kitten](https://github.com/kitten) (See [#3062](https://github.com/urql-graphql/urql/pull/3062)) + +### Patch Changes + +- Upgrade to `wonka@^6.3.0` + Submitted by [@kitten](https://github.com/kitten) (See [#3104](https://github.com/urql-graphql/urql/pull/3104)) +- Add TSDocs for all exchanges, documenting API internals + Submitted by [@kitten](https://github.com/kitten) (See [#3072](https://github.com/urql-graphql/urql/pull/3072)) +- Updated dependencies (See [#3101](https://github.com/urql-graphql/urql/pull/3101), [#3033](https://github.com/urql-graphql/urql/pull/3033), [#3054](https://github.com/urql-graphql/urql/pull/3054), [#3053](https://github.com/urql-graphql/urql/pull/3053), [#3060](https://github.com/urql-graphql/urql/pull/3060), [#3081](https://github.com/urql-graphql/urql/pull/3081), [#3039](https://github.com/urql-graphql/urql/pull/3039), [#3104](https://github.com/urql-graphql/urql/pull/3104), [#3082](https://github.com/urql-graphql/urql/pull/3082), [#3097](https://github.com/urql-graphql/urql/pull/3097), [#3061](https://github.com/urql-graphql/urql/pull/3061), [#3055](https://github.com/urql-graphql/urql/pull/3055), [#3085](https://github.com/urql-graphql/urql/pull/3085), [#3079](https://github.com/urql-graphql/urql/pull/3079), [#3087](https://github.com/urql-graphql/urql/pull/3087), [#3059](https://github.com/urql-graphql/urql/pull/3059), [#3055](https://github.com/urql-graphql/urql/pull/3055), [#3057](https://github.com/urql-graphql/urql/pull/3057), [#3050](https://github.com/urql-graphql/urql/pull/3050), [#3062](https://github.com/urql-graphql/urql/pull/3062), [#3051](https://github.com/urql-graphql/urql/pull/3051), [#3043](https://github.com/urql-graphql/urql/pull/3043), [#3063](https://github.com/urql-graphql/urql/pull/3063), [#3054](https://github.com/urql-graphql/urql/pull/3054), [#3102](https://github.com/urql-graphql/urql/pull/3102), [#3097](https://github.com/urql-graphql/urql/pull/3097), [#3106](https://github.com/urql-graphql/urql/pull/3106), [#3058](https://github.com/urql-graphql/urql/pull/3058), and [#3062](https://github.com/urql-graphql/urql/pull/3062)) + - @urql/core@4.0.0 + ## 2.1.1 ### Patch Changes diff --git a/exchanges/execute/package.json b/exchanges/execute/package.json index be7a48841d..6c99dd220b 100644 --- a/exchanges/execute/package.json +++ b/exchanges/execute/package.json @@ -1,6 +1,6 @@ { "name": "@urql/exchange-execute", - "version": "2.1.1", + "version": "2.2.0", "description": "An exchange for executing queries against a local schema in urql", "sideEffects": false, "homepage": "https://formidable.com/open-source/urql/docs/", @@ -48,7 +48,7 @@ "prepublishOnly": "run-s clean build" }, "dependencies": { - "@urql/core": ">=3.2.2", + "@urql/core": ">=4.0.0", "wonka": "^6.3.0" }, "peerDependencies": { diff --git a/exchanges/graphcache/CHANGELOG.md b/exchanges/graphcache/CHANGELOG.md index 5d63fe0418..31fcac2f1e 100644 --- a/exchanges/graphcache/CHANGELOG.md +++ b/exchanges/graphcache/CHANGELOG.md @@ -1,5 +1,36 @@ # @urql/exchange-graphcache +## 6.0.0 + +### Major Changes + +- Remove dependence on `graphql` package and replace it with `@0no-co/graphql.web`, which reduces the default bundlesize impact of `urql` packages to a minimum. All types should remain compatible, even if you use `graphql` elsewhere in your app, and if other dependencies are using `graphql` you may alias it to `graphql-web-lite` + Submitted by [@kitten](https://github.com/kitten) (See [#3097](https://github.com/urql-graphql/urql/pull/3097)) +- Update `OperationResult.hasNext` and `OperationResult.stale` to be required fields. If you have a custom exchange creating results, you'll have to add these fields or use the `makeResult`, `mergeResultPatch`, or `makeErrorResult` helpers + Submitted by [@kitten](https://github.com/kitten) (See [#3061](https://github.com/urql-graphql/urql/pull/3061)) + +### Minor Changes + +- Update exchanges to drop redundant `share` calls, since `@urql/core`’s `composeExchanges` utility now automatically does so for us + Submitted by [@kitten](https://github.com/kitten) (See [#3082](https://github.com/urql-graphql/urql/pull/3082)) + +### Patch Changes + +- ⚠️ Fix source maps included with recently published packages, which lost their `sourcesContent`, including additional source files, and had incorrect paths in some of them + Submitted by [@kitten](https://github.com/kitten) (See [#3053](https://github.com/urql-graphql/urql/pull/3053)) +- Upgrade to `wonka@^6.3.0` + Submitted by [@kitten](https://github.com/kitten) (See [#3104](https://github.com/urql-graphql/urql/pull/3104)) +- Restore variables correctly on mutations + Submitted by [@JoviDeCroock](https://github.com/JoviDeCroock) (See [#3046](https://github.com/urql-graphql/urql/pull/3046)) +- Use `stringifyDocument` in `offlineExchange` rather than `print` and serialize `operation.extensions` as needed + Submitted by [@kitten](https://github.com/kitten) (See [#3094](https://github.com/urql-graphql/urql/pull/3094)) +- Add missing `hasNext` and `stale` passthroughs on caching exchanges + Submitted by [@kitten](https://github.com/kitten) (See [#3059](https://github.com/urql-graphql/urql/pull/3059)) +- Add TSDocs for all exchanges, documenting API internals + Submitted by [@kitten](https://github.com/kitten) (See [#3072](https://github.com/urql-graphql/urql/pull/3072)) +- Updated dependencies (See [#3101](https://github.com/urql-graphql/urql/pull/3101), [#3033](https://github.com/urql-graphql/urql/pull/3033), [#3054](https://github.com/urql-graphql/urql/pull/3054), [#3053](https://github.com/urql-graphql/urql/pull/3053), [#3060](https://github.com/urql-graphql/urql/pull/3060), [#3081](https://github.com/urql-graphql/urql/pull/3081), [#3039](https://github.com/urql-graphql/urql/pull/3039), [#3104](https://github.com/urql-graphql/urql/pull/3104), [#3082](https://github.com/urql-graphql/urql/pull/3082), [#3097](https://github.com/urql-graphql/urql/pull/3097), [#3061](https://github.com/urql-graphql/urql/pull/3061), [#3055](https://github.com/urql-graphql/urql/pull/3055), [#3085](https://github.com/urql-graphql/urql/pull/3085), [#3079](https://github.com/urql-graphql/urql/pull/3079), [#3087](https://github.com/urql-graphql/urql/pull/3087), [#3059](https://github.com/urql-graphql/urql/pull/3059), [#3055](https://github.com/urql-graphql/urql/pull/3055), [#3057](https://github.com/urql-graphql/urql/pull/3057), [#3050](https://github.com/urql-graphql/urql/pull/3050), [#3062](https://github.com/urql-graphql/urql/pull/3062), [#3051](https://github.com/urql-graphql/urql/pull/3051), [#3043](https://github.com/urql-graphql/urql/pull/3043), [#3063](https://github.com/urql-graphql/urql/pull/3063), [#3054](https://github.com/urql-graphql/urql/pull/3054), [#3102](https://github.com/urql-graphql/urql/pull/3102), [#3097](https://github.com/urql-graphql/urql/pull/3097), [#3106](https://github.com/urql-graphql/urql/pull/3106), [#3058](https://github.com/urql-graphql/urql/pull/3058), and [#3062](https://github.com/urql-graphql/urql/pull/3062)) + - @urql/core@4.0.0 + ## 5.2.0 ### Minor Changes diff --git a/exchanges/graphcache/package.json b/exchanges/graphcache/package.json index 64cf24b9f5..3402f8ef26 100644 --- a/exchanges/graphcache/package.json +++ b/exchanges/graphcache/package.json @@ -1,6 +1,6 @@ { "name": "@urql/exchange-graphcache", - "version": "5.2.0", + "version": "6.0.0", "description": "A normalized and configurable cache exchange for urql", "sideEffects": false, "homepage": "https://formidable.com/open-source/urql/docs/graphcache", @@ -63,7 +63,7 @@ }, "dependencies": { "@0no-co/graphql.web": "^1.0.0", - "@urql/core": ">=3.2.2", + "@urql/core": ">=4.0.0", "wonka": "^6.3.0" }, "devDependencies": { diff --git a/exchanges/multipart-fetch/CHANGELOG.md b/exchanges/multipart-fetch/CHANGELOG.md index 60cef1388e..d42514910c 100644 --- a/exchanges/multipart-fetch/CHANGELOG.md +++ b/exchanges/multipart-fetch/CHANGELOG.md @@ -1,5 +1,21 @@ # @urql/exchange-multipart-fetch +## 1.1.0 + +### Minor Changes + +- Update exchanges to drop redundant `share` calls, since `@urql/core`’s `composeExchanges` utility now automatically does so for us + Submitted by [@kitten](https://github.com/kitten) (See [#3082](https://github.com/urql-graphql/urql/pull/3082)) + +### Patch Changes + +- Upgrade to `wonka@^6.3.0` + Submitted by [@kitten](https://github.com/kitten) (See [#3104](https://github.com/urql-graphql/urql/pull/3104)) +- Deprecate `@urql/exchange-multipart-fetch` as behaviour has been absorbed into `@urql/core`. If you're using the `multipartFetchExchange`, you should now be able to simply remove it + Submitted by [@kitten](https://github.com/kitten) (See [#3051](https://github.com/urql-graphql/urql/pull/3051)) +- Updated dependencies (See [#3101](https://github.com/urql-graphql/urql/pull/3101), [#3033](https://github.com/urql-graphql/urql/pull/3033), [#3054](https://github.com/urql-graphql/urql/pull/3054), [#3053](https://github.com/urql-graphql/urql/pull/3053), [#3060](https://github.com/urql-graphql/urql/pull/3060), [#3081](https://github.com/urql-graphql/urql/pull/3081), [#3039](https://github.com/urql-graphql/urql/pull/3039), [#3104](https://github.com/urql-graphql/urql/pull/3104), [#3082](https://github.com/urql-graphql/urql/pull/3082), [#3097](https://github.com/urql-graphql/urql/pull/3097), [#3061](https://github.com/urql-graphql/urql/pull/3061), [#3055](https://github.com/urql-graphql/urql/pull/3055), [#3085](https://github.com/urql-graphql/urql/pull/3085), [#3079](https://github.com/urql-graphql/urql/pull/3079), [#3087](https://github.com/urql-graphql/urql/pull/3087), [#3059](https://github.com/urql-graphql/urql/pull/3059), [#3055](https://github.com/urql-graphql/urql/pull/3055), [#3057](https://github.com/urql-graphql/urql/pull/3057), [#3050](https://github.com/urql-graphql/urql/pull/3050), [#3062](https://github.com/urql-graphql/urql/pull/3062), [#3051](https://github.com/urql-graphql/urql/pull/3051), [#3043](https://github.com/urql-graphql/urql/pull/3043), [#3063](https://github.com/urql-graphql/urql/pull/3063), [#3054](https://github.com/urql-graphql/urql/pull/3054), [#3102](https://github.com/urql-graphql/urql/pull/3102), [#3097](https://github.com/urql-graphql/urql/pull/3097), [#3106](https://github.com/urql-graphql/urql/pull/3106), [#3058](https://github.com/urql-graphql/urql/pull/3058), and [#3062](https://github.com/urql-graphql/urql/pull/3062)) + - @urql/core@4.0.0 + ## 1.0.1 ### Patch Changes diff --git a/exchanges/multipart-fetch/package.json b/exchanges/multipart-fetch/package.json index e1440851eb..07b3d80765 100644 --- a/exchanges/multipart-fetch/package.json +++ b/exchanges/multipart-fetch/package.json @@ -1,6 +1,6 @@ { "name": "@urql/exchange-multipart-fetch", - "version": "1.0.1", + "version": "1.1.0", "description": "An exchange that allows regular fetch and will transition to multipart when files are included", "sideEffects": false, "homepage": "https://formidable.com/open-source/urql/docs/", @@ -46,7 +46,7 @@ "prepublishOnly": "run-s clean build" }, "dependencies": { - "@urql/core": ">=3.2.2", + "@urql/core": ">=4.0.0", "extract-files": "^11.0.0", "wonka": "^6.3.0" }, diff --git a/exchanges/persisted/CHANGELOG.md b/exchanges/persisted/CHANGELOG.md index 4041b69c53..f792337c7b 100644 --- a/exchanges/persisted/CHANGELOG.md +++ b/exchanges/persisted/CHANGELOG.md @@ -1,5 +1,30 @@ # @urql/exchange-persisted-fetch +## 3.0.0 + +### Major Changes + +- Remove `persistedFetchExchange` and instead implement `persistedExchange`. This exchange must be placed in front of a terminating exchange (such as the default `fetchExchange` or a `subscriptionExchange` that supports persisted queries), and only modifies incoming operations to contain `extensions.persistedQuery`, which is sent on via the API. If the API expects Automatic Persisted Queries, requests are retried by this exchange internally + Submitted by [@kitten](https://github.com/kitten) (See [#3057](https://github.com/urql-graphql/urql/pull/3057)) +- Rename `@urql/exchange-persisted-fetch` to `@urql/exchange-persisted` + Submitted by [@kitten](https://github.com/kitten) (See [#3057](https://github.com/urql-graphql/urql/pull/3057)) + +### Minor Changes + +- Update exchanges to drop redundant `share` calls, since `@urql/core`’s `composeExchanges` utility now automatically does so for us + Submitted by [@kitten](https://github.com/kitten) (See [#3082](https://github.com/urql-graphql/urql/pull/3082)) + +### Patch Changes + +- Refactor SHA256 logic to save on bundlesize + Submitted by [@kitten](https://github.com/kitten) (See [#3052](https://github.com/urql-graphql/urql/pull/3052)) +- Upgrade to `wonka@^6.3.0` + Submitted by [@kitten](https://github.com/kitten) (See [#3104](https://github.com/urql-graphql/urql/pull/3104)) +- Add TSDocs for all exchanges, documenting API internals + Submitted by [@kitten](https://github.com/kitten) (See [#3072](https://github.com/urql-graphql/urql/pull/3072)) +- Updated dependencies (See [#3101](https://github.com/urql-graphql/urql/pull/3101), [#3033](https://github.com/urql-graphql/urql/pull/3033), [#3054](https://github.com/urql-graphql/urql/pull/3054), [#3053](https://github.com/urql-graphql/urql/pull/3053), [#3060](https://github.com/urql-graphql/urql/pull/3060), [#3081](https://github.com/urql-graphql/urql/pull/3081), [#3039](https://github.com/urql-graphql/urql/pull/3039), [#3104](https://github.com/urql-graphql/urql/pull/3104), [#3082](https://github.com/urql-graphql/urql/pull/3082), [#3097](https://github.com/urql-graphql/urql/pull/3097), [#3061](https://github.com/urql-graphql/urql/pull/3061), [#3055](https://github.com/urql-graphql/urql/pull/3055), [#3085](https://github.com/urql-graphql/urql/pull/3085), [#3079](https://github.com/urql-graphql/urql/pull/3079), [#3087](https://github.com/urql-graphql/urql/pull/3087), [#3059](https://github.com/urql-graphql/urql/pull/3059), [#3055](https://github.com/urql-graphql/urql/pull/3055), [#3057](https://github.com/urql-graphql/urql/pull/3057), [#3050](https://github.com/urql-graphql/urql/pull/3050), [#3062](https://github.com/urql-graphql/urql/pull/3062), [#3051](https://github.com/urql-graphql/urql/pull/3051), [#3043](https://github.com/urql-graphql/urql/pull/3043), [#3063](https://github.com/urql-graphql/urql/pull/3063), [#3054](https://github.com/urql-graphql/urql/pull/3054), [#3102](https://github.com/urql-graphql/urql/pull/3102), [#3097](https://github.com/urql-graphql/urql/pull/3097), [#3106](https://github.com/urql-graphql/urql/pull/3106), [#3058](https://github.com/urql-graphql/urql/pull/3058), and [#3062](https://github.com/urql-graphql/urql/pull/3062)) + - @urql/core@4.0.0 + ## 2.1.0 ### Minor Changes diff --git a/exchanges/persisted/package.json b/exchanges/persisted/package.json index 4d700536cc..30443f0424 100644 --- a/exchanges/persisted/package.json +++ b/exchanges/persisted/package.json @@ -1,6 +1,6 @@ { "name": "@urql/exchange-persisted", - "version": "2.1.0", + "version": "3.0.0", "description": "An exchange that allows for persisted queries support when fetching queries", "sideEffects": false, "homepage": "https://formidable.com/open-source/urql/docs/", @@ -46,7 +46,7 @@ "prepublishOnly": "run-s clean build" }, "dependencies": { - "@urql/core": ">=3.2.2", + "@urql/core": ">=4.0.0", "wonka": "^6.3.0" }, "devDependencies": { diff --git a/exchanges/populate/CHANGELOG.md b/exchanges/populate/CHANGELOG.md index bb42340c28..31fe1b80b5 100644 --- a/exchanges/populate/CHANGELOG.md +++ b/exchanges/populate/CHANGELOG.md @@ -1,5 +1,16 @@ # @urql/exchange-populate +## 1.1.1 + +### Patch Changes + +- Upgrade to `wonka@^6.3.0` + Submitted by [@kitten](https://github.com/kitten) (See [#3104](https://github.com/urql-graphql/urql/pull/3104)) +- Add TSDocs for all exchanges, documenting API internals + Submitted by [@kitten](https://github.com/kitten) (See [#3072](https://github.com/urql-graphql/urql/pull/3072)) +- Updated dependencies (See [#3101](https://github.com/urql-graphql/urql/pull/3101), [#3033](https://github.com/urql-graphql/urql/pull/3033), [#3054](https://github.com/urql-graphql/urql/pull/3054), [#3053](https://github.com/urql-graphql/urql/pull/3053), [#3060](https://github.com/urql-graphql/urql/pull/3060), [#3081](https://github.com/urql-graphql/urql/pull/3081), [#3039](https://github.com/urql-graphql/urql/pull/3039), [#3104](https://github.com/urql-graphql/urql/pull/3104), [#3082](https://github.com/urql-graphql/urql/pull/3082), [#3097](https://github.com/urql-graphql/urql/pull/3097), [#3061](https://github.com/urql-graphql/urql/pull/3061), [#3055](https://github.com/urql-graphql/urql/pull/3055), [#3085](https://github.com/urql-graphql/urql/pull/3085), [#3079](https://github.com/urql-graphql/urql/pull/3079), [#3087](https://github.com/urql-graphql/urql/pull/3087), [#3059](https://github.com/urql-graphql/urql/pull/3059), [#3055](https://github.com/urql-graphql/urql/pull/3055), [#3057](https://github.com/urql-graphql/urql/pull/3057), [#3050](https://github.com/urql-graphql/urql/pull/3050), [#3062](https://github.com/urql-graphql/urql/pull/3062), [#3051](https://github.com/urql-graphql/urql/pull/3051), [#3043](https://github.com/urql-graphql/urql/pull/3043), [#3063](https://github.com/urql-graphql/urql/pull/3063), [#3054](https://github.com/urql-graphql/urql/pull/3054), [#3102](https://github.com/urql-graphql/urql/pull/3102), [#3097](https://github.com/urql-graphql/urql/pull/3097), [#3106](https://github.com/urql-graphql/urql/pull/3106), [#3058](https://github.com/urql-graphql/urql/pull/3058), and [#3062](https://github.com/urql-graphql/urql/pull/3062)) + - @urql/core@4.0.0 + ## 1.1.0 ### Minor Changes diff --git a/exchanges/populate/package.json b/exchanges/populate/package.json index 254eb56bf7..48ea3b7c34 100644 --- a/exchanges/populate/package.json +++ b/exchanges/populate/package.json @@ -1,6 +1,6 @@ { "name": "@urql/exchange-populate", - "version": "1.1.0", + "version": "1.1.1", "description": "An exchange that automaticcally populates the mutation selection body", "sideEffects": false, "homepage": "https://formidable.com/open-source/urql/docs/advanced/auto-populate-mutations", @@ -46,7 +46,7 @@ "prepublishOnly": "run-s clean build" }, "dependencies": { - "@urql/core": ">=3.2.2", + "@urql/core": ">=4.0.0", "wonka": "^6.3.0" }, "peerDependencies": { diff --git a/exchanges/refocus/CHANGELOG.md b/exchanges/refocus/CHANGELOG.md index 1cca1ed51d..6bb5729d9b 100644 --- a/exchanges/refocus/CHANGELOG.md +++ b/exchanges/refocus/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## 1.0.1 + +### Patch Changes + +- Upgrade to `wonka@^6.3.0` + Submitted by [@kitten](https://github.com/kitten) (See [#3104](https://github.com/urql-graphql/urql/pull/3104)) +- Add TSDocs for all exchanges, documenting API internals + Submitted by [@kitten](https://github.com/kitten) (See [#3072](https://github.com/urql-graphql/urql/pull/3072)) +- Updated dependencies (See [#3101](https://github.com/urql-graphql/urql/pull/3101), [#3033](https://github.com/urql-graphql/urql/pull/3033), [#3054](https://github.com/urql-graphql/urql/pull/3054), [#3053](https://github.com/urql-graphql/urql/pull/3053), [#3060](https://github.com/urql-graphql/urql/pull/3060), [#3081](https://github.com/urql-graphql/urql/pull/3081), [#3039](https://github.com/urql-graphql/urql/pull/3039), [#3104](https://github.com/urql-graphql/urql/pull/3104), [#3082](https://github.com/urql-graphql/urql/pull/3082), [#3097](https://github.com/urql-graphql/urql/pull/3097), [#3061](https://github.com/urql-graphql/urql/pull/3061), [#3055](https://github.com/urql-graphql/urql/pull/3055), [#3085](https://github.com/urql-graphql/urql/pull/3085), [#3079](https://github.com/urql-graphql/urql/pull/3079), [#3087](https://github.com/urql-graphql/urql/pull/3087), [#3059](https://github.com/urql-graphql/urql/pull/3059), [#3055](https://github.com/urql-graphql/urql/pull/3055), [#3057](https://github.com/urql-graphql/urql/pull/3057), [#3050](https://github.com/urql-graphql/urql/pull/3050), [#3062](https://github.com/urql-graphql/urql/pull/3062), [#3051](https://github.com/urql-graphql/urql/pull/3051), [#3043](https://github.com/urql-graphql/urql/pull/3043), [#3063](https://github.com/urql-graphql/urql/pull/3063), [#3054](https://github.com/urql-graphql/urql/pull/3054), [#3102](https://github.com/urql-graphql/urql/pull/3102), [#3097](https://github.com/urql-graphql/urql/pull/3097), [#3106](https://github.com/urql-graphql/urql/pull/3106), [#3058](https://github.com/urql-graphql/urql/pull/3058), and [#3062](https://github.com/urql-graphql/urql/pull/3062)) + - @urql/core@4.0.0 + ## 1.0.0 ### Major Changes diff --git a/exchanges/refocus/package.json b/exchanges/refocus/package.json index 36f0e51715..636bc79ce0 100644 --- a/exchanges/refocus/package.json +++ b/exchanges/refocus/package.json @@ -1,6 +1,6 @@ { "name": "@urql/exchange-refocus", - "version": "1.0.0", + "version": "1.0.1", "description": "An exchange that dispatches active operations when the window regains focus", "sideEffects": false, "homepage": "https://formidable.com/open-source/urql/docs/", @@ -53,7 +53,7 @@ "graphql": "^16.0.0" }, "dependencies": { - "@urql/core": ">=3.2.2", + "@urql/core": ">=4.0.0", "wonka": "^6.3.0" }, "publishConfig": { diff --git a/exchanges/request-policy/CHANGELOG.md b/exchanges/request-policy/CHANGELOG.md index deda3db766..1677fd749e 100644 --- a/exchanges/request-policy/CHANGELOG.md +++ b/exchanges/request-policy/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## 1.0.1 + +### Patch Changes + +- Upgrade to `wonka@^6.3.0` + Submitted by [@kitten](https://github.com/kitten) (See [#3104](https://github.com/urql-graphql/urql/pull/3104)) +- Add TSDocs for all exchanges, documenting API internals + Submitted by [@kitten](https://github.com/kitten) (See [#3072](https://github.com/urql-graphql/urql/pull/3072)) +- Updated dependencies (See [#3101](https://github.com/urql-graphql/urql/pull/3101), [#3033](https://github.com/urql-graphql/urql/pull/3033), [#3054](https://github.com/urql-graphql/urql/pull/3054), [#3053](https://github.com/urql-graphql/urql/pull/3053), [#3060](https://github.com/urql-graphql/urql/pull/3060), [#3081](https://github.com/urql-graphql/urql/pull/3081), [#3039](https://github.com/urql-graphql/urql/pull/3039), [#3104](https://github.com/urql-graphql/urql/pull/3104), [#3082](https://github.com/urql-graphql/urql/pull/3082), [#3097](https://github.com/urql-graphql/urql/pull/3097), [#3061](https://github.com/urql-graphql/urql/pull/3061), [#3055](https://github.com/urql-graphql/urql/pull/3055), [#3085](https://github.com/urql-graphql/urql/pull/3085), [#3079](https://github.com/urql-graphql/urql/pull/3079), [#3087](https://github.com/urql-graphql/urql/pull/3087), [#3059](https://github.com/urql-graphql/urql/pull/3059), [#3055](https://github.com/urql-graphql/urql/pull/3055), [#3057](https://github.com/urql-graphql/urql/pull/3057), [#3050](https://github.com/urql-graphql/urql/pull/3050), [#3062](https://github.com/urql-graphql/urql/pull/3062), [#3051](https://github.com/urql-graphql/urql/pull/3051), [#3043](https://github.com/urql-graphql/urql/pull/3043), [#3063](https://github.com/urql-graphql/urql/pull/3063), [#3054](https://github.com/urql-graphql/urql/pull/3054), [#3102](https://github.com/urql-graphql/urql/pull/3102), [#3097](https://github.com/urql-graphql/urql/pull/3097), [#3106](https://github.com/urql-graphql/urql/pull/3106), [#3058](https://github.com/urql-graphql/urql/pull/3058), and [#3062](https://github.com/urql-graphql/urql/pull/3062)) + - @urql/core@4.0.0 + ## 1.0.0 ### Major Changes diff --git a/exchanges/request-policy/package.json b/exchanges/request-policy/package.json index 1b9c0b2f31..6812e0ed3b 100644 --- a/exchanges/request-policy/package.json +++ b/exchanges/request-policy/package.json @@ -1,6 +1,6 @@ { "name": "@urql/exchange-request-policy", - "version": "1.0.0", + "version": "1.0.1", "description": "An exchange for operation request-policy upgrading in urql", "sideEffects": false, "homepage": "https://formidable.com/open-source/urql/docs/", @@ -51,7 +51,7 @@ "graphql": "^16.0.0" }, "dependencies": { - "@urql/core": ">=3.2.2", + "@urql/core": ">=4.0.0", "wonka": "^6.3.0" }, "publishConfig": { diff --git a/exchanges/retry/CHANGELOG.md b/exchanges/retry/CHANGELOG.md index bd242a0c5d..97085ac5d1 100644 --- a/exchanges/retry/CHANGELOG.md +++ b/exchanges/retry/CHANGELOG.md @@ -1,5 +1,21 @@ # Changelog +## 1.1.0 + +### Minor Changes + +- Update exchanges to drop redundant `share` calls, since `@urql/core`’s `composeExchanges` utility now automatically does so for us + Submitted by [@kitten](https://github.com/kitten) (See [#3082](https://github.com/urql-graphql/urql/pull/3082)) + +### Patch Changes + +- Upgrade to `wonka@^6.3.0` + Submitted by [@kitten](https://github.com/kitten) (See [#3104](https://github.com/urql-graphql/urql/pull/3104)) +- Add TSDocs for all exchanges, documenting API internals + Submitted by [@kitten](https://github.com/kitten) (See [#3072](https://github.com/urql-graphql/urql/pull/3072)) +- Updated dependencies (See [#3101](https://github.com/urql-graphql/urql/pull/3101), [#3033](https://github.com/urql-graphql/urql/pull/3033), [#3054](https://github.com/urql-graphql/urql/pull/3054), [#3053](https://github.com/urql-graphql/urql/pull/3053), [#3060](https://github.com/urql-graphql/urql/pull/3060), [#3081](https://github.com/urql-graphql/urql/pull/3081), [#3039](https://github.com/urql-graphql/urql/pull/3039), [#3104](https://github.com/urql-graphql/urql/pull/3104), [#3082](https://github.com/urql-graphql/urql/pull/3082), [#3097](https://github.com/urql-graphql/urql/pull/3097), [#3061](https://github.com/urql-graphql/urql/pull/3061), [#3055](https://github.com/urql-graphql/urql/pull/3055), [#3085](https://github.com/urql-graphql/urql/pull/3085), [#3079](https://github.com/urql-graphql/urql/pull/3079), [#3087](https://github.com/urql-graphql/urql/pull/3087), [#3059](https://github.com/urql-graphql/urql/pull/3059), [#3055](https://github.com/urql-graphql/urql/pull/3055), [#3057](https://github.com/urql-graphql/urql/pull/3057), [#3050](https://github.com/urql-graphql/urql/pull/3050), [#3062](https://github.com/urql-graphql/urql/pull/3062), [#3051](https://github.com/urql-graphql/urql/pull/3051), [#3043](https://github.com/urql-graphql/urql/pull/3043), [#3063](https://github.com/urql-graphql/urql/pull/3063), [#3054](https://github.com/urql-graphql/urql/pull/3054), [#3102](https://github.com/urql-graphql/urql/pull/3102), [#3097](https://github.com/urql-graphql/urql/pull/3097), [#3106](https://github.com/urql-graphql/urql/pull/3106), [#3058](https://github.com/urql-graphql/urql/pull/3058), and [#3062](https://github.com/urql-graphql/urql/pull/3062)) + - @urql/core@4.0.0 + ## 1.0.0 ### Major Changes diff --git a/exchanges/retry/package.json b/exchanges/retry/package.json index 944df216bf..136cdf2d84 100644 --- a/exchanges/retry/package.json +++ b/exchanges/retry/package.json @@ -1,6 +1,6 @@ { "name": "@urql/exchange-retry", - "version": "1.0.0", + "version": "1.1.0", "description": "An exchange for operation retry support in urql", "sideEffects": false, "homepage": "https://formidable.com/open-source/urql/docs/", @@ -51,7 +51,7 @@ "graphql": "^16.0.0" }, "dependencies": { - "@urql/core": ">=3.2.2", + "@urql/core": ">=4.0.0", "wonka": "^6.3.0" }, "publishConfig": { diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 0998ab7279..d7200193d3 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,93 @@ # @urql/core +## 4.0.0 + +### Major Changes + +- Remove `defaultExchanges` from `@urql/core` and make `exchanges` a required property on `Client` construction. + In doing so we make the `urql` package more tree-shakeable as the three default exchanges are in no code paths + meaning they can be removed if not used. + A migration would look as follows if you are currently creating a client without exchanges + ```js + import { createClient, cacheExchange, fetchExchange } from '@urql/core'; + + const client = createClient({ + url: '', + exchanges: [cacheExchange, fetchExchange], + }); + ``` + Submitted by [@JoviDeCroock](https://github.com/JoviDeCroock) (See [#3033](https://github.com/urql-graphql/urql/pull/3033)) +- Update `subscriptionExchange` to receive `FetchBody` instead. In the usual usage of `subscriptionExchange` (for instance with `graphql-ws`) you can expect no breaking changes. However, the `key` and `extensions` field has been removed and instead the `forwardSubscription` function receives the full `Operation` as a second argument + Submitted by [@kitten](https://github.com/kitten) (See [#3054](https://github.com/urql-graphql/urql/pull/3054)) +- Remove dependence on `graphql` package and replace it with `@0no-co/graphql.web`, which reduces the default bundlesize impact of `urql` packages to a minimum. All types should remain compatible, even if you use `graphql` elsewhere in your app, and if other dependencies are using `graphql` you may alias it to `graphql-web-lite` + Submitted by [@kitten](https://github.com/kitten) (See [#3097](https://github.com/urql-graphql/urql/pull/3097)) +- Update `OperationResult.hasNext` and `OperationResult.stale` to be required fields. If you have a custom exchange creating results, you'll have to add these fields or use the `makeResult`, `mergeResultPatch`, or `makeErrorResult` helpers + Submitted by [@kitten](https://github.com/kitten) (See [#3061](https://github.com/urql-graphql/urql/pull/3061)) +- Remove `getOperationName` export from `@urql/core` + Submitted by [@kitten](https://github.com/kitten) (See [#3062](https://github.com/urql-graphql/urql/pull/3062)) + +### Minor Changes + +- Return a new `OperationResultSource` from all `Client` methods (which replaces `PromisifiedSource` on shortcut methods). This allows not only `toPromise()` to be called, but it can also be used as an awaitable `PromiseLike` and has a `.subscribe(onResult)` method aliasing the subscribe utility from `wonka` + Submitted by [@kitten](https://github.com/kitten) (See [#3060](https://github.com/urql-graphql/urql/pull/3060)) +- Update `subscriptionExchange` to support incremental results out of the box. If a subscription proactively completes, results are also now updated with `hasNext: false` + Submitted by [@kitten](https://github.com/kitten) (See [#3055](https://github.com/urql-graphql/urql/pull/3055)) +- Implement `text/event-stream` response support. This generally adheres to the GraphQL SSE protocol and GraphQL Yoga push responses, and is an alternative to `multipart/mixed` + Submitted by [@kitten](https://github.com/kitten) (See [#3050](https://github.com/urql-graphql/urql/pull/3050)) +- Implement GraphQL Multipart Request support in `@urql/core`. This adds the File/Blob upload support to `@urql/core`, which effectively deprecates `@urql/exchange-multipart-fetch` + Submitted by [@kitten](https://github.com/kitten) (See [#3051](https://github.com/urql-graphql/urql/pull/3051)) +- Support `GraphQLRequest.extensions` as spec-extensions input to GraphQL requests + Submitted by [@kitten](https://github.com/kitten) (See [#3054](https://github.com/urql-graphql/urql/pull/3054)) +- Allow subscriptions to be handled by the `fetchExchange` when `fetchSubscriptions` is turned on + Submitted by [@kitten](https://github.com/kitten) (See [#3106](https://github.com/urql-graphql/urql/pull/3106)) +- Deprecate the `dedupExchange`. The functionality of deduplicating queries and subscriptions has now been moved into and absorbed by the `Client`. + Previously, the `Client` already started doing some work to share results between + queries, and to avoid dispatching operations as needed. It now only dispatches operations + strictly when the `dedupExchange` would allow so as well, moving its logic into the + `Client` + Submitted by [@kitten](https://github.com/kitten) (See [#3058](https://github.com/urql-graphql/urql/pull/3058)) + +### Patch Changes + +- Deduplicate operations as the `dedupExchange` did; by filtering out duplicate operations until either the original operation has been cancelled (teardown) or a first result (without `hasNext: true`) has come in + Submitted by [@kitten](https://github.com/kitten) (See [#3101](https://github.com/urql-graphql/urql/pull/3101)) +- ⚠️ Fix source maps included with recently published packages, which lost their `sourcesContent`, including additional source files, and had incorrect paths in some of them + Submitted by [@kitten](https://github.com/kitten) (See [#3053](https://github.com/urql-graphql/urql/pull/3053)) +- Allow `makeOperation` to be called with a partial `OperationContext` when it’s called to copy an operation. When it receives an `Operation` as a second argument now, the third argument, the context, will be spread into the prior `operation.context` + Submitted by [@kitten](https://github.com/kitten) (See [#3081](https://github.com/urql-graphql/urql/pull/3081)) +- Move `multipart/mixed` to end of `Accept` header to avoid cauing Yoga to unnecessarily use it + Submitted by [@JoviDeCroock](https://github.com/JoviDeCroock) (See [#3039](https://github.com/urql-graphql/urql/pull/3039)) +- Upgrade to `wonka@^6.3.0` + Submitted by [@kitten](https://github.com/kitten) (See [#3104](https://github.com/urql-graphql/urql/pull/3104)) +- Update `Exchange` contract and `composeExchanges` utility to remove the need to manually call `share` on either incoming `Source` or `forward()`’s `Source`. This is now taken care of internally in `composeExchanges` and should make it easier for you to create custom exchanges and for us to explain them + Submitted by [@kitten](https://github.com/kitten) (See [#3082](https://github.com/urql-graphql/urql/pull/3082)) +- Add support for `graphql`’s built-in `TypedQueryDocumentNode` typings for type inference + Submitted by [@kitten](https://github.com/kitten) (See [#3085](https://github.com/urql-graphql/urql/pull/3085)) +- Add missing type exports of SSR-related types (`SerializedResult`, `SSRExchangeParams`, `SSRExchange`, and `SSRData`) to `@urql/core`'s type exports + Submitted by [@kitten](https://github.com/kitten) (See [#3079](https://github.com/urql-graphql/urql/pull/3079)) +- Allow any object fitting the `GraphQLError` shape to rehydrate without passing through a `GraphQLError` constructor in `CombinedError` + Submitted by [@kitten](https://github.com/kitten) (See [#3087](https://github.com/urql-graphql/urql/pull/3087)) +- Add missing `hasNext` and `stale` passthroughs on caching exchanges + Submitted by [@kitten](https://github.com/kitten) (See [#3059](https://github.com/urql-graphql/urql/pull/3059)) +- ⚠️ Fix incremental results not merging `errors` from subsequent non-incremental results + Submitted by [@kitten](https://github.com/kitten) (See [#3055](https://github.com/urql-graphql/urql/pull/3055)) +- Add logic for `request.extensions.persistedQuery` to `@urql/core` to omit sending `query` as needed + Submitted by [@kitten](https://github.com/kitten) (See [#3057](https://github.com/urql-graphql/urql/pull/3057)) +- ⚠️ Fix incorrect operation name being picked from queries that contain multiple operations + Submitted by [@kitten](https://github.com/kitten) (See [#3062](https://github.com/urql-graphql/urql/pull/3062)) +- Replace fetch source implementation with async generator implementation, based on Wonka's `fromAsyncIterable`. + This also further hardens our support for the "Incremental Delivery" specification and + refactors its implementation and covers more edge cases + Submitted by [@kitten](https://github.com/kitten) (See [#3043](https://github.com/urql-graphql/urql/pull/3043)) +- Ensure network errors are always issued with `CombinedError`s, while downstream errors are re-thrown + Submitted by [@kitten](https://github.com/kitten) (See [#3063](https://github.com/urql-graphql/urql/pull/3063)) +- Refactor `Client` result source construction code and allow multiple mutation + results, if `result.hasNext` on a mutation result is set to `true`, indicating + deferred or streamed results + Submitted by [@kitten](https://github.com/kitten) (See [#3102](https://github.com/urql-graphql/urql/pull/3102)) +- Remove dependence on `import { visit } from 'graphql';` with smaller but functionally equivalent alternative + Submitted by [@kitten](https://github.com/kitten) (See [#3097](https://github.com/urql-graphql/urql/pull/3097)) + ## 3.2.2 ### Patch Changes diff --git a/packages/core/package.json b/packages/core/package.json index 3cf03437a5..46a4af1e7d 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@urql/core", - "version": "3.2.2", + "version": "4.0.0", "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/introspection/CHANGELOG.md b/packages/introspection/CHANGELOG.md index 1836fb8c4c..0c658e1bd0 100644 --- a/packages/introspection/CHANGELOG.md +++ b/packages/introspection/CHANGELOG.md @@ -1,5 +1,12 @@ # @urql/introspection +## 1.0.1 + +### Patch Changes + +- Add TSDocs to `@urql/*` packages + Submitted by [@kitten](https://github.com/kitten) (See [#3079](https://github.com/urql-graphql/urql/pull/3079)) + ## 1.0.0 ### Major Changes diff --git a/packages/introspection/package.json b/packages/introspection/package.json index 88223b4887..a67e1d40a2 100644 --- a/packages/introspection/package.json +++ b/packages/introspection/package.json @@ -1,6 +1,6 @@ { "name": "@urql/introspection", - "version": "1.0.0", + "version": "1.0.1", "description": "Utilities for dealing with Introspection Queries and Client Schemas", "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 335f68704a..7798a6ec65 100644 --- a/packages/next-urql/CHANGELOG.md +++ b/packages/next-urql/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 5.0.0 + +### Patch Changes + +- Add TSDocs to `@urql/*` packages + Submitted by [@kitten](https://github.com/kitten) (See [#3079](https://github.com/urql-graphql/urql/pull/3079)) +- Updated dependencies (See [#3053](https://github.com/urql-graphql/urql/pull/3053), [#3104](https://github.com/urql-graphql/urql/pull/3104), [#3095](https://github.com/urql-graphql/urql/pull/3095), [#3033](https://github.com/urql-graphql/urql/pull/3033), [#3103](https://github.com/urql-graphql/urql/pull/3103), and [#3079](https://github.com/urql-graphql/urql/pull/3079)) + - urql@4.0.0 + ## 4.0.3 ### Patch Changes diff --git a/packages/next-urql/package.json b/packages/next-urql/package.json index 465955347c..8d3a2450d2 100644 --- a/packages/next-urql/package.json +++ b/packages/next-urql/package.json @@ -1,6 +1,6 @@ { "name": "next-urql", - "version": "4.0.3", + "version": "5.0.0", "description": "Convenience wrappers for using urql with NextJS.", "sideEffects": false, "homepage": "https://formidable.com/open-source/urql/docs/", @@ -51,6 +51,6 @@ }, "peerDependencies": { "react": ">=16.8.0", - "urql": "^3.0.0" + "urql": "^4.0.0" } } diff --git a/packages/preact-urql/CHANGELOG.md b/packages/preact-urql/CHANGELOG.md index 3b72c91bf3..e5ebdac1dc 100644 --- a/packages/preact-urql/CHANGELOG.md +++ b/packages/preact-urql/CHANGELOG.md @@ -1,5 +1,28 @@ # @urql/preact +## 4.0.0 + +### Major Changes + +- Remove the default `Client` from `Context`. Previously, `urql` kept a legacy default client in its context, with default exchanges and calling an API at `/graphql`. This has now been removed and you will have to create your own `Client` if you were relying on this behaviour + Submitted by [@JoviDeCroock](https://github.com/JoviDeCroock) (See [#3033](https://github.com/urql-graphql/urql/pull/3033)) + +### Minor Changes + +- Allow mutations to update their results in bindings when `hasNext: true` is set, which indicates deferred or streamed results + Submitted by [@kitten](https://github.com/kitten) (See [#3103](https://github.com/urql-graphql/urql/pull/3103)) + +### Patch Changes + +- ⚠️ Fix source maps included with recently published packages, which lost their `sourcesContent`, including additional source files, and had incorrect paths in some of them + Submitted by [@kitten](https://github.com/kitten) (See [#3053](https://github.com/urql-graphql/urql/pull/3053)) +- Upgrade to `wonka@^6.3.0` + Submitted by [@kitten](https://github.com/kitten) (See [#3104](https://github.com/urql-graphql/urql/pull/3104)) +- Add TSDocs to all `urql` bindings packages + Submitted by [@kitten](https://github.com/kitten) (See [#3079](https://github.com/urql-graphql/urql/pull/3079)) +- Updated dependencies (See [#3101](https://github.com/urql-graphql/urql/pull/3101), [#3033](https://github.com/urql-graphql/urql/pull/3033), [#3054](https://github.com/urql-graphql/urql/pull/3054), [#3053](https://github.com/urql-graphql/urql/pull/3053), [#3060](https://github.com/urql-graphql/urql/pull/3060), [#3081](https://github.com/urql-graphql/urql/pull/3081), [#3039](https://github.com/urql-graphql/urql/pull/3039), [#3104](https://github.com/urql-graphql/urql/pull/3104), [#3082](https://github.com/urql-graphql/urql/pull/3082), [#3097](https://github.com/urql-graphql/urql/pull/3097), [#3061](https://github.com/urql-graphql/urql/pull/3061), [#3055](https://github.com/urql-graphql/urql/pull/3055), [#3085](https://github.com/urql-graphql/urql/pull/3085), [#3079](https://github.com/urql-graphql/urql/pull/3079), [#3087](https://github.com/urql-graphql/urql/pull/3087), [#3059](https://github.com/urql-graphql/urql/pull/3059), [#3055](https://github.com/urql-graphql/urql/pull/3055), [#3057](https://github.com/urql-graphql/urql/pull/3057), [#3050](https://github.com/urql-graphql/urql/pull/3050), [#3062](https://github.com/urql-graphql/urql/pull/3062), [#3051](https://github.com/urql-graphql/urql/pull/3051), [#3043](https://github.com/urql-graphql/urql/pull/3043), [#3063](https://github.com/urql-graphql/urql/pull/3063), [#3054](https://github.com/urql-graphql/urql/pull/3054), [#3102](https://github.com/urql-graphql/urql/pull/3102), [#3097](https://github.com/urql-graphql/urql/pull/3097), [#3106](https://github.com/urql-graphql/urql/pull/3106), [#3058](https://github.com/urql-graphql/urql/pull/3058), and [#3062](https://github.com/urql-graphql/urql/pull/3062)) + - @urql/core@4.0.0 + ## 3.0.3 ### Patch Changes diff --git a/packages/preact-urql/package.json b/packages/preact-urql/package.json index 67d7d6876e..d729d641be 100644 --- a/packages/preact-urql/package.json +++ b/packages/preact-urql/package.json @@ -1,6 +1,6 @@ { "name": "@urql/preact", - "version": "3.0.3", + "version": "4.0.0", "description": "A highly customizable and versatile GraphQL client for Preact", "sideEffects": false, "homepage": "https://formidable.com/open-source/urql/docs/", @@ -57,7 +57,7 @@ "preact": ">= 10.0.0" }, "dependencies": { - "@urql/core": "^3.2.2", + "@urql/core": "^4.0.0", "wonka": "^6.3.0" }, "publishConfig": { diff --git a/packages/react-urql/CHANGELOG.md b/packages/react-urql/CHANGELOG.md index c20fe763ef..590a1029c0 100644 --- a/packages/react-urql/CHANGELOG.md +++ b/packages/react-urql/CHANGELOG.md @@ -1,5 +1,30 @@ # urql +## 4.0.0 + +### Major Changes + +- Remove the default `Client` from `Context`. Previously, `urql` kept a legacy default client in its context, with default exchanges and calling an API at `/graphql`. This has now been removed and you will have to create your own `Client` if you were relying on this behaviour + Submitted by [@JoviDeCroock](https://github.com/JoviDeCroock) (See [#3033](https://github.com/urql-graphql/urql/pull/3033)) + +### Minor Changes + +- Allow mutations to update their results in bindings when `hasNext: true` is set, which indicates deferred or streamed results + Submitted by [@kitten](https://github.com/kitten) (See [#3103](https://github.com/urql-graphql/urql/pull/3103)) + +### Patch Changes + +- ⚠️ Fix source maps included with recently published packages, which lost their `sourcesContent`, including additional source files, and had incorrect paths in some of them + Submitted by [@kitten](https://github.com/kitten) (See [#3053](https://github.com/urql-graphql/urql/pull/3053)) +- Upgrade to `wonka@^6.3.0` + Submitted by [@kitten](https://github.com/kitten) (See [#3104](https://github.com/urql-graphql/urql/pull/3104)) +- Silence "Cannot update a component (%s) while rendering a different component (%s)." warning forcefully + Submitted by [@kitten](https://github.com/kitten) (See [#3095](https://github.com/urql-graphql/urql/pull/3095)) +- Add TSDocs to all `urql` bindings packages + Submitted by [@kitten](https://github.com/kitten) (See [#3079](https://github.com/urql-graphql/urql/pull/3079)) +- Updated dependencies (See [#3101](https://github.com/urql-graphql/urql/pull/3101), [#3033](https://github.com/urql-graphql/urql/pull/3033), [#3054](https://github.com/urql-graphql/urql/pull/3054), [#3053](https://github.com/urql-graphql/urql/pull/3053), [#3060](https://github.com/urql-graphql/urql/pull/3060), [#3081](https://github.com/urql-graphql/urql/pull/3081), [#3039](https://github.com/urql-graphql/urql/pull/3039), [#3104](https://github.com/urql-graphql/urql/pull/3104), [#3082](https://github.com/urql-graphql/urql/pull/3082), [#3097](https://github.com/urql-graphql/urql/pull/3097), [#3061](https://github.com/urql-graphql/urql/pull/3061), [#3055](https://github.com/urql-graphql/urql/pull/3055), [#3085](https://github.com/urql-graphql/urql/pull/3085), [#3079](https://github.com/urql-graphql/urql/pull/3079), [#3087](https://github.com/urql-graphql/urql/pull/3087), [#3059](https://github.com/urql-graphql/urql/pull/3059), [#3055](https://github.com/urql-graphql/urql/pull/3055), [#3057](https://github.com/urql-graphql/urql/pull/3057), [#3050](https://github.com/urql-graphql/urql/pull/3050), [#3062](https://github.com/urql-graphql/urql/pull/3062), [#3051](https://github.com/urql-graphql/urql/pull/3051), [#3043](https://github.com/urql-graphql/urql/pull/3043), [#3063](https://github.com/urql-graphql/urql/pull/3063), [#3054](https://github.com/urql-graphql/urql/pull/3054), [#3102](https://github.com/urql-graphql/urql/pull/3102), [#3097](https://github.com/urql-graphql/urql/pull/3097), [#3106](https://github.com/urql-graphql/urql/pull/3106), [#3058](https://github.com/urql-graphql/urql/pull/3058), and [#3062](https://github.com/urql-graphql/urql/pull/3062)) + - @urql/core@4.0.0 + ## 3.0.4 ### Patch Changes diff --git a/packages/react-urql/package.json b/packages/react-urql/package.json index bcb5f85d27..1e08ae37fa 100644 --- a/packages/react-urql/package.json +++ b/packages/react-urql/package.json @@ -1,6 +1,6 @@ { "name": "urql", - "version": "3.0.4", + "version": "4.0.0", "description": "A highly customizable and versatile GraphQL client for React", "sideEffects": false, "homepage": "https://formidable.com/open-source/urql/docs/", @@ -60,7 +60,7 @@ "react": ">= 16.8.0" }, "dependencies": { - "@urql/core": "^3.2.2", + "@urql/core": "^4.0.0", "wonka": "^6.3.0" } } diff --git a/packages/storage-rn/CHANGELOG.md b/packages/storage-rn/CHANGELOG.md index 9d2f8fdaa3..235c27c3eb 100644 --- a/packages/storage-rn/CHANGELOG.md +++ b/packages/storage-rn/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 1.0.1 + +### Patch Changes + +- Add TSDocs to `@urql/*` packages + Submitted by [@kitten](https://github.com/kitten) (See [#3079](https://github.com/urql-graphql/urql/pull/3079)) + ## 1.0.0 ### Major Changes diff --git a/packages/storage-rn/package.json b/packages/storage-rn/package.json index 5082c53f96..89e93fec6f 100644 --- a/packages/storage-rn/package.json +++ b/packages/storage-rn/package.json @@ -1,6 +1,6 @@ { "name": "@urql/storage-rn", - "version": "1.0.0", + "version": "1.0.1", "sideEffects": false, "description": "Graphcache offline storage for React Native", "homepage": "https://formidable.com/open-source/urql/docs/", diff --git a/packages/svelte-urql/CHANGELOG.md b/packages/svelte-urql/CHANGELOG.md index 1d45b843d7..b0fcf8668e 100644 --- a/packages/svelte-urql/CHANGELOG.md +++ b/packages/svelte-urql/CHANGELOG.md @@ -1,5 +1,30 @@ # @urql/svelte +## 4.0.0 + +### Major Changes + +- Update `OperationResult.hasNext` and `OperationResult.stale` to be required fields. If you have a custom exchange creating results, you'll have to add these fields or use the `makeResult`, `mergeResultPatch`, or `makeErrorResult` helpers + Submitted by [@kitten](https://github.com/kitten) (See [#3061](https://github.com/urql-graphql/urql/pull/3061)) +- Move `handler`, which combines subscription events, from `mutationStore` to `subscriptionStore`. It’s accidentally been defined and implemented on the wrong store and was meant to be on `subscriptionStore` + Submitted by [@kitten](https://github.com/kitten) (See [#3078](https://github.com/urql-graphql/urql/pull/3078)) + +### Minor Changes + +- Allow mutations to update their results in bindings when `hasNext: true` is set, which indicates deferred or streamed results + Submitted by [@kitten](https://github.com/kitten) (See [#3103](https://github.com/urql-graphql/urql/pull/3103)) + +### Patch Changes + +- ⚠️ Fix source maps included with recently published packages, which lost their `sourcesContent`, including additional source files, and had incorrect paths in some of them + Submitted by [@kitten](https://github.com/kitten) (See [#3053](https://github.com/urql-graphql/urql/pull/3053)) +- Upgrade to `wonka@^6.3.0` + Submitted by [@kitten](https://github.com/kitten) (See [#3104](https://github.com/urql-graphql/urql/pull/3104)) +- Add TSDocs to all `urql` bindings packages + Submitted by [@kitten](https://github.com/kitten) (See [#3079](https://github.com/urql-graphql/urql/pull/3079)) +- Updated dependencies (See [#3101](https://github.com/urql-graphql/urql/pull/3101), [#3033](https://github.com/urql-graphql/urql/pull/3033), [#3054](https://github.com/urql-graphql/urql/pull/3054), [#3053](https://github.com/urql-graphql/urql/pull/3053), [#3060](https://github.com/urql-graphql/urql/pull/3060), [#3081](https://github.com/urql-graphql/urql/pull/3081), [#3039](https://github.com/urql-graphql/urql/pull/3039), [#3104](https://github.com/urql-graphql/urql/pull/3104), [#3082](https://github.com/urql-graphql/urql/pull/3082), [#3097](https://github.com/urql-graphql/urql/pull/3097), [#3061](https://github.com/urql-graphql/urql/pull/3061), [#3055](https://github.com/urql-graphql/urql/pull/3055), [#3085](https://github.com/urql-graphql/urql/pull/3085), [#3079](https://github.com/urql-graphql/urql/pull/3079), [#3087](https://github.com/urql-graphql/urql/pull/3087), [#3059](https://github.com/urql-graphql/urql/pull/3059), [#3055](https://github.com/urql-graphql/urql/pull/3055), [#3057](https://github.com/urql-graphql/urql/pull/3057), [#3050](https://github.com/urql-graphql/urql/pull/3050), [#3062](https://github.com/urql-graphql/urql/pull/3062), [#3051](https://github.com/urql-graphql/urql/pull/3051), [#3043](https://github.com/urql-graphql/urql/pull/3043), [#3063](https://github.com/urql-graphql/urql/pull/3063), [#3054](https://github.com/urql-graphql/urql/pull/3054), [#3102](https://github.com/urql-graphql/urql/pull/3102), [#3097](https://github.com/urql-graphql/urql/pull/3097), [#3106](https://github.com/urql-graphql/urql/pull/3106), [#3058](https://github.com/urql-graphql/urql/pull/3058), and [#3062](https://github.com/urql-graphql/urql/pull/3062)) + - @urql/core@4.0.0 + ## 3.0.4 ### Patch Changes diff --git a/packages/svelte-urql/package.json b/packages/svelte-urql/package.json index 57a6a86606..f1ec46659a 100644 --- a/packages/svelte-urql/package.json +++ b/packages/svelte-urql/package.json @@ -1,6 +1,6 @@ { "name": "@urql/svelte", - "version": "3.0.4", + "version": "4.0.0", "description": "A highly customizable and versatile GraphQL client for Svelte", "sideEffects": false, "homepage": "https://formidable.com/open-source/urql/docs/", @@ -51,7 +51,7 @@ "svelte": "^3.0.0" }, "dependencies": { - "@urql/core": "^3.2.2", + "@urql/core": "^4.0.0", "wonka": "^6.3.0" }, "devDependencies": { diff --git a/packages/vue-urql/CHANGELOG.md b/packages/vue-urql/CHANGELOG.md index 6293988949..41d80cb5fa 100644 --- a/packages/vue-urql/CHANGELOG.md +++ b/packages/vue-urql/CHANGELOG.md @@ -1,5 +1,23 @@ # @urql/vue +## 1.1.0 + +### Minor Changes + +- Allow mutations to update their results in bindings when `hasNext: true` is set, which indicates deferred or streamed results + Submitted by [@kitten](https://github.com/kitten) (See [#3103](https://github.com/urql-graphql/urql/pull/3103)) + +### Patch Changes + +- ⚠️ Fix source maps included with recently published packages, which lost their `sourcesContent`, including additional source files, and had incorrect paths in some of them + Submitted by [@kitten](https://github.com/kitten) (See [#3053](https://github.com/urql-graphql/urql/pull/3053)) +- Upgrade to `wonka@^6.3.0` + Submitted by [@kitten](https://github.com/kitten) (See [#3104](https://github.com/urql-graphql/urql/pull/3104)) +- Add TSDocs to all `urql` bindings packages + Submitted by [@kitten](https://github.com/kitten) (See [#3079](https://github.com/urql-graphql/urql/pull/3079)) +- Updated dependencies (See [#3101](https://github.com/urql-graphql/urql/pull/3101), [#3033](https://github.com/urql-graphql/urql/pull/3033), [#3054](https://github.com/urql-graphql/urql/pull/3054), [#3053](https://github.com/urql-graphql/urql/pull/3053), [#3060](https://github.com/urql-graphql/urql/pull/3060), [#3081](https://github.com/urql-graphql/urql/pull/3081), [#3039](https://github.com/urql-graphql/urql/pull/3039), [#3104](https://github.com/urql-graphql/urql/pull/3104), [#3082](https://github.com/urql-graphql/urql/pull/3082), [#3097](https://github.com/urql-graphql/urql/pull/3097), [#3061](https://github.com/urql-graphql/urql/pull/3061), [#3055](https://github.com/urql-graphql/urql/pull/3055), [#3085](https://github.com/urql-graphql/urql/pull/3085), [#3079](https://github.com/urql-graphql/urql/pull/3079), [#3087](https://github.com/urql-graphql/urql/pull/3087), [#3059](https://github.com/urql-graphql/urql/pull/3059), [#3055](https://github.com/urql-graphql/urql/pull/3055), [#3057](https://github.com/urql-graphql/urql/pull/3057), [#3050](https://github.com/urql-graphql/urql/pull/3050), [#3062](https://github.com/urql-graphql/urql/pull/3062), [#3051](https://github.com/urql-graphql/urql/pull/3051), [#3043](https://github.com/urql-graphql/urql/pull/3043), [#3063](https://github.com/urql-graphql/urql/pull/3063), [#3054](https://github.com/urql-graphql/urql/pull/3054), [#3102](https://github.com/urql-graphql/urql/pull/3102), [#3097](https://github.com/urql-graphql/urql/pull/3097), [#3106](https://github.com/urql-graphql/urql/pull/3106), [#3058](https://github.com/urql-graphql/urql/pull/3058), and [#3062](https://github.com/urql-graphql/urql/pull/3062)) + - @urql/core@4.0.0 + ## 1.0.5 ### Patch Changes diff --git a/packages/vue-urql/package.json b/packages/vue-urql/package.json index a262e4bd3e..c9a2472706 100644 --- a/packages/vue-urql/package.json +++ b/packages/vue-urql/package.json @@ -1,6 +1,6 @@ { "name": "@urql/vue", - "version": "1.0.5", + "version": "1.1.0", "description": "A highly customizable and versatile GraphQL client for vue", "sideEffects": false, "homepage": "https://formidable.com/open-source/urql/docs/", @@ -57,7 +57,7 @@ "vue": "^2.7.0 || ^3.0.0" }, "dependencies": { - "@urql/core": "^3.2.2", + "@urql/core": "^4.0.0", "wonka": "^6.3.0" }, "publishConfig": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e1b2b05bc3..5a44b2d86e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -127,7 +127,7 @@ importers: exchanges/auth: specifiers: - '@urql/core': '>=3.2.2' + '@urql/core': '>=4.0.0' graphql: ^16.6.0 wonka: ^6.3.0 dependencies: @@ -138,7 +138,7 @@ importers: exchanges/context: specifiers: - '@urql/core': '>=3.2.2' + '@urql/core': '>=4.0.0' graphql: ^16.6.0 wonka: ^6.3.0 dependencies: @@ -149,7 +149,7 @@ importers: exchanges/execute: specifiers: - '@urql/core': '>=3.2.2' + '@urql/core': '>=4.0.0' graphql: ^16.6.0 wonka: ^6.3.0 dependencies: @@ -162,7 +162,7 @@ importers: specifiers: '@0no-co/graphql.web': ^1.0.0 '@cypress/react': ^7.0.2 - '@urql/core': '>=3.2.2' + '@urql/core': '>=4.0.0' '@urql/exchange-execute': workspace:* '@urql/introspection': workspace:* cypress: ^12.8.1 @@ -187,7 +187,7 @@ importers: exchanges/multipart-fetch: specifiers: - '@urql/core': '>=3.2.2' + '@urql/core': '>=4.0.0' extract-files: ^11.0.0 graphql: ^16.6.0 wonka: ^6.3.0 @@ -200,7 +200,7 @@ importers: exchanges/persisted: specifiers: - '@urql/core': '>=3.2.2' + '@urql/core': '>=4.0.0' graphql: ^16.6.0 wonka: ^6.3.0 dependencies: @@ -211,7 +211,7 @@ importers: exchanges/populate: specifiers: - '@urql/core': '>=3.2.2' + '@urql/core': '>=4.0.0' graphql: ^16.6.0 wonka: ^6.3.0 dependencies: @@ -223,7 +223,7 @@ importers: exchanges/refocus: specifiers: '@types/react': ^17.0.39 - '@urql/core': '>=3.2.2' + '@urql/core': '>=4.0.0' graphql: ^16.6.0 wonka: ^6.3.0 dependencies: @@ -235,7 +235,7 @@ importers: exchanges/request-policy: specifiers: - '@urql/core': '>=3.2.2' + '@urql/core': '>=4.0.0' graphql: ^16.6.0 wonka: ^6.3.0 dependencies: @@ -246,7 +246,7 @@ importers: exchanges/retry: specifiers: - '@urql/core': '>=3.2.2' + '@urql/core': '>=4.0.0' graphql: ^16.6.0 wonka: ^6.3.0 dependencies: @@ -307,7 +307,7 @@ importers: packages/preact-urql: specifiers: '@testing-library/preact': ^2.0.0 - '@urql/core': ^3.2.2 + '@urql/core': ^4.0.0 graphql: ^16.6.0 preact: ^10.13.0 wonka: ^6.3.0 @@ -327,7 +327,7 @@ importers: '@testing-library/react-hooks': ^5.1.2 '@types/react': ^17.0.39 '@types/react-test-renderer': ^17.0.1 - '@urql/core': ^3.2.2 + '@urql/core': ^4.0.0 cypress: ^12.8.1 graphql: ^16.6.0 react: ^17.0.2 @@ -443,7 +443,7 @@ importers: packages/svelte-urql: specifiers: - '@urql/core': ^3.2.2 + '@urql/core': ^4.0.0 graphql: ^16.6.0 svelte: ^3.20.0 wonka: ^6.3.0 @@ -456,7 +456,7 @@ importers: packages/vue-urql: specifiers: - '@urql/core': ^3.2.2 + '@urql/core': ^4.0.0 '@vue/test-utils': ^2.3.0 graphql: ^16.6.0 vue: ^3.2.47