github apollographql/apollo-client @apollo/client@4.0.0-rc.8

latest releases: @apollo/client@4.0.3, @apollo/client@4.0.2, @apollo/client-codemod-migrate-3-to-4@1.0.2...
pre-release26 days ago

Major Changes

  • #12825 292b949 Thanks @jerelmiller! - The serializeFetchParameter helper is no longer exported and JSON.stringify is used directly. As such, the ClientParseError type has also been removed in favor of throwing any JSON serialize errors directly.

  • #12824 0506f12 Thanks @jerelmiller! - Ensure the error argument for the delay and attempts functions on RetryLink are an ErrorLike.

  • #12823 19e315e Thanks @jerelmiller! - Move all 1st party link types into a namespace.

  • #12823 19e315e Thanks @jerelmiller! - The OperationBatcher class is no longer exported from @apollo/client/link/batch. It is an implementation detail of BatchLink and should not be relied on directly.

Patch Changes

  • #12824 0506f12 Thanks @jerelmiller! - RetryLink now emits a next event instead of an error event when encountering a protocol errors for multipart subscriptions when the operation is not retried. This ensures the observable notification remains the same as when RetryLink is not used.

  • #12819 7ff548d Thanks @jerelmiller! - update type of HttpLink.Options.fetchOptions to RequestInit

  • #12820 fba3d9e Thanks @jerelmiller! - The fetchOptions option provided to HttpLink and BatchHttpLink is now RequestInit instead of any. The credentials option is now a RequestCredentials type instead of a string.

  • #12823 19e315e Thanks @jerelmiller! - Fix the type of the argument for the sha256 function for PersistedQueryLink from ...any[] to string.

  • #12821 223a409 Thanks @jerelmiller! - Add a deprecation warning to WebSocketLink.

Don't miss a new apollo-client release

NewReleases is sending notifications on new releases.