graphql 4.0.0-alpha.11
graphql: ^4.0.0-alpha.11 copied to clipboard
A stand-alone GraphQL client for Dart, bringing all the features from a modern GraphQL client to one easy to use package.
4.0.0-alpha.11 (2020-09-26) #
- hotfix(client):
gql_http_link==0.3.2
for custom toJsons closing #734 (98b8cf7)
4.0.0-alpha.10 (2020-09-26) #
- hotfix(client):
gql_http_link==0.3.1
fix for bool json encoding support (38b2fd2)
4.0.0-alpha.9 (2020-09-25) #
⚠️ breaking: the cache.readFragment / cache.readFragment
API has been reworked:
final fragDoc = gql(...);
final idFields = { '__typename': 'MyType', 'id': 1 }
final fragmentData = {
'myField': 'updatedValue',
'someNewField': [
{'newData': false}
],
};
+ // or Fragment(document: fragDoc).asRequest(idFields: idFields)
+ final fragmentRequest = FragmentRequest(
+ fragment: Fragment(
+ document: fragDoc,
+ ),
+ idFields: idFields,
+ );
cache.writeFragment(
- fragment: fragDoc,
- idFields: idFields,
+ fragmentRequest,
data: fragmentData,
);
This was done because I (@micimize) wanted to make it more consistent with cache.readQuery
/cache.writeQuery
before beta
.
4.0.0-alpha.8 (2020-09-24) #
This was mostly a prep release for the first v4 beta.
- client: cache proxy methods on cache, resetStore with optional refetchQueries (ba7134a)
- test(client): more cache and store tests (a9eed21)
- examples: merge and update flutter_bloc changes (ac4759a)
- docs: correct multipart example (f9d1adb)
- chore: re-merge changelog and templates (9db0b44)
- tests: restore old websocket client tests (3e4870c)
- refactor: pollInterval is now a Duration (fe02bb8)
- chore: I think fixes coverage and lint (d37e81c)
4.0.0-alpha.7 (2020-09-17) #
GraphQLClient
now implements GraphQLDataProxy
, exposing readQuery
, writeQuery
, readFragment
, and writeFragment
. The writing methods also trigger rebroadcasts, closing #728.
It also adds an experimental client.resetStore({refetchQueries = true})
for refetching the results of all observed queries (not mutations), and expose cache.store
with a WARNING about direct access.
- client: cache proxy methods on cache, resetStore with optional refetchQueries (ba7134a)
- client: refetchSafeQueries, clarify rebroadcast calls in docs (e45b240)
- client: expose store, cleanup (6fc5e7e)
- client: add isMutation etc helpers to Options types (04e7888)
- fix: only queries are refetch safe (1e93376)
- refactor: clean up unused helpers, clarify shoudRebroadcast (1cf6478)
4.0.0-alpha.4 (2020-09-05) #
4.0.0-alpha.3 (2020-07-27) #
4.0.0-alpha.2 (2020-07-24) #
4.0.0-alpha.0 (2020-06-07) #
See the v4 changelog
3.1.0 (2020-07-27) #
Bug Fixes #
- ci: add changelog back (3e63c3e)
- ci: Sync master into beta (2a0507e)
- client: Throw a ClientException on non-json responses, to be (7d538e1), closes #552
- client: translateNetworkFailure when no route to host (877bdb8)
- examples: rebuilt & tested starwars example (2aaffeb)
- examples/starwars: use git dependency for graphql_starwars_test_server (0facc48)
- flutter: Query.didUpdateWidget and policy overrides (6672e44)
- flutter: widgets make unnecessary requests when dependencies change (c487931)
- packaging: correct dependencies, remove authors (13f6a43)
- packaging: don't commit .flutter-plugins-dependencies (f77dafa)
- packaging: upgrade rxdart (20364a9)
- release: RunMutation return type definition (9cb9658)
- tests: don't factor tests into coverage scores (4a9bcd4)
Features #
3.1.0-beta.7 (2020-06-04) #
Bug Fixes #
- ci: add changelog back (3e63c3e)
- ci: Sync master into beta (2a0507e)
- client: FetchMoreOptions bug with operator precedence (f8e05af)
3.0.2 (2020-05-18) #
Bug Fixes #
- client: FetchMoreOptions bug with operator precedence (f8e05af)
3.1.0-beta.6 (2020-05-16) #
Bug Fixes #
- packaging: correct dependencies, remove authors (a22d504)
3.1.0-beta.5 (2020-05-10) #
Bug Fixes #
- packaging: upgrade rxdart (20364a9)
Features #
- graphql: custom auth headerKey (167fac5)
3.1.0-beta.4 (2020-04-21) #
Bug Fixes #
- examples: rebuilt & tested starwars example (f8e19f1)
- packaging: don't commit .flutter-plugins-dependencies (0857030)
3.1.0-beta.3 (2020-04-20) #
Bug Fixes #
- flutter: Query.didUpdateWidget and policy overrides (32f6172)
- style: use curly braces (42f4da4)
- tests: don't factor tests into coverage scores (4a9bcd4)
3.0.1 (2020-04-20) #
Bug Fixes #
- style: use curly braces (42f4da4)
3.1.0-beta.2 (2020-04-12) #
Bug Fixes #
- flutter: widgets make unnecessary requests when dependencies change (31936ff)
3.1.0-beta.1 (2020-03-30) #
Bug Fixes #
- examples/starwars: use git dependency for graphql_starwars_test_server (0facc48)
Features #
- examples/starwars: add web support (f52b1db)
3.0.1-beta.3 (2020-03-10) #
Bug Fixes #
- release: RunMutation return type definition (9cb9658)
3.0.1-beta.2 (2020-02-14) #
Bug Fixes #
3.0.1-beta.1 (2020-01-21) #
Bug Fixes #
- client: translateNetworkFailure when no route to host (e8b6322)
3.0.0 (2020-01-13) #
Bug Fixes #
- cache: add value == and hashCode to lazy cache map, fix traversal (617dde7)
- cache: AppLifecycleState.{suspending -> detached} (8bc7b14)
- ci: attempt to fix ci (4fac2e4)
- client: default toEncodable (5f938e4)
- client: export operation and fetch results (5dcbae5)
- client: make fetchMore valid with default original document again (faa3779)
- client: organize exports alphabetically (a322339)
- client: patch fetchMore to write to cache (9cb7474)
- client: use http 0.12.0+4 to fix a wrong content-type header on multipart request on http 0.12.0+3 (ea8822c), closes #525
- client: use noCache for fetchMore, avoiding normalization (da20541)
- docs: remove moved onComplete (31a0d2f)
- switch test to AST from document string (894dc53)
- docs: use ast for examples (d68616e)
- add eager result to stream, rebuild query widget on var change (af89b19)
- bump gql dependency (b55a891)
- don't set default policies on options so defaults are applied (fd95e37)
- exception test cases (001cb48)
- fix issues so example runs on latest stable (87d8feb)
- ignore
*.iml
and.idea
(361fdff) - ignore linting errors from the core (0612d44)
- ignore uri doesn't exist lint error (e14349d)
- individually suppress "deprecated_member_use_from_same_package" only (3879f18)
- individually suppress "deprecated_member_use_from_same_package" only (9216976)
- pass queryId directly instead of ObservableQuery object (405ae24)
- remove analysis_options.yaml as its ineffective (0a8d05d)
- remove equatable package (0c32b14)
- remove equitable package and update tests (dbe4db5)
- subscriptions reconnect (fd8f3d1)
- subscriptions reconnect (c310db2)
- suppress fix: individually suppress "deprecated_member_use_from_same_package" only (511630f)
- temporary disable assertion which is failing (3cf7333)
- update .gitignore with standard flutter paths (892fe36)
- graphql-flutter: replace document string with AST Document (23e40af)
- update starwars example (8aaa99b)
- example: depend on updated angel server, add paging example (609c4ec)
- flutter: prevent observable discarding in
MutationState.didChangeDependencies
(baeca25) - flutter: return callback results in case of futures to await (c7d6fd1)
- graphql-flutter: ignore ast errors in the core (3b16f3f)
- packaging: update rxdart and sdk min versions (1980f22), closes #497
- tests: clobbered tests from library-level exceptions (f76e165)
- tests: fix failing tests seemingly to to ast-switch (664fdd1)
- use AST for graphql client example (edf7df6)
- use case else instead of detached or suspended (9fb5aab)
Features #
- client: add error link (de9714a), closes #419 #440
- client: cache.reset() added (8c4f2e2)
- client: introduce Policies class for options and add defaults to client (fa24aab)
- client: library-level exception handling (20e57bd)
- client: library-level exceptions (8976cfc)
- client: support defining operations from document AST (fa2db11)
- client: support joining multiple links at once (9565244)
- attempt to call mutation callbacks from mutation method (e323a4d)
- better message on UnhandledFailure (eccab11)
- document exception handling (b38e2a3)
- flutter: add mutation callback for onError (1ff0b8f)
- graphql-client: re-export parseString as gql (dcd5508)
- update examples to gql instead of parse string (7b9ac57)
- updating example (1a1bc43)
- use equatable package to make it easier to compare links (a7ed072)
BREAKING CHANGES #
- packaging: projects dependent on old sdk/rxdart versions wouldn't build, there is a way to override rxdart dependency with dependency_override (we don't use Observable features in these places, so it should be compatible with older version) there is no way to override min sdk version outside of a project
- client: replaces result.errors with result.exception
3.0.0-beta.3 (2020-01-09) #
Bug Fixes #
- client: use http 0.12.0+4 to fix a wrong content-type header on multipart request on http 0.12.0+3 (ea8822c), closes #525
3.0.0-beta.2 (2020-01-08) #
Bug Fixes #
BREAKING CHANGES #
- packaging: projects dependent on old sdk/rxdart versions wouldn't build, there is a way to override rxdart dependency with dependency_override (we don't use Observable features in these places, so it should be compatible with older version) there is no way to override min sdk version outside of a project
3.0.0-beta.1 (2019-12-22) #
Bug Fixes #
- cache: add value == and hashCode to lazy cache map, fix traversal (617dde7)
- cache: AppLifecycleState.{suspending -> detached} (8bc7b14)
- ci: attempt to fix ci (4fac2e4)
- client: default toEncodable (5f938e4)
- client: export operation and fetch results (5dcbae5)
- client: make fetchMore valid with default original document again (faa3779)
- client: organize exports alphabetically (a322339)
- client: patch fetchMore to write to cache (9cb7474)
- client: use noCache for fetchMore, avoiding normalization (da20541)
- docs: remove moved onComplete (31a0d2f)
- docs: use ast for examples (d68616e)
- example: depend on updated angel server, add paging example (609c4ec)
- flutter: prevent observable discarding in
MutationState.didChangeDependencies
(baeca25) - flutter: return callback results in case of futures to await (c7d6fd1)
- pass queryId directly instead of ObservableQuery object (405ae24)
- graphql-flutter: ignore ast errors in the core (3b16f3f)
- add eager result to stream, rebuild query widget on var change (af89b19)
- bump gql dependency (b55a891)
- don't set default policies on options so defaults are applied (fd95e37)
- exception test cases (001cb48)
- fix issues so example runs on latest stable (87d8feb)
- ignore
*.iml
and.idea
(361fdff) - ignore linting errors from the core (0612d44)
- ignore uri doesn't exist lint error (e14349d)
- individually suppress "deprecated_member_use_from_same_package" only (3879f18)
- individually suppress "deprecated_member_use_from_same_package" only (9216976)
- remove analysis_options.yaml as its ineffective (0a8d05d)
- remove equatable package (0c32b14)
- remove equitable package and update tests (dbe4db5)
- subscriptions reconnect (c310db2)
- subscriptions reconnect (fd8f3d1)
- suppress fix: individually suppress "deprecated_member_use_from_same_package" only (511630f)
- switch test to AST from document string (894dc53)
- temporary disable assertion which is failing (3cf7333)
- update .gitignore with standard flutter paths (892fe36)
- update starwars example (8aaa99b)
- use AST for graphql client example (edf7df6)
- graphql-flutter: replace document string with AST Document (23e40af)
- tests: clobbered tests from library-level exceptions (f76e165)
- tests: fix failing tests seemingly to to ast-switch (664fdd1)
- use case else instead of detached or suspended (9fb5aab)
Features #
- client: add error link (de9714a), closes #419 #440
- client: cache.reset() added (8c4f2e2)
- client: introduce Policies class for options and add defaults to client (fa24aab)
- client: library-level exception handling (20e57bd)
- client: library-level exceptions (8976cfc)
- client: support defining operations from document AST (fa2db11)
- client: support joining multiple links at once (9565244)
- attempt to call mutation callbacks from mutation method (e323a4d)
- better message on UnhandledFailure (eccab11)
- document exception handling (b38e2a3)
- flutter: add mutation callback for onError (1ff0b8f)
- graphql-client: re-export parseString as gql (dcd5508)
- update examples to gql instead of parse string (7b9ac57)
- updating example (1a1bc43)
- use equatable package to make it easier to compare links (a7ed072)
BREAKING CHANGES #
- client: replaces result.errors with result.exception
See GitHub Releases.
-
Loosened
initPayload
todynamic
to support many use-cases, RemovedInitOperation
's excessive and inconsistent json encoding. Old implmentation can still be utilized aslegacyInitPayload
until deprecation -
Fixed broken anonymous operations