From cebecdfb7f0dd04a4842eda884b8fe042570c6a5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 27 Mar 2023 15:56:03 +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/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/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/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/violet-kings-fold.md | 5 -- .changeset/wise-cherries-juggle.md | 10 --- .changeset/wise-hairs-pump.md | 12 ---- .changeset/young-lamps-help.md | 6 -- exchanges/auth/CHANGELOG.md | 14 +++++ exchanges/auth/package.json | 4 +- exchanges/context/CHANGELOG.md | 14 +++++ exchanges/context/package.json | 4 +- exchanges/execute/CHANGELOG.md | 16 +++++ exchanges/execute/package.json | 4 +- exchanges/graphcache/CHANGELOG.md | 29 +++++++++ exchanges/graphcache/package.json | 4 +- exchanges/multipart-fetch/CHANGELOG.md | 14 +++++ exchanges/multipart-fetch/package.json | 4 +- exchanges/persisted/CHANGELOG.md | 23 +++++++ exchanges/persisted/package.json | 4 +- exchanges/populate/CHANGELOG.md | 9 +++ exchanges/populate/package.json | 4 +- exchanges/refocus/CHANGELOG.md | 9 +++ exchanges/refocus/package.json | 4 +- exchanges/request-policy/CHANGELOG.md | 9 +++ exchanges/request-policy/package.json | 4 +- exchanges/retry/CHANGELOG.md | 14 +++++ exchanges/retry/package.json | 4 +- packages/core/CHANGELOG.md | 84 ++++++++++++++++++++++++++ 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 | 16 +++++ packages/preact-urql/package.json | 4 +- packages/react-urql/CHANGELOG.md | 18 ++++++ packages/react-urql/package.json | 4 +- packages/storage-rn/CHANGELOG.md | 7 +++ packages/storage-rn/package.json | 2 +- packages/svelte-urql/CHANGELOG.md | 18 ++++++ packages/svelte-urql/package.json | 4 +- packages/vue-urql/CHANGELOG.md | 11 ++++ packages/vue-urql/package.json | 4 +- pnpm-lock.yaml | 28 ++++----- 77 files changed, 368 insertions(+), 299 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/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/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/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/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/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/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/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/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/exchanges/auth/CHANGELOG.md b/exchanges/auth/CHANGELOG.md index dd24bb2ed4..698e57ef1d 100644 --- a/exchanges/auth/CHANGELOG.md +++ b/exchanges/auth/CHANGELOG.md @@ -1,5 +1,19 @@ # 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)) +- 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), [#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), [#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 86094cbeb2..de43e6f1bd 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.2.6" }, "devDependencies": { diff --git a/exchanges/context/CHANGELOG.md b/exchanges/context/CHANGELOG.md index 8c30f86a21..9e62a69f4e 100644 --- a/exchanges/context/CHANGELOG.md +++ b/exchanges/context/CHANGELOG.md @@ -1,5 +1,19 @@ # 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 + +- 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), [#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), [#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 ba08b27a7a..697e9f286d 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.2.6" }, "devDependencies": { diff --git a/exchanges/execute/CHANGELOG.md b/exchanges/execute/CHANGELOG.md index e738feee35..474d6184ff 100644 --- a/exchanges/execute/CHANGELOG.md +++ b/exchanges/execute/CHANGELOG.md @@ -1,5 +1,21 @@ # 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 + +- 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), [#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), [#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 242e35385f..1ca03a627e 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.2.6" }, "peerDependencies": { diff --git a/exchanges/graphcache/CHANGELOG.md b/exchanges/graphcache/CHANGELOG.md index 5d63fe0418..65f4ec456d 100644 --- a/exchanges/graphcache/CHANGELOG.md +++ b/exchanges/graphcache/CHANGELOG.md @@ -1,5 +1,34 @@ # @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)) +- 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), [#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), [#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 2a3ac6f5c0..4e6e029e11 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.2.6" }, "devDependencies": { diff --git a/exchanges/multipart-fetch/CHANGELOG.md b/exchanges/multipart-fetch/CHANGELOG.md index 60cef1388e..0796a42db5 100644 --- a/exchanges/multipart-fetch/CHANGELOG.md +++ b/exchanges/multipart-fetch/CHANGELOG.md @@ -1,5 +1,19 @@ # @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 + +- 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), [#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), [#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 b36d41eca1..d5a374b150 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.2.6" }, diff --git a/exchanges/persisted/CHANGELOG.md b/exchanges/persisted/CHANGELOG.md index 4041b69c53..20ca9ca537 100644 --- a/exchanges/persisted/CHANGELOG.md +++ b/exchanges/persisted/CHANGELOG.md @@ -1,5 +1,28 @@ # @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)) +- 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), [#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), [#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 855ea4e637..c4e22199f7 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.2.6" }, "devDependencies": { diff --git a/exchanges/populate/CHANGELOG.md b/exchanges/populate/CHANGELOG.md index bb42340c28..44f87d5547 100644 --- a/exchanges/populate/CHANGELOG.md +++ b/exchanges/populate/CHANGELOG.md @@ -1,5 +1,14 @@ # @urql/exchange-populate +## 1.1.1 + +### Patch Changes + +- 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), [#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), [#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 e4f0772f3a..e1552b563f 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.2.6" }, "peerDependencies": { diff --git a/exchanges/refocus/CHANGELOG.md b/exchanges/refocus/CHANGELOG.md index 1cca1ed51d..8cc7bc2ffa 100644 --- a/exchanges/refocus/CHANGELOG.md +++ b/exchanges/refocus/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 1.0.1 + +### Patch Changes + +- 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), [#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), [#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 5a628b0794..84ca035cd3 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.2.6" }, "publishConfig": { diff --git a/exchanges/request-policy/CHANGELOG.md b/exchanges/request-policy/CHANGELOG.md index deda3db766..1c693bbf35 100644 --- a/exchanges/request-policy/CHANGELOG.md +++ b/exchanges/request-policy/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 1.0.1 + +### Patch Changes + +- 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), [#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), [#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 7c004ad6a7..9b2029f611 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.2.6" }, "publishConfig": { diff --git a/exchanges/retry/CHANGELOG.md b/exchanges/retry/CHANGELOG.md index bd242a0c5d..8390297784 100644 --- a/exchanges/retry/CHANGELOG.md +++ b/exchanges/retry/CHANGELOG.md @@ -1,5 +1,19 @@ # 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 + +- 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), [#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), [#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 63ecb3b2a2..1b7a35ecde 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.2.6" }, "publishConfig": { diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 0998ab7279..03fcb0753c 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,89 @@ # @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)) +- 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)) +- 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 969d1da69e..8932256cce 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..704f7f4550 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), [#3095](https://github.com/urql-graphql/urql/pull/3095), [#3033](https://github.com/urql-graphql/urql/pull/3033), 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..c919042e88 100644 --- a/packages/preact-urql/CHANGELOG.md +++ b/packages/preact-urql/CHANGELOG.md @@ -1,5 +1,21 @@ # @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)) + +### 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)) +- 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), [#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), [#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 cc1f2e9a68..c7887053b7 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.2.6" }, "publishConfig": { diff --git a/packages/react-urql/CHANGELOG.md b/packages/react-urql/CHANGELOG.md index c20fe763ef..50877bb599 100644 --- a/packages/react-urql/CHANGELOG.md +++ b/packages/react-urql/CHANGELOG.md @@ -1,5 +1,23 @@ # 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)) + +### 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)) +- 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), [#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), [#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 9ab79dc2c6..f9b6e1237a 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.2.6" } } 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..9d6d98689a 100644 --- a/packages/svelte-urql/CHANGELOG.md +++ b/packages/svelte-urql/CHANGELOG.md @@ -1,5 +1,23 @@ # @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)) + +### 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)) +- 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), [#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), [#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 1377ea1238..d87b337d72 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.2.6" }, "devDependencies": { diff --git a/packages/vue-urql/CHANGELOG.md b/packages/vue-urql/CHANGELOG.md index 6293988949..ae117df9b5 100644 --- a/packages/vue-urql/CHANGELOG.md +++ b/packages/vue-urql/CHANGELOG.md @@ -1,5 +1,16 @@ # @urql/vue +## 1.0.6 + +### 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)) +- 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), [#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), [#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 d082090b80..823d009989 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.0.6", "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.2.6" }, "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