Repository navigation
Releases
Releases · urql-graphql/urql
@urql/exchange-graphcache@9.0.2
Immutable
release. Only release title and notes can be modified.
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
stalewhile a network request for them is in flight. Previously, when a mutation updated anetwork-onlyquery while its request was in flight, the query's cached result looked final, sotoPromise()resolved with it before the request completed
Submitted by @JoviDeCroock (See #3913)
urql@5.0.4
Immutable
release. Only release title and notes can be modified.
Patch Changes
⚠️ Fix suspense cache entries getting poisoned when an operation ends without a result. When an operation was torn down while auseQuerywas suspended, its suspense promise could never resolve and was re-thrown on every future render, permanently stuck on itsSuspensefallback. 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
Immutable
release. Only release title and notes can be modified.
urql@5.0.3
Immutable
release. Only release title and notes can be modified.
@urql/vue@2.1.1
Immutable
release. Only release title and notes can be modified.
Patch Changes
- Stop
useQueryfrom 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 thessrExchangeresult had already been consumed, triggering a redundant network request even withstaleWhileRevalidate: false. The awaited promise now resolves with the already-settled result instead of re-subscribing
Submitted by @JoviDeCroock (See #3884) ⚠️ Fixawait 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
Immutable
release. Only release title and notes can be modified.
Patch Changes
- Remove the invalid
exportsfield from the generated subpathpackage.jsonfiles (e.g.@urql/exchange-graphcache/extras,@urql/exchange-graphcache/default-storage,@urql/core/internal,@urql/next/rsc). These targets pointed at the parentdist/directory (../dist/...), which violates the Node.js package-exports spec requirement that everyexportstarget 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 rootpackage.json, while legacy resolution relies on themain/module/typesfields that remain in place
Submitted by @JoviDeCroock (See #3886)
@urql/exchange-graphcache@9.0.1
Immutable
release. Only release title and notes can be modified.
Patch Changes
⚠️ FixrelayPaginationmerging 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 combinededges/nodescould transiently end up in the wrong order. Pages are now reordered along their cursor chain (viaafter/endCursorandbefore/startCursor) before being concatenated, while pages without a known predecessor keep their original order
Submitted by @moriyuu (See #3877)- Remove the invalid
exportsfield from the generated subpathpackage.jsonfiles (e.g.@urql/exchange-graphcache/extras,@urql/exchange-graphcache/default-storage,@urql/core/internal,@urql/next/rsc). These targets pointed at the parentdist/directory (../dist/...), which violates the Node.js package-exports spec requirement that everyexportstarget 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 rootpackage.json, while legacy resolution relies on themain/module/typesfields 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
Immutable
release. Only release title and notes can be modified.
Patch Changes
- Prevent
mapExchangefrom forwarding async-mapped operations after their teardown has already been received
Submitted by @JoviDeCroock (See #3879) - Unwrap the
payloadproperty inmakeResultso that the first incremental/multipart response is parsed correctly. Previously, transports that wrap each result in apayloadproperty (e.g. Apollo Federation's multipart subscriptions) would have their first response dropped as "No Content", while subsequent responses were handled correctly bymergeResultPatch
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
exportsfield from the generated subpathpackage.jsonfiles (e.g.@urql/exchange-graphcache/extras,@urql/exchange-graphcache/default-storage,@urql/core/internal,@urql/next/rsc). These targets pointed at the parentdist/directory (../dist/...), which violates the Node.js package-exports spec requirement that everyexportstarget 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 rootpackage.json, while legacy resolution relies on themain/module/typesfields that remain in place
Submitted by @JoviDeCroock (See #3886)
urql@5.0.2
Immutable
release. Only release title and notes can be modified.
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
Immutable
release. Only release title and notes can be modified.
Minor Changes
- Optional custom injection key support for
provideClient,install,useClient, anduseClientHandle. Multiple clients can be provided and consumed under different keys; default key remains'$urql'for backward compatibility
Submitted by @albertcito (See #3858)