The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
MIT License
Bot releases are visible (Hide)
Published by github-actions[bot] 10 months ago
Published by github-actions[bot] 11 months ago
logger
interface on the cacheExchange
. A field miss will dispatch a debug
log when it's not marked with @_optional
or when it's non-nullable in the schema
onCacheHydrated
as an option for the StorageAdapter
logger
to the options, this allows you to filter out warnings or disable them all togetherPublished by github-actions[bot] 11 months ago
persistedExchange()
sees a persisted-miss error for a result that's already seen a persisted-miss error (i.e. two misses). This shouldn't happen unless something is caching persisted errors and we should warn about this appropriatelyPublished by github-actions[bot] 11 months ago
context.suspense
and fallback to checking client.suspense
Published by github-actions[bot] 11 months ago
context.suspense
and fallback to checking client.suspense
Published by github-actions[bot] 11 months ago
text/plain
content-type as JSON before bailing out with an errorPublished by github-actions[bot] about 1 year ago
nonce
prop on DataHydrationContextProvider
that passes it onto its script tags' attributesPublished by github-actions[bot] about 1 year ago
@defer
/ @stream
transport protocol spec changeserrors
but as an object. AddingpreferGetMethod: 'force' | 'within-url-limit'
not being applied correctly by the Client
Published by github-actions[bot] about 1 year ago
Published by github-actions[bot] about 1 year ago
Published by github-actions[bot] about 1 year ago
Published by github-actions[bot] about 1 year ago
Published by github-actions[bot] about 1 year ago
subscriptionExchange
to handle GraphQLError[]
received in the error
observer callback.GraphQLError
shape and only checks for arrays and receiving errors in the ExecutionResult
on the next
observer callback is preferred and recommended for transportsPublished by github-actions[bot] about 1 year ago
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/throwPublished by github-actions[bot] about 1 year ago
partial
result marker when reading from selections when a child value sees a cache miss. This only affects resolvers on child values enabling info.partial
while a parent may abort early instead@_optional
directive not setting info.partial = true
on cache miss and fix usage of info.parentKey
and info.parentFieldKey
usage in default directives@_optional
and @_required
with built-in handling inside cache reads to allow @_optional
to work for nested selection setsPublished by github-actions[bot] about 1 year ago
queryStore
and subscriptionStore
not subscribing when writable
calls its StartStopNotifier
. This caused both stores to be inactive and become unresponsive when they’ve been unsubscribed from once, as they wouldn’t be able to restart their subscriptions to the Client
Published by github-actions[bot] about 1 year ago
parent[info.fieldName]
consistently. Prior to this change parent[fieldAlias]
would get populated, which wouldn’t always result in a field that’s consistently accessiblecache.resolve
to return undefined
when a value is not cached to make it easier to cause a cache miss in resolvers. Reminder: Returning undefined
from a resolver means a field is uncached, while returning null
means that a field’s value is null
without causing a cache miss__typename
field is read. This removes a prior, outdated exception to avoid confusion when using cache.resolve(entity, '__typename')
which doesn't cause the cache to record a dependencyResolveInfo
’s parentFieldKey
was incorrectly populated with a key that isn’t a field key (allowing for cache.resolve(info.parentKey, info.parentFieldKey)
to be possible) but was instead set to info.parentKey
combined with the field keyPublished by github-actions[bot] about 1 year ago
useQuery
and useSubscription
to fail when they’re called in their state after a render that changes pause
. This would previously cause internal dependencies to be outdated and the source to be discarded immediately in some casesPublished by github-actions[bot] about 1 year ago
@urql/next
which is a package meant to support Next 13 and@urql/next/rsc
and for client components@urql/next
Published by github-actions[bot] about 1 year ago
formatDocument
to output FormattedNode
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 Graphcache