chore(deps): update dependency @urql/core to v4#411
Merged
Conversation
🦋 Changeset detectedLatest commit: c2beb16 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Collaborator
Contributor
Author
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. ⚠ Warning: custom changes will be lost. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^2.4.0 || ^3.0.0->^2.4.0 || ^3.0.0 || ^4.0.0Release Notes
urql-graphql/urql
v4.0.0Compare Source
Major Changes
defaultExchangesfrom@urql/coreand makeexchangesa required property onClientconstruction.In doing so we make the
urqlpackage more tree-shakeable as the three default exchanges are in no code pathsmeaning they can be removed if not used.
A migration would look as follows if you are currently creating a client without exchanges
subscriptionExchangeto receiveFetchBodyinstead. In the usual usage ofsubscriptionExchange(for instance withgraphql-ws) you can expect no breaking changes. However, thekeyandextensionsfield has been removed and instead theforwardSubscriptionfunction receives the fullOperationas a second argumentSubmitted by @kitten (See #3054)
graphqlpackage and replace it with@0no-co/graphql.web, which reduces the default bundlesize impact ofurqlpackages to a minimum. All types should remain compatible, even if you usegraphqlelsewhere in your app, and if other dependencies are usinggraphqlyou may alias it tographql-web-liteSubmitted by @kitten (See #3097)
OperationResult.hasNextandOperationResult.staleto be required fields. If you have a custom exchange creating results, you'll have to add these fields or use themakeResult,mergeResultPatch, ormakeErrorResulthelpersSubmitted by @kitten (See #3061)
getOperationNameexport from@urql/coreSubmitted by @kitten (See #3062)
Minor Changes
OperationResultSourcefrom allClientmethods (which replacesPromisifiedSourceon shortcut methods). This allows not onlytoPromise()to be called, but it can also be used as an awaitablePromiseLikeand has a.subscribe(onResult)method aliasing the subscribe utility fromwonkaSubmitted by @kitten (See #3060)
subscriptionExchangeto support incremental results out of the box. If a subscription proactively completes, results are also now updated withhasNext: falseSubmitted by @kitten (See #3055)
text/event-streamresponse support. This generally adheres to the GraphQL SSE protocol and GraphQL Yoga push responses, and is an alternative tomultipart/mixedSubmitted by @kitten (See #3050)
@urql/core. This adds the File/Blob upload support to@urql/core, which effectively deprecates@urql/exchange-multipart-fetchSubmitted by @kitten (See #3051)
GraphQLRequest.extensionsas spec-extensions input to GraphQL requestsSubmitted by @kitten (See #3054)
fetchExchangewhenfetchSubscriptionsis turned onSubmitted by @kitten (See #3106)
dedupExchange. The functionality of deduplicating queries and subscriptions has now been moved into and absorbed by theClient.Previously, the
Clientalready started doing some work to share results betweenqueries, and to avoid dispatching operations as needed. It now only dispatches operations
strictly when the
dedupExchangewould allow so as well, moving its logic into theClientSubmitted by @kitten (See #3058)
Patch Changes
dedupExchangedid; by filtering out duplicate operations until either the original operation has been cancelled (teardown) or a first result (withouthasNext: true) has come inSubmitted by @kitten (See #3101)
sourcesContent, including additional source files, and had incorrect paths in some of themSubmitted by @kitten (See #3053)
makeOperationto be called with a partialOperationContextwhen it’s called to copy an operation. When it receives anOperationas a second argument now, the third argument, the context, will be spread into the prioroperation.contextSubmitted by @kitten (See #3081)
multipart/mixedto end ofAcceptheader to avoid cauing Yoga to unnecessarily use itSubmitted by @JoviDeCroock (See #3039)
wonka@^6.3.0Submitted by @kitten (See #3104)
Exchangecontract andcomposeExchangesutility to remove the need to manually callshareon either incomingSource<Operation>orforward()’sSource<OperationResult>. This is now taken care of internally incomposeExchangesand should make it easier for you to create custom exchanges and for us to explain themSubmitted by @kitten (See #3082)
graphql’s built-inTypedQueryDocumentNodetypings for type inferenceSubmitted by @kitten (See #3085)
SerializedResult,SSRExchangeParams,SSRExchange, andSSRData) to@urql/core's type exportsSubmitted by @kitten (See #3079)
GraphQLErrorshape to rehydrate without passing through aGraphQLErrorconstructor inCombinedErrorSubmitted by @kitten (See #3087)
hasNextandstalepassthroughs on caching exchangesSubmitted by @kitten (See #3059)
errorsfrom subsequent non-incremental resultsSubmitted by @kitten (See #3055)
request.extensions.persistedQueryto@urql/coreto omit sendingqueryas neededSubmitted by @kitten (See #3057)
Submitted by @kitten (See #3062)
fromAsyncIterable.This also further hardens our support for the "Incremental Delivery" specification and
refactors its implementation and covers more edge cases
Submitted by @kitten (See #3043)
CombinedErrors, while downstream errors are re-thrownSubmitted by @kitten (See #3063)
Clientresult source construction code and allow multiple mutationresults, if
result.hasNexton a mutation result is set totrue, indicatingdeferred or streamed results
Submitted by @kitten (See #3102)
import { visit } from 'graphql';with smaller but functionally equivalent alternativeSubmitted by @kitten (See #3097)
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.