Skip to content

Latest commit

 

History

History
271 lines (141 loc) · 4.96 KB

CHANGELOG.md

File metadata and controls

271 lines (141 loc) · 4.96 KB

Changelog

[Unreleased]

Fixed

  • Added missing props to HTMLInformEl typescript definition.

[1.11.2] - 2023-03-20

Fixed

  • Typescript: added missing methods (setValues, reset) to HTMLInformEl.
  • When using custom elements (inform-field with a name attribute and no form element), the error was not disappearing when the value became valid.
  • The default error message now has a default top margin of 5px (unless otherwise specified by --error-margin).
  • Fixed a possible js error on unmount if the form element was destroyed before informel.
  • When using error slots, the slot was always shown even if the field was valid (it would be empty when valid but bg color and padding would be visible).

[1.11.1] - 2023-03-02

Fixed

  • [Typescript] Return type of validationHandler.

[1.11.0] - 2023-02-25

Added

  • default-submit attribute on <inform-field> to disable usage of e.preventDefault() on submit.

[1.10.1] - 2023-02-21

Fixed

  • Mounting new fields that already have a value.

[1.10.0] - 2023-02-13

Added

  • Support for nested fields.

[1.9.1] - 2023-01-26

Fixed

  • Typescript types for onInformChange and onInformSubmit.
  • Possible exception condition in inform-change and inform-input.

[1.9.0] - 2023-01-09

Added

  • support for zod schemas.

Fixed

  • e.target.dirty and e.target.values not being updated in inform-input and inform-change events.

[1.8.3] - 2023-01-04

Fixed

  • Typescript types

[1.8.2] - 2022-10-07

Fixed

  • React: fixed ref being called at every render.
  • Removed aria-description in favour of aria-describedby which has better support.

[1.8.1] - 2020-08-15

Fixed

  • requestSubmit not supported on Safari.

[1.8.0] - 2022-08-05

Added

  • Dispatching a inform-updated event the informel changes the value of a control.

[1.7.5] - 2022-07-28

Fixed

  • Regression in react internal wrapper.

[1.7.4] - 2022-07-28

Fixed

  • React internal wrapper event handling in strict mode + nextjs useLayoutEffect warning
  • inform-change was sending stale values in some cases

[1.7.3] - 2022-07-13

Fixed

  • Focus on first invalid field

[1.7.2] - 2022-07-13

Fixed

  • InformField TS definition: added missing name and ref optional props.
  • Accessibility fixes: focusing the first invalid input on submit + added aria-description with aria-invalid

[1.7.1] - 2022-07-04

Fixed

  • setValues resetting other extra values
  • Removed reference to RadioNodeList (not supported by jest/jsdom)

[1.7.0] - 2022-06-04

Added

  • initialValues prop to InformEl (React)

Fixed

  • InformelProps type

[1.6.1] - 2022-05-27

Fixed

  • Added missing submitOnChange prop to InformField.
  • React component definition: useEffect -> useLayoutEffect

[1.6.0] - 2022-05-07

Added

  • React: Support for camelCase props.

Fixed

  • React: fixed boolean props

[1.5.0] - 2022-04-25

Fixed

  • Form values don't include empty number inputs and empty file inputs anymore

Changed

  • Renamed input, change and submit custom events to inform-input, inform-change and inform-submit.

[1.4.0] - 2022-04-23

Fixed

  • Calling requestSubmit() on the <form> was throwing an error
  • InformEl React element type.

Added

  • inform-el requestSubmit() method
  • inform-el submit event details now contains a submitter field.

[1.3.2] - 2022-04-21

Fixed

  • Issues with <input type="file">

[1.3.1] - 2022-04-20

Fixed

  • reset() that was showing 'undefined' in text inputs
  • setValues() that was ignoring radio buttons

Removed

  • setValues() no longer emits input and change events

[1.3.0] - 2022-04-10

Added

  • Set aria-invalid attribute when invalid
  • touched-on-input attribute on <inform-field>

[1.2.1] - 2022-03-15

Fixed

  • Event conflicts for inputs without names
  • Parse values for <input type="number"/>

[1.2.0] - 2022-03-13

Added

  • Support for formaction & formmethod attributes.

[1.1.0] - 2022-03-12

Added

  • Support for <select multiple>.

[1.0.0] - 2022-03-06

  • 1.0.0 release

[0.0.35] - 2022-03-03

Fixed

  • Typo in README.

[0.0.34] - 2022-03-01

Fixed

  • error-disable-submit now disables the submit button only while error are shown (not disabled when the form is loaded)

[0.0.33] - 2022-02-27

Fixed

  • Fixed reset-on-submit for extra values

[0.0.32] - 2022-02-27

Fixed

  • Resetting extra values

[0.0.31] - 2022-02-27

Fixed

  • Extra field returned by validationHandler were not ignored

[0.0.30] - 2022-02-27

Added

  • Support for extra values
  • name attribute on inform-field for extra values.

Fixed

  • Some reset issues: passed values were not always remembered.

[0.0.29] - 2022-02-27

Fixed

  • method defaults to 'GET' when not specified.

[0.0.28] - 2022-02-27

Fixed

  • Support for other methods than get and post.