This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.
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 or apolloNamedOptions to Apollo.constructor to create the client immediately
upon construction.
ApolloBase.query(), ApolloBase.mutate() and ApolloBase.subscribe() all have a new constraint
on V. If you inherit from this class, you might need to adjust your typing.
Classes that inherit Query, Mutation and Subscription must declare the document 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() and QueryRef.getLastError() might return undefined. 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.
### 💻 Website Preview
The latest changes are available as preview in: [https://0e154f51.apollo-angular.pages.dev](https://0e154f51.apollo-angular.pages.dev)
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.
Releases
apollo-angular@7.0.0
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 eitherapolloOptions
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.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.