graphql_flutter 0.7.0 graphql_flutter: ^0.7.0 copied to clipboard
A GraphQL client for Flutter.
[0.7.0] - July 22 2018 #
Breaking change #
n/a
Fixes / Enhancements
- Added support for subsciptionsin the client.
- Added the
Subscription
widget. You can no direcly acces streams from Flutter.
Docs
- Added instructions for adding subscripton to your poject.
- Updated the
About this project
section.
[0.6.0] - July 19 2018 #
Breaking change #
- The library now requires your app to be wrapped with the
GraphqlProvider
widget. - The global
client
variable is no longer available. Instead use theGraphqlConsumer
widget.
Fixes / Enhancements
- Added the
GraphqlProvider
widget. The client is now stored in anInheritedWidget
, and can be accessed anywhere within the app.
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 theQuery
andMutation
widgets.
Under the hood it access the client from the
BuildContext
.
- Added the option to optionally provide the
apiToken
to theClient
constructor. It is still possible to set theapiToken
with setter method.
return new GraphqlConsumer(
builder: (Client client) {
// do something with the client
return new Container();
},
);
Docs
- Added documentation for the new
GraphqlProvider
- Added documentation for the new
GraphqlConsumer
- Changed the setup instructions to include the new widgets
- Changed the example to include the new widgets
[0.5.4] - July 17 2018 #
Breaking change #
n/a
Fixes / Enhancements
- Query: changed
Timer
toTimer.periodic
@eusdima - Minor logic tweak @eusdima
- Use absolute paths in the library
Docs
- Fix mutations example bug not updating star bool @cal-pratt
[0.5.3] - July 13 2018 #
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
[0.5.2] - July 11 2018 #
[0.5.1] - June 29 2018 #
[0.5.0] - June 25 2018 #
Breaking change #
n/a
Fixes / Enhancements
- Introduced
onCompleted
callback for mutiations. - Excluded some config files from version control.
Docs
- Fixed typos in the
readme.md
. - The examples inculde an example of the
onCompleted
callback.
[0.4.1] - June 22 2018 #
Breaking change #
n/a
Fixes / Enhancements
n/a
Docs
- The examples now porperly reflect the changes to the library.
[0.4.0] - June 21 2018 #
Breaking change #
- The Client now requires a from of cache.
- The name of the
execute
method on theClient
class changed toquery
.
Fixes / Enhancements
- Implemented in-memory cache.
- Write memory to file when in background.
- Added provider widget to save and restore the in-memory cache.
- Restructure the project.
Docs
- Update the
README.md
to refelct changes in the code. - update the example to refelct changes in the code.
[0.3.0] - June 16 2018 #
Breaking change #
- Changed data type to
Map
instaid ofObject
to be more explicit.
Fixes / Enhancements
- Cosmatic changes.
Docs
- Added a Flutter app example.
- Fixed the example in
README.md
. - Added more badges.
[0.2.0] - June 15 2018 #
Breaking change #
- Changed query widget
polling
argument topollInterval
, following the react-apollo api.
Fixes / Enhancements
- Query polling is now optional.
Docs
- Updated the docs with the changes in api.
[0.1.0] - June 15 2018 #
My colleague and I created a simple implementation of a GraphQL Client for Flutter. (Many thanks to Eus Dima, for his work on the initial client.)
Breaking change #
n/a
Fixes / Enhancements
- A client to connect to your GraphQL server.
- A query widget to handle GraphQL queries.
- A mutation widget to handle GraphQL mutations.
- Simple support for query polling.
Docs
- Initial documentation.