From 83bd11492553450544405a8373caea986c26abe1 Mon Sep 17 00:00:00 2001 From: Florian Harr Date: Wed, 6 Mar 2024 12:01:14 -0500 Subject: [PATCH 1/4] chore(input-create): Passing through options to create factory --- packages/ferry_generator/lib/graphql_builder.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/ferry_generator/lib/graphql_builder.dart b/packages/ferry_generator/lib/graphql_builder.dart index 08b582f4..3a226c75 100644 --- a/packages/ferry_generator/lib/graphql_builder.dart +++ b/packages/ferry_generator/lib/graphql_builder.dart @@ -129,7 +129,9 @@ class GraphqlBuilder implements Builder { config.enumFallbackConfig, generatePossibleTypesMap: config.shouldGeneratePossibleTypes, allocator: schemaAllocator, - triStateValueConfig: triStateValueConfig), + triStateValueConfig: triStateValueConfig, + generateVarsCreateFactories: + config.shouldGenerateVarsCreateFactories), }; for (var entry in libs.entries) { From 2e32124c9fbb94663fc468ea55a3c54e13af6a7a Mon Sep 17 00:00:00 2001 From: Florian Harr Date: Wed, 6 Mar 2024 12:51:20 -0500 Subject: [PATCH 2/4] Setting gql_code_builder dependency --- packages/ferry_generator/pubspec.yaml | 7 ++++++- packages/ferry_test_graphql2/pubspec.yaml | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/packages/ferry_generator/pubspec.yaml b/packages/ferry_generator/pubspec.yaml index 066ddf4d..82495aa4 100644 --- a/packages/ferry_generator/pubspec.yaml +++ b/packages/ferry_generator/pubspec.yaml @@ -12,7 +12,12 @@ topics: - codegen dependencies: gql: '>=0.14.0 <2.0.0' - gql_code_builder: ^0.10.0 + #gql_code_builder: ^0.10.1 + gql_code_builder: + git: + url: 'https://github.com/gql-dart/gql.git' + ref: 'bfafca57c04e5615bb38cd74f6e6b3e71d18994f' + path: ./codegen/gql_code_builder gql_tristate_value: ^1.0.0 built_collection: ^5.0.0 code_builder: ^4.3.0 diff --git a/packages/ferry_test_graphql2/pubspec.yaml b/packages/ferry_test_graphql2/pubspec.yaml index eec0b9f2..ded149a2 100644 --- a/packages/ferry_test_graphql2/pubspec.yaml +++ b/packages/ferry_test_graphql2/pubspec.yaml @@ -12,7 +12,12 @@ dependencies: ferry_exec: ^0.6.1-dev.0+1 built_value: ^8.0.4 built_collection: ^5.0.0 - gql_code_builder: ^0.10.0 + #gql_code_builder: ^0.10.0+1 + gql_code_builder: + git: + url: 'https://github.com/gql-dart/gql.git' + ref: 'bfafca57c04e5615bb38cd74f6e6b3e71d18994f' + path: ./codegen/gql_code_builder dev_dependencies: test: ^1.16.8 build_runner: ^2.0.2 From 2fe47213da90c9759d7171b3829e59fe74c888f1 Mon Sep 17 00:00:00 2001 From: Florian Harr Date: Mon, 11 Mar 2024 11:49:59 -0400 Subject: [PATCH 3/4] Update packages/ferry_test_graphql2/pubspec.yaml --- packages/ferry_test_graphql2/pubspec.yaml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/ferry_test_graphql2/pubspec.yaml b/packages/ferry_test_graphql2/pubspec.yaml index ded149a2..a8cd5363 100644 --- a/packages/ferry_test_graphql2/pubspec.yaml +++ b/packages/ferry_test_graphql2/pubspec.yaml @@ -12,12 +12,7 @@ dependencies: ferry_exec: ^0.6.1-dev.0+1 built_value: ^8.0.4 built_collection: ^5.0.0 - #gql_code_builder: ^0.10.0+1 - gql_code_builder: - git: - url: 'https://github.com/gql-dart/gql.git' - ref: 'bfafca57c04e5615bb38cd74f6e6b3e71d18994f' - path: ./codegen/gql_code_builder + gql_code_builder: ^0.11.0 dev_dependencies: test: ^1.16.8 build_runner: ^2.0.2 From 539b1b7fa33c41c926ecec5bffc1266e4f9466ad Mon Sep 17 00:00:00 2001 From: Florian Harr Date: Mon, 11 Mar 2024 11:50:12 -0400 Subject: [PATCH 4/4] Update packages/ferry_generator/pubspec.yaml --- packages/ferry_generator/pubspec.yaml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/ferry_generator/pubspec.yaml b/packages/ferry_generator/pubspec.yaml index 82495aa4..f04a6e3d 100644 --- a/packages/ferry_generator/pubspec.yaml +++ b/packages/ferry_generator/pubspec.yaml @@ -12,12 +12,7 @@ topics: - codegen dependencies: gql: '>=0.14.0 <2.0.0' - #gql_code_builder: ^0.10.1 - gql_code_builder: - git: - url: 'https://github.com/gql-dart/gql.git' - ref: 'bfafca57c04e5615bb38cd74f6e6b3e71d18994f' - path: ./codegen/gql_code_builder + gql_code_builder: ^0.11.0 gql_tristate_value: ^1.0.0 built_collection: ^5.0.0 code_builder: ^4.3.0