Skip to content

`SchemaPrinter` improvements and fixes 🤗

Compare
Choose a tag to compare
@github-actions github-actions released this 14 Jul 06:42
4.4.0
cf29835

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)