Releases: zino-hofmann/graphql-flutter
Releases · zino-hofmann/graphql-flutter
v1.0.1-beta.6@beta
v1.0.1-beta.5@beta
v1.0.1-beta.4@beta
v1.0.1-beta.3@beta
1.0.1-beta.3 (2019-04-30)
Bug Fixes
v1.0.1-beta.2@beta
v1.0.1-beta.1@beta
February 16 2019
We are finally in BETA. This means we're one step closer to our first stable release.
Thanks to all the contributors.
What's changed?
We have added a brand new Link
that handles authentication. You can drop it in like so:
final HttpLink httpLink = HttpLink(
uri: 'https://api.github.com/graphql',
);
final AuthLink authLink = AuthLink(
getToken: () async => 'Bearer $YOUR_PERSONAL_ACCESS_TOKEN',
);
final Link link = authLink.concat(httpLink);
GraphQLClient client = GraphQLClient(
cache: NormalizedInMemoryCache(
dataIdFromObject: typenameDataIdFromObject,
),
link: link,
);
The getToken
function will be called right before each event gets passed to the next link. It set the Authorization
header to the value returned by getToken
and passes it under the header
map to the context.
Breaking changes
n/a
Fixes / Enhancements
- Fixed decouple mutation side effects from component (#114). @micimize
- Fixed
data == {}
was always false, instead ofdata.isEmpty
. @nesger - Added
update(cache, result)
attribute toMutation
. @micimize - Added
NormalizationException
to handle infinite dereference StackOverflow due to user error. @micimize - Added the GraphQL message type
GQL_CONNECTION_KEEP_ALIVE
, so it isn't interpreted asUnknownData
anymore. @ArneSchulze - Added the brand ne
AuthLink
class. @HofmannZ - Update example to use
NormalizedCache
/ test decoupling by replacing theMutation
while in flight. @micimize - Removed closed observable queries from
QueryManager
. @micimize
Docs
- Fixed typos. @xtian
- Added
MessageType
constantGQL_CONNECTION_KEEP_ALIVE
. @ArneSchulze - Added
GraphQLSocketMessage
classConnectionKeepAlive
. @ArneSchulze - Added
Stream<ConnectionKeepAlive>
toGraphQLSocket
. @ArneSchulze - Updated the example to use the new AuthLink. @HofmannZ
October 28 2018
🎉 Big shout out to @micimize for making big steps with the NormalizedInMemoryCache
extention!
Breaking changes
n/a
Fixes / Enhancements
- Added
NormalizedInMemoryCache
as a new cache option. @micimize - Fixed
Mutation
callingonCompleted
for loading state. @rafaelring - Fix type annotations. @HofmannZ
- Fixed http versions. @HofmannZ
Docs
- Added docs for the new
NormalizedInMemoryCache
option. @micimize - Added @rafaelring as a contributor. @HofmannZ
October 28 2018
Breaking changes
n/a
Fixes / Enhancements
- Fixed bug when set state was called after widget was unmounted. @sirkuryaki
- Fixed types. @HofmannZ
Docs
- Fixed
Query
andMutation
examples onREADME.md
. @sirkuryaki