Change8

Apollo Client

Backend & Infra

The industry-leading GraphQL client for TypeScript, JavaScript, React, Vue, Angular, and more. Apollo Client delivers powerful caching, intuitive APIs, and comprehensive developer tools to accelerate your app development.

Latest: @apollo/client@4.2.0100 releases38 breaking changesView on GitHub

Release History

@apollo/client@4.2.010 features
May 20, 2026

Apollo Client 4.2 introduces optional "classic" and "modern" method/hook signatures to improve type accuracy based on default options. This release also adds comprehensive support for automatic event-based query refetching via the new RefetchEventManager.

@apollo/client@4.2.0-rc.0
May 11, 2026

This minor release primarily involves a version bump to the release candidate (rc) version.

@apollo/client@4.2.0-alpha.81 fix1 feature
May 8, 2026

This patch fixes an issue with `refetchOn` merging logic when default and per-query options conflict, and introduces customization for the default event handler in `RefetchEventManager`.

@apollo/client@4.2.0-alpha.71 feature
May 5, 2026

This release enhances type safety for default options when using `preloadQuery` by extending the existing work from `defaultOptions` to the preloading mechanism.

@apollo/client@4.2.0-alpha.61 fix
May 5, 2026

This patch release addresses an issue where the deprecation warning for classic function signatures was incorrectly applied when using type inference with TypedDocumentNode.

@apollo/client@4.2.0-alpha.51 fix
May 1, 2026

This patch release improves developer experience by ensuring proper IntelliSense suggestions for the options object in several core query hooks.

@apollo/client@4.2.0-alpha.48 features
Apr 29, 2026

This release introduces automatic event-based refetching capabilities through the new RefetchEventManager, allowing queries to automatically refresh on events like window focus or network reconnection. Event refetching is opt-in and highly configurable at both the client and query levels.

@apollo/client@4.2.0-alpha.34 features
Apr 27, 2026

This release enhances type safety for mutations by propagating the `errorPolicy` setting from `defaultOptions` and individual calls into the return types of `client.mutate` and `useMutation`.

@apollo/client@4.1.91 fix
Apr 23, 2026

This patch release addresses a build artifact issue by removing the unnecessary "workspaces" field from the published package.json to silence Yarn v1 warnings.

@apollo/client@4.1.81 feature
Apr 23, 2026

This patch release introduces a new agent skill for integration with @tanstack/intent, bundled within the npm package.

@apollo/client@4.2.0-alpha.2Breaking1 fix3 features
Apr 21, 2026

Apollo Client 4.2 introduces 'classic' and 'modern' signature styles, enhancing type safety by synchronizing hook/method return types with declared default options. This requires explicit type declaration for used default options to maintain type accuracy.

@apollo/client@4.1.71 fix
Apr 8, 2026

This patch release addresses an interop issue related to RxJS when using WebSocketLink.

v3.14.12 fixes
Mar 12, 2026

This patch release fixes issues related to deprecation warning silencing across entrypoints and within React hooks, and deprecates the `variableMatcher` option in `MockLink`.

@apollo/client@4.2.0-alpha.1
Mar 5, 2026

This patch release includes changes from versions 4.1.5 and 4.1.6.

@apollo/client@4.1.61 fix
Feb 23, 2026

This patch release addresses a specific hydration mismatch issue occurring in `useQuery` when server-side rendering is disabled alongside query skipping.

@apollo/client@4.1.52 fixes
Feb 19, 2026

This patch release addresses two specific bugs: one concerning unnecessary polling in useQuery when skipped, and another regarding incorrect option application in client.query.

@apollo/client@4.2.0-alpha.01 fix1 feature
Feb 13, 2026

This minor release improves the TypeScript return type accuracy for `client.query` based on the configured `errorPolicy`, specifically making the `data` property non-nullable when `errorPolicy` is set to 'none'.

@apollo/client@4.1.41 fix
Feb 5, 2026

This patch release ensures that PersistedQueryLink correctly merges context values for http and fetchOptions.

@apollo/client@4.1.31 fix
Jan 28, 2026

This patch introduces support for cancellation via `AbortController` in subscriptions created by `createFetchMultipartSubscription`.

@apollo/client@4.1.23 fixes
Jan 21, 2026

This patch release addresses several issues related to Server-Side Rendering (SSR) behavior, specifically ensuring correct handling of fetch policies and skip tokens during initial data reading.

@apollo/client@4.1.11 fix
Jan 20, 2026

This patch release fixes an issue related to the resolution of @client fields nested under aliased server fields.

@apollo/client@4.1.04 fixes9 features
Jan 15, 2026

This release introduces significant enhancements to cache interaction, including support for array watching via fragments, new options for context in `useMutation`, and expanded support for GraphQL incremental delivery specifications like `@defer` (v17 alpha 9) and `@stream`.

@apollo/client@4.0.131 fix
Jan 13, 2026

This patch release ensures that internal utilities `compact` and `mergeOptions` correctly preserve symbol keys, resolving an issue with `defaultOptions` in `watchQuery`.

@apollo/client@4.0.121 fix
Jan 12, 2026

This patch release addresses a potential memory leak issue related to Trie nodes remaining in memory too long.

@apollo/client@4.1.0-rc.1
Jan 9, 2026
@apollo/client@4.1.0-rc.0Breaking1 fix2 features
Jan 7, 2026

Added stream‑info handling improvements, exposed a new type for cache extensions, and fixed redundant merge calls, with a breaking change affecting the legacy `Defer20220824Handler`.

@apollo/client@4.0.12-beta.01 fix1 feature
Dec 23, 2025

This patch release adds automatic cleanup of PreloadedQueryRef instances and changes @stream array truncation to occur only on the final chunk.

@apollo/client@4.1.0-alpha.91 fix2 features
Dec 18, 2025

