[BREAKING CHANGES]: Don't attempt to run queued requests if obtaining a new token fails.
- inject sources into
sourcesContent
into source maps
handleFetch
now also can be async
[BREAKING CHANGES]: Prop IsTokenValidOrUndefined
now async. You have to modify your callback by making it async
.
isTokenValidOrUndefined: async () => {/* ... */}
[BREAKING CHANGES]: Callbacks HandleFetch
, HandleError
and prop IsTokenValidOrUndefined
now receives operation
as additional argument
- added graphql v16 support
@apollo/client
moved to peer dependencies
- Allow generic typing of access token payload
[BREAKING CHANGES]: Starting from this release we support Apollo v3 only. If you need Apollo v2 support, please use 0.2.x version.
- Experimental Apollo 3.0 support
- Call
consumeQueue
in any way (on Error)
- Fixed endless
fetching
after receiving error
- updated
graphql
peerDependency
- Token could be an object with a payload
- Allowed to pass an object as
accessTokenField
, not only as strict string
- Added a possibility to use apollo query to refresh token
- Added new parameter
handleResponse
that allows user to manually parse response with token and handle errors