Skip to content

Releases: LastDragon-ru/lara-asp

Types auto-generation for `@sortBy` 🤩

24 Oct 12:23
0.9.0
453126e
Compare
Choose a tag to compare
Breaking changes

Features

  • guzzlehttp/psr7:^2.0 support. (c33899d)
  • eloquent,graphql: ModelHelper moved into eloquent package. (34d99ed) ☣
  • eloquent: EloquentBuilder::orderByKey() mixin will use qualified key name. (155dacb)
  • eloquent: ModelHelper::getRelation() will throw PropertyIsNotRelation instead of LogicException. (7f350a9)
  • graphql: @searchBy will support types from TypeRegistry. (1a92006) ☣
  • graphql: @searchBy: new operators for String: contains, startsWith, endsWith. (f2f44b7)
  • graphql: @sortBy support input type auto-generation by existing type. (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 use PendingDispatch (so ShouldBeUnique should work now). (6c4cbd0)
  • queue: Dispatchable::run() will use dispatchSync() instead of dispatchNow(). (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

11 Sep 06:33
0.8.1
7190e48
Compare
Choose a tag to compare

Bug Fixes

  • testing: CronableAssertions::assertCronableRegistered() will correctly check registration of Cronable. (a2437db)

0.8.0

05 Sep 08:40
0.8.0
15e1984
Compare
Choose a tag to compare
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 implements JsonSerializable by JsonSerializable::jsonSerialize() instead of hardcoded Carbon::toJSON(). (085fc47) ☣
  • graphql: Enum properties will be converted into studly case (to be compatible with PHP Enums). (3a9e15a) ☣
  • graphql: ModelHelper::__construct() accept class-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 for Cronable. (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 type Illuminate\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 = 💖

15 Aug 09:27
0.7.0
e96d3bd
Compare
Choose a tag to compare
Breaking changes

Features

  • eloquent: iterator() and changeSafeIterator() builder's macros renamed to getChunkedIterator() and getChangeSafeIterator() accordingly. (c1140a4) ☣
  • eloquent: Iterators will support offset, each() replaced by onAfterChunk(), also added onBeforeChunk(). (4276a2c) ☣
  • graphql: @searchBy: short-named operators (lt, lte, etc) renamed into full form (lessThan, etc). (be2d5f8) ☣
  • graphql: @searchBy: Relation will use notExists instead of not + added exists. (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 from TypeRegistry. (20f3be5)
  • graphql: @sortBy: Laravel Scout support. (4c1bb9c)
  • queue: CronableRegistrator will not dispatch jobs marked as ShouldBeUnique if they already dispatched. (40624e4)
  • queue: Removed DI support for getQueueConfig(). (da57176) ☣
  • testing: CronableAssertions::setQueueableConfig() will accept instance of ConfigurableQueueable. (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

  • eloquent: Iterator::onBeforeChunk()/Iterator::onAfterChunk() will be called only for non-empty chunks. (140825c)
  • graphql: Enums registration moved to afterResolving callback. (2a6288b)
  • migrator: Added missed semicolon to migration-anonymous.stub. (64118fa)

0.6.1

26 Jun 11:21
0.6.1
8212efc
Compare
Choose a tag to compare

Bug Fixes

  • testing: JsonSchemaWrapper::__construct() will correctly handle JsonSchemaWrapper $schema. (85ea05f)
  • testing: TypeError : Symfony\Component\HttpFoundation\HeaderUtils::parseQuery(): Argument #1 ($query) must be of type string, null given (9646143)

GraphQL/Testing improvements.

12 Jun 17:57
0.6.0
a0bd1aa
Compare
Choose a tag to compare

Features

  • graphql: @sortBy: HasOneThrough support 😜 (558198b)
  • testing: Added WithTempFile helper. (93a24be)
  • testing: Signature of DataProvider::getData() changed to DataProvider::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

16 May 15:40
0.5.0
f562763
Compare
Choose a tag to compare

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 use Mixed 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) 🐱‍👤

14 Feb 11:37
Compare
Choose a tag to compare
0.4.0

PHP 8 (and only PHP 8).

Dependencies fix

20 Jan 17:02
Compare
Choose a tag to compare

Versions of dependencies were re-checked and fixed.

First release

19 Jan 10:08
Compare
Choose a tag to compare