Skip to content

Commit

Permalink
Merge branch 'feat/serialize-vars-in-request' of https://github.com/g…
Browse files Browse the repository at this point in the history
…ql-dart/ferry into feat/serialize-vars-in-request
  • Loading branch information
knaeckeKami committed Nov 10, 2023
2 parents 598ddec + 0c008c0 commit c93e709
Show file tree
Hide file tree
Showing 24 changed files with 36 additions and 453 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

Packages with breaking changes:


- [`ferry_exec` - `v0.4.0`](#ferry_exec---v040)

Packages with other changes:
Expand All @@ -36,6 +37,13 @@ Packages with dependency updates only:
#### `ferry_exec` - `v0.4.0`

- **BREAKING** **FEAT**(ferry_exec): add `varToJson()` method to OperationRequest and FragmentRequest in order to make the cache work without casts to dynamic.
- `ferry_flutter` - `v0.8.1-dev.4`

---

#### `ferry_cache` - `v0.7.1-dev.4`

- **FEAT**(ferry_generator): add option to reuse data classes for fragments with a single inline fragment spread as selection (#530).


## 2023-08-13
Expand Down
2 changes: 1 addition & 1 deletion examples/auth_token_with_isolate/client/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ dependencies:

# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
ferry: ^0.15.0-dev.3
ferry: ^0.15.0-dev.4
hive:
ferry_hive_store:
path_provider:
Expand Down
2 changes: 2 additions & 0 deletions examples/pokemon_explorer/lib/src/client_isolate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ Future<Client> _initClientIsolate(

final box = await Hive.openBox<Map<String, dynamic>>("graphql");

/// This deletes all cached content. useful for an example, not so much for a real-world app
/// Remove this line when you copy this code for your app.
await box.clear();

final store = HiveStore(box);
Expand Down
4 changes: 2 additions & 2 deletions examples/pokemon_explorer/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ environment:
dependencies:
gql_link: '>=0.5.0 <2.0.0'
gql_http_link: '>=0.4.0 <2.0.0'
ferry: ^0.15.0-dev.3
ferry: ^0.15.0-dev.4
ferry_hive_store: ^0.5.1
ferry_flutter: ^0.8.1-dev.3
ferry_flutter: ^0.8.1-dev.4
hive: ^2.0.0
hive_flutter: ^1.1.0
get_it: ^7.1.3
Expand Down
4 changes: 4 additions & 0 deletions packages/ferry/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.15.0-dev.4

- Update a dependency to the latest release.

## 0.15.0-dev.3

- Update a dependency to the latest release.
Expand Down
4 changes: 2 additions & 2 deletions packages/ferry/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: ferry
version: 0.15.0-dev.3
version: 0.15.0-dev.4
homepage: https://ferrygraphql.com/
description: Ferry is a simple, powerful GraphQL Client for Flutter and Dart.
repository: https://github.com/gql-dart/ferry
Expand All @@ -16,7 +16,7 @@ dependencies:
built_value: ^8.0.4
ferry_exec: ^0.4.0
normalize: ^0.9.0-dev.2
ferry_cache: ^0.7.1-dev.3
ferry_cache: ^0.7.1-dev.4
dev_dependencies:
test: ^1.16.8
mockito: ^5.3.1
Expand Down
4 changes: 4 additions & 0 deletions packages/ferry_cache/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.7.1-dev.4

- **FEAT**(ferry_generator): add option to reuse data classes for fragments with a single inline fragment spread as selection (#530).

## 0.7.1-dev.3

- **FIX**(normalize): When there are dangling references in child objects of a list, by default do not treat the whole entity as partial data, but remove it from the list. This can be configured using the allowDanglingReference parameter.
Expand Down
8 changes: 4 additions & 4 deletions packages/ferry_cache/lib/src/cache.dart
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class Cache {
document: request.operation.document,
addTypename: addTypename,
operationName: request.operation.operationName,
variables: request.varsToJson,
variables: request.varsToJson(),
typePolicies: typePolicies,
dataIdFromObject: dataIdFromObject,
possibleTypes: possibleTypes,
Expand All @@ -146,7 +146,7 @@ class Cache {
document: request.document,
idFields: request.idFields,
fragmentName: request.fragmentName,
variables: request.varsToJson,
variables: request.varsToJson(),
typePolicies: typePolicies,
addTypename: addTypename,
dataIdFromObject: dataIdFromObject,
Expand Down Expand Up @@ -177,7 +177,7 @@ class Cache {
),
document: request.operation.document,
operationName: request.operation.operationName,
variables: request.varsToJson,
variables: request.varsToJson(),
data: (data as dynamic)?.toJson(),
typePolicies: typePolicies,
addTypename: addTypename,
Expand Down Expand Up @@ -209,7 +209,7 @@ class Cache {
document: request.document,
idFields: request.idFields,
fragmentName: request.fragmentName,
variables: request.varsToJson,
variables: request.varsToJson(),
data: (data as dynamic)?.toJson(),
typePolicies: typePolicies,
addTypename: addTypename,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Stream<Set<String>> fragmentDataChangeStream<TData, TVars>(
idFields: request.idFields,
fragmentName: request.fragmentName,
document: request.document,
variables: request.varsToJson,
variables: request.varsToJson(),
typePolicies: typePolicies,
addTypename: addTypename,
returnPartialData: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Stream<Set<String>> operationDataChangeStream<TData, TVars>(
},
document: request.operation.document,
operationName: request.operation.operationName,
variables: request.varsToJson,
variables: request.varsToJson(),
typePolicies: typePolicies,
addTypename: addTypename,
returnPartialData: true,
Expand Down
2 changes: 1 addition & 1 deletion packages/ferry_cache/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: ferry_cache
version: 0.7.1-dev.3
version: 0.7.1-dev.4
homepage: https://ferrygraphql.com/
description: A normalized, strongly typed, optimistic cache for GraphQL Operations and Fragments
repository: https://github.com/gql-dart/ferry
Expand Down
4 changes: 4 additions & 0 deletions packages/ferry_flutter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.8.1-dev.4

- Update a dependency to the latest release.

## 0.8.1-dev.3

- Update a dependency to the latest release.
Expand Down
4 changes: 2 additions & 2 deletions packages/ferry_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: ferry_flutter
version: 0.8.1-dev.3
version: 0.8.1-dev.4
homepage: https://ferrygraphql.com/
description: Flutter widgets for the Ferry GraphQL client
repository: https://github.com/gql-dart/ferry
environment:
sdk: '>=2.12.0 <3.0.0'
dependencies:
ferry: ^0.15.0-dev.3
ferry: ^0.15.0-dev.4
gql_exec: '>=0.4.0 <2.0.0'
ferry_exec: ^0.4.0
flutter:
Expand Down
9 changes: 0 additions & 9 deletions packages/ferry_test_graphql3/.gitignore

This file was deleted.

Loading

0 comments on commit c93e709

Please sign in to comment.