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 (beta) #10963

Merged
merged 1 commit into from
Jun 15, 2023
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jun 9, 2023

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

⚠️⚠️⚠️⚠️⚠️⚠️

release-3.8 is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, run changeset pre exit on release-3.8.

⚠️⚠️⚠️⚠️⚠️⚠️

Releases

@apollo/client@3.8.0-beta.3

Minor Changes

  • #10895 e187866fd Thanks @(author)! - Add generic type parameter for the entity modified in cache.modify. Improves
    TypeScript type inference for that type's fields and values of those fields.

    Example:

    cache.modify<Book>({
      id: cache.identify(someBook),
      fields: {
        title: (title) => {
          // title has type `string`.
          // It used to be `any`.
        },
     => {
          // author has type `Reference | Book["author"]`.
          // It used to be `any`.
        },
      },
    });
  • #10895 e187866fd Thanks @Gelio! - Use unique opaque types for the DELETE and INVALIDATE Apollo cache modifiers.

    This increases type safety, since these 2 modifiers no longer have the any type.
    Moreover, it no longer triggers the @typescript-eslint/no-unsafe-return
    rule
    .

Patch Changes

  • #10951 2e833b2ca Thanks @alessbell! - Improve useBackgroundQuery type interface

  • #10964 f33171506 Thanks @alessbell! - Fixes a bug in BatchHttpLink that removed variables from all requests by default.

  • #10968 b102390b2 Thanks @phryneas! - Use printed query for query deduplication. Cache print calls for GraphQL documents to speed up repeated operations.

  • #10969 525a9317a Thanks @phryneas! - Slightly decrease bundle size and memory footprint of SuspenseCache by changing how cache entries are stored internally.

@github-actions github-actions bot force-pushed the changeset-release/release-3.8 branch 3 times, most recently from 04538c8 to 56e0a28 Compare June 13, 2023 21:35
@github-actions github-actions bot force-pushed the changeset-release/release-3.8 branch from 56e0a28 to f08ed9f Compare June 14, 2023 17:22
@alessbell alessbell merged commit befc2a3 into release-3.8 Jun 15, 2023
@alessbell alessbell deleted the changeset-release/release-3.8 branch June 15, 2023 13:07
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant