Major Changes
-
#12586
605db8eThanks @jerelmiller! - Remove thetypeDefsoption fromApolloClient. -
#12588
eed825aThanks @jerelmiller! - RemoveTContextgeneric argument from all types that use it.TContextis replaced withDefaultContextwhich can be modified using declaration merging. -
#12590
a005e82Thanks @jerelmiller! - Dropgraphqlv15 as a valid peer dependency. -
#12591
a7e7383Thanks @jerelmiller! - Rename the@apollo/client/link/coreentrypoint to@apollo/client/link. -
#12589
15f5a1cThanks @jerelmiller! - Require thelinkoption when instantiatingApolloClient. This removes theuri,credentialsandheadersoptions fromApolloClientin favor of passing an instantiatedHttpLinkdirectly. To migrate:If using
uri,credentials, orheadersoptionsnew ApolloClient({ // ... - uri, - credentials, - headers, + link: new HttpLink({ uri, credentials, headers }), // or if you prefer the function call approach: + link: createHttpLink({ uri, credentials, headers }), });If creating a client without the
linkoptionnew ApolloClient({ // ... + link: ApolloLink.empty() });