The `@stream` directive and two new packages ðŸ¤
Mark | Type | Count | Packages |
---|---|---|---|
☣ | Breaking changes | 16 | eloquent , graphql , graphql-printer |
Features | 11 | * , documentator , graphql , graphql-printer , testing |
|
Performance Improvements | 1 | graphql |
|
Bug Fixes | 10 | documentator , eloquent , graphql , graphql-printer , testing |
|
Miscellaneous | 1 | * |
|
Code Refactoring | 8 | graphql |
The new major release introduces the new @stream
directive and two new packages: the Serializer and Documentator. Please also see 5.0.0-beta.0 and 5.0.0-beta.1 release notes.
All packages
Features
Miscellaneous
- Minimum version of Laravel Scout set to
^9.8.0
(9fb9df4)
Package documentator
Features
requirements
command will dump requirements forMetadata { version }
equal toHEAD
even if no git tag (993d002)
Bug Fixes
- Command processing for
include:exec
instruction (d47f127) - HTML entities encoding for
include:document-list
andinclude:package-list
(0d2bd41) - missed
artisan
prefix for command usages (lara-asp-documentator:commands
) (cfc9973) - Missed EOF in
Metadata.json
(7b77228)
Package eloquent
Bug Fixes
new ModelHelper(Model::class)
will be identical tonew ModelHelper(Model::query())
(makes no sense to create a query with invalid constraints for relations) (1e4e213) ☣
Package graphql
Features
@stream
directive (#101, 2382b6c)- Added
JsonString
wrapper/helper (to return JSON without unnecessary validation) (6a6953d) JsonString
scalar (06ad9be)TypeDefinition
can be fully replaced viaContainer
(TypeDefinition::getTypeName()
became is nonstatic
) (0ee21c7) ☣- @searchby: Scout support for
NotIn
operator (laravel/scout:>=10.3.0
required). (#98, f555270)
Performance Improvements
AstManipulator::getTypeFullName()
no unnecessary fetching for definitions (45f1cf6)
Bug Fixes
AstManipulator::addTypeDefinition()
will convertScalarType
intoscalar
and will add it intoDocument
instead ofTypeRegistry
(3e23e8e)
Code Refactoring
- Added
TypeSource::isUnion()
(026f118) ☣ - Added
TypeSource
argument toBuilderInfoProvider::getBuilderInfo()
(f29215a) ☣ ArgumentNode
support forAstManipulator::getName()
;DirectiveNode
support forAstManipulator::findArgument()
,AstManipulator::getArgument()
(cb29569) ☣BuilderInfoDetector
internally will useTypeSource
instead ofNode
(fb0b6f7) ☣BuilderInfoProvider::getBuilderInfo()
can return only?BuilderInfo
(you can useBuilderInfo::create()
to get a default instance for class) (630ff3b) ☣Directive::Name
consts marked asfinal
(757fd7d) ☣JsonString
renamed toJsonStringType
(8cf2761) ☣WithBuilderInfo
trait converted intoBuilderInfoDetector
class (a819d8e) ☣
Package graphql-printer
Features
- New setting
Settings::isAlwaysMultilineDirectives()
(#82, 212b61c) ☣ - New setting
Settings::isNormalizeDirectives()
(default isfalse
, because the order of directives may be important) (1db945b) ☣ Settings::isNormalizeSchema()
renamed toSettings::isNormalizeDefinitions()
(cacf098) ☣
Bug Fixes
- Default value
Settings::isNormalizeArguments()
set tofalse
because the order of arguments may be important (5198e6e) - Exported type will be on the top of the document (#100, 5b9e5b2) ☣
- Object value will respect
Settings::isAlwaysMultilineArguments()
(4a8b916)
Package testing
Features
- New assertion
WithQueryLog::assertQueryLogEquals()
(3068f60)
Bug Fixes
- Scout v10.3.0 assertions fix (c03d563)