npm @apollo/client 3.12.9
v3.12.9

22 hours ago

Patch Changes

  • #12321 daa4f33 Thanks @jerelmiller! - 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.

  • #12318 b17968b Thanks @jerelmiller! - 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;
      },
    });

Don't miss a new client release

NewReleases is sending notifications on new releases.