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 hidden (Show)

urql -

Published by kitten about 4 years ago

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.

Major Changes

  • Reimplement the @urql/svelte API, which is now marked as stable, by @kitten (See #1016)
urql -

Published by kitten about 4 years ago

Patch Changes

  • ⚠️ Fix a case where the offlineExchange would not start processing operations after hydrating persisted data when no operations arrived in time by the time the persisted data was restored. This would be more evident in Preact and Svelte due to their internal short timings, by @kitten (See #1019)
urql -

Published by kitten about 4 years ago

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

Major Changes

  • Move the urql dependency to a peer dependency.
  • Remove the automatic polyfilling of fetch since this is done automatically starting at
    Next v9.4
    If you are using a version before 9.4 you can upgrade by installing isomorphic-unfetch
    and importing it to polyfill the behavior, by @JoviDeCroock (See #1018)
urql -

Published by kitten about 4 years ago

Minor Changes

  • Add option called neverSuspend to disable React.Suspense on next.js, by @JoviDeCroock (See #923)
  • Expose 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)
urql -

Published by kitten about 4 years ago

Patch Changes

  • Allow client.reexecuteOperation to be called with mutations which skip the active operation minimums, by @kitten (See #1011)
urql -

Published by kitten about 4 years ago

Patch Changes

  • ⚠️ Fix small pieces of code where polyfill-less ES5 usage was compromised. This was unlikely to have affected anyone in production as Array.prototype.find (the only usage of an ES6 method) is commonly used and polyfilled, by @kitten (See #991)
  • ⚠️ Fix queries that have erroed with a NetworkError (isOfflineError) not flowing back completely through the cacheExchange.
    These queries should also now be reexecuted when the client comes back online, by @kitten (See #1011)
  • Updated dependencies (See #1011)
urql -

Published by kitten about 4 years ago

Minor Changes

Patch Changes

urql -

Published by kitten about 4 years ago

Initial Release

urql -

Published by kitten about 4 years ago

Minor Changes

  • Update @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)

Patch Changes

urql -

Published by kitten about 4 years ago

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.

  • ⚠️ Fix updaters config not working when Mutation/Subscription root names were altered.
    For instance, a Mutation named mutation_root could cause store.updates to be misread and cause a
    runtime error, by @kitten (See #984)
  • ⚠️ Fix operation results being obstructed by the offlineExchange 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)
urql -

Published by kitten about 4 years ago

Initial Release

The new @urql/storybook-addon provides utilities to create mock-ups in Storybook with urql more easily!

urql -

Published by kitten about 4 years ago

Initial Release

The new @urql/introspection package contains minifyIntrospectionQuery which allows the minification of introspected schema data that is piped into @urql/exchange-graphcache's schema option for instance.

urql -

Published by kitten about 4 years ago

Patch Changes

  • ⚠️ Fix React Fast Refresh being broken due to an invalid effect, by @JoviDeCroock (See #969)
urql -

Published by kitten about 4 years ago

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

urql -

Published by kitten about 4 years ago

Patch Changes

urql -

Published by kitten about 4 years ago

Patch Changes

  • Omit the Content-Type: application/json HTTP header when using GET in the fetchExchange, persistedFetchExchange, or multipartFetchExchange, by @JoviDeCroock (See #957)
  • Stops sending a persisted query if the hashing function fails, by @lorenries (See #934)
  • Updated dependencies (See #947, #962, and #957)
urql -

Published by kitten about 4 years ago

Patch Changes

  • Omit the Content-Type: application/json HTTP header when using GET in the fetchExchange, persistedFetchExchange, or multipartFetchExchange, by @JoviDeCroock (See #957)
  • Updated dependencies (See #947, #962, and #957)
urql -

Published by kitten about 4 years ago

Minor Changes

  • Add support for nodes fields to the relayPagination helper, instead of only supporting the standard edges. (See #897)

Patch Changes

urql -

Published by kitten about 4 years ago

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.

Minor Changes

  • Adds an error exchange to urql-core. This allows tapping into all graphql errors within the urql client. Useful for logging, debugging, handling authentication errors etc, by @kadikraman (See #947)

Patch Changes

  • ⚠️ Fix condition where mutated result data would be picked up by the ssrExchange, for instance as a result of mutations by Graphcache. Instead the ssrExchange now serializes data early, by @kitten (See #962)
  • Omit the Content-Type: application/json HTTP header when using GET in the fetchExchange, persistedFetchExchange, or multipartFetchExchange, by @JoviDeCroock (See #957)
urql -

Published by kitten about 4 years ago

Minor Changes

  • Add the operation to the query, mutation and subscription result, by @JoviDeCroock (See #924)

Patch Changes

  • Update hooks to be exported functions rather than exported block-scoped variables to provide TypeScript consumers with better access to their signature, by @dotansimha (See #904)
  • Updated dependencies (See #911 and #908)