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.
v2.2.0 - 2019-02-26
- Added new
inArray
Rule, allowing to validate an input against an array of strings. - Updated Dependencies
v2.1.3 - 2018-05-23
- Enable the use of the colon symbol
:
in the regex rule.
v2.1.2 - 2018-05-05
- Use arbitrary-precision decimal arithmetic
v2.1.1 - 2018-05-04
- Fixed floating numbers divisions
v2.1.0 - 2018-05-04
- Rule: divisible
- Rule: regex
- Rule: ISO8601 (date format yyyy-mm-dd)
v2.0.2 - 2018-04-24
- Fixed Hexadecimal values passing integer validation. (#22)
v2.0.1 - 2018-04-11
- Fixed UMD Bundle for Webpack / ES6 Usage
v2.0.0 - 2018-01-31
This is a big one! Dropping Bootstrap v3 for that bright'n'shiny Bootstrap 4!
- Feature: You can now use HTML in your error messages. You do need to escape it yourself for the moment.
bootstrapValidate('#prename', 'min:20:Enter at least <strong>20</strong> characters.');
- Feature: You can now pass an Array of Elements or Selectors as first Argument, for example:
bootstrapValidate(['#prename', '#lastname'], 'min:20:Enter at least 20 characters!');
This can come in handy when you are applying identical sets of rules and options to multiple input elements.
- Polyfills for element.closest() and element.classList().
- Documentation cleaning
- Housekeeping: Removed most handmade helpers and replaced them with the battle-proven lodash helpers. This drastically improves maintainability and stability.
1.0.11 - 2017-08-07
- Rule: contains
1.0.10 - 2017-07-27
- Rule: alphanum
- Rule: numeric
- Rule: url
- Rule: integer
1.0.9 - 2017-07-20
- Unit Tests
- Fix adding .has-error class to parent element (#8)
1.0.8 - 2017-07-19
- Support QuerySelector Notation for Reference Element, enabling you to write
bootstrapValidate('#email', ...)
instead of
bootstrapValidate(document.querySelector('#email'), ...)
This is a non-breaking change - the old notation is still possible.
1.0.7 - 2017-06-16
1.0.6 - 2017-06-14
1.0.5 - 2017-06-07
1.0.4 - 2017-06-07
1.0.3 - 2017-06-06
1.0.2 - 2017-06-06
1.0.1 - 2017-06-06
1.0.0 - 2017-06-06
Initial Release