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/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/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/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..5fae25dd92 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 [#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), [#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), [#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 2cc41ac9a7..edecc8f5a2 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.0.0" }, "peerDependencies": { diff --git a/exchanges/context/CHANGELOG.md b/exchanges/context/CHANGELOG.md index 8c30f86a21..5068b95a5a 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 [#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), [#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), [#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 6b5623d6db..ebf5c7c1e6 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.0.0" }, "peerDependencies": { diff --git a/exchanges/execute/CHANGELOG.md b/exchanges/execute/CHANGELOG.md index e738feee35..ae54f0b6e2 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 [#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), [#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), [#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 749c76cd44..d7dc59c57d 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.0.0" }, "peerDependencies": { diff --git a/exchanges/graphcache/CHANGELOG.md b/exchanges/graphcache/CHANGELOG.md index 5d63fe0418..060d0d7718 100644 --- a/exchanges/graphcache/CHANGELOG.md +++ b/exchanges/graphcache/CHANGELOG.md @@ -1,5 +1,32 @@ # @urql/exchange-graphcache +## 6.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)) + +### 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 [#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), [#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), [#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 979aafe35a..bb4a7160c9 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", @@ -62,7 +62,7 @@ "prepublishOnly": "run-s clean build" }, "dependencies": { - "@urql/core": ">=3.2.2", + "@urql/core": ">=4.0.0", "wonka": "^6.0.0" }, "peerDependencies": { diff --git a/exchanges/multipart-fetch/CHANGELOG.md b/exchanges/multipart-fetch/CHANGELOG.md index 60cef1388e..ba8b04a6d7 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 [#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), [#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), [#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 9504b75b8b..70414434db 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.0.0" }, diff --git a/exchanges/persisted/CHANGELOG.md b/exchanges/persisted/CHANGELOG.md index 4041b69c53..366c4e07ca 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 [#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), [#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), [#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 ffddae4ea2..b99ed45537 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.0.0" }, "peerDependencies": { diff --git a/exchanges/populate/CHANGELOG.md b/exchanges/populate/CHANGELOG.md index bb42340c28..d1f28f2399 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 [#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), [#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), [#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 4e741acfc3..8fca6d528a 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.0.0" }, "peerDependencies": { diff --git a/exchanges/refocus/CHANGELOG.md b/exchanges/refocus/CHANGELOG.md index 1cca1ed51d..0ca3499ef3 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 [#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), [#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), [#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 2091bd8d42..24f9886a19 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/", @@ -56,7 +56,7 @@ "graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" }, "dependencies": { - "@urql/core": ">=3.2.2", + "@urql/core": ">=4.0.0", "wonka": "^6.0.0" }, "publishConfig": { diff --git a/exchanges/request-policy/CHANGELOG.md b/exchanges/request-policy/CHANGELOG.md index deda3db766..37726b50bf 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 [#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), [#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), [#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 4ab414e436..b1cc8e9214 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/", @@ -54,7 +54,7 @@ "graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" }, "dependencies": { - "@urql/core": ">=3.2.2", + "@urql/core": ">=4.0.0", "wonka": "^6.0.0" }, "publishConfig": { diff --git a/exchanges/retry/CHANGELOG.md b/exchanges/retry/CHANGELOG.md index bd242a0c5d..72435d4b73 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 [#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), [#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), [#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 7644c5c93a..ead05cd2ea 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/", @@ -54,7 +54,7 @@ "graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" }, "dependencies": { - "@urql/core": ">=3.2.2", + "@urql/core": ">=4.0.0", "wonka": "^6.0.0" }, "publishConfig": { diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 0998ab7279..0d5a9c4157 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,79 @@ # @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)) +- 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 + +- ⚠️ 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)) + ## 3.2.2 ### Patch Changes diff --git a/packages/core/package.json b/packages/core/package.json index 8d3dbb5ce7..82be862b10 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..1f504f0405 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 [#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), [#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), [#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 f89f0f592a..453dc83fa8 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/", @@ -58,7 +58,7 @@ "preact": ">= 10.0.0" }, "dependencies": { - "@urql/core": "^3.2.2", + "@urql/core": "^4.0.0", "wonka": "^6.0.0" }, "publishConfig": { diff --git a/packages/react-urql/CHANGELOG.md b/packages/react-urql/CHANGELOG.md index c20fe763ef..e03f707272 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 [#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), [#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), [#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 c229cc9bc5..d0e03665f2 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/", @@ -61,7 +61,7 @@ "react": ">= 16.8.0" }, "dependencies": { - "@urql/core": "^3.2.2", + "@urql/core": "^4.0.0", "wonka": "^6.0.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..1eb65299ae 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 [#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), [#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), [#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 6af683c296..14d504dfba 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/", @@ -52,7 +52,7 @@ "svelte": "^3.0.0" }, "dependencies": { - "@urql/core": "^3.2.2", + "@urql/core": "^4.0.0", "wonka": "^6.0.0" }, "devDependencies": { diff --git a/packages/vue-urql/CHANGELOG.md b/packages/vue-urql/CHANGELOG.md index 6293988949..f52cec7845 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 [#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), [#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), [#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 3664cb40d7..52ea522458 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/", @@ -58,7 +58,7 @@ "vue": "^2.7.0 || ^3.0.0" }, "dependencies": { - "@urql/core": "^3.2.2", + "@urql/core": "^4.0.0", "wonka": "^6.0.0" }, "publishConfig": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f313512613..49fcf02428 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -125,7 +125,7 @@ importers: exchanges/auth: specifiers: - '@urql/core': '>=3.2.2' + '@urql/core': '>=4.0.0' graphql: ^16.6.0 wonka: ^6.2.4 dependencies: @@ -136,7 +136,7 @@ importers: exchanges/context: specifiers: - '@urql/core': '>=3.2.2' + '@urql/core': '>=4.0.0' graphql: ^16.6.0 wonka: ^6.2.4 dependencies: @@ -147,7 +147,7 @@ importers: exchanges/execute: specifiers: - '@urql/core': '>=3.2.2' + '@urql/core': '>=4.0.0' graphql: ^16.6.0 wonka: ^6.2.4 dependencies: @@ -159,7 +159,7 @@ importers: exchanges/graphcache: specifiers: '@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 @@ -183,7 +183,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.2.4 @@ -196,7 +196,7 @@ importers: exchanges/persisted: specifiers: - '@urql/core': '>=3.2.2' + '@urql/core': '>=4.0.0' graphql: ^16.6.0 wonka: ^6.2.4 dependencies: @@ -207,7 +207,7 @@ importers: exchanges/populate: specifiers: - '@urql/core': '>=3.2.2' + '@urql/core': '>=4.0.0' graphql: ^16.6.0 wonka: ^6.2.4 dependencies: @@ -219,7 +219,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.2.4 dependencies: @@ -231,7 +231,7 @@ importers: exchanges/request-policy: specifiers: - '@urql/core': '>=3.2.2' + '@urql/core': '>=4.0.0' graphql: ^16.6.0 wonka: ^6.2.4 dependencies: @@ -242,7 +242,7 @@ importers: exchanges/retry: specifiers: - '@urql/core': '>=3.2.2' + '@urql/core': '>=4.0.0' graphql: ^16.6.0 wonka: ^6.2.4 dependencies: @@ -304,7 +304,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.2.4 @@ -324,7 +324,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 @@ -440,7 +440,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.2.4 @@ -453,7 +453,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 @@ -9702,6 +9702,8 @@ packages: /match-sorter/3.1.1: resolution: {integrity: sha512-Qlox3wRM/Q4Ww9rv1cBmYKNJwWVX/WC+eA3+1S3Fv4EOhrqyp812ZEfVFKQk0AP6RfzmPUUOwEZBbJ8IRt8SOw==} + dependencies: + remove-accents: 0.4.2 bundledDependencies: - remove-accents @@ -12696,6 +12698,9 @@ packages: unified: 8.4.2 dev: false + /remove-accents/0.4.2: + resolution: {integrity: sha512-7pXIJqJOq5tFgG1A2Zxti3Ht8jJF337m4sowbuHsW30ZnkQFnDzy9qBNhgzX8ZLW4+UBcXiiR7SwR6pokHsxiA==} + /remove-trailing-separator/1.1.0: resolution: {integrity: sha512-/hS+Y0u3aOfIETiaiirUFwDBDzmXPvO+jAfKTitUngIPzdKc6Z0LoFjM/CK5PL4C+eKwHohlHAb6H0VFfmmUsw==}