The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
MIT License
Bot releases are hidden (Show)
The new @urql/svelte
API features the query
, mutation
, and subscription
utilities, which are
called as part of a component's normal lifecycle and accept operationStore
stores. These are
writable stores that encapsulate both a GraphQL operation's inputs and outputs (the result)!
Learn more about how to use @urql/svelte
in our new API docs or starting from the Basics pages.
This release moves urql
from being in dependencies
to peerDependencies
. Please install it
explicitly, as you may have already in the past, and ensure that both urql
and @urql/core
are
not duplicated with either npm dedupe
or npx yarn-deduplicate
.
npm i --save urql
# or
yarn add urql
urql
dependency to a peer dependency.fetch
since this is done automatically starting atNext v9.4
isomorphic-unfetch
neverSuspend
to disable React.Suspense
on next.js, by @JoviDeCroock (See #923)initUrqlClient
function so that a Client
can be created manually for use in Next's newer SSR methods manually, such as getServerSideProps
, by @sunpietro (See #993)Array.prototype.find
(the only usage of an ES6 method) is commonly used and polyfilled, by @kitten (See #991)NetworkError
(isOfflineError
) not flowing back completely through the cacheExchange
.@urql/preact
implementation to match urql
React implementation. Internally these changes should align behaviour and updates slightly, but outwardly no changes should be apparent apart from how some updates are scheduled, by @kitten (See #1008)This release of Graphcache marks a point where we deem Offline Support as ready enough to remove all experimental warnings from it and regard it as stable enough to be used in apps together with urql
and @urql/preact
.
mutation_root
could cause store.updates
to be misread and cause aofflineExchange
when the network request has failed due to being offline and no cache result has been issued. Instead the offlineExchange
will now retry with cache-only
policy, by @kitten (See #985)Initial Release
We're very excited to provide an easy and unified approach to implement different authentication (and re-authentication strategies) with urql
! Please check @urql/exchange-auth
's README for more information how to use this new exchange: https://github.com/FormidableLabs/urql/blob/main/exchanges/auth/README.md
null
, by @jlengstorf (See #944)Content-Type: application/json
HTTP header when using GET in the fetchExchange
, persistedFetchExchange
, or multipartFetchExchange
, by @JoviDeCroock (See #957)Content-Type: application/json
HTTP header when using GET in the fetchExchange
, persistedFetchExchange
, or multipartFetchExchange
, by @JoviDeCroock (See #957)nodes
fields to the relayPagination
helper, instead of only supporting the standard edges
. (See #897)Please note that this release changes the data structure of the ssrExchange
's
output. We don't treat this as a breaking change, since this data is considered
a private structure, but if your tests or other code relies on this, please check
the type changes and update it.
ssrExchange
, for instance as a result of mutations by Graphcache. Instead the ssrExchange
now serializes data early, by @kitten (See #962)Content-Type: application/json
HTTP header when using GET in the fetchExchange
, persistedFetchExchange
, or multipartFetchExchange
, by @JoviDeCroock (See #957)