Clearance v2.0.0 Release Notes

Release Date: 2019-11-12 // over 4 years ago
  • โž• Added

    • โž• Add support for Rails version 6
    • ๐Ÿ‘ Allow cookie_domain to be configured with a lambda for custom configuration
    • โž• Add ability to configure BCrypt computational cost of hash calculation.
    • โž• Add same_site configuration option for increased CSRF protection.

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fix issue where invalid params could raise NoMethodError when updating and resetting passwords.
    • ๐Ÿš… The backdoor auth mechanism now supports scenarios where Rails.env has been configured via env variables other than RAILS_ENV (RACK_ENV for example).

    โœ‚ Removed

    • โœ‚ Removed support for Ruby versions older than 2.4
    • โœ‚ Removed support for Rails versions older than 5.0
    • โœ‚ Removed all deprecated code from Clearance 1.x

    ๐Ÿ”„ Changed

    • Flash messages now use flash[:alert] rather than flash[:notice] as they were used as errors more often than notices.