Skip to content

v2.0.0

Latest
Compare
Choose a tag to compare
@ProGM ProGM released this 24 Jan 17:27

Added

  • Support for Ruby 3.4
  • Support for Rails 8.0
  • transformer option to param, that allows to transform the value received from a parameter before assigning it to the sanitized hash.
  • default now works also with nested structures.

Removed

  • Support for Ruby 2.7
  • Support for Rails 5

Changed

  • [BREAKING] All methods can now be called without ! (param, params, default, etc...)
  • [BREAKING] array and group are not identical anymore. array will accepts an array of values, while group will accept a single hash.
  • [BREAKING] internal, removed to_defaults, replacing it with apply_defaults!