Skip to content

Releases

@urql/exchange-graphcache@9.0.2

Choose a tag to compare

@github-actions github-actions released this 02 Oct 04:49
Immutable release. Only release title and notes can be modified.
60b6978

Patch Changes

  • Defer requests that subscription results cause for queries that already have a request in flight. Previously, a burst of subscription events updating a slow query could send a duplicate request for every other event. The query is now refetched once, after its in-flight request completes
    Submitted by @JoviDeCroock (See #3912)
  • Mark cached results of queries as stale while a network request for them is in flight. Previously, when a mutation updated a network-only query while its request was in flight, the query's cached result looked final, so toPromise() resolved with it before the request completed
    Submitted by @JoviDeCroock (See #3913)

urql@5.0.4

Choose a tag to compare

@github-actions github-actions released this 21 Aug 17:08
Immutable release. Only release title and notes can be modified.
1eb11fc

Patch Changes

  • ⚠️ Fix suspense cache entries getting poisoned when an operation ends without a result. When an operation was torn down while a useQuery was suspended, its suspense promise could never resolve and was re-thrown on every future render, permanently stuck on its Suspense fallback. Similarly, a settled promise entry would be re-thrown on every render, locking React into an infinite render loop. Such entries are now evicted from the suspense cache and the query is executed again
    Submitted by @cornedor (See #3898)

@urql/core@6.0.3

Choose a tag to compare

@github-actions github-actions released this 22 Jun 10:46
Immutable release. Only release title and notes can be modified.
d510a9a

Patch Changes

  • Drop internal type switch between graphql and @0no-co/graphql.web's types, since the latter now does this already automatically
    Submitted by @kitten (See #3893)

urql@5.0.3

Choose a tag to compare

@github-actions github-actions released this 15 Jun 17:41
Immutable release. Only release title and notes can be modified.
15f622c

Patch Changes

  • ⚠️ Fix React Suspense error-boundary resets reusing cached error results instead of retrying the query
    Submitted by @JoviDeCroock (See #3887)
  • Updated dependencies (See #3879, #3881, #3885, and #3886)
    • @urql/core@6.0.2

@urql/vue@2.1.1

Choose a tag to compare

@github-actions github-actions released this 15 Jun 17:41
Immutable release. Only release title and notes can be modified.
15f622c

Patch Changes

  • Stop useQuery from re-executing (and hitting the network) during SSR hydration when it's awaited for Suspense. Awaiting the query subscribed to the operation a second time, which re-dispatched it after the ssrExchange result had already been consumed, triggering a redundant network request even with staleWhileRevalidate: false. The awaited promise now resolves with the already-settled result instead of re-subscribing
    Submitted by @JoviDeCroock (See #3884)
  • ⚠️ Fix await useQuery() in Vue to wait on the composable's existing reactive state instead of creating an additional query source subscription
    Submitted by @JoviDeCroock (See #3890)
  • Updated dependencies (See #3879, #3881, #3885, and #3886)
    • @urql/core@6.0.2

@urql/next@2.0.1

Choose a tag to compare

@github-actions github-actions released this 15 Jun 17:41
Immutable release. Only release title and notes can be modified.
15f622c

Patch Changes

  • Remove the invalid exports field from the generated subpath package.json files (e.g. @urql/exchange-graphcache/extras, @urql/exchange-graphcache/default-storage, @urql/core/internal, @urql/next/rsc). These targets pointed at the parent dist/ directory (../dist/...), which violates the Node.js package-exports spec requirement that every exports target begin with ./. Metro (Expo 53 / React Native 0.79) validates this and logged a warning for every affected package. Subpath resolution continues to work: exports-aware bundlers resolve through the root package.json, while legacy resolution relies on the main/module/types fields that remain in place
    Submitted by @JoviDeCroock (See #3886)

@urql/exchange-graphcache@9.0.1

Choose a tag to compare

@github-actions github-actions released this 15 Jun 17:41
Immutable release. Only release title and notes can be modified.
15f622c

Patch Changes

  • ⚠️ Fix relayPagination merging pages in the order they were written to the cache rather than in their cursor order. When multiple pages were requested concurrently and a later page's response was written before an earlier one's, the combined edges/nodes could transiently end up in the wrong order. Pages are now reordered along their cursor chain (via after/endCursor and before/startCursor) before being concatenated, while pages without a known predecessor keep their original order
    Submitted by @moriyuu (See #3877)
  • Remove the invalid exports field from the generated subpath package.json files (e.g. @urql/exchange-graphcache/extras, @urql/exchange-graphcache/default-storage, @urql/core/internal, @urql/next/rsc). These targets pointed at the parent dist/ directory (../dist/...), which violates the Node.js package-exports spec requirement that every exports target begin with ./. Metro (Expo 53 / React Native 0.79) validates this and logged a warning for every affected package. Subpath resolution continues to work: exports-aware bundlers resolve through the root package.json, while legacy resolution relies on the main/module/types fields that remain in place
    Submitted by @JoviDeCroock (See #3886)
  • Updated dependencies (See #3879, #3881, #3885, and #3886)
    • @urql/core@6.0.2

@urql/core@6.0.2

Choose a tag to compare

@github-actions github-actions released this 15 Jun 17:41
Immutable release. Only release title and notes can be modified.
15f622c

Patch Changes

  • Prevent mapExchange from forwarding async-mapped operations after their teardown has already been received
    Submitted by @JoviDeCroock (See #3879)
  • Unwrap the payload property in makeResult so that the first incremental/multipart response is parsed correctly. Previously, transports that wrap each result in a payload property (e.g. Apollo Federation's multipart subscriptions) would have their first response dropped as "No Content", while subsequent responses were handled correctly by mergeResultPatch
    Submitted by @JoviDeCroock (See #3881)
  • Emit terminal subscription results before ending completed subscriptions, preventing teardown races from dropping GraphQL errors
    Submitted by @JoviDeCroock (See #3885)
  • Remove the invalid exports field from the generated subpath package.json files (e.g. @urql/exchange-graphcache/extras, @urql/exchange-graphcache/default-storage, @urql/core/internal, @urql/next/rsc). These targets pointed at the parent dist/ directory (../dist/...), which violates the Node.js package-exports spec requirement that every exports target begin with ./. Metro (Expo 53 / React Native 0.79) validates this and logged a warning for every affected package. Subpath resolution continues to work: exports-aware bundlers resolve through the root package.json, while legacy resolution relies on the main/module/types fields that remain in place
    Submitted by @JoviDeCroock (See #3886)

urql@5.0.2

Choose a tag to compare

@github-actions github-actions released this 15 Apr 03:03
Immutable release. Only release title and notes can be modified.
1df98a6

Patch Changes

  • don't persist error state of old gql responses after refetch in react state
    Submitted by @BelgianNoise (See #3860)

@urql/vue@2.1.0

Choose a tag to compare

@github-actions github-actions released this 01 Apr 18:38
Immutable release. Only release title and notes can be modified.
917ac60

Minor Changes

  • Optional custom injection key support for provideClient, install, useClient, and useClientHandle. Multiple clients can be provided and consumed under different keys; default key remains '$urql' for backward compatibility
    Submitted by @albertcito (See #3858)