Releases: LastDragon-ru/lara-asp
Releases · LastDragon-ru/lara-asp
More `SchemaPrinter` improvements and fixes 🤗
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()
andPrinter::export()
(#78, bc1c8d1) - graphql-printer: New assertion
GraphQLAssertions::assertGraphQLNodeEquals()
(0df00fc) - graphql-printer: New assertions:
GraphQLAssertions::assertGraphQLPrintableEquals()
andGraphQLAssertions::assertGraphQLExportableEquals()
(22a5007)
Bug Fixes
- graphql-printer:
Printer::printType()
andPrinter::printNode()
will not contain EOF (fa1d831)
`SchemaPrinter` improvements and fixes 🤗
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
`@rename` support 🐱🏍
Bugfixes 🦟
`Type`s filtering and bugfixes 😊
Features
Bug Fixes
- graphql:
AstManipulator::getNodeDirectives()
will return directives forInputObjectField
,FieldDefinition
, andArgument
(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 🤓
Lighthouse v6 support 🤡
☣ | 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 returnGraphQL\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
andnuwave/lighthouse:^6.0.0
(bd30fb0) ☣
Bug Fixes
- graphql:
InputObject::isFieldConvertable()
will returnfalse
for fields with arguments (6a50ea3)
Code Refactoring
Context for Builder directives (`@searchBy`/`@sortBy`) 🧐
☣ | 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
- Laravel v10 support (#58, 1815b63)
- Laravel/Scout v10 support (eb6c34c)
- PHPUnit v10 support (#60, e8e89ed)
- graphql:
TypeSource
instead of$type
+$nullable
(#57, b1f5744) ☣ - graphql-printer: New package (#56, 4e9bfed) ☣