Packages

validator

13.15.35 · 2 Apr 2026MIT35M / weekRepositorynpmAtom feed

Your version

215 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 7.x
  2. 7.0.0

    25 Feb 2017
    • Remove isDate()

  3. 6.x
  4. 6.3.0

    24 Feb 2017
  5. 6.2.1

    6 Jan 2017
    • Disallow < and > in URLs

    • New locales

  6. 6.2.0

    28 Nov 2016
    • Added an option to require an email display name

    • Added support for lt and gt to isInt()

    • New locales

  7. 6.1.0

    15 Oct 2016
    • Added support for greater or less than in isFloat()

    • Added support for ISSN validation via isISSN()

    • Fixed a bug in normalizeEmail()

  8. 6.0.0

    27 Sep 2016
    • Renamed isNull() to isEmpty()

    • Backslash is now escaped in escape()

    • Improved normalizeEmail()

  9. 5.x
  10. 5.7.0

    11 Sep 2016
    • Added support for IPv6 in isURL()

    • Added support for urls without a host (e.g. file:///foo.txt) in isURL()

    • Added support for regular expressions in the isURL() host whitelist and blacklist

  11. 5.6.0

    1 Sep 2016
    • Added an isMD5() validator

    • Fixed an exceptional case in isDate()

    • New locales (#559, #568, #571, #573)

  12. 5.5.0

    21 Jul 2016
    • Fixed a regex denial of service in trim() and rtrim()

    • Added an Algerian locale to isMobilePhone()

    • Fixed the Hungarian locale in isAlpha() and isAlphanumeric()

  13. 5.4.0

    9 Jun 2016
    • Accept Union Pay credit cards in isCreditCard()

    • Added Danish locale to isMobilePhone()

    • Added Hungarian locales to isAlpha(), isAlphanumeric() and isMobilePhone()

  14. 5.3.0

    28 May 2016
    • Added an allow_leading_zeroes option to isInt()

    • Adjust Chinese mobile phone validation

    • Added a Canadian locale to isMobilePhone()

  15. 5.2.0

    4 Apr 2016
    • Added a isDataURI() validator

    • Added Czech locales

    • Fixed a bug with isURL() when protocol was missing and "://" appeared in the query

  16. 5.1.0

    29 Feb 2016
    • Added a unescape() HTML function

    • Added a Malaysian locale to isMobilePhone()

    • Added Polish locales to isAlpha() and isAlphanumeric()

  17. 5.0.0

    21 Feb 2016
    • Migrate to ES6

    • Break the library up so that individual functions can be imported

    • Remove auto-coercion of input to a string

  18. 4.x
  19. 4.9.0

    18 Feb 2016
    • Added a Russian locale to isAlpha() and isAlphanumeric()

    • Remove the restriction on adjacent hyphens in hostnames

  20. 4.8.0

    10 Feb 2016
    • Added Spanish, French, Portuguese and Dutch support for isAlpha() and isAlphanumeric()

    • Added a Brazilian locale to isMobilePhone()

    • Reject IPv4 addresses with invalid zero padding

  21. 4.7.1

    5 Feb 2016
  22. 4.7.0

    4 Feb 2016
    • Print a deprecation warning if validator input is not a string (1f67e1e). Note that this will be an error in v5.

    • Added a German locale to isMobilePhone(), isAlpha() and isAlphanumeric()

    • Added a Finnish locale to isMobilePhone()

  23. 4.6.1

    3 Feb 2016
    • Fix coercion of objects: Object.toString() is [object Object] not ""

  24. 4.6.0

    3 Feb 2016
    • Added a Spanish locale to isMobilePhone()

    • Fix string coercion of objects created with Object.create(null)

  25. 4.5.2

    28 Jan 2016
    • Fix a timezone issue with short-form ISO 8601 dates, e.g. validator.isDate('2011-12-21')

  26. 4.5.1

    20 Jan 2016
    • Make isLength() / isByteLength() accept {min, max} as options object.

  27. 4.5.0

    5 Jan 2016
    • Add validation for Indian mobile phone numbers

    • Tweak Greek and Chinese mobile phone validation (#467, #468)

    • Fixed a bug in isDate() when validating ISO 8601 dates without a timezone

  28. 4.4.0

    4 Dec 2015
    • Added isMACAddress() validator

    • Added isWhitelisted() validator

    • Added a New Zealand locale to isMobilePhone()

  29. 4.3.0

    20 Nov 2015
    • Support Ember CLI module definitions

    • Added a Vietnam locale to isMobilePhone()

  30. 4.2.1

    27 Oct 2015
    • Fix isDate() handling of RFC2822 timezones

  31. 4.2.0

    20 Oct 2015
    • Fix isDate() handling of ISO8601 timezones

    • Fix the incorrect isFloat('.') === true

    • Added a Norwegian locale to isMobilePhone()

  32. 4.1.0

    5 Oct 2015
    • breaking

      Tests now require node 4.0+

    • General isDate() improvements

  33. 4.0.6

    18 Sep 2015
    • Added a Taiwan locale to isMobilePhone()

    • Fixed a bug in isBefore() where it would return null

  34. 4.0.5

    17 Aug 2015
    • security

      Fixed a denial of service vulnerability in the isEmail() regex

  35. 4.0.4

    17 Aug 2015
    • Reverted the leap year validation in isDate() as it introduced some regressions (#422, #423)

  36. 4.0.3

    15 Aug 2015
    • Added leap year validation to isDate()

  37. 4.0.2

    4 Aug 2015
    • Fixed isDecimal() with an empty string

  38. 4.0.1

    3 Aug 2015
    • Fixed isByteLength() with certain strings

    • Put length restrictions on email parts

  39. 4.0.0

    31 Jul 2015
    • Simplified the isEmail() regex and fixed some edge cases

    • Added ISO 8601 date validation via isISO8601()

  40. 3.x
  41. 3.33.0 – 3.43.015 releases without a noteShow each