Packages

@apollo/client

4.3.5 · 19 Oct 2026MIT5.3M / weekRepositoryHomepagenpmAtom feed

Upgrading @apollo/client from 3.12.11 to 3.13.0

1 release in betweenevery note read

Other targets from 3.12.11Newest 3.x3.14.1Latest4.3.5

Before you upgrade

Tick each one off as you go
  • deprecated3.13.0
  • deprecated3.13.0
  • deprecated3.13.0

Release by release

  1. 3.13.0

    13 Feb 20253 new · 4 fixes
    • new

      Adds a new useSuspenseFragment hook.

    • new

      Provide a more type-safe option for the previous data value passed to observableQuery.updateQuery. Using it could result in crashes at runtime as this callback could be called with partial data even though its type reported the value as a complete result.

    • new

      Reject the mutation promise if errors are thrown in the onCompleted callback of useMutation.

    • fixed

      Ensure errors thrown in the onCompleted callback from useMutation don't call onError.

    • fixed

      Fix the return type of the updateQuery function to allow for undefined. updateQuery had the ability to bail out of the update by returning a falsey value, but the return type enforced a query value.

    • fixed

      In case of a multipart response (e.g. with @defer), query deduplication will

    • fixed

      Fix the type of the variables property passed as the 2nd argument to the subscribeToMore callback. This was previously reported as the variables type for the subscription itself, but is now properly typed as the query variables.