validator
13.15.35 · 2 Apr 2026MIT35M / weekRepositorynpmAtom feed
215 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 7.x
7.0.0
25 Feb 2017Remove
isDate()
- 6.x
6.2.1
6 Jan 2017Disallow
<and>in URLsNew locales
6.2.0
28 Nov 2016Added an option to require an email display name
Added support for
ltandgttoisInt()New locales
6.1.0
15 Oct 2016Added support for greater or less than in
isFloat()Added support for ISSN validation via
isISSN()Fixed a bug in
normalizeEmail()
Added support for greater or less than in
isFloat()Added support for ISSN validation via
isISSN()Fixed a bug in
normalizeEmail()New locales
6.0.0
27 Sep 2016Renamed
isNull()toisEmpty()Backslash is now escaped in
escape()Improved
normalizeEmail()
Renamed
isNull()toisEmpty()Backslash is now escaped in
escape()Improved
normalizeEmail()Allow leading zeroes by default in
isInt()
- 5.x
5.7.0
11 Sep 2016Added support for IPv6 in
isURL()Added support for urls without a host (e.g.
file:///foo.txt) inisURL()Added support for regular expressions in the
isURL()host whitelist and blacklist
5.5.0
21 Jul 2016Fixed a regex denial of service in
trim()andrtrim()Added an Algerian locale to
isMobilePhone()Fixed the Hungarian locale in
isAlpha()andisAlphanumeric()
Fixed a regex denial of service in
trim()andrtrim()Added an Algerian locale to
isMobilePhone()Fixed the Hungarian locale in
isAlpha()andisAlphanumeric()Added a Polish locale to
isMobilePhone()
5.4.0
9 Jun 2016Accept Union Pay credit cards in
isCreditCard()Added Danish locale to
isMobilePhone()Added Hungarian locales to
isAlpha(),isAlphanumeric()andisMobilePhone()
5.3.0
28 May 2016Added an
allow_leading_zeroesoption toisInt()Adjust Chinese mobile phone validation
Added a Canadian locale to
isMobilePhone()
5.2.0
4 Apr 2016Added a
isDataURI()validatorAdded Czech locales
Fixed a bug with
isURL()when protocol was missing and "://" appeared in the query
5.1.0
29 Feb 2016Added a
unescape()HTML functionAdded a Malaysian locale to
isMobilePhone()Added Polish locales to
isAlpha()andisAlphanumeric()
Added a
unescape()HTML functionAdded a Malaysian locale to
isMobilePhone()Added Polish locales to
isAlpha()andisAlphanumeric()Added Turkish locales to
isAlpha(),isAlphanumeric()andisMobilePhone()Allow >1 underscore in hostnames when using
allow_underscores
5.0.0
21 Feb 2016Migrate to ES6
Break the library up so that individual functions can be imported
Remove auto-coercion of input to a string
Migrate to ES6
Break the library up so that individual functions can be imported
Remove auto-coercion of input to a string
Remove the
extend()functionAdded Arabic locales to
isAlpha()andisAlphanumeric()Fix validation of very large base64 strings
- 4.x
4.9.0
18 Feb 2016Added a Russian locale to
isAlpha()andisAlphanumeric()Remove the restriction on adjacent hyphens in hostnames
4.8.0
10 Feb 2016Added Spanish, French, Portuguese and Dutch support for
isAlpha()andisAlphanumeric()Added a Brazilian locale to
isMobilePhone()Reject IPv4 addresses with invalid zero padding
Added Spanish, French, Portuguese and Dutch support for
isAlpha()andisAlphanumeric()Added a Brazilian locale to
isMobilePhone()Reject IPv4 addresses with invalid zero padding
Fix the client-side version when used with RequireJS
4.6.1
3 Feb 2016Fix coercion of objects:
Object.toString()is[object Object]not""
4.6.0
3 Feb 2016Added a Spanish locale to
isMobilePhone()Fix string coercion of objects created with
Object.create(null)
4.5.2
28 Jan 2016Fix a timezone issue with short-form ISO 8601 dates, e.g.
validator.isDate('2011-12-21')
4.5.1
20 Jan 2016Make
isLength()/isByteLength()accept{min, max}as options object.
4.4.0
4 Dec 2015Added
isMACAddress()validatorAdded
isWhitelisted()validatorAdded a New Zealand locale to
isMobilePhone()
Added
isMACAddress()validatorAdded
isWhitelisted()validatorAdded a New Zealand locale to
isMobilePhone()Added options to control GMail address normalization
4.3.0
20 Nov 2015Support Ember CLI module definitions
Added a Vietnam locale to
isMobilePhone()
4.2.1
27 Oct 2015Fix
isDate()handling of RFC2822 timezones
4.2.0
20 Oct 2015Fix
isDate()handling of ISO8601 timezonesFix the incorrect
isFloat('.') === trueAdded a Norwegian locale to
isMobilePhone()
4.1.0
5 Oct 2015- breaking
Tests now require node 4.0+
General
isDate()improvements
4.0.6
18 Sep 2015Added a Taiwan locale to
isMobilePhone()Fixed a bug in
isBefore()where it would returnnull
4.0.5
17 Aug 2015- security
Fixed a denial of service vulnerability in the
isEmail()regex
4.0.3
15 Aug 2015Added leap year validation to
isDate()
4.0.2
4 Aug 2015Fixed
isDecimal()with an empty string
4.0.1
3 Aug 2015Fixed
isByteLength()with certain stringsPut length restrictions on email parts
4.0.0
31 Jul 2015Simplified the
isEmail()regex and fixed some edge casesAdded ISO 8601 date validation via
isISO8601()
- 3.x
3.33.0 – 3.43.015 releases without a noteShow each
- 3.43.029 Jul 2015no note
- 3.42.028 Jul 2015no note
- 3.41.327 Jul 2015no note
- 3.41.28 Jul 2015no note
- 3.41.16 Jul 2015no note
- 3.41.06 Jul 2015no note
- 3.40.111 Jun 2015no note
- 3.40.020 May 2015no note
- 3.39.022 Apr 2015no note
- 3.38.016 Apr 2015no note
- 3.37.01 Apr 2015no note
- 3.36.030 Mar 2015no note
- 3.35.023 Mar 2015no note
- 3.34.015 Mar 2015no note
- 3.33.03 Mar 2015no note