Skip to content
On this page

Change Log


1.4.0

Features

  • add Custom Function, allow user to fully customize validation rules
  • add Built-in Model

BREAKING CHANGES

  • when the option required is false, the value of undefined can be accepted and will not cause a wrong validation, such as { name: undefined }.
  • when validator receives a value of undefined and Data Model has a default value, default value will cover undefined. So if you want to match a undefined value, please make sure you don't define a default value.

1.3.2

  • update README.md

1.3.1

Features

  • improve the compatibility of ES module

1.3.0

Features

  • add the validation of empty string
  • add the validation of the length, max length and min length of string
  • add the validation of NaN on Number

1.2.1

  • update README.md

1.2.0

Features

  • add simple model to construct a data model

1.1.0

Bug Fixes

  • type: undefined can not be matched when there is no field in the data.

Features

  • add objItems and arrItems to distinguish the same option items before

1.0.0

  • param-validator.js released