Releases: ministryofjustice/gov_uk_date_fields
Version 4.2.0 - Support Rails 6.1
Changes
- BREAKING CHANGE: drop support for end-of-life versions of rails. Rails 5.2+ supported
- support Rails 6.1+
Fixes
- fixes the following deprecations when using against rails 6.1
DEPRECATION WARNING: ActiveModel::Errors#keys is deprecated and will be removed in Rails 6.2.
To achieve the same use:
errors.attribute_names
DEPRECATION WARNING: Calling `<<` to an ActiveModel::Errors message array in order to add an error is deprecated.
Please call `ActiveModel::Errors#add` instead.
DEPRECATION WARNING: Calling `clear` to an ActiveModel::Errors message array in order to delete all errors is deprecated.
Please call `ActiveModel::Errors#delete` instead.
Version 3.2.0 - Support Rails 6.1
Changes
- BREAKING CHANGE: drop support for end-of-life versions of rails. Rails 5.2+ supported
- support Rails 6.1+
Fixes
- fixes the following deprecations when using against rails 6.1
DEPRECATION WARNING: ActiveModel::Errors#keys is deprecated and will be removed in Rails 6.2.
To achieve the same use:
errors.attribute_names
DEPRECATION WARNING: Calling `<<` to an ActiveModel::Errors message array in order to add an error is deprecated.
Please call `ActiveModel::Errors#add` instead.
DEPRECATION WARNING: Calling `clear` to an ActiveModel::Errors message array in order to delete all errors is deprecated.
Please call `ActiveModel::Errors#delete` instead.
Version 4.1.0
Markup will produce inputs with type="text" inputmode="numeric"
.
These are semantically correct and provides a better experience in most browsers, including mobile. More details in this thread.
Note: This change might break your code if you target the input (in javascript, CSS or cucumber for example) by type="number"
.
Version 4.0.1
Version 4.0.1 introduces the following (non-breaking) changes:
- #36 Allow alternative i18n locales
BREAKING CHANGE: Support for new design system
Version 4.0.0 introduces the following (breaking) changes. If you depend on current behaviour, versions 3.x.x will continue to be supported.
-
The gem will produce markup and style classes in line with the new design system: https://design-system.service.gov.uk/components/date-input/
-
The gem will pick all the strings from i18n locales, and the ability to pass hardcoded strings has been removed.
-
There is no longer an option to show a 'today' button, and thus all related javascript has been removed.
-
Removed the stylesheet file, as all the styling is now coming from the design system, https://github.com/alphagov/govuk-frontend
Version 3.1.0
#32 Fix issue with error summary links
Breaking change - Changes to markup and error styling
#31 Error stying and markup
Version 2.2
Adding a "Today" button
v2.0.3 Remove generate_field_value method (no real value added)