Icontem

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: change log added, readme improved
Date: 10 months ago
Size: 2,495 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.0.0-rc5]

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