This release adds new cache behavior for undefined array items, introduces an \`extensions\` option to cache write methods, and improves fragment hooks with memoized observable mapping.

@apollo/client@4.0.112 fixes1 feature
Dec 16, 2025

Patch release fixing refetch behavior for standby queries and replacing `findLast` with compatible methods, plus a hidden option for framework integrations.

@apollo/client@4.0.101 fix
Dec 10, 2025

Patch release addressing a memory leak in Apollo Client.

@apollo/client@4.1.0-alpha.81 feature
Dec 5, 2025

Added support for a `headers` transport, improving client awareness.

@apollo/client@4.1.0-alpha.71 feature
Dec 3, 2025

Introduces a new `from` option for readFragment, watchFragment, and updateFragment.

@apollo/client@4.1.0-alpha.61 feature
Dec 1, 2025

Performance improvement: `watchFragment` now reuses existing observables, reducing overhead during repeated cache watches.

@apollo/client@4.1.0-alpha.53 fixes
Nov 19, 2025

Patch release fixing incremental chunk error handling in `ErrorLink` and improving `@stream` processing with `Defer20220824Handler` to prevent runtime errors.

@apollo/client-graphql-codegen@2.0.0Breaking
Nov 17, 2025

The release upgrades all upstream dependencies to their next major versions, potentially introducing breaking changes.

@apollo/client@4.1.0-alpha.42 features
Nov 17, 2025

This patch adds flexibility to FragmentType generics and introduces a new QueryRef.ForQuery helper type.

@apollo/client@4.1.0-alpha.21 fix1 feature
Nov 17, 2025

This release adds a callback‑based `context` option for `useMutation` and introduces a validation error for `@stream` without an `incrementalDelivery` handler.

@apollo/client@4.1.0-alpha.34 fixes4 features
Nov 17, 2025

This release adds null and array support to fragment watching APIs, introduces a `getCurrentResult` helper, deduplicates duplicate watches for better performance, and includes several bug fixes and incremental delivery updates.

@apollo/client@4.1.0-alpha.12 fixes3 features
Nov 17, 2025

This release introduces an abstract `resolvesClientField` API, adds experimental feature support, and refines `@client` field handling, including warnings for `no-cache` queries.

@apollo/client@4.1.0-alpha.03 fixes2 features
Nov 17, 2025

This release adds support for the newer incremental delivery format for `@defer` and introduces `@stream` handling across handlers, while fixing several bugs related to deferred payloads and fetchMore rendering.

@apollo/client@4.0.91 fix
Oct 31, 2025

Patch release fixes a regression in `useSuspenseQuery` and `useBackgroundQuery` where changing to `skipToken` unintentionally created a new ObservableQuery and caused refetches without variables.

@apollo/client@4.0.81 fix
Oct 27, 2025

Patch release fixing cache.modify() handling of readonly arrays.

@apollo/client@4.0.7Breaking1 fix
Sep 30, 2025

Patch release removes the `operationType` field from `GraphQLWsLink` payloads, fixing related bugs but may require server adjustments.

@apollo/client@4.0.61 fix
Sep 25, 2025

Patch release fixing fetchMore loading state reset issue.

@apollo/client@4.0.51 fix
Sep 12, 2025

Patch release that fixes an invariance type error in the MockedResponse type.

@apollo/client@4.0.4Breaking2 fixes1 feature
Sep 2, 2025

This patch release adds a type‑safe `skipToken` for query skipping, fixes unhandled promise rejections and invariant handling, and switches to a named `equal` export from `@wry/equality`, which requires import updates.

@apollo/client@4.0.31 fix1 feature
Aug 29, 2025

Patch release that fixes a deep re-export issue in the React internals and enhances IntelliSense for `useMutation` variables.

@apollo/client@4.0.21 fix
Aug 27, 2025

The patch restores access to `getMemoryInternals` in development builds.

@apollo/client-codemod-migrate-3-to-4@1.0.21 fix
Aug 27, 2025

Patch release fixing the misplaced `networkStatus` implementation.

@apollo/client@4.0.11 fix2 features
Aug 25, 2025

This patch fixes the CJS build for `invariantErrorCodes` and introduces the new utility `isNetworkStatusInFlight` while adding the deprecated `isNetworkStatusSettled` to Apollo Client utilities.

@apollo/client-codemod-migrate-3-to-4@1.0.12 features
Aug 25, 2025

This patch adds and re-exports network status utilities, introducing `isNetworkStatusInFlight` and deprecating `isNetworkStatusSettled`.

@apollo/client-graphql-codegen@1.0.01 feature
Aug 21, 2025

This release adds a new GraphQL Codegen plugin for generating LocalState resolver types and bumps the codegen package version to a release candidate.

@apollo/client@4.0.0Breaking9 features
Aug 21, 2025

Apollo Client 4.0 introduces a framework‑agnostic core, unified error handling, opt‑in local state, a new `dataState` property, and class‑based links, while removing `ApolloError` and several legacy APIs, requiring code migrations.

@apollo/client-codemod-migrate-3-to-4@1.0.0Breaking5 features
Aug 21, 2025

Apollo Client 4.x introduces extensive migration tooling, renames import entry points, and overhauls client setup options, requiring developers to run codemods and adjust configuration.

v3.14.0Breaking1 fix1 feature
Aug 21, 2025

This minor release adds extensive deprecation warnings for APIs removed in Apollo Client 4.0 and introduces `preloadQuery.toPromise` as the new way to await preloaded queries, along with a fix for field‑policy merging.

@apollo/client-codemod-migrate-3-to-4@1.0.0-rc.3Breaking2 features
Aug 20, 2025

Apollo Client introduces a `clientSetup` codemod to restructure client configuration and a `legacyEntryPoints` transformation to update import paths, requiring updates to option names, removed settings, and import statements.

@apollo/client@4.0.0-rc.131 feature
Aug 20, 2025

Introduces a versioning policy for Apollo Client.

@apollo/client@4.0.0-rc.12Breaking1 feature
Aug 15, 2025

Introduced a @apollo/client/v4-migration entrypoint that surfaces removed values and types with migration guidance, addressing breaking changes from their removal.

@apollo/client-codemod-migrate-3-to-4@1.0.0-rc.21 feature
Aug 15, 2025

This minor release extends the `imports` codemod and adds new `links` and `removals` codemods.

@apollo/client@4.0.0-rc.11Breaking
Aug 14, 2025

This release introduces a breaking change requiring explicit type augmentation for incremental delivery handlers and removes the `DataMasking` interface, necessitating code updates.

@apollo/client@4.0.0-rc.10Breaking1 feature
Aug 13, 2025

This release makes data‑masking types opt‑in only, removes the `mode` option and the `Masked`/`MaskedDocumentNode` types, and requires migration steps to adjust type declarations.

@apollo/client@4.0.0-rc.91 fix2 features
Aug 7, 2025

This release adds production logging for invariant.error, extends HttpLink and BatchHttpLink context options with client awareness settings, and fixes AbortSignal handling.

@apollo/client@4.0.0-rc.8Breaking2 fixes7 features
Aug 5, 2025

This release removes exported helpers, tightens type definitions, moves link types into a namespace, and updates RetryLink behavior, introducing breaking changes that require code adjustments.

@apollo/client@4.0.0-rc.7Breaking1 fix5 features
Aug 1, 2025

This release introduces several breaking TypeScript API changes—including read-only operation contexts, removal of certain request fields, and stricter link handler requirements—while adding features like multi-link concatenation and improved type safety.

v3.13.91 fix
Jul 29, 2025

Patch release fixing a race condition when queries are reobserved before their initial subscription.

@apollo/client@4.0.0-rc.6Breaking
Jul 28, 2025

The update removes the `DataProxy` namespace, flips generic type orders, disallows the `mutation` option in `useMutation`, deprecates old type exports, and removes `ApolloConsumer`, requiring code adjustments.

@apollo/client@4.0.0-rc.5Breaking3 features
Jul 18, 2025

This release adds improved handling of masked fragments, introduces dataState in watchFragment, normalizes empty argument storage, and updates cache read behavior, while deprecating old readFragment/readQuery signatures and removing gql from the react entrypoint.

@apollo/client-codemod-migrate-3-to-4@1.0.0-rc.1Breaking
Jul 18, 2025

The `gql` export was removed from `@apollo/client/react`; import it from `@apollo/client` instead.

@apollo/client@4.0.0-rc.42 features
Jul 8, 2025

Introduces `dataState` and customizable `DataValue` types for `useFragment` and `useSuspenseFragment`.

v3.14.0-rc.0
Jul 7, 2025

Minor release that bumps the version to the latest release candidate.

@apollo/client@4.0.0-rc.31 feature
Jul 1, 2025

Apollo Client now ships a React-Compiler compiled version of its React hooks via a new @apollo/client/react/compiled entry point, and the client.reFetchObservableQueries method has been renamed to client.refetchObservableQueries (deprecated alias retained).

v3.14.0-alpha.11 feature
Jul 1, 2025

This minor release adds @deprecated tags to removed query‑related properties and introduces a warning when `standby` fetch policy is used with `client.query`.

v3.14.0-alpha.0Breaking1 fix1 feature
Jun 27, 2025

Apollo Client 4.0 introduces the new `preloadQuery.toPromise` API and removes the old `queryRef.toPromise`, while adding numerous deprecation warnings across React APIs, ApolloClient options, and cache settings. A bug fix prevents field policies from incorrectly merging into supertype policies.

@apollo/client-codemod-migrate-3-to-4@1.0.0-rc.0Breaking1 feature
Jun 27, 2025

Apollo Client 4.x introduces a migration codemod to update old 3.x import paths to the new 4.x entrypoints.

@apollo/client@4.0.0-rc.2Breaking2 fixes1 feature
Jun 27, 2025

This release introduces a breaking change to `SetContextLink` callback parameters and operation type, adds overridable `DataValue` types for response states, and includes bug fixes for `operationType` propagation and `subscribeToMore` error typing.

@apollo/client@4.0.0-rc.1Breaking3 fixes5 features
Jun 24, 2025

This release removes two deprecated configuration options, adds a new `operationType` field for easier operation checks, exports several types, and includes bug fixes around resolver warnings and query rerendering.

@apollo/client-graphql-codegen@1.0.0-rc.0
Jun 19, 2025

Version bump for codegen to release as a release candidate (rc).

@apollo/client@4.0.0-rc.0
Jun 18, 2025

This release only bumps the version to publish the latest code as a release candidate.

@apollo/client@4.0.0-alpha.23Breaking2 fixes6 features
Jun 18, 2025

This release introduces significant improvements to `cache-only` query behavior, making them more predictable by preventing unnecessary fetches and initial loading states. It also modernizes link creation by favoring classes over creator functions and refines option inheritance in `fetchMore`.

@apollo/client@4.0.0-alpha.22Breaking1 fix4 features
Jun 13, 2025

This release introduces enhanced client awareness, changes default behaviors for extensions and multipart Accept headers, adds new link utilities, and enforces stricter alias rules, along with a bug fix for persisted queries.

@apollo/client@4.0.0-alpha.21Breaking2 features
Jun 10, 2025

Added streaming support for `@defer` queries with a new `NetworkStatus.streaming` value and changed loading semantics, removed the `context` option from `useLazyQuery`, and made `cache.fragmentMatches` mandatory.

@apollo/client@4.0.0-alpha.20Breaking4 features
Jun 6, 2025

Apollo Client 8 introduces breaking API changes: ObservableQuery loses its queryId, getObservableQueries now returns a Set, and preloadQuery’s toPromise API changes, while adding a new ObservableQuery.stop method and more aggressive client cleanup.

@apollo/client@4.0.0-alpha.19Breaking3 features
Jun 5, 2025

Adds subscription restart capability and full‑lifecycle deduplication, while changing early‑unsubscribe behavior for ObservableQuery.

@apollo/client@4.0.0-alpha.181 feature
Jun 5, 2025

Introduces an optional override mechanism for Apollo Client’s DataMasking types, allowing custom implementations while preserving default behavior.

@apollo/client@4.0.0-alpha.17Breaking3 features
Jun 3, 2025

This release introduces a new `dataState` property and modifies the `TData` generic handling, removes the deprecated `QueryReference` type, and adds a `.retain()` method to result promises, requiring migration of type signatures and handling of lazy query execution.

@apollo/client@4.0.0-alpha.16Breaking3 features
May 28, 2025

This release aligns Apollo Client with the GraphQL over HTTP spec by adding `application/graphql-response+json` support, changing error handling, and updating the default `Accept` header, while introducing breaking changes to `ServerError` and link notifications.

@apollo/client-graphql-codegen@1.0.0-alpha.01 feature
May 28, 2025

A new GraphQL Codegen plugin '@apollo/client-graphql-codegen/local-state' adds generated resolver types for LocalState, enabling type‑safe local resolvers.

v4.0.0-alpha.15Breaking2 fixes2 features
May 23, 2025

This release moves unstable testing utilities to an internal namespace, removes several deprecated testing helpers, adds subtle `useQuery` and `ObservableQuery` behavior improvements, and deprecates old MockLink type exports.

v4.0.0-alpha.14Breaking9 features
May 21, 2025

Apollo Client introduces a new `LocalState` system, removes several legacy APIs, and changes resolver context handling, requiring migration steps for existing applications.

v4.0.0-alpha.13Breaking
May 14, 2025

Apollo Client introduces a restructuring of utility modules and removal of experimental testing utilities, requiring import path updates and migration to the GraphQL Testing Library.

v4.0.0-alpha.12Breaking
Apr 29, 2025

Apollo Client 4.x introduces breaking changes: removal of `typeDefs`, `TContext`, and support for `graphql` v15, a mandatory `link` option, and a renamed link entrypoint, requiring migration steps for existing code.

v4.0.0-alpha.11Breaking1 fix5 features
Apr 23, 2025

Apollo Client vX introduces major API changes: context no longer provides `cache`/`forceFetch`, `ApolloLink.execute` now requires a client argument, and `useMutation` typings are stricter, alongside new features like custom context typing and a re‑exported `gql`.

v4.0.0-alpha.10Breaking2 fixes9 features
Apr 17, 2025

This release introduces stricter variable handling, new error utilities, and several breaking changes such as removal of `standby` fetchPolicy and deprecation of `never` as a TVariables type.

v3.13.81 fix
Apr 17, 2025

Patch release fixing an issue where in‑flight multipart urql subscriptions could be incorrectly cancelled.

v4.0.0-alpha.9Breaking4 fixes2 features
Apr 11, 2025

This release introduces automatic loading state emission by default and adds initial loading support for ObservableQuery, while fixing several useLazyQuery and polling behaviors.

v4.0.0-alpha.8Breaking1 fix6 features
Apr 10, 2025

This release adds a unified error handling API for `onError`, enhances `MockLink` with variable callbacks, realistic delay helpers, and default delay configuration, while removing deprecated methods and options that require migration.

v3.13.7
Apr 10, 2025

This patch refactors notification scheduling and cache emit logic by moving code from QueryInfo to ObservableQuery, with no functional changes.

v3.13.61 fix
Apr 4, 2025

Patch release fixes ObservableQuery behavior in useQuery, keeping it inactive until the first subscription.

v4.0.0-alpha.7Breaking
Apr 3, 2025

Removed several React entry points and the parser cache, requiring import updates to `@apollo/client/react` and removal of parser usage.

v4.0.0-alpha.6Breaking3 features
Apr 1, 2025

This release introduces stricter error handling for empty link chains, removes obsolete loading‑state properties from promise‑based query APIs, adds partial data to combined GraphQL errors, and provides a new `prerenderStatic` SSR method while deprecating older SSR helpers.

Related Backend & Infra Packages

Subscribe to Updates

Get notified when new versions are released

RSS Feed