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 was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@urql/[email protected]
Major Changes
@urql/next
which is a package meant to support Next 13 andthe React 18 features contained within.
For server components we have
@urql/next/rsc
and for client componentsjust
@urql/next
Submitted by @JoviDeCroock (See #3214)
@urql/[email protected]
Minor Changes
cacheExchange
’s newdirectives
option.Directives accept an object of their arguments and return a resolver. When a field is annotated with
a resolver, e.g.
@_optional
or@_required
, their resolvers from thedirectives
config areexecuted. This means it’s now possible to use
@_relayPagination
for example, by passing addingthe
relayPagination
helper to the config.Due to the change in #3317, any directive in
queries that’s prefixed with an underscore (
_
) is only visible to Graphcache and not the API.Submitted by undefined (See feat(graphcache): local directives #3306)
Patch Changes
FormattedNode
/formatDocument
functionality added to@urql/core
to slightly speed up directive processing by using the client-side_directives
dictionary thatformatDocument
addsSubmitted by @kitten (See #3317)
offlineExchange
to once again issue all request policies, instead of mapping them tocache-first
. When replaying operations after rehydrating it will now prioritise network policies, and before rehydrating receiving a network result will prevent a network request from being issued againSubmitted by @kitten (See #3308)
OperationContext.optimistic
flag as an internal indication on whether a mutation triggered an optimistic update in@urql/exchange-graphcache
'scacheExchange
Submitted by @kitten (See #3308)
@urql/[email protected]
Minor Changes
persistedExchange
if the passedgenerateHash
function resolves to a nullish value. This allows (A)PQ to be selectively disabled for individual operationsSubmitted by @kitten (See #3324)
Patch Changes
@urql/[email protected]
Minor Changes
formatDocument
to outputFormattedNode
type mapping. The formatter will now annotate added__typename
fields with_generated: true
, place selection nodes' directives onto a_directives
dictionary, and will filter directives to not include"_"
underscore prefixed directives in the final query. This prepares us for a feature that allows enhanced client-side directives in GraphcacheSubmitted by @kitten (See #3317)
Patch Changes
OperationContext.optimistic
flag as an internal indication on whether a mutation triggered an optimistic update in@urql/exchange-graphcache
'scacheExchange
Submitted by @kitten (See #3308)
[email protected]
Patch Changes
useQuery
anduseSubscription
to fail when they’re called in their state after a render that changespause
. This would previously cause internal dependencies to be outdated and the source to be discarded immediately in some casesSubmitted by @kitten (See #3323)