Apollo Client 4.0 is Live
Apollo Client 4.0 is here, a leaner, cleaner GraphQL client built for modern JavaScript and TypeScript. This release makes apps faster, bundles smaller, and the developer experience smoother than ever.
Here’s what’s new:
• 20–30% smaller bundles thanks to opt-in architecture and modern build targets
• Smarter TypeScript with required variables, discoverable types, and the new dataState property
• More intuitive error handling with clear, type-safe error classes
• Built for modern JavaScript — ESM-first packaging, RxJS support, and optimized tree-shaking
• Smooth migration path with codemods and a comprehensive guide
Read the launch blog
Check out the migration guide
Explore the GitHub repo
Changelog
Heads up:
Apollo Client 4.0 introduces some intentional breaking changes (error handling, link APIs, local state opt-in). Most of the upgrade is handled automatically via codemods, but check the migration guide for details.
We’d love to hear your feedback as you start upgrading. Let us know what’s working well and where we can improve.