Skip to content

Version Packages (alpha) - #13267

Merged
jerelmiller merged 1 commit into
release-4.3from
changeset-release/release-4.3
Jun 9, 2026
Merged

Version Packages (alpha)#13267
jerelmiller merged 1 commit into
release-4.3from
changeset-release/release-4.3

Conversation

@github-actions

@github-actions github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

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 release-4.3, this PR will be updated.

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

release-4.3 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-4.3.

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

Releases

@apollo/client@4.3.0-alpha.0

Minor Changes

  • #13250 bad7035 Thanks @jerelmiller! - Add the ability to define the cache type for the client. client.cache currently returns ApolloCache as the cache type regardless of what cache you've provided to ApolloClient.

    Declare the cache type using the cache property in the TypeOverrides interface to set the cache implementation used for the client.

    // apollo.d.ts
    import type { InMemoryCache } from "@apollo/client";
    
    declare module "@apollo/client" {
      export interface TypeOverrides {
        cache: InMemoryCache;
      }
    }

    Now anywhere cache is accessible, the type is the declared cache type:

    client.cache;
    //     ^? InMemoryCache
    
    client.mutate({
      update: (cache) => {
        //     ^? InMemoryCache
      },
    });

    [!NOTE]
    Setting a cache type enforces that cache type in the cache option for the ApolloClient constructor.

@apollo-librarian

apollo-librarian Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

✅ AI Style Review — No Changes Detected

No MDX files were changed in this pull request.

Review Log: View detailed log

This review is AI-generated. Please use common sense when accepting these suggestions, as they may not always be accurate or appropriate for your specific context.

@github-actions
github-actions Bot force-pushed the changeset-release/release-4.3 branch from 54dc046 to b26cdde Compare June 9, 2026 00:30
@github-actions github-actions Bot added the auto-cleanup 🤖 label Jun 9, 2026
@jerelmiller
jerelmiller merged commit 9cd2f1d into release-4.3 Jun 9, 2026
35 of 36 checks passed
@jerelmiller
jerelmiller deleted the changeset-release/release-4.3 branch June 9, 2026 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant