Skip to content

Releases: LastDragon-ru/lara-asp

More `SchemaPrinter` improvements and fixes 🤗

25 Jul 07:32
4.5.0
a172627
Compare
Choose a tag to compare

Deprecations

  • graphql: GraphQLAssertions::assertDefaultGraphQLSchemaEquals(), GraphQLAssertions::assertGraphQLSchemaEquals(), GraphQLAssertions::printDefaultGraphQLSchema() (596416a)
  • graphql: GraphQLAssertions::getGraphQLSchema() (1c73db1)
  • graphql: GraphQLAssertions::useDefaultGraphQLSchema(), SchemaBuilderWrapper::default() (10722ce)
  • graphql-printer: GraphQLAssertions::assertGraphQLSchemaEquals(), GraphQLAssertions::assertGraphQLSchemaTypeEquals(), GraphQLAssertions::assertGraphQLTypeEquals(), GraphQLAssertions::assertGraphQLNodeEquals(), GraphQLAssertions::printGraphQLSchema(), GraphQLAssertions::printGraphQLSchemaType(), GraphQLAssertions::printGraphQLNode(), GraphQLAssertions::getGraphQLSchemaPrinter(), GraphQLExpectedNode, GraphQLExpectedSchema, GraphQLExpectedType (#78, 107b77c)
  • graphql-printer: GraphQLAssertions::getGraphQLSchema() (f14e1c6)
  • graphql-printer: LastDragon_ru\LaraASP\GraphQLPrinter\Testing\Package\TestSettings (5dc69a9)

Features

  • graphql-printer: DefaultSettings will print all directives (2fd774c)
  • graphql-printer: Added Printer::print() and Printer::export() (#78, bc1c8d1)
  • graphql-printer: New assertion GraphQLAssertions::assertGraphQLNodeEquals() (0df00fc)
  • graphql-printer: New assertions: GraphQLAssertions::assertGraphQLPrintableEquals() and GraphQLAssertions::assertGraphQLExportableEquals() (22a5007)

Bug Fixes

  • graphql-printer: Printer::printType() and Printer::printNode() will not contain EOF (fa1d831)

`SchemaPrinter` improvements and fixes 🤗

14 Jul 06:42
4.4.0
cf29835
Compare
Choose a tag to compare

Deprecations

  • graphql-printer: LastDragon_ru\LaraASP\GraphQLPrinter\Exceptions::TypeUnsupported => LastDragon_ru\LaraASP\GraphQLPrinter\Exceptions::Unsupported (e0f24fe)
  • graphql-printer: Printer::printSchema(), Printer::printSchemaType(), Printer::printType(), Printer::getLevel(), Printer::setLevel() (#78, 3479b9c)

Features

  • graphql: Ability to re-use build-in operators in the schema/config (6ce5c81)
  • graphql: Added default operators for Date, DateTime, DateTimeTz, DateTimeUtc Lighthouse's scalars (e312412)
  • graphql-printer: Context::getType()/Context::getDirective() will throw error if Schema defined but type/directive is not found (22dda09)
  • graphql-printer: AST Support (#77, #83, 103924d)
  • graphql-printer: More accurate line length calculation (b83c4d6)
  • graphql-printer: Query support (#72, 7163a3b)
  • graphql-printer: Type filtering will work only if Schema is known (17c26dc)

Bug Fixes

  • graphql-printer: Arguments indent for lists/objects values (bb35dae)
  • graphql-printer: Directive definition length calculation (1980cba)
  • graphql-printer: Type collecting for ObjectValueNode (3d5d3e8)
  • graphql-printer: Type filter will be applied to schema operation types too (6735090)
  • graphql-printer: Type filtering for ObjectValueNode (d0d774e)

Performance Improvements

  • graphql-printer: TypeFilter/DirectiveFilter will be called only one time for each type/directive (7c4030e)

Miscellaneous Chores

  • graphql-printer: DirectiveResolver can return DirectiveDefinitionNode (c997ffd)
  • graphql/Printer: DirectiveResolver will not throw error if directive not found (6025213)
  • graphql/Printer: DirectiveResolver will return DirectiveDefinitionNode instead of Directive (faster) (33b7a30)

`@rename` support 🐱‍🏍

09 Jun 06:18
4.3.0
c75c717
Compare
Choose a tag to compare

Features

  • graphql: @searchBy/@sortBy will support @rename (#80, 54502b5)

Bug Fixes

  • graphql: Property::getChild() will use dot notation (required eg for @rename) (9b38a95)
  • graphql: Reset types while testing (related to SchemaBuilderWrapper and GraphQLAssertions::getGraphQLSchema()) (9558c71)

Bugfixes 🦟

15 May 06:54
4.2.1
51a512b
Compare
Choose a tag to compare

Bug Fixes

  • graphql-printer: Empty deprecationReason will not be ignored (701b1a0)

Miscellaneous Chores

  • graphql-printer: Minimal version of "webonyx/graphql-php" set to "^15.4.0" (706de7f)

`Type`s filtering and bugfixes 😊

26 Apr 07:56
4.2.0
07ba766
Compare
Choose a tag to compare

Features

  • graphql-printer: Support of exclusion of types from the Schema (#70, 32c09f3)

Bug Fixes

  • graphql: AstManipulator::getNodeDirectives() will return directives for InputObjectField, FieldDefinition, and Argument (5f46f12)
  • graphql: Escaping for generated BlockString (= descriptions) (4e0b2ab)
  • graphql: Parent of NotImplemented (bd11fb6)

Miscellaneous Chores

  • psr/http-message v2 support (c44842d)

Better builder type detection 🤓

03 Apr 06:56
4.1.0
8d1b2b1
Compare
Choose a tag to compare

Features

Bug Fixes

  • graphql: Detecting builder type for built-in Lighthouse directives (@count, @aggregate, @withCount, @with) (#68, b679efe)

Lighthouse v6 support 🤡

01 Apr 09:21
4.0.0
4c298a1
Compare
Choose a tag to compare
Breaking changes

Lighthouse v5 and Laravel v8 is not supported anymore, if you need it please use the previous version. If you use published config for graphql package, you need to remove enums section from it.

Features

  • Laravel v8 is not supported anymore. (#61, 8721b8f) ☣
  • Removed deprecated custom Enum implementation, please use native PHP enums instead (ee17557) ☣
  • graphql: TypeDefinition::getTypeDefinitionNode() can also return GraphQL\Type\Definition\Type&GraphQL\Type\Definition\NamedType (03e39ed) ☣
  • graphql: Available operators can be defined inside schema (#28, #63, 5da6ba5) ☣
  • graphql: Better detection of Builder type (c3ffa70)
  • graphql: Interfaces can be used as type for @searchBy/@sortBy (#62, 43234b5) ☣
  • graphql-printer: Directives added via extend will be printed too (6257da1)
  • graphql-printer, graphql: Switched to webonyx/graphql-php:^15.2.4 and nuwave/lighthouse:^6.0.0 (bd30fb0) ☣

Bug Fixes

  • graphql: InputObject::isFieldConvertable() will return false for fields with arguments (6a50ea3)

Code Refactoring

  • core: Removed deprecated ProviderWithCommands (10d6506) ☣
  • graphql: Operator::isBuilderSupported() will accept class-string instead of object (5d8f71d) ☣

Context for Builder directives (`@searchBy`/`@sortBy`) 🧐

20 Mar 07:57
3.0.0
d3e6f8e
Compare
Choose a tag to compare
Breaking changes

There are should not be any breaking changes in the graphql package if you are not adding custom Builder directive(s) nor extend @searchBy/@sortBy directives nor using SchemaPrinter directly. If you are using the testing helpers, you may need to convert dynamic calls to static.

Features

Code Refactoring

  • testing: WithTestData::getTestData() converted to static (90acff9) ☣
  • testing: WithTempDirectory::getTempDirectory() converted to public static (6f0810c) ☣
  • testing: WithTempFile::getTempFile() converted to public static (4f11c16) ☣

Laravel v10 support 🐉

11 Mar 05:15
2.1.0
007fadf
Compare
Choose a tag to compare

Features

Bugfixes 🦠

24 Jan 04:31
2.0.3
f14433e
Compare
Choose a tag to compare

Bug Fixes

  • eloquent: Iterator::count() will respect limit (239552c)
  • testing: Args::getScoutQuery() will also return options (699288a)