diff --git a/packages/graphql_codegen/CHANGELOG.md b/packages/graphql_codegen/CHANGELOG.md index edbf559b..bb55cc6d 100644 --- a/packages/graphql_codegen/CHANGELOG.md +++ b/packages/graphql_codegen/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.13.9 + +- Fix bug in asset path resolution, again. + # 0.13.8 - Fix bug in asset path resolution. diff --git a/packages/graphql_codegen/example/pubspec.lock b/packages/graphql_codegen/example/pubspec.lock index 0f74a28b..ff290c53 100644 --- a/packages/graphql_codegen/example/pubspec.lock +++ b/packages/graphql_codegen/example/pubspec.lock @@ -329,7 +329,7 @@ packages: path: ".." relative: true source: path - version: "0.13.8" + version: "0.13.9" graphql_flutter: dependency: "direct main" description: diff --git a/packages/graphql_codegen/lib/builder.dart b/packages/graphql_codegen/lib/builder.dart index 58526e08..79997c5d 100644 --- a/packages/graphql_codegen/lib/builder.dart +++ b/packages/graphql_codegen/lib/builder.dart @@ -171,21 +171,7 @@ class GraphQLBuilder extends Builder { ), ); } - return { - ...Map.fromEntries( - kGraphQLFileExtensions.map( - (e) => MapEntry( - p.join(_assetsPrefix, '{{dir}}', '{{file}}.${e}'), - [ - p.join( - p.relative(config.outputDirectory, from: '/'), - '{{dir}}', - '{{file}}.${e}.dart', - ) - ], - ), - ), - ), + final res = { ...Map.fromEntries( kGraphQLFileExtensions.map( (e) => MapEntry( @@ -200,5 +186,6 @@ class GraphQLBuilder extends Builder { ), ) }; + return res; } } diff --git a/packages/graphql_codegen/pubspec.yaml b/packages/graphql_codegen/pubspec.yaml index ccb50029..c93cc00f 100644 --- a/packages/graphql_codegen/pubspec.yaml +++ b/packages/graphql_codegen/pubspec.yaml @@ -3,7 +3,7 @@ description: | Simple, opinionated, codegen library for GraphQL. It allows you to generate serializers and client helpers to easily call and parse your data. -version: 0.13.8 +version: 0.13.9 homepage: https://github.com/heftapp/graphql_codegen/tree/main/packages/graphql_codegen repository: https://github.com/heftapp/graphql_codegen/tree/main/packages/graphql_codegen diff --git a/packages/graphql_codegen/test/assets/issue_318/graphql/query1/q.graphql b/packages/graphql_codegen/test/assets/issue_318/graphql/query1/q.graphql index 7381d055..c83cf75b 100644 --- a/packages/graphql_codegen/test/assets/issue_318/graphql/query1/q.graphql +++ b/packages/graphql_codegen/test/assets/issue_318/graphql/query1/q.graphql @@ -1,7 +1,3 @@ -type Query { - hello: String -} - query FetchHello { - hello -} \ No newline at end of file + hello +} diff --git a/packages/graphql_codegen/test/assets/issue_318/graphql/query2/q.graphql b/packages/graphql_codegen/test/assets/issue_318/graphql/query2/q.graphql index 7381d055..c83cf75b 100644 --- a/packages/graphql_codegen/test/assets/issue_318/graphql/query2/q.graphql +++ b/packages/graphql_codegen/test/assets/issue_318/graphql/query2/q.graphql @@ -1,7 +1,3 @@ -type Query { - hello: String -} - query FetchHello { - hello -} \ No newline at end of file + hello +} diff --git a/packages/graphql_codegen/test/assets/issue_318/graphql/schema.graphql b/packages/graphql_codegen/test/assets/issue_318/graphql/schema.graphql index 7381d055..6ae991f6 100644 --- a/packages/graphql_codegen/test/assets/issue_318/graphql/schema.graphql +++ b/packages/graphql_codegen/test/assets/issue_318/graphql/schema.graphql @@ -1,7 +1,3 @@ type Query { - hello: String + hello: String } - -query FetchHello { - hello -} \ No newline at end of file diff --git a/packages/graphql_codegen/test/assets/issue_318/lib/query2/q.graphql.dart b/packages/graphql_codegen/test/assets/issue_318/lib/query2/q.graphql.dart index c64ca27a..acf09923 100644 --- a/packages/graphql_codegen/test/assets/issue_318/lib/query2/q.graphql.dart +++ b/packages/graphql_codegen/test/assets/issue_318/lib/query2/q.graphql.dart @@ -1,176 +1,5 @@ import 'package:gql/ast.dart'; -enum Enum$__TypeKind { - SCALAR, - OBJECT, - INTERFACE, - UNION, - ENUM, - INPUT_OBJECT, - LIST, - NON_NULL, - $unknown -} - -String toJson$Enum$__TypeKind(Enum$__TypeKind e) { - switch (e) { - case Enum$__TypeKind.SCALAR: - return r'SCALAR'; - case Enum$__TypeKind.OBJECT: - return r'OBJECT'; - case Enum$__TypeKind.INTERFACE: - return r'INTERFACE'; - case Enum$__TypeKind.UNION: - return r'UNION'; - case Enum$__TypeKind.ENUM: - return r'ENUM'; - case Enum$__TypeKind.INPUT_OBJECT: - return r'INPUT_OBJECT'; - case Enum$__TypeKind.LIST: - return r'LIST'; - case Enum$__TypeKind.NON_NULL: - return r'NON_NULL'; - case Enum$__TypeKind.$unknown: - return r'$unknown'; - } -} - -Enum$__TypeKind fromJson$Enum$__TypeKind(String value) { - switch (value) { - case r'SCALAR': - return Enum$__TypeKind.SCALAR; - case r'OBJECT': - return Enum$__TypeKind.OBJECT; - case r'INTERFACE': - return Enum$__TypeKind.INTERFACE; - case r'UNION': - return Enum$__TypeKind.UNION; - case r'ENUM': - return Enum$__TypeKind.ENUM; - case r'INPUT_OBJECT': - return Enum$__TypeKind.INPUT_OBJECT; - case r'LIST': - return Enum$__TypeKind.LIST; - case r'NON_NULL': - return Enum$__TypeKind.NON_NULL; - default: - return Enum$__TypeKind.$unknown; - } -} - -enum Enum$__DirectiveLocation { - QUERY, - MUTATION, - SUBSCRIPTION, - FIELD, - FRAGMENT_DEFINITION, - FRAGMENT_SPREAD, - INLINE_FRAGMENT, - VARIABLE_DEFINITION, - SCHEMA, - SCALAR, - OBJECT, - FIELD_DEFINITION, - ARGUMENT_DEFINITION, - INTERFACE, - UNION, - ENUM, - ENUM_VALUE, - INPUT_OBJECT, - INPUT_FIELD_DEFINITION, - $unknown -} - -String toJson$Enum$__DirectiveLocation(Enum$__DirectiveLocation e) { - switch (e) { - case Enum$__DirectiveLocation.QUERY: - return r'QUERY'; - case Enum$__DirectiveLocation.MUTATION: - return r'MUTATION'; - case Enum$__DirectiveLocation.SUBSCRIPTION: - return r'SUBSCRIPTION'; - case Enum$__DirectiveLocation.FIELD: - return r'FIELD'; - case Enum$__DirectiveLocation.FRAGMENT_DEFINITION: - return r'FRAGMENT_DEFINITION'; - case Enum$__DirectiveLocation.FRAGMENT_SPREAD: - return r'FRAGMENT_SPREAD'; - case Enum$__DirectiveLocation.INLINE_FRAGMENT: - return r'INLINE_FRAGMENT'; - case Enum$__DirectiveLocation.VARIABLE_DEFINITION: - return r'VARIABLE_DEFINITION'; - case Enum$__DirectiveLocation.SCHEMA: - return r'SCHEMA'; - case Enum$__DirectiveLocation.SCALAR: - return r'SCALAR'; - case Enum$__DirectiveLocation.OBJECT: - return r'OBJECT'; - case Enum$__DirectiveLocation.FIELD_DEFINITION: - return r'FIELD_DEFINITION'; - case Enum$__DirectiveLocation.ARGUMENT_DEFINITION: - return r'ARGUMENT_DEFINITION'; - case Enum$__DirectiveLocation.INTERFACE: - return r'INTERFACE'; - case Enum$__DirectiveLocation.UNION: - return r'UNION'; - case Enum$__DirectiveLocation.ENUM: - return r'ENUM'; - case Enum$__DirectiveLocation.ENUM_VALUE: - return r'ENUM_VALUE'; - case Enum$__DirectiveLocation.INPUT_OBJECT: - return r'INPUT_OBJECT'; - case Enum$__DirectiveLocation.INPUT_FIELD_DEFINITION: - return r'INPUT_FIELD_DEFINITION'; - case Enum$__DirectiveLocation.$unknown: - return r'$unknown'; - } -} - -Enum$__DirectiveLocation fromJson$Enum$__DirectiveLocation(String value) { - switch (value) { - case r'QUERY': - return Enum$__DirectiveLocation.QUERY; - case r'MUTATION': - return Enum$__DirectiveLocation.MUTATION; - case r'SUBSCRIPTION': - return Enum$__DirectiveLocation.SUBSCRIPTION; - case r'FIELD': - return Enum$__DirectiveLocation.FIELD; - case r'FRAGMENT_DEFINITION': - return Enum$__DirectiveLocation.FRAGMENT_DEFINITION; - case r'FRAGMENT_SPREAD': - return Enum$__DirectiveLocation.FRAGMENT_SPREAD; - case r'INLINE_FRAGMENT': - return Enum$__DirectiveLocation.INLINE_FRAGMENT; - case r'VARIABLE_DEFINITION': - return Enum$__DirectiveLocation.VARIABLE_DEFINITION; - case r'SCHEMA': - return Enum$__DirectiveLocation.SCHEMA; - case r'SCALAR': - return Enum$__DirectiveLocation.SCALAR; - case r'OBJECT': - return Enum$__DirectiveLocation.OBJECT; - case r'FIELD_DEFINITION': - return Enum$__DirectiveLocation.FIELD_DEFINITION; - case r'ARGUMENT_DEFINITION': - return Enum$__DirectiveLocation.ARGUMENT_DEFINITION; - case r'INTERFACE': - return Enum$__DirectiveLocation.INTERFACE; - case r'UNION': - return Enum$__DirectiveLocation.UNION; - case r'ENUM': - return Enum$__DirectiveLocation.ENUM; - case r'ENUM_VALUE': - return Enum$__DirectiveLocation.ENUM_VALUE; - case r'INPUT_OBJECT': - return Enum$__DirectiveLocation.INPUT_OBJECT; - case r'INPUT_FIELD_DEFINITION': - return Enum$__DirectiveLocation.INPUT_FIELD_DEFINITION; - default: - return Enum$__DirectiveLocation.$unknown; - } -} - class Query$FetchHello { Query$FetchHello({ this.hello, @@ -316,4 +145,3 @@ const documentNodeQueryFetchHello = DocumentNode(definitions: [ ]), ), ]); -const possibleTypesMap = >{}; diff --git a/packages/graphql_codegen/test/assets/issue_318/lib/schema.graphql.dart b/packages/graphql_codegen/test/assets/issue_318/lib/schema.graphql.dart index acf09923..5555aa19 100644 --- a/packages/graphql_codegen/test/assets/issue_318/lib/schema.graphql.dart +++ b/packages/graphql_codegen/test/assets/issue_318/lib/schema.graphql.dart @@ -1,147 +1,172 @@ -import 'package:gql/ast.dart'; - -class Query$FetchHello { - Query$FetchHello({ - this.hello, - this.$__typename = 'Query', - }); - - factory Query$FetchHello.fromJson(Map json) { - final l$hello = json['hello']; - final l$$__typename = json['__typename']; - return Query$FetchHello( - hello: (l$hello as String?), - $__typename: (l$$__typename as String), - ); - } - - final String? hello; - - final String $__typename; - - Map toJson() { - final _resultData = {}; - final l$hello = hello; - _resultData['hello'] = l$hello; - final l$$__typename = $__typename; - _resultData['__typename'] = l$$__typename; - return _resultData; - } +enum Enum$__TypeKind { + SCALAR, + OBJECT, + INTERFACE, + UNION, + ENUM, + INPUT_OBJECT, + LIST, + NON_NULL, + $unknown +} - @override - int get hashCode { - final l$hello = hello; - final l$$__typename = $__typename; - return Object.hashAll([ - l$hello, - l$$__typename, - ]); +String toJson$Enum$__TypeKind(Enum$__TypeKind e) { + switch (e) { + case Enum$__TypeKind.SCALAR: + return r'SCALAR'; + case Enum$__TypeKind.OBJECT: + return r'OBJECT'; + case Enum$__TypeKind.INTERFACE: + return r'INTERFACE'; + case Enum$__TypeKind.UNION: + return r'UNION'; + case Enum$__TypeKind.ENUM: + return r'ENUM'; + case Enum$__TypeKind.INPUT_OBJECT: + return r'INPUT_OBJECT'; + case Enum$__TypeKind.LIST: + return r'LIST'; + case Enum$__TypeKind.NON_NULL: + return r'NON_NULL'; + case Enum$__TypeKind.$unknown: + return r'$unknown'; } +} - @override - bool operator ==(Object other) { - if (identical(this, other)) { - return true; - } - if (!(other is Query$FetchHello) || runtimeType != other.runtimeType) { - return false; - } - final l$hello = hello; - final lOther$hello = other.hello; - if (l$hello != lOther$hello) { - return false; - } - final l$$__typename = $__typename; - final lOther$$__typename = other.$__typename; - if (l$$__typename != lOther$$__typename) { - return false; - } - return true; +Enum$__TypeKind fromJson$Enum$__TypeKind(String value) { + switch (value) { + case r'SCALAR': + return Enum$__TypeKind.SCALAR; + case r'OBJECT': + return Enum$__TypeKind.OBJECT; + case r'INTERFACE': + return Enum$__TypeKind.INTERFACE; + case r'UNION': + return Enum$__TypeKind.UNION; + case r'ENUM': + return Enum$__TypeKind.ENUM; + case r'INPUT_OBJECT': + return Enum$__TypeKind.INPUT_OBJECT; + case r'LIST': + return Enum$__TypeKind.LIST; + case r'NON_NULL': + return Enum$__TypeKind.NON_NULL; + default: + return Enum$__TypeKind.$unknown; } } -extension UtilityExtension$Query$FetchHello on Query$FetchHello { - CopyWith$Query$FetchHello get copyWith => - CopyWith$Query$FetchHello( - this, - (i) => i, - ); +enum Enum$__DirectiveLocation { + QUERY, + MUTATION, + SUBSCRIPTION, + FIELD, + FRAGMENT_DEFINITION, + FRAGMENT_SPREAD, + INLINE_FRAGMENT, + VARIABLE_DEFINITION, + SCHEMA, + SCALAR, + OBJECT, + FIELD_DEFINITION, + ARGUMENT_DEFINITION, + INTERFACE, + UNION, + ENUM, + ENUM_VALUE, + INPUT_OBJECT, + INPUT_FIELD_DEFINITION, + $unknown } -abstract class CopyWith$Query$FetchHello { - factory CopyWith$Query$FetchHello( - Query$FetchHello instance, - TRes Function(Query$FetchHello) then, - ) = _CopyWithImpl$Query$FetchHello; - - factory CopyWith$Query$FetchHello.stub(TRes res) = - _CopyWithStubImpl$Query$FetchHello; - - TRes call({ - String? hello, - String? $__typename, - }); -} - -class _CopyWithImpl$Query$FetchHello - implements CopyWith$Query$FetchHello { - _CopyWithImpl$Query$FetchHello( - this._instance, - this._then, - ); - - final Query$FetchHello _instance; - - final TRes Function(Query$FetchHello) _then; - - static const _undefined = {}; - - TRes call({ - Object? hello = _undefined, - Object? $__typename = _undefined, - }) => - _then(Query$FetchHello( - hello: hello == _undefined ? _instance.hello : (hello as String?), - $__typename: $__typename == _undefined || $__typename == null - ? _instance.$__typename - : ($__typename as String), - )); +String toJson$Enum$__DirectiveLocation(Enum$__DirectiveLocation e) { + switch (e) { + case Enum$__DirectiveLocation.QUERY: + return r'QUERY'; + case Enum$__DirectiveLocation.MUTATION: + return r'MUTATION'; + case Enum$__DirectiveLocation.SUBSCRIPTION: + return r'SUBSCRIPTION'; + case Enum$__DirectiveLocation.FIELD: + return r'FIELD'; + case Enum$__DirectiveLocation.FRAGMENT_DEFINITION: + return r'FRAGMENT_DEFINITION'; + case Enum$__DirectiveLocation.FRAGMENT_SPREAD: + return r'FRAGMENT_SPREAD'; + case Enum$__DirectiveLocation.INLINE_FRAGMENT: + return r'INLINE_FRAGMENT'; + case Enum$__DirectiveLocation.VARIABLE_DEFINITION: + return r'VARIABLE_DEFINITION'; + case Enum$__DirectiveLocation.SCHEMA: + return r'SCHEMA'; + case Enum$__DirectiveLocation.SCALAR: + return r'SCALAR'; + case Enum$__DirectiveLocation.OBJECT: + return r'OBJECT'; + case Enum$__DirectiveLocation.FIELD_DEFINITION: + return r'FIELD_DEFINITION'; + case Enum$__DirectiveLocation.ARGUMENT_DEFINITION: + return r'ARGUMENT_DEFINITION'; + case Enum$__DirectiveLocation.INTERFACE: + return r'INTERFACE'; + case Enum$__DirectiveLocation.UNION: + return r'UNION'; + case Enum$__DirectiveLocation.ENUM: + return r'ENUM'; + case Enum$__DirectiveLocation.ENUM_VALUE: + return r'ENUM_VALUE'; + case Enum$__DirectiveLocation.INPUT_OBJECT: + return r'INPUT_OBJECT'; + case Enum$__DirectiveLocation.INPUT_FIELD_DEFINITION: + return r'INPUT_FIELD_DEFINITION'; + case Enum$__DirectiveLocation.$unknown: + return r'$unknown'; + } } -class _CopyWithStubImpl$Query$FetchHello - implements CopyWith$Query$FetchHello { - _CopyWithStubImpl$Query$FetchHello(this._res); - - TRes _res; - - call({ - String? hello, - String? $__typename, - }) => - _res; +Enum$__DirectiveLocation fromJson$Enum$__DirectiveLocation(String value) { + switch (value) { + case r'QUERY': + return Enum$__DirectiveLocation.QUERY; + case r'MUTATION': + return Enum$__DirectiveLocation.MUTATION; + case r'SUBSCRIPTION': + return Enum$__DirectiveLocation.SUBSCRIPTION; + case r'FIELD': + return Enum$__DirectiveLocation.FIELD; + case r'FRAGMENT_DEFINITION': + return Enum$__DirectiveLocation.FRAGMENT_DEFINITION; + case r'FRAGMENT_SPREAD': + return Enum$__DirectiveLocation.FRAGMENT_SPREAD; + case r'INLINE_FRAGMENT': + return Enum$__DirectiveLocation.INLINE_FRAGMENT; + case r'VARIABLE_DEFINITION': + return Enum$__DirectiveLocation.VARIABLE_DEFINITION; + case r'SCHEMA': + return Enum$__DirectiveLocation.SCHEMA; + case r'SCALAR': + return Enum$__DirectiveLocation.SCALAR; + case r'OBJECT': + return Enum$__DirectiveLocation.OBJECT; + case r'FIELD_DEFINITION': + return Enum$__DirectiveLocation.FIELD_DEFINITION; + case r'ARGUMENT_DEFINITION': + return Enum$__DirectiveLocation.ARGUMENT_DEFINITION; + case r'INTERFACE': + return Enum$__DirectiveLocation.INTERFACE; + case r'UNION': + return Enum$__DirectiveLocation.UNION; + case r'ENUM': + return Enum$__DirectiveLocation.ENUM; + case r'ENUM_VALUE': + return Enum$__DirectiveLocation.ENUM_VALUE; + case r'INPUT_OBJECT': + return Enum$__DirectiveLocation.INPUT_OBJECT; + case r'INPUT_FIELD_DEFINITION': + return Enum$__DirectiveLocation.INPUT_FIELD_DEFINITION; + default: + return Enum$__DirectiveLocation.$unknown; + } } -const documentNodeQueryFetchHello = DocumentNode(definitions: [ - OperationDefinitionNode( - type: OperationType.query, - name: NameNode(value: 'FetchHello'), - variableDefinitions: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'hello'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - FieldNode( - name: NameNode(value: '__typename'), - alias: null, - arguments: [], - directives: [], - selectionSet: null, - ), - ]), - ), -]); +const possibleTypesMap = >{}; diff --git a/packages/graphql_switch/example/pubspec.lock b/packages/graphql_switch/example/pubspec.lock index 3c2b8c2e..79ac673b 100644 --- a/packages/graphql_switch/example/pubspec.lock +++ b/packages/graphql_switch/example/pubspec.lock @@ -45,10 +45,10 @@ packages: dependency: transitive description: name: build - sha256: "43865b79fbb78532e4bff7c33087aa43b1d488c4fdef014eaef568af6d8016dc" + sha256: "80184af8b6cb3e5c1c4ec6d8544d27711700bc3e6d2efad04238c7b5290889f0" url: "https://pub.dev" source: hosted - version: "2.4.0" + version: "2.4.1" build_config: dependency: transitive description: @@ -61,34 +61,34 @@ packages: dependency: transitive description: name: build_daemon - sha256: "5f02d73eb2ba16483e693f80bee4f088563a820e47d1027d4cdfe62b5bb43e65" + sha256: "0343061a33da9c5810b2d6cee51945127d8f4c060b7fbdd9d54917f0a3feaaa1" url: "https://pub.dev" source: hosted - version: "4.0.0" + version: "4.0.1" build_resolvers: dependency: transitive description: name: build_resolvers - sha256: db49b8609ef8c81cca2b310618c3017c00f03a92af44c04d310b907b2d692d95 + sha256: "64e12b0521812d1684b1917bc80945625391cb9bdd4312536b1d69dcb6133ed8" url: "https://pub.dev" source: hosted - version: "2.2.0" + version: "2.4.1" build_runner: dependency: "direct dev" description: name: build_runner - sha256: "5e1929ad37d48bd382b124266cb8e521de5548d406a45a5ae6656c13dab73e37" + sha256: "10c6bcdbf9d049a0b666702cf1cee4ddfdc38f02a19d35ae392863b47519848b" url: "https://pub.dev" source: hosted - version: "2.4.5" + version: "2.4.6" build_runner_core: dependency: transitive description: name: build_runner_core - sha256: "6d6ee4276b1c5f34f21fdf39425202712d2be82019983d52f351c94aafbc2c41" + sha256: c9e32d21dd6626b5c163d48b037ce906bbe428bc23ab77bcd77bb21e593b6185 url: "https://pub.dev" source: hosted - version: "7.2.10" + version: "7.2.11" built_collection: dependency: transitive description: @@ -101,10 +101,10 @@ packages: dependency: transitive description: name: built_value - sha256: "598a2a682e2a7a90f08ba39c0aaa9374c5112340f0a2e275f61b59389543d166" + sha256: "723b4021e903217dfc445ec4cf5b42e27975aece1fc4ebbc1ca6329c2d9fb54e" url: "https://pub.dev" source: hosted - version: "8.6.1" + version: "8.7.0" characters: dependency: transitive description: @@ -125,10 +125,10 @@ packages: dependency: transitive description: name: code_builder - sha256: "4ad01d6e56db961d29661561effde45e519939fdaeb46c351275b182eac70189" + sha256: b2151ce26a06171005b379ecff6e08d34c470180ffe16b8e14b6d52be292b55f url: "https://pub.dev" source: hosted - version: "4.5.0" + version: "4.8.0" collection: dependency: transitive description: @@ -157,10 +157,10 @@ packages: dependency: transitive description: name: dart_style - sha256: f4f1f73ab3fd2afcbcca165ee601fe980d966af6a21b5970c6c9376955c528ad + sha256: "1efa911ca7086affd35f463ca2fc1799584fb6aa89883cf0af8e3664d6a02d55" url: "https://pub.dev" source: hosted - version: "2.3.1" + version: "2.3.2" equatable: dependency: transitive description: @@ -202,10 +202,10 @@ packages: dependency: "direct dev" description: name: flutter_lints - sha256: aeb0b80a8b3709709c9cc496cdc027c5b3216796bc0af0ce1007eaf24464fd4c + sha256: a25a15ebbdfc33ab1cd26c63a6ee519df92338a9c10f122adda92938253bef04 url: "https://pub.dev" source: hosted - version: "2.0.1" + version: "2.0.3" frontend_server_client: dependency: transitive description: @@ -226,10 +226,10 @@ packages: dependency: transitive description: name: gql - sha256: "07ae289bc5ccfbfd143883bfe9a380f5bf52c94559ded740cf3fb152fcbdbe2e" + sha256: "58f36a75c30e0d68b367cbf47024e7f08f15a1ab349b57bda1b23586e5d70a90" url: "https://pub.dev" source: hosted - version: "1.0.1-alpha+1686240655988" + version: "1.0.1-alpha+1700349941413" gql_code_builder: dependency: transitive description: @@ -242,42 +242,42 @@ packages: dependency: transitive description: name: gql_dedupe_link - sha256: dac8e5eec5e9f6274302e5c01f77c7558f89d727f2c0dff7cda568c440a171cd + sha256: "810fc7f9f64edbcc96f592129ce22cfb088aebd336abde0b14d4bc898390baf1" url: "https://pub.dev" source: hosted - version: "2.0.4-alpha+1686240656097" + version: "2.0.4-alpha+1700349941497" gql_error_link: dependency: transitive description: name: gql_error_link - sha256: bfdb543137da89448cc5d003fd029c2e8718931d39d4a7dedb16f9169862fbb9 + sha256: "93901458f3c050e33386dedb0ca7173e08cebd7078e4e0deca4bf23ab7a71f63" url: "https://pub.dev" source: hosted - version: "1.0.0" + version: "1.0.0+1" gql_exec: dependency: transitive description: name: gql_exec - sha256: "04fb14e41fdc3fafa80fa7218224bceba019e00b80de9130c2dd0a9a77c6392d" + sha256: "394944626fae900f1d34343ecf2d62e44eb984826189c8979d305f0ae5846e38" url: "https://pub.dev" source: hosted - version: "1.0.1-alpha+1686240655996" + version: "1.1.1-alpha+1699813812660" gql_http_link: dependency: transitive description: name: gql_http_link - sha256: "0789d397d46ce274942fcc73e18a080cd2584296dadc33d8ae53d0666d7fe981" + sha256: "1f922eed1b7078fdbfd602187663026f9f659fe9a9499e2207b5d5e01617f658" url: "https://pub.dev" source: hosted - version: "1.0.1" + version: "1.0.1+1" gql_link: dependency: transitive description: name: gql_link - sha256: ecf2419e6c543d1b8dedd7dbbc538ce037f4d53a3b5b7d694a98a7d636da2817 + sha256: af3555f29db00000e732d687d4a1664beb47c4133e851457e4d5e1b0ad5ac948 url: "https://pub.dev" source: hosted - version: "1.0.1-alpha+1686240656001" + version: "1.0.1-alpha+1700349941428" gql_transform_link: dependency: transitive description: @@ -300,7 +300,7 @@ packages: path: "../../graphql_codegen" relative: true source: path - version: "0.13.8" + version: "0.13.9" graphql_switch: dependency: "direct main" description: @@ -517,18 +517,18 @@ packages: dependency: transitive description: name: stack_trace - sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" url: "https://pub.dev" source: hosted - version: "1.11.0" + version: "1.11.1" stream_channel: dependency: transitive description: name: stream_channel - sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.2" stream_transform: dependency: transitive description: @@ -557,10 +557,10 @@ packages: dependency: transitive description: name: test_api - sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8" + sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" url: "https://pub.dev" source: hosted - version: "0.6.0" + version: "0.6.1" timing: dependency: transitive description: diff --git a/packages/graphql_switch/pubspec.lock b/packages/graphql_switch/pubspec.lock index 880ce0d3..f70a5d72 100644 --- a/packages/graphql_switch/pubspec.lock +++ b/packages/graphql_switch/pubspec.lock @@ -45,10 +45,10 @@ packages: dependency: "direct main" description: name: build - sha256: "43865b79fbb78532e4bff7c33087aa43b1d488c4fdef014eaef568af6d8016dc" + sha256: "80184af8b6cb3e5c1c4ec6d8544d27711700bc3e6d2efad04238c7b5290889f0" url: "https://pub.dev" source: hosted - version: "2.4.0" + version: "2.4.1" build_config: dependency: transitive description: @@ -61,42 +61,42 @@ packages: dependency: transitive description: name: build_daemon - sha256: "5f02d73eb2ba16483e693f80bee4f088563a820e47d1027d4cdfe62b5bb43e65" + sha256: "0343061a33da9c5810b2d6cee51945127d8f4c060b7fbdd9d54917f0a3feaaa1" url: "https://pub.dev" source: hosted - version: "4.0.0" + version: "4.0.1" build_resolvers: dependency: transitive description: name: build_resolvers - sha256: db49b8609ef8c81cca2b310618c3017c00f03a92af44c04d310b907b2d692d95 + sha256: "64e12b0521812d1684b1917bc80945625391cb9bdd4312536b1d69dcb6133ed8" url: "https://pub.dev" source: hosted - version: "2.2.0" + version: "2.4.1" build_runner: dependency: "direct dev" description: name: build_runner - sha256: "5e1929ad37d48bd382b124266cb8e521de5548d406a45a5ae6656c13dab73e37" + sha256: "10c6bcdbf9d049a0b666702cf1cee4ddfdc38f02a19d35ae392863b47519848b" url: "https://pub.dev" source: hosted - version: "2.4.5" + version: "2.4.6" build_runner_core: dependency: transitive description: name: build_runner_core - sha256: "6d6ee4276b1c5f34f21fdf39425202712d2be82019983d52f351c94aafbc2c41" + sha256: c9e32d21dd6626b5c163d48b037ce906bbe428bc23ab77bcd77bb21e593b6185 url: "https://pub.dev" source: hosted - version: "7.2.10" + version: "7.2.11" build_test: dependency: "direct dev" description: name: build_test - sha256: "927ef98b58c5603ec58923c0bb943a74743e58149732665885bb1eb92983befe" + sha256: "178a9e8989cbd40b3104b88cb6ab8cbf6e3293d90b31ba44420745cba54730f1" url: "https://pub.dev" source: hosted - version: "2.1.7" + version: "2.2.1" built_collection: dependency: "direct main" description: @@ -109,10 +109,10 @@ packages: dependency: transitive description: name: built_value - sha256: "598a2a682e2a7a90f08ba39c0aaa9374c5112340f0a2e275f61b59389543d166" + sha256: "723b4021e903217dfc445ec4cf5b42e27975aece1fc4ebbc1ca6329c2d9fb54e" url: "https://pub.dev" source: hosted - version: "8.6.1" + version: "8.7.0" characters: dependency: transitive description: @@ -133,10 +133,10 @@ packages: dependency: "direct main" description: name: code_builder - sha256: "4ad01d6e56db961d29661561effde45e519939fdaeb46c351275b182eac70189" + sha256: b2151ce26a06171005b379ecff6e08d34c470180ffe16b8e14b6d52be292b55f url: "https://pub.dev" source: hosted - version: "4.5.0" + version: "4.8.0" collection: dependency: transitive description: @@ -157,10 +157,10 @@ packages: dependency: transitive description: name: coverage - sha256: "2fb815080e44a09b85e0f2ca8a820b15053982b2e714b59267719e8a9ff17097" + sha256: ac86d3abab0f165e4b8f561280ff4e066bceaac83c424dd19f1ae2c2fcd12ca9 url: "https://pub.dev" source: hosted - version: "1.6.3" + version: "1.7.1" crypto: dependency: transitive description: @@ -181,10 +181,10 @@ packages: dependency: "direct main" description: name: dart_style - sha256: f4f1f73ab3fd2afcbcca165ee601fe980d966af6a21b5970c6c9376955c528ad + sha256: "1efa911ca7086affd35f463ca2fc1799584fb6aa89883cf0af8e3664d6a02d55" url: "https://pub.dev" source: hosted - version: "2.3.1" + version: "2.3.2" equatable: dependency: "direct main" description: @@ -242,10 +242,10 @@ packages: dependency: "direct main" description: name: gql - sha256: "07ae289bc5ccfbfd143883bfe9a380f5bf52c94559ded740cf3fb152fcbdbe2e" + sha256: "58f36a75c30e0d68b367cbf47024e7f08f15a1ab349b57bda1b23586e5d70a90" url: "https://pub.dev" source: hosted - version: "1.0.1-alpha+1686240655988" + version: "1.0.1-alpha+1700349941413" gql_code_builder: dependency: "direct main" description: @@ -258,42 +258,42 @@ packages: dependency: transitive description: name: gql_dedupe_link - sha256: dac8e5eec5e9f6274302e5c01f77c7558f89d727f2c0dff7cda568c440a171cd + sha256: "810fc7f9f64edbcc96f592129ce22cfb088aebd336abde0b14d4bc898390baf1" url: "https://pub.dev" source: hosted - version: "2.0.4-alpha+1686240656097" + version: "2.0.4-alpha+1700349941497" gql_error_link: dependency: transitive description: name: gql_error_link - sha256: bfdb543137da89448cc5d003fd029c2e8718931d39d4a7dedb16f9169862fbb9 + sha256: "93901458f3c050e33386dedb0ca7173e08cebd7078e4e0deca4bf23ab7a71f63" url: "https://pub.dev" source: hosted - version: "1.0.0" + version: "1.0.0+1" gql_exec: dependency: transitive description: name: gql_exec - sha256: "04fb14e41fdc3fafa80fa7218224bceba019e00b80de9130c2dd0a9a77c6392d" + sha256: "394944626fae900f1d34343ecf2d62e44eb984826189c8979d305f0ae5846e38" url: "https://pub.dev" source: hosted - version: "1.0.1-alpha+1686240655996" + version: "1.1.1-alpha+1699813812660" gql_http_link: dependency: transitive description: name: gql_http_link - sha256: "0789d397d46ce274942fcc73e18a080cd2584296dadc33d8ae53d0666d7fe981" + sha256: "1f922eed1b7078fdbfd602187663026f9f659fe9a9499e2207b5d5e01617f658" url: "https://pub.dev" source: hosted - version: "1.0.1" + version: "1.0.1+1" gql_link: dependency: transitive description: name: gql_link - sha256: ecf2419e6c543d1b8dedd7dbbc538ce037f4d53a3b5b7d694a98a7d636da2817 + sha256: af3555f29db00000e732d687d4a1664beb47c4133e851457e4d5e1b0ad5ac948 url: "https://pub.dev" source: hosted - version: "1.0.1-alpha+1686240656001" + version: "1.0.1-alpha+1700349941428" gql_transform_link: dependency: transitive description: @@ -306,17 +306,17 @@ packages: dependency: "direct main" description: name: graphql - sha256: ad11e6d12de4d73971ae1dd80885b09f3cbc0bf143b1cbc5622a6dc6d85735e7 + sha256: "4ac531068107dffef188c74e7ff662777b729e9d5e0686f71623d4af1e3751c8" url: "https://pub.dev" source: hosted - version: "5.2.0-beta.4" + version: "5.2.0-beta.6" graphql_codegen: dependency: "direct main" description: path: "../graphql_codegen" relative: true source: path - version: "0.13.8" + version: "0.13.9" graphs: dependency: transitive description: @@ -345,10 +345,10 @@ packages: dependency: transitive description: name: http - sha256: "5895291c13fa8a3bd82e76d5627f69e0d85ca6a30dcac95c4ea19a5d555879c2" + sha256: "759d1a329847dd0f39226c688d3e06a6b8679668e350e2891a6474f8b4bb8525" url: "https://pub.dev" source: hosted - version: "0.13.6" + version: "1.1.0" http_multi_server: dependency: transitive description: @@ -393,10 +393,10 @@ packages: dependency: "direct dev" description: name: json_serializable - sha256: "61a60716544392a82726dd0fa1dd6f5f1fd32aec66422b6e229e7b90d52325c4" + sha256: aa1f5a8912615733e0fdc7a02af03308933c93235bdc8d50d0b0c8a8ccb0b969 url: "https://pub.dev" source: hosted - version: "6.7.0" + version: "6.7.1" lints: dependency: "direct dev" description: @@ -558,18 +558,18 @@ packages: dependency: transitive description: name: source_gen - sha256: "373f96cf5a8744bc9816c1ff41cf5391bbdbe3d7a96fe98c622b6738a8a7bd33" + sha256: fc0da689e5302edb6177fdd964efcb7f58912f43c28c2047a808f5bfff643d16 url: "https://pub.dev" source: hosted - version: "1.3.2" + version: "1.4.0" source_helper: dependency: transitive description: name: source_helper - sha256: "3b67aade1d52416149c633ba1bb36df44d97c6b51830c2198e934e3fca87ca1f" + sha256: "6adebc0006c37dd63fe05bca0a929b99f06402fc95aa35bf36d67f5c06de01fd" url: "https://pub.dev" source: hosted - version: "1.3.3" + version: "1.3.4" source_map_stack_trace: dependency: transitive description: @@ -598,18 +598,18 @@ packages: dependency: transitive description: name: stack_trace - sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" url: "https://pub.dev" source: hosted - version: "1.11.0" + version: "1.11.1" stream_channel: dependency: transitive description: name: stream_channel - sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.2" stream_transform: dependency: transitive description: @@ -638,26 +638,26 @@ packages: dependency: "direct dev" description: name: test - sha256: "13b41f318e2a5751c3169137103b60c584297353d4b1761b66029bae6411fe46" + sha256: a1f7595805820fcc05e5c52e3a231aedd0b72972cb333e8c738a8b1239448b6f url: "https://pub.dev" source: hosted - version: "1.24.3" + version: "1.24.9" test_api: dependency: transitive description: name: test_api - sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8" + sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" url: "https://pub.dev" source: hosted - version: "0.6.0" + version: "0.6.1" test_core: dependency: transitive description: name: test_core - sha256: "99806e9e6d95c7b059b7a0fc08f07fc53fabe54a829497f0d9676299f1e8637e" + sha256: a757b14fc47507060a162cc2530d9a4a2f92f5100a952c7443b5cad5ef5b106a url: "https://pub.dev" source: hosted - version: "0.5.3" + version: "0.5.9" timing: dependency: transitive description: @@ -694,10 +694,10 @@ packages: dependency: transitive description: name: vm_service - sha256: c620a6f783fa22436da68e42db7ebbf18b8c44b9a46ab911f666ff09ffd9153f + sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957 url: "https://pub.dev" source: hosted - version: "11.7.1" + version: "13.0.0" watcher: dependency: transitive description: @@ -718,10 +718,10 @@ packages: dependency: transitive description: name: webkit_inspection_protocol - sha256: "67d3a8b6c79e1987d19d848b0892e582dbb0c66c57cc1fef58a177dd2aa2823d" + sha256: "87d3f2333bb240704cd3f1c6b5b7acd8a10e7f0bc28c28dcf14e782014f4a572" url: "https://pub.dev" source: hosted - version: "1.2.0" + version: "1.2.1" yaml: dependency: transitive description: diff --git a/packages/graphql_switch/test/assets/initial_test/switch.dart b/packages/graphql_switch/test/assets/initial_test/switch.dart index 6aee5064..0ba98169 100644 --- a/packages/graphql_switch/test/assets/initial_test/switch.dart +++ b/packages/graphql_switch/test/assets/initial_test/switch.dart @@ -660,6 +660,7 @@ class Variables$Query$MyWidgetQuery implements Input { } String get question => (_data['question'] as String); + Input$Details get details => (_data['details'] as Input$Details); } @@ -744,6 +745,8 @@ class Input$Details implements Input { } String get name => (_data['name'] as String); + int? get age => (_data['age'] as int?); + Input$Details? get deeds => (_data['deeds'] as Input$Details?); }