releases.shpreview
Apollo GraphQL/Apollo Client/@apollo/client-codemod-migrate-3-to-4@1.0.0-rc.3

@apollo/client-codemod-migrate-3-to-4@1.0.0-rc.3

$npx -y @buildinternet/releases show rel_9JY4OocY4QT5wLDpokp1T

Major Changes

  • #12851 32bc830 Thanks @phryneas! - Add a new clientSetup codemod step which applies the following steps from the migration guide to your Apollo Client setup code:
    • Moves uri, headers and credentials to the link option and creates a new HttpLink instance
    • Moves name and version into a clientAwareness option
    • Adds a localState option with a new LocalState instance, moves resolvers, and removes typeDefs and fragmentMatcher options
    • Changes the connectToDevTools option to devtools.enabled
    • Renames disableNetworkFetches to prioritizeCacheValues
    • If dataMasking is enabled, adds a template for global type augmentation to re-enable data masking types
    • Adds the incrementalHandler option and adds a template for global type augmentation to accordingly type network responses in custom links

Patch Changes

  • #12846 71ccfb5 Thanks @phryneas! - Add a new legacyEntryPoints transformation step that moves imports from old legacy entry points like @apollo/client/main.cjs or @apollo/client/react/react.cjs to the new entry points like @apollo/client or @apollo/client/react.

Fetched April 11, 2026