urql

The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.

MIT License

Downloads
11.4M
Stars
8.5K
Committers
249

Bot releases are visible (Hide)

urql - @urql/[email protected]

Published by github-actions[bot] 10 months ago

Patch Changes

  • ⚠️ Fix incorrect JSON stringification of objects from different JS contexts. This could lead to invalid variables being generated in the Vercel Edge runtime specifically
    Submitted by @SoraKumo001 (See #3453)
urql - @urql/[email protected]

Published by github-actions[bot] 11 months ago

Minor Changes

  • Allow the user to debug cache-misses by means of the new 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
    Submitted by @JoviDeCroock (See #3446)
  • Add onCacheHydrated as an option for the StorageAdapter
    Submitted by @JoviDeCroock (See #3428)
  • Add optional logger to the options, this allows you to filter out warnings or disable them all together
    Submitted by @JoviDeCroock (See #3444)
urql - @urql/[email protected]

Published by github-actions[bot] 11 months ago

Patch Changes

  • Warn about cached persisted-miss results in development, when a 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 appropriately
    Submitted by @kitten (See #3442)
urql - [email protected]

Published by github-actions[bot] 11 months ago

Patch Changes

urql - @urql/[email protected]

Published by github-actions[bot] 11 months ago

Patch Changes

urql - @urql/[email protected]

Published by github-actions[bot] 11 months ago

Minor Changes

  • Try to parse text/plain content-type as JSON before bailing out with an error
    Submitted by @JoviDeCroock (See #3430)
urql - @urql/[email protected]

Published by github-actions[bot] about 1 year ago

Minor Changes

  • Support a nonce prop on DataHydrationContextProvider that passes it onto its script tags' attributes
    Submitted by @Enalmada (See #3398)

Patch Changes

  • ⚠️ Fix invalid CJS by importing react with import-all semantics
    Submitted by @JoviDeCroock (See #3405)
urql - @urql/[email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • Implement new @defer / @stream transport protocol spec changes
    Submitted by @JoviDeCroock (See #3389)
  • Support non spec-compliant error bodies, i.e. the Shopify API does return errors but as an object. Adding
    a check whether we are really dealing with an Array of errors enables this
    Submitted by @JoviDeCroock (See #3395)
  • ⚠️ Fix preferGetMethod: 'force' | 'within-url-limit' not being applied correctly by the Client
    Submitted by @Burbenog (See #3403)
urql - @urql/[email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • ⚠️ Fix missing teardown operation handling in the ssrExchange. This could lead to duplicate network operations being executed
    Submitted by @kitten (See #3386)
urql - @urql/[email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • ⚠️ Fix a typo that caused an inverted condition, for checking owned data, to cause incorrect results when handling null values and encountering them first
    Submitted by @kitten (See #3371)
urql - @urql/[email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • Explicitly unblock client.reexecuteOperation calls to allow stalled operations from continuing and re-executing. Previously, this could cause @urql/exchange-graphcache to stall if an optimistic mutation led to a cache miss
    Submitted by @kitten (See #3363)
urql - @urql/[email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • ⚠️ Fix extra variables in mutation results regressing by a change made in #3317. The original operation wasn't being preserved anymore
    Submitted by @kitten (See #3356)
urql - @urql/[email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • Add case for subscriptionExchange to handle GraphQLError[] received in the error observer callback.
    Note: This doesn't strictly check for the GraphQLError shape and only checks for arrays and receiving errors in the ExecutionResult on the next observer callback is preferred and recommended for transports
    Submitted by @kitten (See #3346)
urql - @urql/[email protected]

Published by github-actions[bot] about 1 year ago

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/throw
    Submitted by @kitten (See #3343)
urql - @urql/[email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • Reset 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
    Submitted by @kitten (See #3340)
  • ⚠️ Fix @_optional directive not setting info.partial = true on cache miss and fix usage of info.parentKey and info.parentFieldKey usage in default directives
    Submitted by @kitten (See #3338)
  • Replace implementation for @_optional and @_required with built-in handling inside cache reads to allow @_optional to work for nested selection sets
    Submitted by @kitten (See #3341)
urql - @urql/[email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • ⚠️ Fix 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
    Submitted by @kitten (See #3331)
urql - @urql/[email protected]

Published by github-actions[bot] about 1 year ago

Minor Changes

  • Allow scalar values on the parent to be accessed from parent[info.fieldName] consistently. Prior to this change parent[fieldAlias] would get populated, which wouldn’t always result in a field that’s consistently accessible
    Submitted by @kitten (See #3336)
  • Allow cache.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
    Submitted by @kitten (See #3333)

Patch Changes

  • Record a dependency when __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 dependency
    Submitted by @kitten (See #3335)
  • ⚠️ Fix cases where ResolveInfo’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 key
    Submitted by @kitten (See #3336)
urql - [email protected]

Published by github-actions[bot] about 1 year ago

Patch Changes

  • ⚠️ Fix edge case that causes execute functions from 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 cases
    Submitted by @kitten (See #3323)
  • Updated dependencies (See #3317 and #3308)
urql - @urql/[email protected]

Published by github-actions[bot] about 1 year ago

Major Changes

  • Create @urql/next which is a package meant to support Next 13 and
    the React 18 features contained within.
    For server components we have @urql/next/rsc and for client components
    just @urql/next
    Submitted by @JoviDeCroock (See #3214)
urql - @urql/[email protected]

Published by github-actions[bot] about 1 year ago

Minor Changes

  • Update 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
    Submitted by @kitten (See #3317)

Patch Changes

  • Add OperationContext.optimistic flag as an internal indication on whether a mutation triggered an optimistic update in @urql/exchange-graphcache's cacheExchange
    Submitted by @kitten (See #3308)