Skip to content

Latest commit

 

History

History
89 lines (52 loc) · 2.61 KB

CHANGELOG.md

File metadata and controls

89 lines (52 loc) · 2.61 KB

Change Log

All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning and this changelog format.

[2.0.0] - 2022-02-09

Changed

  • Package now supports Laravel 9.
  • Added return types to internal methods to remove deprecation messages in PHP 8.1.
  • Minimum laravel-json-api/core dependency version is now 2.0.

[1.2.0] - 2022-02-04

Added

  • #7 Add Italian translation files.

[1.1.0] - 2022-01-22

Added

  • New validation rules:
    • JsonNumber validates that the value is a number in JSON (i.e. integer or float), or just an integer.
    • JsonBoolean validates that the value is a boolean in JSON. It can also be used for query string parameters that will be filtered to booleans via its asString() method.

[1.0.0] - 2021-07-31

Initial stable release, with no changes from 1.0.0-beta.3.

[1.0.0-beta.3] - 2021-07-10

Fixed

  • #4 Ensure JSON pointer does not have a double slash when using the withSourcePrefix() method on the ValidatorErrorIterator class.
  • #3 Add missing return statement to the ValidatorErrorIterator::withSourcePrefix() method.

[1.0.0-beta.2] - 2021-04-26

Changed

  • Updated the AllowedSortParameters rule class to use renamed method on the Schema contract.

[1.0.0-beta.1] - 2021-03-30

Added

  • New AllowedCountableFields rule, which can be created via the Rule::countable and Rule::countableForPolymorph methods.

[1.0.0-alpha.5] - 2021-03-12

Added

  • New Rule::includePathsForPolymorph() method. This returns an include path rule that is configured to allow all the include paths for every inverse schema that a polymorphic relation has.

Fixed

  • The correct message is now set as the error detail when a query parameter is not supported. Previously the translation key was displayed instead of the translated message.

[1.0.0-alpha.4] - 2021-02-27

Added

  • The sparse field sets rule now rejects with a specific message indicating if any of the supplied resource types in the fields query parameter are not recognised.

[1.0.0-alpha.3] - 2021-02-09

Added

  • Added French translations for error messages.

[1.0.0-alpha.2] - 2021-02-02

Bugfix

  • #1 Added package discovery configuration to the composer.json.

[1.0.0-alpha.1] - 2021-01-25

Initial release.