Packages

validator

13.15.35 · 2 Apr 2026MIT35M / weekRepositorynpmAtom feed

Upgrading validator From 5.0.0 to 5.7.0

7 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 5.0.0Clears its 3 advisories13.15.22Latest13.15.35
0
changes to make
0
advisories fixed
20
new
4
fixes

Security

Release by release

  1. 5.7.0

    11 Sep 20165 new
    • new

      Added support for IPv6 in isURL()

    • new

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

    • new

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

    • new

      Added support for MasterCard 2-Series BIN

    • new

      New locales (#575, #552)

  2. 5.6.0

    1 Sep 20162 new · 1 fix
    • new

      Added an isMD5() validator

    • new

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

    • fixed

      Fixed an exceptional case in isDate()

  3. 5.5.0

    21 Jul 20162 new · 2 fixes
    • new

      Added an Algerian locale to isMobilePhone()

    • new

      Added a Polish locale to isMobilePhone()

    • fixed

      Fixed a regex denial of service in trim() and rtrim()

    • fixed

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

  4. 5.4.0

    9 Jun 20162 new
    • new

      Added Danish locale to isMobilePhone()

    • new

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

  5. 5.3.0

    28 May 20162 new
    • new

      Added an allow_leading_zeroes option to isInt()

    • new

      Added a Canadian locale to isMobilePhone()

  6. 5.2.0

    4 Apr 20162 new · 1 fix
    • new

      Added a isDataURI() validator

    • new

      Added Czech locales

    • fixed

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

  7. 5.1.0

    29 Feb 20165 new
    • new

      Added a unescape() HTML function

    • new

      Added a Malaysian locale to isMobilePhone()

    • new

      Added Polish locales to isAlpha() and isAlphanumeric()

    • new

      Added Turkish locales to isAlpha(), isAlphanumeric() and isMobilePhone()

    • new

      Allow >1 underscore in hostnames when using allow_underscores

2 other lines we could not sort, mostly version bumps
  • Accept Union Pay credit cards in isCreditCard()

    5.4.0
  • Adjust Chinese mobile phone validation

    5.3.0