Packages

@apollo/client

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

Your version

3.12.9

3 Feb 2025Where it was published

3.14.1 is the newest release of 3.x.

In short

1 new1 fixed

Release note

Patch Changes

  • Fix type of extensions in protocolErrors for ApolloError and the onError link. According to the multipart HTTP subscription protocol, fatal tranport errors follow the GraphQL error format which require extensions to be a map as its value instead of an array.

  • Allow RetryLink to retry an operation when fatal transport-level errors are emitted from multipart subscriptions.

    const retryLink = new RetryLink({
      attempts: (count, operation, error) => {
        if (error instanceof ApolloError) {
          // errors available on the `protocolErrors` field in `ApolloError`
          console.log(error.protocolErrors);
        }
    
        return true;
      },
    });