Releases: LastDragon-ru/lara-asp
Releases · LastDragon-ru/lara-asp
Bugfixes 🦠
Bug Fixes
- graphql:
AstManipulator::getNodeDirectives()
instance of check (117a26a)
- graphql:
AstManipulator::isList()
will detect ListTypeNode
correctly (1af0503)
- graphql:
GraphQLAssertions::printGraphQLSchema()
/GraphQLAssertions::printDefaultGraphQLSchema()
will use actual singletons while printing (#50, b1ea337)
- graphql/
@builder
: InputObject
will check the convertibility before name conflict (9d7fd62)
PHP 8.2, Scout and Placeholders for `@searchBy` 🎄
☣ |
Breaking changes |
🔥 |
Something cool |
Features
- PHP 8.2 support (#45, 7796b81)
- eloquent:
IteratorImpl
(= all iterators) will implement Countable
(f5a1373)
- graphql:
@searchBy
/@sortBy
will exclude unions from placeholders by default (df48aac)
- graphql:
@searchBy
/@sortBy
will support Interfaces while types transformation (AST only) (#15, e535a5f)
- graphql: 🔥 Builder type detection (= different types for each builder) (#23, 639c3bb) ☣
- graphql/
@builder
: Fields description will be used for input
types (= no placeholder) instead of default description (075a977) ☣
- graphql/
@searchBy
: @searchByIgnored
can be placed on OBJECT
, INPUT_OBJECT
, ENUM
, SCALAR
(6120f65)
- graphql/
@searchBy
: Ignored
will not extend Nuwave\Lighthouse\Support\Contracts\Directive
thus it can be used with any Type
(d1ce459) ☣
- graphql/
@searchBy
: 🔥 Placeholder support (#19, bbc8df8) ☣
- graphql/
@searchBy
: 🔥 Scout support (#24, e25b886)
- graphql/
@sortBy
: @sortByIgnored
can be placed on OBJECT
, INPUT_OBJECT
, ENUM
, SCALAR
(51a2429)
- graphql/
@sortBy
: Ignored
will not extend Nuwave\Lighthouse\Support\Contracts\Directive
thus it can be used with any Type
(4fda12d) ☣
- graphql/
@sortBy
: Order by random()
support (#29, 99cdbb9)
- graphql/SchemaPrinter: Removed support of directive in description (86d3547) ☣
- testing:
Override::override()
will accept T&MockInterface
(380b7c2) ☣
- testing: Added
$suffix
for WithTempFile::getTempFile()
(32c5f9f)
- testing: New assertion
assertScoutQueryEquals()
to compare Scout queries (684787f)
Bug Fixes
- formatter:
filesize(0)
will return O B
instead of just 0
(be65a41)
- graphql:
AstManipulator::getScalarTypeDefinitionNode()
will return the existing node if it is exist (5afdf10)
- graphql:
PropertyDirective::getName()
and Clause::getName()
(f8572bb)
- graphql: Enum serialization (396cb03)
- graphql: Test assertions should work event when
LIGHTHOUSE_CACHE_ENABLE=true
(#43, e5a2129)
- graphql/
@searchBy
: Added table name prefix for Eloquent builder to avoid "SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'xxx' in where clause is ambiguous" error (d2668a9)
- graphql/
@searchBy
: List of Logical
operators can be empty (b352b1a)
- graphql/
SchemaPrinter
: Directives location for enum
(581be04)
Performance Improvements
- eloquent:
IteratorImpl
will not load one more chunk if the current chunk is contain less item than the chunk size (7ff3ba0)
Miscellaneous Chores
- graphql: Minimal Scout version set to v9.2.1 (from 9.2.0) because
whereIn
support is required (8baf503) ☣
- graphql: Minimal version of "nuwave/lighthouse" set to "^5.68.0" (cc90945) ☣
Code Refactoring
- Rid of
\Illuminate\Contracts\Config\Repository
injection (related to #38) (#38, cd8db7d) ☣
- Rid of
\Illuminate\Contracts\Container\Container
injection (related to #38) (#38, dd49fe7) ☣
- Rid of
\Illuminate\Contracts\Foundation\Application
injection (related to #38) (#38, 1c1b718) ☣
- graphql:
ArgumentFactory::getArgument()
and ArgumentFactory::getArgumentSet()
will accept InputValueDefinitionNode|string
only (8601470) ☣
- graphql:
LastDragon_ru\LaraASP\GraphQL\SearchBy\Exceptions\NotImplemented
moved to LastDragon_ru\LaraASP\GraphQL\SearchBy\NotImplemented
(b0490a7) ☣
- graphql:
LastDragon_ru\LaraASP\GraphQL\SortBy\Builders\Scout\ColumnResolver
renamed to LastDragon_ru\LaraASP\GraphQL\Builder\Contracts\Scout\FieldResolver
(e4b733a) ☣
- graphql:
Scalars
renamed to Operators
and moved into Builder
(e1987fb) ☣
- graphql: Operators list/config type changed to
array<string|class-string<Operator>>
(from array<class-string<Operator>>|string
) (8596403) ☣
- graphql: Types providers rework - directives will use
TypeDefinition
s instead of extending Manipulator
class) (eb6075e) ☣
- graphql/
@searchBy
: Operators::Logical
renamed to Operators::Extra
(because the list may contain any operators) (4a30837) ☣
Release 1.1.2 🦠
Bug Fixes
- graphql:
search_by.scalars
regressions fix (e7345f2)
Release 1.1.1 🦠
Bug Fixes
- formatter:
filesize(0)
will return O B
instead of just 0
(f9a3f1c)
- graphql/
@searchBy
: Added table name prefix for Eloquent builder to avoid "SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'xxx' in where clause is ambiguous" error (213ae9c)
- graphql: Enum serialization (85624f0)
Release 1.1.0 🧪
Features
- testing: Added
$suffix
for WithTempFile::getTempFile()
(6faf1b7)
Release 1.0.4 🐛
Bug Fixes
- graphql/
@searchBy
: Transformed types will not be transformed again (b35af60)
Miscellaneous Chores
Enum
marked as deprecated (please use native PHP enums instead) (f71dd59)
- graphql/SchemaPrinter:
Setting::isPrintDirectivesInDescription()
marked as deprecated (5216948)
Release 1.0.3 🐛
Bug Fixes
- graphql:
@searchBy
will correctly extends operators for aliases (ad3dd45)
Release 1.0.2 🐛
Bug Fixes
- graphql:
@searchByOperatorRelation
will correctly determine name of nested Relation ("Call to undefined method Model::relation().") (3b1c246)
Release 1.0.1 🐛
Bug Fixes
- eloquent:
ModelHelper::isRelation()
will support unions (all type should be instance of Relation
) and interceptions (any of) of types (665c73f)
- graphql/SchemaPrinter: Directives in description will be wrapped by code block (b7378b1)
- graphql:
@graphql
Logical operators will group conditions correctly (d79da46)
- graphql:
@searchByOperatorRelation
will correctly determine name of Relation ("Property Model::()
is not a relation.") (b28362e)
Release 1.0.0 🤪
Features
- grahpql:
@searchBy
updated to use operator-directives (#18, 5b153b3) ☣
- grahpql:
@sortBy
updated to use operator-directives (#18, 744b313) ☣
- graphql:
@searchBy
bitwise operators support: &
, |
, ^
, >>
, <<
(#25, fe65037)
- graphql:
@searchBy
will extends list of operators for Int
and Float
types by operators for Number
type (87037e0) ☣
- queue:
delay
option support (32b7160)
- testing: Removed deprecated
SetUpTraits
trait (2d2e71f) ☣
- testing: Removed deprecated
WithQueryLog
trait (fdf4152) ☣
- testing: Response constrains will show/return the diff (#33, fa2c637) ☣
Bug Fixes
- formatter: Methods of
Formatter
class will throw FailedToFormatValue
if error. The exception will also be used instead of FailedToFormatDate
(d96a68a) ☣
- testing: Return type of
Override::override()
(47ee2da)
Miscellaneous Chores
- core:
ProviderWithCommands
marked as deprecated (f2e0357) ☣
Code Refactoring
- graphql: All
SchemaPrinter
contract merged into one (#17, 7a641ff) ☣