UNPKG

validatorjs

Version:

Validation library inspired by Laravel's Validator

81 lines (50 loc) 2.07 kB
# validatorjs [Version: 3.22] -- 2020.12.03 ## Fixed https://github.com/skaterdav85/validatorjs/pull/383 - Updated langage `en` and `ja` to differentiate `numeric` and `string` for between message - Updated tests to reflect these changes and add separate tests for `numeric` and `string` https://github.com/skaterdav85/validatorjs/pull/394 - Updated README to call missing `validation.passes();` method before accession errors [Version 3.20.0] -- 2020.09.26 ## Fixed Fixed issues reporting parseISO and isValid not being imported (refactored code to remove date-fns dependency) [Version 3.19.1] -- 2020.08.24 ## Fixed https://github.com/skaterdav85/validatorjs/issues/381 [Version 3.19] -- 2020.08.14 ## Added ## Fixed Issues - Added `hex` attribute language files which were missing https://github.com/skaterdav85/validatorjs/pull/240 [Version 3.18.1] -- 2019.11.27 ## Fixed - Fixed `date-fns` dependency regression (https://github.com/skaterdav85/validatorjs/issues/350) [Version 3.18] -- 2019.11.24 ## Changed - Reduceds bundle size requiring date-fns functions (parseISO and isValid) instead of whole date-fns library - Updated to use date-fns 2.1 - Preparing for rollup / webpack bundling [Version 3.17.1] -- 2019-09.05 ## Changed - Data validation (isValidDate) - Added tests to support date validation ## Removed [Version 3.16.0] - 2019.09.04 ## Added - Added Swedish `se` language - Updated language files missing `attributes` key ## Changed Issues https://github.com/skaterdav85/validatorjs/issues/328 https://github.com/skaterdav85/validatorjs/issues/335 https://github.com/skaterdav85/validatorjs/issues/339 https://github.com/skaterdav85/validatorjs/pull/268 https://github.com/skaterdav85/validatorjs/pull/278 https://github.com/skaterdav85/validatorjs/pull/293 https://github.com/skaterdav85/validatorjs/pull/312 https://github.com/skaterdav85/validatorjs/pull/330 https://github.com/skaterdav85/validatorjs/pull/329 https://github.com/skaterdav85/validatorjs/pull/341 https://github.com/skaterdav85/validatorjs/pull/316