Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Releases: justeat/f-validate

v0.17.0

12 Apr 16:48
Compare
Choose a tag to compare

Changed

  • Use f-dom instead of querySelector & querySelectorAll.

Fixed

  • Fixed issue where one of the querySelectorAll calls had a chained forEach function which is not supported in some browsers.

v0.14.0

26 Feb 11:51
Compare
Choose a tag to compare

Added

  • Comments added to each rule definition

Fixed

  • Fixed instances where the email, minlength and maxlength fields would validate as true when they shouldn't do
  • Tests added for the above cases

v0.13.0

23 Feb 11:28
093839b
Compare
Choose a tag to compare

Changed

  • Have made it the default behaviour to set the novalidate attribute on a form when f-validate is initialised on it. This can be overidden if the developer wants to allow the default HTML5 validation to kick in by setting the enableHTML5Validation option to true.
  • Custom error attributes changed so that they are in the format data-val- as they weren't consistent.
  • Updated some of the test descriptions on error messages to be a little clearer as to the expected functionality. Re-jigged the ordering as well, so that the default rules come first.
  • Snapshots updated with the above changes.

v0.12.0

20 Feb 15:30
0f054fe
Compare
Choose a tag to compare

Fixed

  • Fixed issue with validateOn marking form as valid when blur event fired due to validating child elements inside groups
  • Readme typo

Added

  • Constant validationGroup added that defines the data-attribute for group validation elements

Changed

  • Pull request image updated
  • Updated how validation groups get assigned. Now uses the data-attribute data-val-group rather than the class validation-group as modules should use attributes for hook definitions.
  • Some of the tests updated so that they are a bit clearer in their definition. Stubbed date has changed to 2018 in the tests (as it was a bit confusing testing against a future date)

v0.9.0

30 Jan 16:22
Compare
Choose a tag to compare

Added

  • Browserslist added

Changed

  • Package update for gulp-build-fozzie
  • Updating the babel config

Fixed

  • Fixed test warning for js-dom on submit (as it doesn't handle submit events)

v0.6.1

15 Jan 16:39
db44b71
Compare
Choose a tag to compare

Changed

  • Split rule definitions and associated unit tests into separate files.
  • Updated some of the unit test descriptions.

Removed

  • Unnecessary eslint disable line comments.