Packages

validator

13.15.35 · 2 Apr 2026MIT35M / weekRepositorynpmAtom feed

Upgrading validator From 4.0.4 to 4.9.0

16 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 4.0.4Clears its 3 advisories13.15.22Latest13.15.35
  1. 4.0.4yours
  2. 4.0.5security
  3. 1 release
  4. 4.1.0breaking
  5. 12 releases
  6. 4.9.0target

Before you upgrade

Tick each one off as you go
  • breaking4.1.0

Security

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

    4.0.5

Release by release

  1. 4.9.0

    18 Feb 20161 new
    • new

      Added a Russian locale to isAlpha() and isAlphanumeric()

  2. 4.8.0

    10 Feb 20162 new · 1 fix
    • new

      Added Spanish, French, Portuguese and Dutch support for isAlpha() and isAlphanumeric()

    • new

      Added a Brazilian locale to isMobilePhone()

    • fixed

      Fix the client-side version when used with RequireJS

  3. 4.7.1nothing new or fixed in the note

  4. 4.7.0

    4 Feb 20162 new
    • new

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

    • new

      Added a Finnish locale to isMobilePhone()

  5. 4.6.1

    3 Feb 20161 fix
    • fixed

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

  6. 4.6.0

    3 Feb 20161 new · 1 fix
    • new

      Added a Spanish locale to isMobilePhone()

    • fixed

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

  7. 4.5.2

    28 Jan 20161 fix
    • fixed

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

  8. 4.5.1nothing new or fixed in the note

7 other lines we could not sort, mostly version bumps
  • Remove the restriction on adjacent hyphens in hostnames

    4.9.0
  • Reject IPv4 addresses with invalid zero padding

    4.8.0
  • Use node-depd to print deprecation notices

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

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

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

    4.5.0
  • General isDate() improvements

    4.1.0