This repository has been archived by the owner on Apr 1, 2024. It is now read-only.
Third release
This release adds support for custom validation rules. See the readme for details.
In order to better handle situations where you might be validating a variable or object instead of a form field, the default error messages have had the word 'Field' replaced with 'Value'.
A bug was fixed where using the 'same' or 'different' rules would fail for multiple checks due to their use of strict comparison checking. These functions now use loose comparison instead. If you still want strict comparison for single checks, you are free to add a custom rule e.g.
Iodine.addRule('sameStrict', (value, param) => value === param);
Iodine.addRule('differentStrict', (value, param) => value !== param);