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 -

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)
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

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

urql -

Published by kitten about 4 years ago

Minor Changes

  • Pass the parsed GraphQL-document as a second argument to the generateHash option, by @JoviDeCroock (See #887)
urql -

Published by kitten about 4 years ago

Patch Changes

  • Add special-case for fetching an introspection result in our schema-checking, this avoids an error when urql-devtools fetches the backend graphql schema, by @JoviDeCroock (See #893)
  • Mute warning when using built-in GraphQL fields, like __type, by @kitten (See #919)
  • ⚠️ Fix return type for resolvers to allow data objects to be returned with __typename as expected, by @JoviDeCroock (See #927)
  • Updated dependencies (See #911 and #908)
urql -

Published by kitten about 4 years ago

Patch Changes

  • Remove whitespace and comments from string-queries, by @JoviDeCroock (See #911)
  • Remove redundant whitespaces when using GET for graphql queries, by @JoviDeCroock (See #908)
urql -

Published by kitten about 4 years ago

Minor Changes

  • Add the option to reset the client on a next-urql application, by @JoviDeCroock (See #894)

Patch Changes

urql -

Published by kitten over 4 years ago

Minor Changes

  • Adds support for custom hash functions by adding a generateHash option to the exchange, by @lorenries (See #870)

Patch Changes

urql -

Published by kitten over 4 years ago

Patch Changes

  • ⚠️ Fix formatDocument mutating parts of the DocumentNode which may be shared by other documents and queries. Also ensure that a formatted document will always generate the same key in createRequest as the original document, by @kitten (See #880)
  • ⚠️ Fix ssrExchange invalidating results on the client-side too eagerly, by delaying invalidation by a tick, by @kitten (See #885)
urql -

Published by kitten over 4 years ago

Patch Changes

  • Disable suspense on the Client when we aren't using react-ssr-prepass, by @JoviDeCroock (See #884)
urql -

Published by kitten over 4 years ago

Minor Changes

  • Refactor all operations to allow for more use-cases which preserve state and allow all modes of Svelte to be applied to urql.
    // Standard Usage:
    mutate({ query, variables })()
    // Subscribable Usage:
    $: result = mutate({ query, variables });
    // Curried Usage
    const executeMutation = mutate({ query, variables });
    const onClick = () => executeMutation();
    // Curried Usage with overrides
    const executeMutation = mutate({ query });
    const onClick = () => await executeMutation({ variables });
    // Subscribable Usage (as before):
    $: result = query({ query: TestQuery, variables });
    // Subscribable Usage which preserves state over time:
    const testQuery = query({ query: TestQuery });
    // - this preserves the state even when the variables change!
    $: result = testQuery({ variables });
    // Promise-based callback usage:
    const testQuery = query({ query: TestQuery });
    const doQuery = async () => await testQuery;
    // Promise-based usage updates the subscribables!
    const testQuery = query({ query: TestQuery });
    const doQuery = async () => await testQuery;
    // - doQuery will also update this result
    $: result = query({ query: TestQuery, variables });
    

Patch Changes

urql -

Published by kitten over 4 years ago

  • Add warning for queries that traverse an Operation Root Type (Mutation / Subscription types occuring in a query result), by @kitten (See #859)
  • ⚠️ Fix storage implementation not preserving deleted values correctly or erroneously checking optimistically written entries for changes. This is fixed by adding a new default serializer to the @urql/exchange-graphcache/default-storage implementation, which will be incompatible with the old one, by @kitten (See #866)
  • Replace unnecessary scheduleTask polyfill with inline Promise.resolve().then(fn) calls, by @kitten (See #861)
  • Updated dependencies (See #860 and #861)