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.
For a full announcement on what all of these changes mean, please check: https://gist.github.com/kitten/7e55e48628eb76a8d65ec8bac8669a1f 🎉
Releases
@urql/exchange-graphcache@4.0.0
Major Changes
GraphQLError
(via aCombinedError
) it checks whether theGraphQLError
'spath
matches up withnull
values in thedata
. Anynull
values that the write operation now sees in the data will be replaced with a "cache miss" value (i.e.undefined
) when it has an associated error. This means that errored fields from your GraphQL API will be marked as uncached and won't be cached. Instead the client will now attempt a refetch of the data so that errors aren't preventing future refetches or with schema awareness it will attempt a refetch automatically. Additionally, theupdates
functions will now be able to check whether the current field has any errors associated with it withinfo.error
, by @kitten (See #1356)Minor Changes
schema
option to be passed with a partial introspection result that only containsqueryType
,mutationType
, andsubscriptionType
with their respective names. This allows you to pass{ __schema: { queryType: { name: 'Query' } } }
and the likes to Graphcache'scacheExchange
to alter the default root names without enabling full schema awareness, by @kitten (See #1379)Patch Changes
@urql/core@2.0.0
Major Changes
pollInterval
feature fromOperationContext
. Instead consider using a source that usesWonka.interval
andWonka.switchMap
overclient.query()
's source, by @kitten (See #1374)operationName
property fromOperation
s. The newOperation.kind
property is now preferred. If you're creating new operations you may also use themakeOperation
utility instead.When upgrading
@urql/core
please ensure that your package manager didn't install any duplicates of it. You may deduplicate it manually usingnpx yarn-deduplicate
(for Yarn) ornpm dedupe
(for npm), by @kitten (See #1357)Minor Changes
OperationResult
asstale: true
if it's being reexecuted asnetwork-only
operation to give bindings immediate feedback on background refetches, by @kitten (See #1375)@urql/preact@2.0.0
Major Changes
pollInterval
option fromuseQuery
. Instead please consider usinguseEffect
callingexecuteQuery
on an interval, by @kitten (See #1374)Minor Changes
operationName
property fromOperation
s. The newOperation.kind
property is now preferred. If you're creating new operations you may also use themakeOperation
utility instead.When upgrading
@urql/core
please ensure that your package manager didn't install any duplicates of it. You may deduplicate it manually usingnpx yarn-deduplicate
(for Yarn) ornpm dedupe
(for npm), by @kitten (See #1357)Patch Changes
urql@2.0.0
Major Changes
pollInterval
option fromuseQuery
. Instead please consider usinguseEffect
callingexecuteQuery
on an interval, by @kitten (See #1374)Minor Changes
useQuery
to apply a consistent Suspense cache (torn down queries will still eliminate stale values) and support all Concurrent Mode edge cases. This work is based onuseMutableSource
's mechanisms and allows React to properly fork lanes since no implicit state exists outside ofuseState
in the implementation. TheuseSubscription
hook has been updated similarly without a cache or retrieving values on mount, by @kitten (See #1335)operationName
property fromOperation
s. The newOperation.kind
property is now preferred. If you're creating new operations you may also use themakeOperation
utility instead.When upgrading
@urql/core
please ensure that your package manager didn't install any duplicates of it. You may deduplicate it manually usingnpx yarn-deduplicate
(for Yarn) ornpm dedupe
(for npm), by @kitten (See #1357)Patch Changes
@urql/exchange-persisted-fetch@1.3.0
Minor Changes
enforcePersistedQueries
option topersistedFetchExchange
, which disables automatic persisted queries and retry logic, and instead assumes that persisted queries will be handled like normal GraphQL requests, by @kitten (See #1358)Patch Changes
@urql/introspection@0.2.0
Minor Changes
minifyIntrospectionQuery
utility to remove additional information on arguments and to filter out schema metadata types, like__Field
and others, by @kitten (See #1351)@urql/svelte@1.2.0
Minor Changes
operationName
property fromOperation
s. The newOperation.kind
property is now preferred. If you're creating new operations you may also use themakeOperation
utility instead.When upgrading
@urql/core
please ensure that your package manager didn't install any duplicates of it. You may deduplicate it manually usingnpx yarn-deduplicate
(for Yarn) ornpm dedupe
(for npm), by @kitten (See #1357)Patch Changes
@urql/vue@0.3.0
Minor Changes
pollInterval
option fromuseQuery
. Please consider adding an interval manually callingexecuteQuery()
, by @kitten (See #1374)operationName
property fromOperation
s. The newOperation.kind
property is now preferred. If you're creating new operations you may also use themakeOperation
utility instead.When upgrading
@urql/core
please ensure that your package manager didn't install any duplicates of it. You may deduplicate it manually usingnpx yarn-deduplicate
(for Yarn) ornpm dedupe
(for npm), by @kitten (See #1357)Patch Changes
@urql/exchange-request-policy@0.1.1
Patch Changes
requestPolicyExchange
and time being stored by last issuance rather than last result, by @kitten (See #1377)next-urql@3.0.0
Patch Changes