From 9ec1f786799a5adc5161b255f09aaa187bd1fa4d Mon Sep 17 00:00:00 2001 From: Christian Budde Christensen Date: Tue, 12 Dec 2023 21:44:06 +0000 Subject: [PATCH] fix: Issue #331 --- .github/workflows/check_pr.yml | 16 +- .github/workflows/publish.yml | 8 +- melos.yaml | 12 +- packages/graphql_codegen/CHANGELOG.md | 4 + packages/graphql_codegen/example/pubspec.lock | 2 +- .../lib/src/context/schema.dart | 2 + packages/graphql_codegen/pubspec.yaml | 2 +- .../test/assets/issue_331/document.graphql | 26 + .../assets/issue_331/document.graphql.dart | 615 ++++++++++++++++++ packages/graphql_switch/example/pubspec.lock | 2 +- packages/graphql_switch/pubspec.lock | 2 +- pubspec.lock | 317 +++++++++ pubspec.yaml | 8 + 13 files changed, 999 insertions(+), 17 deletions(-) create mode 100644 packages/graphql_codegen/test/assets/issue_331/document.graphql create mode 100644 packages/graphql_codegen/test/assets/issue_331/document.graphql.dart create mode 100644 pubspec.lock create mode 100644 pubspec.yaml diff --git a/.github/workflows/check_pr.yml b/.github/workflows/check_pr.yml index 327c753a..15e57430 100644 --- a/.github/workflows/check_pr.yml +++ b/.github/workflows/check_pr.yml @@ -29,7 +29,9 @@ jobs: with: channel: stable - name: Activate melos - run: dart pub global activate melos 2.9.0 + run: | + dart pub get + dart pub global activate melos - name: Validate publish run: melos publish --dry-run --yes | tee ./out - name: Test if changed @@ -58,7 +60,9 @@ jobs: with: channel: ${{ matrix.channel }} - name: Activate melos - run: dart pub global activate melos 2.9.0 + run: | + dart pub get + dart pub global activate melos - name: Bootstrap melos run: melos bs - name: Analyze package @@ -80,7 +84,9 @@ jobs: with: channel: ${{ matrix.channel }} - name: Activate melos - run: dart pub global activate melos 2.9.0 + run: | + dart pub get + dart pub global activate melos - name: Bootstrap melos run: melos bs - name: Build dart @@ -107,7 +113,9 @@ jobs: with: channel: ${{ matrix.channel }} - name: Activate melos - run: dart pub global activate melos 2.9.0 + run: | + dart pub get + dart pub global activate melos - name: Bootstrap melos run: melos bs - name: Run tests dart diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 973c7754..285f3053 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -13,12 +13,14 @@ jobs: with: channel: stable - name: Activate melos - run: dart pub global activate melos 2.9.0 + run: | + dart pub get + dart pub global activate melos - name: Login pub run: | mkdir -p "$XDG_CONFIG_HOME/dart/" echo "${{ secrets.PUB_CREDENTIALS}}" | base64 -d > "$XDG_CONFIG_HOME/dart/pub-credentials.json" - name: Validate publish - run: melos publish --dry-run --yes + run: dart run melos publish --dry-run --yes - name: Publish - run: melos publish --no-dry-run --yes + run: dart run melos publish --no-dry-run --yes diff --git a/melos.yaml b/melos.yaml index 5b8f5063..13415cd1 100644 --- a/melos.yaml +++ b/melos.yaml @@ -8,21 +8,21 @@ scripts: run: melos exec -- "dart analyze --fatal-infos ." test_dart: exec: dart test - select-package: + packageFilters: flutter: false - dir-exists: "test" + dirExists: "test" test_flutter: exec: flutter test - select-package: + packageFilters: flutter: true - dir-exists: "test" + dirExists: "test" build_dart: exec: dart run build_runner build --delete-conflicting-outputs - select-package: + packageFilters: flutter: false build_flutter: exec: flutter pub run build_runner build --delete-conflicting-outputs - select-package: + packageFilters: flutter: true format: exec: dart format diff --git a/packages/graphql_codegen/CHANGELOG.md b/packages/graphql_codegen/CHANGELOG.md index 16956b5a..b0a81879 100644 --- a/packages/graphql_codegen/CHANGELOG.md +++ b/packages/graphql_codegen/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.13.11 + +- Fix bug on bad type extension. + # 0.13.10 - Support enum value names starting with `_`. diff --git a/packages/graphql_codegen/example/pubspec.lock b/packages/graphql_codegen/example/pubspec.lock index 7f3e811d..59d7f28e 100644 --- a/packages/graphql_codegen/example/pubspec.lock +++ b/packages/graphql_codegen/example/pubspec.lock @@ -337,7 +337,7 @@ packages: path: ".." relative: true source: path - version: "0.13.10" + version: "0.13.11" graphql_flutter: dependency: "direct main" description: diff --git a/packages/graphql_codegen/lib/src/context/schema.dart b/packages/graphql_codegen/lib/src/context/schema.dart index e87e50c9..17c205e7 100644 --- a/packages/graphql_codegen/lib/src/context/schema.dart +++ b/packages/graphql_codegen/lib/src/context/schema.dart @@ -313,6 +313,7 @@ class Schema { ...node.fields, ...definitions .whereType() + .where((element) => element.name.value == node.name.value) .expand((element) => element.fields) ]; } @@ -324,6 +325,7 @@ class Schema { ...node.fields, ...definitions .whereType() + .where((element) => element.name.value == node.name.value) .expand((element) => element.fields) ]; } diff --git a/packages/graphql_codegen/pubspec.yaml b/packages/graphql_codegen/pubspec.yaml index 9b5161bb..991b80bb 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.10 +version: 0.13.11 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_331/document.graphql b/packages/graphql_codegen/test/assets/issue_331/document.graphql new file mode 100644 index 00000000..7690d778 --- /dev/null +++ b/packages/graphql_codegen/test/assets/issue_331/document.graphql @@ -0,0 +1,26 @@ +# query.graphql +type Query { +} + +# (1) +extend type Query { + foo: FooResponse! +} + +type FooResponse { + foo: FooCore! +} + +type FooCore { + bar: String! +} + +query FooQuery { + foo { + # (2) + foo { + # (3) + bar + } + } +} diff --git a/packages/graphql_codegen/test/assets/issue_331/document.graphql.dart b/packages/graphql_codegen/test/assets/issue_331/document.graphql.dart new file mode 100644 index 00000000..84d4d689 --- /dev/null +++ b/packages/graphql_codegen/test/assets/issue_331/document.graphql.dart @@ -0,0 +1,615 @@ +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$FooQuery { + Query$FooQuery({ + required this.foo, + this.$__typename = 'Query', + }); + + factory Query$FooQuery.fromJson(Map json) { + final l$foo = json['foo']; + final l$$__typename = json['__typename']; + return Query$FooQuery( + foo: Query$FooQuery$foo.fromJson((l$foo as Map)), + $__typename: (l$$__typename as String), + ); + } + + final Query$FooQuery$foo foo; + + final String $__typename; + + Map toJson() { + final _resultData = {}; + final l$foo = foo; + _resultData['foo'] = l$foo.toJson(); + final l$$__typename = $__typename; + _resultData['__typename'] = l$$__typename; + return _resultData; + } + + @override + int get hashCode { + final l$foo = foo; + final l$$__typename = $__typename; + return Object.hashAll([ + l$foo, + l$$__typename, + ]); + } + + @override + bool operator ==(Object other) { + if (identical(this, other)) { + return true; + } + if (!(other is Query$FooQuery) || runtimeType != other.runtimeType) { + return false; + } + final l$foo = foo; + final lOther$foo = other.foo; + if (l$foo != lOther$foo) { + return false; + } + final l$$__typename = $__typename; + final lOther$$__typename = other.$__typename; + if (l$$__typename != lOther$$__typename) { + return false; + } + return true; + } +} + +extension UtilityExtension$Query$FooQuery on Query$FooQuery { + CopyWith$Query$FooQuery get copyWith => + CopyWith$Query$FooQuery( + this, + (i) => i, + ); +} + +abstract class CopyWith$Query$FooQuery { + factory CopyWith$Query$FooQuery( + Query$FooQuery instance, + TRes Function(Query$FooQuery) then, + ) = _CopyWithImpl$Query$FooQuery; + + factory CopyWith$Query$FooQuery.stub(TRes res) = + _CopyWithStubImpl$Query$FooQuery; + + TRes call({ + Query$FooQuery$foo? foo, + String? $__typename, + }); + CopyWith$Query$FooQuery$foo get foo; +} + +class _CopyWithImpl$Query$FooQuery + implements CopyWith$Query$FooQuery { + _CopyWithImpl$Query$FooQuery( + this._instance, + this._then, + ); + + final Query$FooQuery _instance; + + final TRes Function(Query$FooQuery) _then; + + static const _undefined = {}; + + TRes call({ + Object? foo = _undefined, + Object? $__typename = _undefined, + }) => + _then(Query$FooQuery( + foo: foo == _undefined || foo == null + ? _instance.foo + : (foo as Query$FooQuery$foo), + $__typename: $__typename == _undefined || $__typename == null + ? _instance.$__typename + : ($__typename as String), + )); + + CopyWith$Query$FooQuery$foo get foo { + final local$foo = _instance.foo; + return CopyWith$Query$FooQuery$foo(local$foo, (e) => call(foo: e)); + } +} + +class _CopyWithStubImpl$Query$FooQuery + implements CopyWith$Query$FooQuery { + _CopyWithStubImpl$Query$FooQuery(this._res); + + TRes _res; + + call({ + Query$FooQuery$foo? foo, + String? $__typename, + }) => + _res; + + CopyWith$Query$FooQuery$foo get foo => + CopyWith$Query$FooQuery$foo.stub(_res); +} + +const documentNodeQueryFooQuery = DocumentNode(definitions: [ + OperationDefinitionNode( + type: OperationType.query, + name: NameNode(value: 'FooQuery'), + variableDefinitions: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'foo'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'foo'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'bar'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null, + ), + ]), + ), +]); + +class Query$FooQuery$foo { + Query$FooQuery$foo({ + required this.foo, + this.$__typename = 'FooResponse', + }); + + factory Query$FooQuery$foo.fromJson(Map json) { + final l$foo = json['foo']; + final l$$__typename = json['__typename']; + return Query$FooQuery$foo( + foo: Query$FooQuery$foo$foo.fromJson((l$foo as Map)), + $__typename: (l$$__typename as String), + ); + } + + final Query$FooQuery$foo$foo foo; + + final String $__typename; + + Map toJson() { + final _resultData = {}; + final l$foo = foo; + _resultData['foo'] = l$foo.toJson(); + final l$$__typename = $__typename; + _resultData['__typename'] = l$$__typename; + return _resultData; + } + + @override + int get hashCode { + final l$foo = foo; + final l$$__typename = $__typename; + return Object.hashAll([ + l$foo, + l$$__typename, + ]); + } + + @override + bool operator ==(Object other) { + if (identical(this, other)) { + return true; + } + if (!(other is Query$FooQuery$foo) || runtimeType != other.runtimeType) { + return false; + } + final l$foo = foo; + final lOther$foo = other.foo; + if (l$foo != lOther$foo) { + return false; + } + final l$$__typename = $__typename; + final lOther$$__typename = other.$__typename; + if (l$$__typename != lOther$$__typename) { + return false; + } + return true; + } +} + +extension UtilityExtension$Query$FooQuery$foo on Query$FooQuery$foo { + CopyWith$Query$FooQuery$foo get copyWith => + CopyWith$Query$FooQuery$foo( + this, + (i) => i, + ); +} + +abstract class CopyWith$Query$FooQuery$foo { + factory CopyWith$Query$FooQuery$foo( + Query$FooQuery$foo instance, + TRes Function(Query$FooQuery$foo) then, + ) = _CopyWithImpl$Query$FooQuery$foo; + + factory CopyWith$Query$FooQuery$foo.stub(TRes res) = + _CopyWithStubImpl$Query$FooQuery$foo; + + TRes call({ + Query$FooQuery$foo$foo? foo, + String? $__typename, + }); + CopyWith$Query$FooQuery$foo$foo get foo; +} + +class _CopyWithImpl$Query$FooQuery$foo + implements CopyWith$Query$FooQuery$foo { + _CopyWithImpl$Query$FooQuery$foo( + this._instance, + this._then, + ); + + final Query$FooQuery$foo _instance; + + final TRes Function(Query$FooQuery$foo) _then; + + static const _undefined = {}; + + TRes call({ + Object? foo = _undefined, + Object? $__typename = _undefined, + }) => + _then(Query$FooQuery$foo( + foo: foo == _undefined || foo == null + ? _instance.foo + : (foo as Query$FooQuery$foo$foo), + $__typename: $__typename == _undefined || $__typename == null + ? _instance.$__typename + : ($__typename as String), + )); + + CopyWith$Query$FooQuery$foo$foo get foo { + final local$foo = _instance.foo; + return CopyWith$Query$FooQuery$foo$foo(local$foo, (e) => call(foo: e)); + } +} + +class _CopyWithStubImpl$Query$FooQuery$foo + implements CopyWith$Query$FooQuery$foo { + _CopyWithStubImpl$Query$FooQuery$foo(this._res); + + TRes _res; + + call({ + Query$FooQuery$foo$foo? foo, + String? $__typename, + }) => + _res; + + CopyWith$Query$FooQuery$foo$foo get foo => + CopyWith$Query$FooQuery$foo$foo.stub(_res); +} + +class Query$FooQuery$foo$foo { + Query$FooQuery$foo$foo({ + required this.bar, + this.$__typename = 'FooCore', + }); + + factory Query$FooQuery$foo$foo.fromJson(Map json) { + final l$bar = json['bar']; + final l$$__typename = json['__typename']; + return Query$FooQuery$foo$foo( + bar: (l$bar as String), + $__typename: (l$$__typename as String), + ); + } + + final String bar; + + final String $__typename; + + Map toJson() { + final _resultData = {}; + final l$bar = bar; + _resultData['bar'] = l$bar; + final l$$__typename = $__typename; + _resultData['__typename'] = l$$__typename; + return _resultData; + } + + @override + int get hashCode { + final l$bar = bar; + final l$$__typename = $__typename; + return Object.hashAll([ + l$bar, + l$$__typename, + ]); + } + + @override + bool operator ==(Object other) { + if (identical(this, other)) { + return true; + } + if (!(other is Query$FooQuery$foo$foo) || + runtimeType != other.runtimeType) { + return false; + } + final l$bar = bar; + final lOther$bar = other.bar; + if (l$bar != lOther$bar) { + return false; + } + final l$$__typename = $__typename; + final lOther$$__typename = other.$__typename; + if (l$$__typename != lOther$$__typename) { + return false; + } + return true; + } +} + +extension UtilityExtension$Query$FooQuery$foo$foo on Query$FooQuery$foo$foo { + CopyWith$Query$FooQuery$foo$foo get copyWith => + CopyWith$Query$FooQuery$foo$foo( + this, + (i) => i, + ); +} + +abstract class CopyWith$Query$FooQuery$foo$foo { + factory CopyWith$Query$FooQuery$foo$foo( + Query$FooQuery$foo$foo instance, + TRes Function(Query$FooQuery$foo$foo) then, + ) = _CopyWithImpl$Query$FooQuery$foo$foo; + + factory CopyWith$Query$FooQuery$foo$foo.stub(TRes res) = + _CopyWithStubImpl$Query$FooQuery$foo$foo; + + TRes call({ + String? bar, + String? $__typename, + }); +} + +class _CopyWithImpl$Query$FooQuery$foo$foo + implements CopyWith$Query$FooQuery$foo$foo { + _CopyWithImpl$Query$FooQuery$foo$foo( + this._instance, + this._then, + ); + + final Query$FooQuery$foo$foo _instance; + + final TRes Function(Query$FooQuery$foo$foo) _then; + + static const _undefined = {}; + + TRes call({ + Object? bar = _undefined, + Object? $__typename = _undefined, + }) => + _then(Query$FooQuery$foo$foo( + bar: bar == _undefined || bar == null ? _instance.bar : (bar as String), + $__typename: $__typename == _undefined || $__typename == null + ? _instance.$__typename + : ($__typename as String), + )); +} + +class _CopyWithStubImpl$Query$FooQuery$foo$foo + implements CopyWith$Query$FooQuery$foo$foo { + _CopyWithStubImpl$Query$FooQuery$foo$foo(this._res); + + TRes _res; + + call({ + String? bar, + String? $__typename, + }) => + _res; +} + +const possibleTypesMap = >{}; diff --git a/packages/graphql_switch/example/pubspec.lock b/packages/graphql_switch/example/pubspec.lock index 83f30436..1c4e679f 100644 --- a/packages/graphql_switch/example/pubspec.lock +++ b/packages/graphql_switch/example/pubspec.lock @@ -308,7 +308,7 @@ packages: path: "../../graphql_codegen" relative: true source: path - version: "0.13.10" + version: "0.13.11" graphql_switch: dependency: "direct main" description: diff --git a/packages/graphql_switch/pubspec.lock b/packages/graphql_switch/pubspec.lock index 0ab571dc..b40287d9 100644 --- a/packages/graphql_switch/pubspec.lock +++ b/packages/graphql_switch/pubspec.lock @@ -324,7 +324,7 @@ packages: path: "../graphql_codegen" relative: true source: path - version: "0.13.10" + version: "0.13.11" graphs: dependency: transitive description: diff --git a/pubspec.lock b/pubspec.lock new file mode 100644 index 00000000..0cc3ec75 --- /dev/null +++ b/pubspec.lock @@ -0,0 +1,317 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + ansi_styles: + dependency: transitive + description: + name: ansi_styles + sha256: "9c656cc12b3c27b17dd982b2cc5c0cfdfbdabd7bc8f3ae5e8542d9867b47ce8a" + url: "https://pub.dev" + source: hosted + version: "0.3.2+1" + args: + dependency: transitive + description: + name: args + sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596 + url: "https://pub.dev" + source: hosted + version: "2.4.2" + async: + dependency: transitive + description: + name: async + sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" + url: "https://pub.dev" + source: hosted + version: "2.11.0" + boolean_selector: + dependency: transitive + description: + name: boolean_selector + sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + charcode: + dependency: transitive + description: + name: charcode + sha256: fb98c0f6d12c920a02ee2d998da788bca066ca5f148492b7085ee23372b12306 + url: "https://pub.dev" + source: hosted + version: "1.3.1" + cli_launcher: + dependency: transitive + description: + name: cli_launcher + sha256: "5e7e0282b79e8642edd6510ee468ae2976d847a0a29b3916e85f5fa1bfe24005" + url: "https://pub.dev" + source: hosted + version: "0.3.1" + cli_util: + dependency: transitive + description: + name: cli_util + sha256: b8db3080e59b2503ca9e7922c3df2072cf13992354d5e944074ffa836fba43b7 + url: "https://pub.dev" + source: hosted + version: "0.4.0" + collection: + dependency: transitive + description: + name: collection + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + url: "https://pub.dev" + source: hosted + version: "1.18.0" + conventional_commit: + dependency: transitive + description: + name: conventional_commit + sha256: dec15ad1118f029c618651a4359eb9135d8b88f761aa24e4016d061cd45948f2 + url: "https://pub.dev" + source: hosted + version: "0.6.0+1" + file: + dependency: transitive + description: + name: file + sha256: "1b92bec4fc2a72f59a8e15af5f52cd441e4a7860b49499d69dfa817af20e925d" + url: "https://pub.dev" + source: hosted + version: "6.1.4" + glob: + dependency: transitive + description: + name: glob + sha256: "0e7014b3b7d4dac1ca4d6114f82bf1782ee86745b9b42a92c9289c23d8a0ab63" + url: "https://pub.dev" + source: hosted + version: "2.1.2" + graphs: + dependency: transitive + description: + name: graphs + sha256: aedc5a15e78fc65a6e23bcd927f24c64dd995062bcd1ca6eda65a3cff92a4d19 + url: "https://pub.dev" + source: hosted + version: "2.3.1" + http: + dependency: transitive + description: + name: http + sha256: "759d1a329847dd0f39226c688d3e06a6b8679668e350e2891a6474f8b4bb8525" + url: "https://pub.dev" + source: hosted + version: "1.1.0" + http_parser: + dependency: transitive + description: + name: http_parser + sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" + url: "https://pub.dev" + source: hosted + version: "4.0.2" + io: + dependency: transitive + description: + name: io + sha256: "2ec25704aba361659e10e3e5f5d672068d332fc8ac516421d483a11e5cbd061e" + url: "https://pub.dev" + source: hosted + version: "1.0.4" + json_annotation: + dependency: transitive + description: + name: json_annotation + sha256: b10a7b2ff83d83c777edba3c6a0f97045ddadd56c944e1a23a3fdf43a1bf4467 + url: "https://pub.dev" + source: hosted + version: "4.8.1" + matcher: + dependency: transitive + description: + name: matcher + sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e" + url: "https://pub.dev" + source: hosted + version: "0.12.16" + melos: + dependency: "direct dev" + description: + name: melos + sha256: "96e64bbade5712c3f010137e195bca9f1b351fac34ab1f322af492ae34032067" + url: "https://pub.dev" + source: hosted + version: "3.4.0" + meta: + dependency: transitive + description: + name: meta + sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 + url: "https://pub.dev" + source: hosted + version: "1.11.0" + mustache_template: + dependency: transitive + description: + name: mustache_template + sha256: a46e26f91445bfb0b60519be280555b06792460b27b19e2b19ad5b9740df5d1c + url: "https://pub.dev" + source: hosted + version: "2.0.0" + path: + dependency: transitive + description: + name: path + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" + url: "https://pub.dev" + source: hosted + version: "1.9.0" + platform: + dependency: transitive + description: + name: platform + sha256: "0a279f0707af40c890e80b1e9df8bb761694c074ba7e1d4ab1bc4b728e200b59" + url: "https://pub.dev" + source: hosted + version: "3.1.3" + pool: + dependency: transitive + description: + name: pool + sha256: "20fe868b6314b322ea036ba325e6fc0711a22948856475e2c2b6306e8ab39c2a" + url: "https://pub.dev" + source: hosted + version: "1.5.1" + process: + dependency: transitive + description: + name: process + sha256: "53fd8db9cec1d37b0574e12f07520d582019cb6c44abf5479a01505099a34a09" + url: "https://pub.dev" + source: hosted + version: "4.2.4" + prompts: + dependency: transitive + description: + name: prompts + sha256: "3773b845e85a849f01e793c4fc18a45d52d7783b4cb6c0569fad19f9d0a774a1" + url: "https://pub.dev" + source: hosted + version: "2.0.0" + pub_semver: + dependency: transitive + description: + name: pub_semver + sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + pub_updater: + dependency: transitive + description: + name: pub_updater + sha256: b06600619c8c219065a548f8f7c192b3e080beff95488ed692780f48f69c0625 + url: "https://pub.dev" + source: hosted + version: "0.3.1" + pubspec: + dependency: transitive + description: + name: pubspec + sha256: f534a50a2b4d48dc3bc0ec147c8bd7c304280fff23b153f3f11803c4d49d927e + url: "https://pub.dev" + source: hosted + version: "2.3.0" + quiver: + dependency: transitive + description: + name: quiver + sha256: b1c1ac5ce6688d77f65f3375a9abb9319b3cb32486bdc7a1e0fdf004d7ba4e47 + url: "https://pub.dev" + source: hosted + version: "3.2.1" + source_span: + dependency: transitive + description: + name: source_span + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" + url: "https://pub.dev" + source: hosted + version: "1.10.0" + stack_trace: + dependency: transitive + description: + name: stack_trace + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" + url: "https://pub.dev" + source: hosted + version: "1.11.1" + stream_channel: + dependency: transitive + description: + name: stream_channel + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 + url: "https://pub.dev" + source: hosted + version: "2.1.2" + string_scanner: + dependency: transitive + description: + name: string_scanner + sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + term_glyph: + dependency: transitive + description: + name: term_glyph + sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 + url: "https://pub.dev" + source: hosted + version: "1.2.1" + test_api: + dependency: transitive + description: + name: test_api + sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" + url: "https://pub.dev" + source: hosted + version: "0.6.1" + typed_data: + dependency: transitive + description: + name: typed_data + sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c + url: "https://pub.dev" + source: hosted + version: "1.3.2" + uri: + dependency: transitive + description: + name: uri + sha256: "889eea21e953187c6099802b7b4cf5219ba8f3518f604a1033064d45b1b8268a" + url: "https://pub.dev" + source: hosted + version: "1.0.0" + yaml: + dependency: transitive + description: + name: yaml + sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5" + url: "https://pub.dev" + source: hosted + version: "3.1.2" + yaml_edit: + dependency: transitive + description: + name: yaml_edit + sha256: "1579d4a0340a83cf9e4d580ea51a16329c916973bffd5bd4b45e911b25d46bfd" + url: "https://pub.dev" + source: hosted + version: "2.1.1" +sdks: + dart: ">=3.0.0 <4.0.0" diff --git a/pubspec.yaml b/pubspec.yaml new file mode 100644 index 00000000..ae521d6b --- /dev/null +++ b/pubspec.yaml @@ -0,0 +1,8 @@ +name: graphql_codegen_workspace + +environment: + sdk: ">=2.12.0 <3.0.0" + + +dev_dependencies: + melos: 3.4.0 \ No newline at end of file