Releases: LastDragon-ru/lara-asp
Releases · LastDragon-ru/lara-asp
Types auto-generation for `@sortBy` 🤩
☣ | Breaking changes |
---|
Features
guzzlehttp/psr7:^2.0
support. (c33899d)- eloquent,graphql:
ModelHelper
moved intoeloquent
package. (34d99ed) ☣ - eloquent:
EloquentBuilder::orderByKey()
mixin will use qualified key name. (155dacb) - eloquent:
ModelHelper::getRelation()
will throwPropertyIsNotRelation
instead ofLogicException
. (7f350a9) - graphql:
@searchBy
will support types fromTypeRegistry
. (1a92006) ☣ - graphql:
@searchBy
: new operators forString
:contains
,startsWith
,endsWith
. (f2f44b7) - graphql:
@sortBy
support input type auto-generation by existingtype
. (06da4a7) - graphql:
@sortBy
will use dependent subqueries instead of joins. (a1e4608) ☣ - graphql: New directive
sortByUnsortable
that allow exclude fields from sort. (10a39ab) - queue:
CronableRegistrator
will usePendingDispatch
(soShouldBeUnique
should work now). (6c4cbd0) - queue:
Dispatchable::run()
will usedispatchSync()
instead ofdispatchNow()
. (50ecb56) ☣ - queue: Injection of
QueueableConfigurator
into__construct()
not needed anymore,Container::afterResolving()
will be used instead. (aebffad) - testing: New assertion:
assertDatabaseQueryEquals()
. (64fa090)
Bug Fixes
- eloquent: Fixed "Integrity constraint violation: 1052 Column 'id' in order clause is ambiguous" for
ChunkedChangeSafeIterator
(it will use qualified column name for default). (5695af5)
Code Refactoring
- graphql:
LastDragon_ru\LaraASP\GraphQL\SortBy\Contracts\ScoutColumnResolver
renamed to\LastDragon_ru\LaraASP\GraphQL\SortBy\Builders\Scout\ColumnResolver
(339cf58) ☣
0.8.1
0.8.0
☣ | Breaking changes |
---|
Features
- core: Package
Translator
allows to specify default translation (will be used if the translation string doesn't exist). (c9e1e5d) - eloquent: New trait
WithDateSerialization
that will serialize dates that implementsJsonSerializable
byJsonSerializable::jsonSerialize()
instead of hardcodedCarbon::toJSON()
. (085fc47) ☣ - graphql:
Enum
properties will be converted into studly case (to be compatible with PHP Enums). (3a9e15a) ☣ - graphql:
ModelHelper::__construct()
acceptclass-string<\Illuminate\Database\Eloquent\Model>
. (e3d92be) - queue:
CronableRegistrator
will use job name as description (= description will not contain settings anymore) and will not add context to log messages. (04fc1ea) ☣ - queue: Added
timezone
setting forCronable
. (8810c7f) - queue: Removed
QueueableConfig::Debug
. (ae9653a) ☣ - testing: Added
WithTranslations
helper that allows replacing translation while tests. (5e0d4e4)
Bug Fixes
- formatter: Filesize units (MB => MiB, etc). (5fc4ba7)
- queue: TypeError :
LastDragon_ru\LaraASP\Queue\Queueables\Job::LastDragon_ru\LaraASP\Queue\Concerns\{closure}
: Return value must be of typeIlluminate\Foundation\Bus\PendingDispatch
,null
returned. (58e2f20) - queue:
CronableRegistrator
removed incorrect realization to check the locked status of the job. (033de61) - testing:
JsonSchemaValue
will not evaluate schema in constructor (regression). (3c51269)
`@sortBy` + Laravel Scout = 💖
☣ | Breaking changes |
---|
Features
- eloquent:
iterator()
andchangeSafeIterator()
builder's macros renamed togetChunkedIterator()
andgetChangeSafeIterator()
accordingly. (c1140a4) ☣ - eloquent: Iterators will support offset,
each()
replaced byonAfterChunk()
, also addedonBeforeChunk()
. (4276a2c) ☣ - graphql:
@searchBy
: short-named operators (lt
,lte
, etc) renamed into full form (lessThan
, etc). (be2d5f8) ☣ - graphql:
@searchBy
: Relation will usenotExists
instead ofnot
+ addedexists
. (63072fa) ☣ - grapqhl:
@sortBy
exceptions rework: each error will have its own exception. Unfortunately, the commit also remove translations support. (4f99e92) ☣ - graphql:
@sortBy
will support types fromTypeRegistry
. (20f3be5) - graphql:
@sortBy
: Laravel Scout support. (4c1bb9c) - queue:
CronableRegistrator
will not dispatch jobs marked asShouldBeUnique
if they already dispatched. (40624e4) - queue: Removed DI support for
getQueueConfig()
. (da57176) ☣ - testing:
CronableAssertions::setQueueableConfig()
will accept instance ofConfigurableQueueable
. (cd6430e) - testing:
WithQueryLog::getQueryLog()
will accept\Illuminate\Database\ConnectionResolverInterface
. (9243d47) - testing: Added
Override::override()
helper. (7598390) - testing: Added a new
WithQueryLog
trait that can work with any connection (the old one marked as deprecated). (1f7a8c3) - testing: Removed
TestResponse::getContentType()
macro (not needed for testing). (ebf2f6d) ☣ - testing: Removed
TestResponse::toPsrResponse()
macro,LastDragon_ru\\LaraASP\\Testing\\Constraints\\Response\\Factory::make()
should be used instead. (7e000da) ☣
Bug Fixes
0.6.1
GraphQL/Testing improvements.
Features
- graphql:
@sortBy
: HasOneThrough support 😜 (558198b) - testing: Added
WithTempFile
helper. (93a24be) - testing: Signature of
DataProvider::getData()
changed toDataProvider::getData(bool $raw = false)
to allow nesting DataProviders. (34f1ff7)
Bug Fixes
- dev: Added removing special characters from hostname in Vagrantfile. (1eed300)
- graphql:
@searchBy
will not advise "contact to developer" for unknown types. (d9ff32b) - graphql:
@sortBy
will not skip "unknown" types and will not convert them into Scalars. (b5aaccb) - testing: arguments types for
TestResponseMixin::assertJsonMatchesSchema()
. (46674f0)
GrapgQL `@searchBy` and `@sortBy` directives for lighthouse-php
Features
-
graphql: Added two highly powerful
@searchBy
and@sortBy
directives for lighthouse-php. The@searchBy
directive provides basic conditions like=
,>
,<
, etc, relations,not (<condition>)
, enums, and custom operators support. All are strictly typed so you no need to useMixed
type anymore. The@sortBy
is not only about standard sorting by columns but also allows use relations. 😎 -
migrator: added support for anonymous migrations
Fixes
- migrator: will work in Laravel >= 8.36.0
PHP 8 (and only PHP 8) 🐱👤
0.4.0 PHP 8 (and only PHP 8).
Dependencies fix
Versions of dependencies were re-checked and fixed.