Skip to content

Latest commit

 

History

History
515 lines (222 loc) · 14.5 KB

changelog.md

File metadata and controls

515 lines (222 loc) · 14.5 KB

1.2.0 (2017-08-28)

Features

  • Add an option for sending in true/false to the required rule. Useful for validating checkboxes (d815257)

1.1.1 (2017-08-09)

Bug Fixes

  • Remove unecessary dependencies (ba32486)

1.1.0 (2017-05-08)

Features

  • date: Add support for related min/max fields (e59815b)

1.0.2 (2017-04-18)

1.0.1 (2017-02-23)

Bug Fixes

1.0.0 (2017-02-09)

1.0.0-rc.6 (2017-02-03)

Features

1.0.0-rc.5 (2017-02-03)

Features

1.0.0-rc.4 (2016-11-22)

Bug Fixes

  • Make arrayOf return null when there are no errors (031a27d)

1.0.0-rc.3 (2016-11-21)

Bug Fixes

  • Add missing function getNumberOfDecimalPlaces after cherry-pick (ccc9ea3)

1.0.0-rc.2 (2016-11-21)

Bug Fixes

  • Assign config as a property to validator functions (37a266e)
  • Make arrayOf use extended validator (5425e25)

Features

  • Add bundling of flowtypes (9ed5bf6)

1.0.0-rc.1 (2016-11-02)

Features

  • Add memoized version of validators (d4b9dd1)
  • Export multipleValidator (8d81089)
  • Make validator stateless (eb45e7e)

BREAKING CHANGES

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

Features

0.17.0 (2016-10-12)

Bug Fixes

  • require should accept spaces as valid (#52) (b00d608)

BREAKING CHANGES

  • This will make values with spaces end up in other validation rules.

0.16.0 (2016-09-26)

Bug Fixes

  • Export correct value for list of rules (fe0a965)

Features

0.15.0 (2016-08-17)

Features

0.14.3 (2016-08-15)

Bug Fixes

  • add support of boolean value in "required" validator (#47) (3ed9f14)

0.14.2 (2016-08-04)

Bug Fixes

  • reset errors between calls to validate (#45) (057be15)

0.14.1 (2016-07-28)

Bug Fixes

  • Add fallback to iso format for date validator (d13caa5)

0.14.0 (2016-07-19)

Bug Fixes

  • Remove rounding of min/max limit value (b9a28a7)
  • Make exact violations return lenght.exact (3f328c2)

0.13.0 (2016-07-05)

Bug Fixes

  • Make regex rule actually use the pattern (98f4d7a)
  • Only run other rules when required validates (#32) (69e92aa)

BREAKING CHANGES

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

Bug Fixes

  • Support empty values in date rule (b82096e)

0.11.1 (2016-06-22)

Bug Fixes

  • Make length validator accept empty string (248ad18)

0.11.0 (2016-06-16)

0.10.1 (2016-06-10)

Bug Fixes

  • numeric: Remove number conversion problem (093f134)

0.10.0 (2016-05-27)

Features

  • Add support for validating multiple items (#24) (ac28032)

0.9.2 (2016-05-25)

Bug Fixes

  • rules.numeric: Make field related min/max work with '' (1d34991)
  • Upgrade validator to version 5.2.0 (782b658)

0.9.1 (2016-05-24)

Bug Fixes

  • Add support for nested datastructures (4d4e179)

0.9.0 (2016-05-23)

Bug Fixes

  • Change rule errors to use object path (710e122)

Features

  • Add field config to result object (23af4db)

BREAKING CHANGES

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

Bug Fixes

  • Add field name to numeric min/max related to field (53c3584)

0.8.0 (2016-05-23)

Bug Fixes

  • rules.arrayOf: Make sure it does not evaluate 'values' as a field (b0985fe)
  • rules.required: Validate the number 0 as true (fe85014), closes #21

Features

  • rules.numeric: Add setting max and min based on other field (ba7b286)

0.7.1 (2016-05-23)

Bug Fixes

  • Be more specific to which files are published (a0f5b80)

0.7.0 (2016-05-23)

Bug Fixes

Features

0.6.0 (2016-05-22)

Bug Fixes

  • Make the extended rules accessible to the validator (#18) (f0118db)
  • Throw UnknownRuleError when rule is not found (#15) (d96113a)

Features

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

Bug Fixes

  • Only call isInt, isFloat with strings (b25d802)
  • Return sub rule if the error is related to a sub rule (#14) (5051215)

Features

  • Make the errors immutable (f012d97)

BREAKING CHANGES

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

Bug Fixes

  • Make numeric support 0 as limits (0845203)

0.4.2 (2016-01-27)

Bug Fixes

  • Make integerOnly require integer not disallow them (ca8392d)

0.4.1 (2016-01-27)

Bug Fixes

  • Correct typo in readme example (84b66db)

0.4.0 (2016-01-26)

Bug Fixes

  • Export module elements correctly (45ab836)

Features

  • Add subrule to the rule property of the result (1e9a3f7), closes #2

0.3.0 (2016-01-26)

Features

  • Add numeric validation rule (21dbb0d)

0.2.0 (2016-01-25)

Bug Fixes

Features

0.1.2 (2016-01-24)

Bug Fixes

0.1.1 (2016-01-24)

Bug Fixes