Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

class-validator

Package Overview
Dependencies
Maintainers
5
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

class-validator - npm Package Versions

13
6

0.12.0-refactor.4

Diff

vlapo
published 0.12.0-refactor.3 •

vlapo
published 0.12.0-refactor.2 •

vlapo
published 0.12.0-refactor.1 •

vlapo
published 0.12.0-rc.0 •

vlapo
published 0.11.1 •

Changelog

Source

0.11.1 (2020-03-18)

Fixed
  • IsNumber validator now works when maxDecimalPlaces=0 (#524) (b8aa922)
Added
vlapo
published 0.11.0 •

Changelog

Source

0.11.0 (2019-11-01)

Fixed
  • create instance of ValidationError for whitelist errors (#434) (a98f5dd), closes #325
  • pass context for isDefined and custom validators (#296) (0ef898e), closes #292
Added

BREAKING CHANGES

  • update @types/validator from 11.1.0 to version 12.0.0 - please check it's [changelog][validator-js-release-notes]
vlapo
published 0.10.2 •

Changelog

Source

0.10.2 (2019-10-14)

Fixed
  • apply custom constraint class validation to each item in the array (#295) (5bb704e), closes #260
Added
  • add isLatLong, isLatitude, isLongtitude validators (#427) (3fd15c4), closes #415
  • add IsObject and IsNotEmptyObject new decorators (#334) (0a41aeb)
  • support ES6 Map and Set for regular validators with each option (#430) (a055bba), closes #428
vlapo
published 0.10.1 •

Changelog

Source

0.10.1 (2019-09-25)

Fixed
  • add default message for isMilitaryTime validator (#411) (204b7df), closes #287
  • add default message for isPort validator (#404) (74e568c)
  • add locale parameter for isAlpha and isAlphanumeric validat… (#406) (2f4bf4e)
Added
  • add skipUndefinedProperties, skipNullProperties options (#414) (76c948a), closes #308
vlapo
published 0.10.0 •

Changelog

Source

0.10.0 (2019-08-10)

Fixed
  • add correct signature for custom error message handler (249c41d)
Added
  • add IsISO31661Alpha3 and IsISO31661Alpha2 validators (#273) (55c57b3)
  • IsDecimal: implement IsDecimal from validatorjs (#359) (b4c8e21)
  • add isPort decorator (#282) (36684ec)
  • allow validate Map/Set (#365) (f6fcdc5)
  • new ValidatePromise decorator - resolve promise before validate (#369) (35ec04d)
  • replace instanceof Promise and support Promise/A+ (#310) (59eac09)
  • isNumberString now accept validator.js IsNumericOptions as second parameter (#262)

BREAKING CHANGES

  • update @types/validator from 10.4.0 to version 10.11.2 - please check it's [changelog][validator-js-release-notes] (cb960dd)
  • isDateString now check to match only entire ISO Date (#275) (5012464)
  • remove IsCurrencyOptions, IsURLOptions, IsEmailOptions, IsFQDNOptions interfaces and replace with interfaces from @types/validator
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc