1.2.0 (2017-08-28)
- Add an option for sending in true/false to the required rule. Useful for validating checkboxes (d815257)
1.1.1 (2017-08-09)
- Remove unecessary dependencies (ba32486)
1.1.0 (2017-05-08)
- date: Add support for related min/max fields (e59815b)
1.0.2 (2017-04-18)
1.0.1 (2017-02-23)
- Firefox regex issue (5870892)
1.0.0 (2017-02-09)
1.0.0-rc.6 (2017-02-03)
- extend duration rule (384d5a4)
1.0.0-rc.5 (2017-02-03)
1.0.0-rc.4 (2016-11-22)
- Make arrayOf return null when there are no errors (031a27d)
1.0.0-rc.3 (2016-11-21)
- Add missing function getNumberOfDecimalPlaces after cherry-pick (ccc9ea3)
1.0.0-rc.2 (2016-11-21)
- Assign config as a property to validator functions (37a266e)
- Make arrayOf use extended validator (5425e25)
- Add bundling of flowtypes (9ed5bf6)
1.0.0-rc.1 (2016-11-02)
- Add memoized version of validators (d4b9dd1)
- Export multipleValidator (8d81089)
- Make validator stateless (eb45e7e)
- This rewrites the validator away from the class based to a functional one relying on currying. The exported validator function will return a validate function.
0.18.0 (2016-10-20)
0.17.0 (2016-10-12)
- This will make values with spaces end up in other validation rules.
0.16.0 (2016-09-26)
- Export correct value for list of rules (fe0a965)
0.15.0 (2016-08-17)
0.14.3 (2016-08-15)
0.14.2 (2016-08-04)
0.14.1 (2016-07-28)
- Add fallback to iso format for date validator (d13caa5)
0.14.0 (2016-07-19)
- Remove rounding of min/max limit value (b9a28a7)
- Make exact violations return lenght.exact (3f328c2)
0.13.0 (2016-07-05)
- Make regex rule actually use the pattern (98f4d7a)
- Only run other rules when required validates (#32) (69e92aa)
-
This will result in rules not being run with empty values so if there are rules that depends on empty values they would not work any longer.
-
fix: Remove empty value checks from rules
-
fix: Alter check for if statements so it works for rules and required
-
refactor: Move fetching of config for rule to a function
0.12.0 (2016-06-23)
0.11.2 (2016-06-22)
- Support empty values in date rule (b82096e)
0.11.1 (2016-06-22)
- Make length validator accept empty string (248ad18)
0.11.0 (2016-06-16)
0.10.1 (2016-06-10)
- numeric: Remove number conversion problem (093f134)
0.10.0 (2016-05-27)
0.9.2 (2016-05-25)
- rules.numeric: Make field related min/max work with '' (1d34991)
- Upgrade validator to version 5.2.0 (782b658)
0.9.1 (2016-05-24)
- Add support for nested datastructures (4d4e179)
0.9.0 (2016-05-23)
- Change rule errors to use object path (710e122)
- Add field config to result object (23af4db)
- If you have code that rely on matching the string of
the validation error. You need to replace all with
/
with.
.
0.8.1 (2016-05-23)
- Add field name to numeric min/max related to field (53c3584)
0.8.0 (2016-05-23)
- rules.arrayOf: Make sure it does not evaluate 'values' as a field (b0985fe)
- rules.required: Validate the number 0 as true (fe85014), closes #21
- rules.numeric: Add setting max and min based on other field (ba7b286)
0.7.1 (2016-05-23)
- Be more specific to which files are published (a0f5b80)
0.7.0 (2016-05-23)
- Export all rules (81dfe88)
- Add regex rule (eed0286)
0.6.0 (2016-05-22)
- Make the extended rules accessible to the validator (#18) (f0118db)
- Throw UnknownRuleError when rule is not found (#15) (d96113a)
- rules.length: Add support for exact in length (#20) (e1108c5)
- Add ageByDate validation rule (01e3d2c)
- Add arrayOf rule (082469f)
- Add date rule (#19) (8f945c7)
- Add length rule (#17) (bce5c4d)
- Add support for arrays in required (75bef39)
- Add support for if statements in rule options (8759104), closes #6
0.5.0 (2016-05-19)
- Only call isInt, isFloat with strings (b25d802)
- Return sub rule if the error is related to a sub rule (#14) (5051215)
- Make the errors immutable (f012d97)
- This will deep freeze all error outputs and thus may require you to change your code if you mutate the errors.
0.4.3 (2016-05-19)
- Make numeric support 0 as limits (0845203)
0.4.2 (2016-01-27)
- Make integerOnly require integer not disallow them (ca8392d)
0.4.1 (2016-01-27)
- Correct typo in readme example (84b66db)
0.4.0 (2016-01-26)
- Export module elements correctly (45ab836)
0.3.0 (2016-01-26)
- Add numeric validation rule (21dbb0d)
0.2.0 (2016-01-25)
- Add lint npm script (aa6ea93)
- Add state of errors (7a7efc8)
0.1.2 (2016-01-24)
- Add readme (ec8a266)
0.1.1 (2016-01-24)
- Rename import in index (7d0a4e3)