Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version Packages #1340

Merged
merged 1 commit into from
Feb 10, 2021
Merged

Version Packages #1340

merged 1 commit into from
Feb 10, 2021

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jan 26, 2021

For a full announcement on what all of these changes mean, please check: https://gist.github.com/kitten/7e55e48628eb76a8d65ec8bac8669a1f 🎉

Releases

@urql/exchange-graphcache@4.0.0

Major Changes

  • Add improved error awareness to Graphcache. When Graphcache now receives a GraphQLError (via a CombinedError) it checks whether the GraphQLError's path matches up with null values in the data. Any null values that the write operation now sees in the data will be replaced with a "cache miss" value (i.e. undefined) when it has an associated error. This means that errored fields from your GraphQL API will be marked as uncached and won't be cached. Instead the client will now attempt a refetch of the data so that errors aren't preventing future refetches or with schema awareness it will attempt a refetch automatically. Additionally, the updates functions will now be able to check whether the current field has any errors associated with it with info.error, by @kitten (See #1356)

Minor Changes

  • Allow schema option to be passed with a partial introspection result that only contains queryType, mutationType, and subscriptionType with their respective names. This allows you to pass { __schema: { queryType: { name: 'Query' } } } and the likes to Graphcache's cacheExchange to alter the default root names without enabling full schema awareness, by @kitten (See #1379)

Patch Changes

@urql/core@2.0.0

Major Changes

  • Breaking: Remove pollInterval feature from OperationContext. Instead consider using a source that uses Wonka.interval and Wonka.switchMap over client.query()'s source, by @kitten (See #1374)
  • Remove deprecated operationName property from Operations. The new Operation.kind property is now preferred. If you're creating new operations you may also use the makeOperation utility instead.
    When upgrading @urql/core please ensure that your package manager didn't install any duplicates of it. You may deduplicate it manually using npx yarn-deduplicate (for Yarn) or npm dedupe (for npm), by @kitten (See #1357)

Minor Changes

  • Reemit an OperationResult as stale: true if it's being reexecuted as network-only operation to give bindings immediate feedback on background refetches, by @kitten (See #1375)

@urql/preact@2.0.0

Major Changes

  • Breaking: Remove pollInterval option from useQuery. Instead please consider using useEffect calling executeQuery on an interval, by @kitten (See #1374)

Minor Changes

  • Remove deprecated operationName property from Operations. The new Operation.kind property is now preferred. If you're creating new operations you may also use the makeOperation utility instead.
    When upgrading @urql/core please ensure that your package manager didn't install any duplicates of it. You may deduplicate it manually using npx yarn-deduplicate (for Yarn) or npm dedupe (for npm), by @kitten (See #1357)

Patch Changes

urql@2.0.0

Major Changes

  • Breaking: Remove pollInterval option from useQuery. Instead please consider using useEffect calling executeQuery on an interval, by @kitten (See #1374)

Minor Changes

  • Reimplement useQuery to apply a consistent Suspense cache (torn down queries will still eliminate stale values) and support all Concurrent Mode edge cases. This work is based on useMutableSource's mechanisms and allows React to properly fork lanes since no implicit state exists outside of useState in the implementation. The useSubscription hook has been updated similarly without a cache or retrieving values on mount, by @kitten (See #1335)
  • Remove deprecated operationName property from Operations. The new Operation.kind property is now preferred. If you're creating new operations you may also use the makeOperation utility instead.
    When upgrading @urql/core please ensure that your package manager didn't install any duplicates of it. You may deduplicate it manually using npx yarn-deduplicate (for Yarn) or npm dedupe (for npm), by @kitten (See #1357)

Patch Changes

@urql/exchange-persisted-fetch@1.3.0

Minor Changes

  • Add enforcePersistedQueries option to persistedFetchExchange, which disables automatic persisted queries and retry logic, and instead assumes that persisted queries will be handled like normal GraphQL requests, by @kitten (See #1358)

Patch Changes

@urql/introspection@0.2.0

Minor Changes

  • Update minifyIntrospectionQuery utility to remove additional information on arguments and to filter out schema metadata types, like __Field and others, by @kitten (See #1351)

@urql/svelte@1.2.0

Minor Changes

  • Remove deprecated operationName property from Operations. The new Operation.kind property is now preferred. If you're creating new operations you may also use the makeOperation utility instead.
    When upgrading @urql/core please ensure that your package manager didn't install any duplicates of it. You may deduplicate it manually using npx yarn-deduplicate (for Yarn) or npm dedupe (for npm), by @kitten (See #1357)

Patch Changes

@urql/vue@0.3.0

Minor Changes

  • Breaking: Remove pollInterval option from useQuery. Please consider adding an interval manually calling executeQuery(), by @kitten (See #1374)
  • Remove deprecated operationName property from Operations. The new Operation.kind property is now preferred. If you're creating new operations you may also use the makeOperation utility instead.
    When upgrading @urql/core please ensure that your package manager didn't install any duplicates of it. You may deduplicate it manually using npx yarn-deduplicate (for Yarn) or npm dedupe (for npm), by @kitten (See #1357)

Patch Changes

@urql/exchange-request-policy@0.1.1

Patch Changes

  • ⚠️ Fix non-query operations being upgraded by requestPolicyExchange and time being stored by last issuance rather than last result, by @kitten (See #1377)
  • Updated dependencies (See #1374, #1357, and #1375)
    • @urql/core@2.0.0

next-urql@3.0.0

Patch Changes

@kitten
Copy link
Member

kitten commented Jan 26, 2021

This has been published as a canary pre-release under the tag @canary: urql@1.12.0-canary.0
The above is now out-of-date.

@github-actions github-actions bot force-pushed the changeset-release/main branch 3 times, most recently from 22c7fcf to 87d8cc9 Compare January 29, 2021 18:30
@github-actions github-actions bot force-pushed the changeset-release/main branch 13 times, most recently from ecd667b to 103c341 Compare February 10, 2021 16:10
@github-actions github-actions bot force-pushed the changeset-release/main branch from 103c341 to 367dfff Compare February 10, 2021 16:12
@kitten kitten requested a review from JoviDeCroock February 10, 2021 16:30
@kitten
Copy link
Member

kitten commented Feb 10, 2021

For a full announcement on what all of these changes mean, please check: https://gist.github.com/kitten/7e55e48628eb76a8d65ec8bac8669a1f 🎉

@kitten kitten merged commit 8894a86 into main Feb 10, 2021
@kitten kitten deleted the changeset-release/main branch February 10, 2021 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants