Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Releases: ministryofjustice/gov_uk_date_fields

Version 4.2.0 - Support Rails 6.1

16 Jun 09:18
011e35b
Compare
Choose a tag to compare

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

16 Jun 09:08
Compare
Choose a tag to compare

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

28 Aug 14:27
4fb994b
Compare
Choose a tag to compare

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

24 Jun 13:59
53ca7e7
Compare
Choose a tag to compare

Version 4.0.1 introduces the following (non-breaking) changes:

  • #36 Allow alternative i18n locales

BREAKING CHANGE: Support for new design system

11 Mar 10:36
ec65558
Compare
Choose a tag to compare

Version 4.0.0 introduces the following (breaking) changes. If you depend on current behaviour, versions 3.x.x will continue to be supported.

screen shot 2019-02-25 at 15 50 41

screen shot 2019-02-25 at 15 50 54

screen shot 2019-02-25 at 15 51 12

screen shot 2019-02-25 at 15 51 32

Version 3.1.0

23 Jan 11:32
72b849c
Compare
Choose a tag to compare

#32 Fix issue with error summary links

Breaking change - Changes to markup and error styling

03 May 10:45
2ca9776
Compare
Choose a tag to compare

Version 2.2

03 May 10:14
aa7ac65
Compare
Choose a tag to compare

#30 Addresses security vulnerabilities identified by Github
#29 Remove after_initialize duplication in acts_as_gov_uk_date
#28 Improve attribute accessor compatibility

Adding a "Today" button

27 Nov 09:24
Compare
Choose a tag to compare
v2.0.3

Remove generate_field_value method (no real value added)