Major Changes
-
#2225
712205f
Thanks @PowerKiKi! - BREAKING use Typescript strict modeThis is breaking because:
ApolloBase.client
throws an error if no client has been created beforehand. The behavior now
matches the typing that always declared a client existed. In most cases, you should pass either
apolloOptions
orapolloNamedOptions
toApollo.constructor
to create the client immediately
upon construction.ApolloBase.query()
,ApolloBase.mutate()
andApolloBase.subscribe()
all have a new constraint
onV
. If you inherit from this class, you might need to adjust your typing.- Classes that inherit
Query
,Mutation
andSubscription
must declare thedocument
member.
This requirement always existed at runtime but was not enforced at compile time until now. If you
generated code, you have nothing to do. QueryRef.getLastResult()
andQueryRef.getLastError()
might returnundefined
. This was always
the case, but was typed incorrectly until now.pickFlag()
was dropped without any replacement.createPersistedQueryLink()
requires options. This was always the case but was typed incorrectly
until now.