File: CHANGELOG.md

Recommend this page to a friend!
  Classes of Harcharan Singh  >  Node Input Validator  >  CHANGELOG.md  >  Download  
File: CHANGELOG.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: Node Input Validator
Validate submitted input values in Node.js
Author: By
Last change: fix: regex rule,messages ordering
v4.3.1 release
fixes: addCustomMessages,regex pattren correction in applyOnDeep
Edit applyOnDeep regex to match double digit index

Unit test added to verify that double digit array indices now match
assert rules
farsi support
deps updated
rule different
break when attr rule undefined
next release with root level array support
npm url in readme and change log
change log added, readme improved
Date: 1 month ago
Size: 3,467 bytes
 

Contents

Class file image Download

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[4.3.3]

Fixed

  • message ordering

Changed

  • regex rule now accepts flags

[4.3.2]

Fixed

  • url rule breaks with non string value (issues/43)

[4.3.1]

Added

  • support for passing locale to alpha, alphaNumeric, phoneNumber
  • wildcardIterations are now configurable
  • getErrors() in validator to match v5 api
  • validate() in validator to match v5 api

Fixed

  • typescript definition improvements

Changed

  • docs updated
  • mime rule improvements

Security

  • deps updated to latest

[4.2.1]

Fixed

  • correct pattren regex in applyOnDeep method to match multi-digit numbers
  • issue with addCustomMessages method

[4.2.0-rc2]

Added

  • assert rules to check invalid rules

[4.2.0-rc1]

Added

  • Persian(farsi) support #24
  • rule:different

[4.1.0]

Added

  • support for root level array

Fixed

  • exception if rule againest attr not defined

[4.0.0]

Added

  • multiple errors support
  • global level nice names
  • support for async and non-async rules
  • Deeply nested objects validation

Changed

  • ValidatorInstance.setAttributeNames renamed to ValidatorInstance.niceNames
  • Validator.messages renamed to .extendMessages
  • Namespace and directory structure
  • all previous async rules to sync
  • Params of all rules/add new rules/post rules/message parser

Removed

  • Validator.messages in favour of .extendMessages
  • Top level Validator class
  • Nodejs 7 support dropped

Fixed

  • numeric rule behaviour

Security

  • deps updated to latest

[3.7]

Added

  • dimensions rule

Fixed

  • breakage in case of missing required nested field

[3.6.4]

Fixed

  • breaking changes in message parser due to trimStart for 3.6.* fixed

[3.6.3]

Fixed

  • breaking changes in message parser for 3.6.* fixed

[3.6.2]

Fixed

  • digits rule was not checking for digits

[3.6.1]

Fixed

  • double space in case of camel case attributes

[3.6.0]

Added

  • datetime: attribute must be in format YYYY-MM-DD HH:mm:ss
  • dateiso: attribute must be valid iso date

Fixed

  • required: empty check was failing in case of boolean false and int 0
  • lengthBetween: no error in case of invalid maximum seed

[3.5.0]

Added

  • arrayUnique: array must contains unique values
  • arrayUniqueObjects: array of objects must have unique attribute as per seed
  • length: length rule with max and min (optional) seed

Fixed

  • requiredwith, requiredWithout throw exception in case of invalid seed
  • integer 0 makes required rule to failed, as 0 was considered as empty

[3.4.2]

Added

  • Example of custom rule using other attributes

[3.4.1]

Fixed

  • crash in case of using non-string rules in constructor will now fails with exception of in valid rule

[3.4.0]

Added

  • gt: greater then another field rule
  • gte: greater then or equals another field rule
  • lt: less then another field rule
  • lte: less then or equals another field rule

Fixed

  • typings
  • multiple underscore (_) replacement with space issue

[3.3.0]

Fixed

  • between rule
  • lengthBetween rule

Security

  • npm audit vulnerabilities fix