Skip to content

Latest commit

 

History

History
204 lines (167 loc) · 7.54 KB

CHANGELOG.md

File metadata and controls

204 lines (167 loc) · 7.54 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

8.0.1 - 2019-07-12

Fixed

  • README example. The new error attribute was missing.

8.0.0 - 2019-07-12

Added

  • Success variant to Form.View.State. By default, it can be styled using the .elm-form-success CSS selector. #26
  • Form.disable and Form.Base.disable, which allow disabling the fields of a form. #27

Changed

  • Form.Base.FilledField has been renamed to Form.Base.CustomField and its field property has been renamed to state. #27
  • The tuple ( field, Maybe Error ) is replaced with the new record Form.Base.FilledField everywhere. #27
  • An error : values -> Maybe String attribute was added to field configuration. Useful to show server-side validation errors. #29
  • The Error type was extended with an External variant. It is meant to represent an external error not caused by client-side validation. #29
  • NumberField value storage has been changed from Maybe Float to String to fix issues entering values after the decimal point. #25 & #30
  • The step item in the Form.Base.NumberField.Attributes record has been changed from number to Maybe number to allow a step attribute of "any". #30

Fixed

  • Default select field in Form.View now listens to the change event instead of input. Internet Explorer and Edge now should work properly with this field. #28

7.1.0 - 2019-05-07

Added

  • Form.View.htmlViewConfig, which allows easy customization of the default Form.View.asHtml function. #23

7.0.2 - 2019-05-04

Fixed

  • Textarea not updating its value properly when using Form.View.asHtml. #21

7.0.1 - 2019-04-06

Changed

  • Stop asking users to copy-paste code in the Form.Base docs.

7.0.0 - 2019-01-25

Added

  • Form.list and Form.Base.FormList that allow to build a variable list of forms. Thanks to everyone involved in #7!

Changed

  • Improved introduction to the Form type.

6.0.1 - 2018-11-24

Changed

  • Fix radio fields being rendered inside a main label when using Form.View.asHtml.
  • Remove fieldset parent when rendering radio fields using Form.View.asHtml.

6.0.0 - 2018-11-19

Added

  • Form.section (thanks to @russelldavies).
  • Ellie snippet on README.

Changed

  • Fix optional groups / sections rendering field errors when empty.

5.0.0 - 2018-11-07

Added

  • View strategy selector on examples website.

Changed

  • Render fields inside HTML label for accessibility in Form.View.asHtml. The previous label elements are now div elements with the elm-form-label class. To migrate, replace your old CSS rules .elm-form label { ... } with .elm-form .elm-form-label { ... }.

Removed

  • Form.Value. Elm 0.19 makes this module unnecessary! The API is simpler now, allowing you to work with your types directly. To migrate, replace Value a with a and initialize your form values explicitly.

4.0.1 - 2018-09-02

Changed

  • Replace mentions of old (,) operator in docs with the new Tuple.pair equivalent in Elm 0.19.
  • Fix example in Field documentation.

4.0.0 - 2018-08-20

Added

  • Form.Field.mapValues to easily change the value type of a field
  • Elm 0.19 support

Removed

  • Form.Value.update and Form.Value.newest, these are no longer necessary given that Elm 0.19 allows to trigger synchronous renders of the view on some events.

3.0.1 - 2018-08-08

Changed

  • Fix CHANGELOG release links.
  • Fix Value.map documentation example.
  • Fix stylish-elephants custom renderer to work with 3.0.0.

3.0.0 - 2018-08-08

Added

  • Value.map to transform value types.
  • This CHANGELOG! 🎉

Changed

  • Field.update and Value.update to allow clearing field values.
  • Form.View.NumberFieldConfig.onChange and Form.View.RangeFieldConfig.onChange to allow clearing the values of these fields from view code.
  • Add number type variable to Form.Base.NumberField and Form.Base.RangeField to make these more flexible and reusable when building custom fields.

2.2.3 - 2018-07-23

Changed

  • Replace InvoiceAddress with Website in documentation.

2.2.2 - 2018-07-23

Changed

  • Clarify "type-safe" explanation in README.

2.2.1 - 2018-07-23

Changed

  • Replace "form renderer" with "custom view code" in documentation.
  • Fix composability example (by @russelldavies).

2.2.0 - 2018-07-13

Added

2.1.0 - 2018-07-10

Added

  • Form.map
  • Form.Base.map

2.0.1 - 2018-07-07

Changed

  • Fix examples link in README to work with Elm package website.

2.0.0 - 2018-06-27

Changed

  • Make Form.Base.FilledForm type variable order consistent with Form.Base.Form.

1.0.3 - 2018-06-27

Changed

  • Fix outdated docs and inconsistent type signatures.

1.0.2 - 2018-06-26

Changed

  • Fix Form.View.State documentation example.

1.0.1 - 2018-06-26

Changed

  • Fix documentation details.

1.0.0 - 2018-06-26

Added

  • Initial release.