Skip to content

Releases: zino-hofmann/graphql-flutter

September 2 2018

01 Sep 22:51
485a77f
Compare
Choose a tag to compare
September 2 2018 Pre-release
Pre-release

Breaking change

  • Renamed Client to GraphQLClient to avoid name collision with other packages. @HofmannZ
  • Renamed GraphqlProvider to GraphQLProvider to align with new naming. @HofmannZ
  • Renamed GraphqlConsumer to GraphQLConsumer to align with new naming. @HofmannZ
  • Renamed GQLError to GraphQLError to align with new naming. @HofmannZ
  • GraphQLClient requires a Link to passed into the constructor. @HofmannZ
  • GraphQLClient no longer requires a endPoint or apiToken to be passed into the constructor. Instead you can provide it to the Link. @HofmannZ
  • The Query and Mutation widgets are now StreamBuilders, there the api did change slightly. @HofmannZ

Fixes / Enhancements

  • Improved typing throughout the library. @HofmannZ
  • Queries are handled as streams of operations. @HofmannZ
  • Added the HttpLink to handle requests using http. @HofmannZ
  • HttpLink allows headers to be customised. @HofmannZ
  • The api allows contributors to write their own custom links. @HofmannZ

Docs

  • Implement the new link system in the example. @HofmannZ

August 30 2018

30 Aug 15:41
51bc8d5
Compare
Choose a tag to compare

Breaking change

n/a

Fixes / Enhancements

Docs

n/a

August 23 2018

23 Aug 20:27
df0465e
Compare
Choose a tag to compare

Breaking change

n/a

Fixes / Enhancements

  • Added error extensions support. @dustin-graham
  • Changed the mutation typedef to return a Future, allowing async/await. @HofmannZ
  • Fixed error handling when location is not provided. @adelcasse
  • Fixed a bug where the client might no longer be in the same context. @HofmannZ

Docs

n/a

August 10 2018

10 Aug 11:05
1208543
Compare
Choose a tag to compare

Breaking change

n/a

Fixes / Enhancements

  • Added basic error handeling for queries and mutations @mmadjer
  • Added missing export for the GraphqlConsumer widget @AleksandarFaraj

Docs

n/a

July 22 2018

24 Jul 09:48
94206d4
Compare
Choose a tag to compare

Breaking change

n/a

Fixes / Enhancements

  • Added support for subsciptions in the client. @cal-pratt
  • Added the Subscription widget. You can no direcly acces streams from Flutter. @cal-pratt

Docs

  • Added instructions for adding subscripton to your poject. @cal-pratt
  • Updated the About this project section. @HofmannZ

July 19 2018

20 Jul 01:50
8053510
Compare
Choose a tag to compare

Breaking change

  • The library now requires your app to be wrapped with the GraphqlProvider widget. @HofmannZ
  • The global client variable is no longer available. Instead use the GraphqlConsumer widget. @HofmannZ

Fixes / Enhancements

  • Added the GraphqlProvider widget. The client is now stored in an InheritedWidget, and can be accessed anywhere within the app. @HofmannZ
Client client = GraphqlProvider.of(context).value;
  • Added the GraphqlConsumer widget. For ease of use we added a widget that uses the same builder structure as the Query and Mutation widgets. @HofmannZ

Under the hood it access the client from the BuildContext.

  • Added the option to optionally provide the apiToken to the Client constructor. It is still possible to set the apiToken with setter method. @HofmannZ
  return new GraphqlConsumer(
    builder: (Client client) {
      // do something with the client

      return new Container();
    },
  );

Docs

  • Added documentation for the new GraphqlProvider @HofmannZ
  • Added documentation for the new GraphqlConsumer @HofmannZ
  • Changed the setup instructions to include the new widgets @HofmannZ
  • Changed the example to include the new widgets @HofmannZ

July 17 2018

17 Jul 15:58
6e6aff7
Compare
Choose a tag to compare

Breaking change

n/a

Fixes / Enhancements

Docs

  • Fix mutations example bug not updating star bool @cal-pratt

July 13 2018

13 Jul 08:53
ff6ee91
Compare
Choose a tag to compare

Breaking change

n/a

Fixes / Enhancements

  • Added polling timer as a variable for easy deletion on dispose
  • Fixed bug when Query timer is still active when the Query is disposed
  • Added instant query fetch when the query variables are updated

Docs

n/a

July 11 2018

11 Jul 09:05
ff1cc7e
Compare
Choose a tag to compare

Breaking change

n/a

Fixes / Enhancements

  • Fixed error when cache file is non-existent

Docs

n/a

June 29 2018

29 Jun 10:02
5bed7af
Compare
Choose a tag to compare

Breaking change

n/a

Fixes / Enhancements

  • Fixed json error parsing.

Docs

n/a