Major Changes
-
#12825
292b949
Thanks @jerelmiller! - TheserializeFetchParameter
helper is no longer exported andJSON.stringify
is used directly. As such, theClientParseError
type has also been removed in favor of throwing any JSON serialize errors directly. -
#12824
0506f12
Thanks @jerelmiller! - Ensure theerror
argument for thedelay
andattempts
functions onRetryLink
are anErrorLike
. -
#12823
19e315e
Thanks @jerelmiller! - Move all 1st party link types into a namespace. -
#12823
19e315e
Thanks @jerelmiller! - TheOperationBatcher
class is no longer exported from@apollo/client/link/batch
. It is an implementation detail ofBatchLink
and should not be relied on directly.
Patch Changes
-
#12824
0506f12
Thanks @jerelmiller! -RetryLink
now emits anext
event instead of anerror
event when encountering a protocol errors for multipart subscriptions when the operation is not retried. This ensures the observable notification remains the same as whenRetryLink
is not used. -
#12819
7ff548d
Thanks @jerelmiller! - update type ofHttpLink.Options.fetchOptions
toRequestInit
-
#12820
fba3d9e
Thanks @jerelmiller! - ThefetchOptions
option provided toHttpLink
andBatchHttpLink
is nowRequestInit
instead ofany
. Thecredentials
option is now aRequestCredentials
type instead of astring
. -
#12823
19e315e
Thanks @jerelmiller! - Fix the type of the argument for thesha256
function forPersistedQueryLink
from...any[]
tostring
. -
#12821
223a409
Thanks @jerelmiller! - Add a deprecation warning toWebSocketLink
.