Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

Releases: caneara/iodine

Actions

27 Apr 11:05
Compare
Choose a tag to compare

Added Github Actions for CI styling and tests.

v3.0.4

26 Apr 12:27
Compare
Choose a tag to compare
version bump

v3.0.3

26 Apr 12:24
Compare
Choose a tag to compare
fixed formatting

v3.0.1

08 Apr 08:06
Compare
Choose a tag to compare
  • Added fixes for issue #3 and PRs #1 and #2.
  • Fixed a module error in the console.

Third release

03 Apr 12:08
Compare
Choose a tag to compare

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);

v2.0.3

03 Apr 11:11
Compare
Choose a tag to compare
bump version number

v2.0.2

03 Apr 10:57
Compare
Choose a tag to compare
improved getErrorMessage method, fleshed out the readme

NPM support

03 Apr 07:58
Compare
Choose a tag to compare

This minor release adds NPM support to the package.
Review the readme for more details.

Second release

02 Apr 12:17
Compare
Choose a tag to compare

This release adds support for error messages. See the readme for more details.

IMPORTANT: The introduction of error message support resulted in a breaking change. When performing a multiple rule check, Iodine previously returned the rule name without the parameter when validation failed e.g. 'minimum'. Iodine now returns the full rule and parameter string e.g. 'minimum:7', thus allowing you to easily pass the result into the getErrorMessage method.

You should adjust your code to handle this change when updating to version 2.

A bug was also fixed so that comma-separated strings can be supplied to isIn and isNotIn e.g.

Iodine.isIn('a', 'a,b,c');
Iodine.is('a', 'in:a,b,c');

First release

01 Apr 12:08
Compare
Choose a tag to compare

Please review the readme for details.