Skip to content

Releases: FriendsOfCake/search

4.0.0

13 Aug 15:03
Compare
Choose a tag to compare
  • CakePHP dependency bumped to 3.4.0.
  • All deprecated code removed.
  • Ability to have Table::searchConfiguration() method removed. Check readme for how to achieve the same separation of code by adding Table::searchManager() instead.
  • queryStringToData option of PrgComponent removed. Setting $this->request->data was pretty hackish. Check readme for how the search inputs can still be easily populated from query string.

3.2.0

04 Aug 04:37
Compare
Choose a tag to compare
  • Add ability to specify values to avoid flattening (#171)
  • Move queryStringToData conversion to beforeRender (#173)
  • Allow to blacklist params like _csrfToken and _Token (#174)

3.1.0

30 Apr 12:26
Compare
Choose a tag to compare
  • All filters now return a boolean result on whether they modified the query. This allows for a more correct "isSearch" value (#164).
  • Combined getter setter methods are now split into separate methods (#165, #166).
  • Add multi-field search support to boolean filter (#162).
  • An exception is now thrown if a filter gets configured with empty field list (#162).

3.0.0

27 Apr 18:56
Compare
Choose a tag to compare
  • Use query interface to allow for other data sources (#156).

2.5.0

27 Apr 17:40
Compare
Choose a tag to compare
  • Allow "emptyFields" for PRG component in order for isSearch to stay correct (#160).
  • Add multi-field search support to value filter (#161). The "mode" option has been re-purposed to select mode for fields rather than values. Mode was values was a broken feature as applying AND to multiple values would never match.

2.4.0

11 Mar 07:52
Compare
Choose a tag to compare
  • SQL Server LIKE filter escaping (#149)
  • Allow column type adjusting for LIKE searches (#152). When searching across multiple fields with Like filter, integer columns need to be string adjusted in order to avoid wrong SQL queries.
  • OR config param added to Compare (#155)

2.3.1

24 Sep 06:45
Compare
Choose a tag to compare

Enhancements

  • Improve values validation and harden the filters that do not support multi-values, as well as those that do. ( #127)
  • Tests, fixes, and clean-up. 100% code coverage achieved. (#128, #129)

Shout out to @ndm2 for recent updates and fixes.

2.3.0

22 Sep 12:54
Compare
Choose a tag to compare

New features

  • Add multi-value search support (#126)

Fixes

  • Fixed bug where multiselect parameters were ignored (#124)

Enhancements

  • README improvements.

2.2.0

19 Sep 03:17
Compare
Choose a tag to compare

New Features

  • A method to check if the last query has been modified by the Search behavior has been added. (#118)
  • Allow specifying which collection to use for search finder. (#119)
  • Keep whitelisted query strings of paginated pages, defaults to the CakePHP Paginator default query strings sort, direction and limit. (#121)

2.1.0

12 Aug 10:28
Compare
Choose a tag to compare

New features

  • Include new Search.Boolean filter - please see the README for usage (#112)
  • Add dot-notation support (#113)

Fixes

  • fixed phpcs