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] about 1 year ago

Minor Changes

  • Allow persisted query logic to be skipped by the persistedExchange if the passed generateHash function resolves to a nullish value. This allows (A)PQ to be selectively disabled for individual operations
    Submitted by @kitten (See #3324)

Patch Changes

urql - @urql/[email protected]

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

Minor Changes

  • Implement local directives. It’s now possible to add client-only directives to queries by adding them to the cacheExchange’s new directives 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 the directives config are
    executed. This means it’s now possible to use @_relayPagination for example, by passing adding
    the 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 https://github.com/urql-graphql/urql/pull/3306)

Patch Changes

  • Use new FormattedNode / formatDocument functionality added to @urql/core to slightly speed up directive processing by using the client-side _directives dictionary that formatDocument adds
    Submitted by @kitten (See #3317)
  • Allow offlineExchange to once again issue all request policies, instead of mapping them to cache-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 again
    Submitted by @kitten (See #3308)
  • 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)
  • Updated dependencies (See #3317 and #3308)
urql - @urql/[email protected]

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

Patch Changes

  • Updated peer dependency range to include support for Svelte ^4.0.0
    Submitted by @ategen3rt (See #3302)
urql - @urql/[email protected]

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

Patch Changes

  • Re-order maskTypename to apply masking earlier in the chain
    Submitted by @kitten (See #3298)
  • ⚠️ Fix ssrExchange not formatting query documents using formatDocument. Without this call we'd run the risk of not having __typename available on the client-side when rehydrating
    Submitted by @kitten (See #3288)
  • Add deprecation notice for maskTypename option.
    Masking typenames in a result is no longer recommended. It’s only
    useful when multiple pre-conditions are applied and inferior to
    mapping to an input object manually
    Submitted by @kitten (See #3299)
urql - @urql/[email protected]

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

Patch Changes

  • ⚠️ Fix persistedExchange ignoring teardowns in its initial operation mapping. Since the hash function is promisified, which defers any persisted operation, it needs to respect teardowns
    Submitted by @kitten (See #3312)
urql - @urql/[email protected]

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

Patch Changes

  • Handle refreshAuth rejections and pass the resulting error on to OperationResults on the authentication queue
    Submitted by @kitten (See #3307)
urql - @urql/[email protected]

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

Patch Changes

  • ⚠️ Fix untranspiled class property initializer syntax being leftover in build output. (Regression in #3053)
    Submitted by @kitten (See #3275)
urql - @urql/[email protected]

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

Patch Changes

  • ⚠️ Fix info.parentKey not being correctly set for updaters or optimistic updaters
    Submitted by @kitten (See #3267)
urql - [email protected]

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

Patch Changes

  • Switch react imports to namespace imports, and update build process for CommonJS outputs to interoperate with __esModule marked modules again
    Submitted by @kitten (See #3251)
urql - @urql/[email protected]

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

Patch Changes

  • Apply shallow difference patch from React bindings to @urql/preact (See: #3195)
    Submitted by @kitten (See #3266)
urql - @urql/[email protected]

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

Patch Changes

  • Switch react imports to namespace imports, and update build process for CommonJS outputs to interoperate with __esModule marked modules again
    Submitted by @kitten (See #3251)
urql - @urql/[email protected]

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

Patch Changes

  • Make "Invalid undefined" warning heuristic smarter and allow for partial optimistic results. Previously, when a partial optimistic result would be passed, a warning would be issued, and in production, fields would be deleted from the cache. Instead, we now only issue a warning if these fields aren't cached already
    Submitted by @kitten (See #3264)
  • Optimistic mutation results should never result in dependent operations being blocked
    Submitted by @kitten (See #3265)
urql - [email protected]

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

Patch Changes

  • Switch react imports to namespace imports, and update build process for CommonJS outputs to interoperate with __esModule marked modules again
    Submitted by @kitten (See #3251)
urql - @urql/[email protected]

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

Patch Changes

  • Add missing fetchSubscriptions entry to OperationContext. The Client’s fetchSubscriptions now works properly and can be used to execute subscriptions as multipart/event-stream requests
    Submitted by @kitten (See #3244)
  • ⚠️ Fix fetchSource not working for subscriptions since hasNext isn’t necessarily set
    Submitted by @kitten (See #3244)
urql - @urql/[email protected]

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

Patch Changes

  • Return AbortController invocation to previous behaviour where it used to be more forceful. It will now properly abort outside of when our generator yields results, and hence now also cancels requests again that have already delivered headers but are currently awaiting a response body
    Submitted by @kitten (See #3239)
urql - @urql/[email protected]

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

Patch Changes

  • ⚠️ Fix torn down queries not being removed from offlineExchange’s failed queue on rehydration
    Submitted by @kitten (See #3236)
urql - @urql/[email protected]

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

Patch Changes

  • ⚠️ Fix regression that caused teardowns to be ignored by an authExchange’s retry queue
    Submitted by @kitten (See #3235)
urql - @urql/[email protected]

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

Patch Changes

  • Update build process to generate correct source maps
    Submitted by @kitten (See #3201)
urql - @urql/[email protected]

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

Patch Changes

  • Respect additionalTypenames on subscriptions and re-execute queries for them as well, as one would intuitively expect
    Submitted by @kitten (See #3230)
  • Update build process to generate correct source maps
    Submitted by @kitten (See #3201)
  • Don't allow isSubscriptionOperation option in subscriptionExchange to include teardown operations, to avoid confusion
    Submitted by @kitten (See #3206)
urql - @urql/[email protected]

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

Patch Changes

  • Update build process to generate correct source maps
    Submitted by @kitten (See #3201)
  • Prevent multiple operations being executed in a row when multiple inputs change simultaneously (e.g. isPaused and query inputs)
    Submitted by @kitten (See #3231)