Socket
Socket
Sign inDemoInstall

validator

Package Overview
Dependencies
0
Maintainers
2
Versions
211
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1245
22Next

10.8.0

Diff

Changelog

Source

10.8.0

  • Added isIdentityCard() (#846)
  • Better error when validators are passed an invalid type (#895)
  • Locales are now exported (#890, #892)
  • New locale (#896)
cohara87
published 10.7.1 •

Changelog

Source

10.7.1

  • Ignore case when checking URL protocol (#887)
  • Locale fix (#889)
cohara87
published 10.7.0 •

Changelog

Source

10.7.0

cohara87
published 10.6.0 •

Changelog

Source

10.6.0

  • Updated isMobilePhone() to match any locale's pattern by default (#874)
  • Added an option to ignore whitespace in isEmpty() (#880)
  • New and improved locales (#878, #879)
cohara87
published 10.5.0 •

Changelog

Source

10.5.0

  • Disabled domain-specific email validation (#873)
  • Added support for IP hostnames in isEmail() (#845)
  • Added a no_symbols option to isNumeric() (#848)
  • Added a no_colons option to isMACAddress() (#849)
  • Updated isURL() to reject protocol relative URLs unless a flag is set (#860)
  • New and improved locales (#801, #856, #859, #861, #862, #863, #864, #870, #872)
cohara87
published 10.4.0 •

Changelog

Source

10.4.0

  • Added an isIPRange() validator (#842)
  • Accept an array of locales in isMobilePhone() (#742)
  • New locale (#843)
cohara87
published 10.3.0 •

Changelog

Source

10.3.0

cohara87
published 10.2.0 •

Changelog

Source

10.2.0

  • Export the list of supported locales in isPostalCode() (#830)
cohara87
published 10.1.0 •

Changelog

Source

10.1.0

  • Added an isISO31661Alpha3() validator (#809)
cohara87
published 10.0.0 •

Changelog

Source

10.0.0

  • Allow floating points in isNumeric() (#810)
  • Disallow GMail addresses with multiple consecutive dots, or leading/trailing dots (#820)
  • Added an isRFC3339() validator (#816)
  • Reject domain parts longer than 63 octets in isFQDN(), isURL() and isEmail() (bb3e542)
  • Added a new Amex prefix to isCreditCard() (#805)
  • Fixed isFloat() min/max/gt/lt filters when a locale with a comma decimal is used (2b70821)
  • Normalize Yandex emails (#807)
  • New locales (#803)
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc