fix(deps): update dependency @urql/exchange-auth to v2 #284
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:
1.0.0
->2.2.0
Release Notes
urql-graphql/urql (@urql/exchange-auth)
v2.2.0
Compare Source
Minor Changes
@urql/core
as a peer dependency as well as a regular dependencySubmitted by @kitten (See #3579)
v2.1.6
Compare Source
Patch Changes
authExchange()
will now block and pass on errors if the initialization function passed to it fails, and will retry indefinitely. It’ll also output a warning for these cases, as the initialization function (i.e.authExchange(async (utils) => { /*...*/ })
) is not expected to reject/throwSubmitted by @kitten (See #3343)
v2.1.5
Compare Source
Patch Changes
refreshAuth
rejections and pass the resulting error on toOperationResult
s on the authentication queueSubmitted by @kitten (See #3307)
v2.1.4
Compare Source
Patch Changes
authExchange
’s retry queueSubmitted by @kitten (See #3235)
v2.1.3
Compare Source
Patch Changes
Submitted by @kitten (See #3201)
v2.1.2
Compare Source
Patch Changes
Submitted by @kitten (See #3180)
v2.1.1
Compare Source
Patch Changes
utilities.mutate()
erroneously being retried and sent again like a regular operationSubmitted by @JoviDeCroock (See #3164)
v2.1.0
Compare Source
Minor Changes
share
calls, since@urql/core
’scomposeExchanges
utility now automatically does so for usSubmitted by @kitten (See #3082)
Patch Changes
sourcesContent
, including additional source files, and had incorrect paths in some of themSubmitted by @kitten (See #3053)
wonka@^6.3.0
Submitted by @kitten (See #3104)
didAuthError
keeps returning trueSubmitted by @JoviDeCroock (See #3112)
v2.0.0
Compare Source
Major Changes
authExchange
API, which removes the need for anauthState
(i.e. an internal authentication state) and removesgetAuth
, replacing it with a separaterefreshAuth
flow.The new API requires you to now pass an initializer function. This function receives a
utils
object with
utils.mutate
andutils.appendHeaders
utility methods.It must return the configuration object, wrapped in a promise, and this configuration is similar to
what we had before, if you're migrating to this. Its
refreshAuth
method is now only called afterauthentication errors occur and not on initialization. Instead, it's now recommended that you write
your initialization logic in-line.
Patch Changes
willAuthError
not being called for operations that are waiting on the authentication state to update. This can actually lead to a common issue where operations that came in during the authentication initialization (on startup) will never havewillAuthError
called on them. This can cause an easy mistake where the initial authentication state is never checked to be validSubmitted by @kitten (See #3017)
Configuration
📅 Schedule: Branch creation - "before 2am" in timezone Asia/Tokyo, Automerge - "before 2am" in timezone Asia/Tokyo.
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.