Skip to content

Releases: spatie/laravel-query-builder

2.4.0

04 Jan 22:55
367629a
Compare
Choose a tag to compare
  • add support for a custom filter delimiter (#369)

2.3.0

08 Oct 08:49
Compare
Choose a tag to compare
  • resolve QueryBuilderRequest from service container

2.2.1

03 Oct 10:01
Compare
Choose a tag to compare
  • fix issue when passing camel-cased includes (#336)

2.2.0

03 Oct 10:00
Compare
Choose a tag to compare
  • add option to disable parsing relationship constraints when filtering related model properties in the exact and partial filters (#262)
  • fix selecting fields from included relationships that are multiple levels deep (#317)

2.1.0

03 Sep 13:33
Compare
Choose a tag to compare
  • Add support for Laravel 6

2.0.1

12 Aug 15:01
Compare
Choose a tag to compare
  • update doc block for QueryBuilder::for()
  • add missing typehint in SortsField

2.0.0

12 Aug 10:01
Compare
Choose a tag to compare
  • removed request macros
  • sorts and field selects are not allowed by default and need to be explicitly allowed
  • requesting an include suffixed with Count will add the related models' count using $query->withCount()
  • custom sorts and filters now need to be passed as instances
  • renamed Spatie\QueryBuilder\Sort to Spatie\QueryBuilder\AllowedSort
  • renamed Spatie\QueryBuilder\Included to Spatie\QueryBuilder\AllowedInclude
  • renamed Spatie\QueryBuilder\Filter to Spatie\QueryBuilder\AllowedFilter
  • Filter, Include and Sort interfaces no longer need to return the Builder instance
  • allowedFields should be called before allowedIncludes
  • filters can now have default values
  • includes will be converted to camelcase before being parsed

1.17.5

08 Jul 09:12
Compare
Choose a tag to compare
  • bugfix: correctly parse sorts in chunked query (#299)
  • bugfix: don't parse empty values in arrays for partial filters (#285)

1.17.4

03 Jun 09:48
a0f5902
Compare
Choose a tag to compare
  • bugfix: orderByRaw is no longer being rejected as a sorting option (#258)
  • bugfix: addSelect is no longer being replaced by the ?fields parameter (#260)
  • bugfix: take leading dash into account when remembering generated sort columns (#272)
  • bugfix: allowedIncludes no longer adds duplicate includes for nested includes (#251)

1.17.3

16 Apr 15:36
Compare
Choose a tag to compare
  • bugfix: remove duplicate parsing of (default) sort clauses