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 #3318

Merged
merged 1 commit into from
Jul 21, 2023
Merged

Version Packages #3318

merged 1 commit into from
Jul 21, 2023

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jul 19, 2023

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@urql/[email protected]

Major Changes

  • Create @urql/next which is a package meant to support Next 13 and
    the React 18 features contained within.
    For server components we have @urql/next/rsc and for client components
    just @urql/next
    Submitted by @JoviDeCroock (See #3214)

@urql/[email protected]

Minor Changes

  • Implement local directives. It’s now possible to add client-only directives to queries by adding them to the cacheExchange’s new directives option.
    Directives accept an object of their arguments and return a resolver. When a field is annotated with
    a resolver, e.g. @_optional or @_required, their resolvers from the directives config are
    executed. This means it’s now possible to use @_relayPagination for example, by passing adding
    the relayPagination helper to the config.
    Due to the change in #3317, any directive in
    queries that’s prefixed with an underscore (_) is only visible to Graphcache and not the API.
    Submitted by undefined (See feat(graphcache): local directives #3306)

Patch Changes

  • Use new FormattedNode / formatDocument functionality added to @urql/core to slightly speed up directive processing by using the client-side _directives dictionary that formatDocument adds
    Submitted by @kitten (See #3317)
  • Allow offlineExchange to once again issue all request policies, instead of mapping them to cache-first. When replaying operations after rehydrating it will now prioritise network policies, and before rehydrating receiving a network result will prevent a network request from being issued again
    Submitted by @kitten (See #3308)
  • Add OperationContext.optimistic flag as an internal indication on whether a mutation triggered an optimistic update in @urql/exchange-graphcache's cacheExchange
    Submitted by @kitten (See #3308)
  • Updated dependencies (See #3317 and #3308)

@urql/[email protected]

Minor Changes

  • Allow persisted query logic to be skipped by the persistedExchange if the passed generateHash function resolves to a nullish value. This allows (A)PQ to be selectively disabled for individual operations
    Submitted by @kitten (See #3324)

Patch Changes

@urql/[email protected]

Minor Changes

  • Update formatDocument to output FormattedNode type mapping. The formatter will now annotate added __typename fields with _generated: true, place selection nodes' directives onto a _directives dictionary, and will filter directives to not include "_" underscore prefixed directives in the final query. This prepares us for a feature that allows enhanced client-side directives in Graphcache
    Submitted by @kitten (See #3317)

Patch Changes

  • Add OperationContext.optimistic flag as an internal indication on whether a mutation triggered an optimistic update in @urql/exchange-graphcache's cacheExchange
    Submitted by @kitten (See #3308)

[email protected]

Patch Changes

  • ⚠️ Fix edge case that causes execute functions from useQuery and useSubscription to fail when they’re called in their state after a render that changes pause. This would previously cause internal dependencies to be outdated and the source to be discarded immediately in some cases
    Submitted by @kitten (See #3323)
  • Updated dependencies (See #3317 and #3308)

@github-actions github-actions bot force-pushed the changeset-release/main branch 6 times, most recently from 09d1f06 to c213bda Compare July 21, 2023 14:31
@kitten kitten merged commit e5fa521 into main Jul 21, 2023
6 checks passed
@kitten kitten deleted the changeset-release/main branch July 21, 2023 15:32
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.

1 participant