This repository has been archived by the owner on Mar 23, 2023. It is now read-only.
Releases: justeat/f-validate
Releases · justeat/f-validate
v0.17.0
Changed
- Use
f-dom
instead ofquerySelector
&querySelectorAll
.
Fixed
- Fixed issue where one of the
querySelectorAll
calls had a chainedforEach
function which is not supported in some browsers.
v0.14.0
Added
- Comments added to each rule definition
Fixed
- Fixed instances where the
email
,minlength
andmaxlength
fields would validate as true when they shouldn't do - Tests added for the above cases
v0.13.0
Changed
- Have made it the default behaviour to set the
novalidate
attribute on a form whenf-validate
is initialised on it. This can be overidden if the developer wants to allow the default HTML5 validation to kick in by setting theenableHTML5Validation
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
Fixed
- Fixed issue with
validateOn
marking form as valid whenblur
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 classvalidation-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
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
Changed
- Split rule definitions and associated unit tests into separate files.
- Updated some of the unit test descriptions.
Removed
- Unnecessary eslint disable line comments.