Releases: validatorjs/validator.js
13.12.0
What's Changed
New Features / Validators
Fixes, New Locales and Enhancements
- #2207
isLicensePlate
add Pakistanien-PK
locale @anasshakil - #2208
isPort
fix invalid leading zeros @anasshakil - #2224
isTaxID
added Argentinaes-AR
locale @estefrare - #2257
isDate
timezone offset fix @tomaspanek - #2265
isPassportNumber
addedZA
locale @GMorris-professional isMobilePhone
:- #2267 added
en-MW
locale @SimranSiddiqui - #2140 fix
am-AM
locale @AlexKrupko
- #2267 added
- #2271
isPostalAddress
fixNL
locale @RobinvanderVliet - #2273
isISO4217
addSLE
currency @urg - #2278
isStrongPassword
fix symbolRegex to include\
@nandavikas - #2279
isVAT
fixedKZ
locale @MatthieuLemoine - #2285
isAlpha
,isAlphanumeric
addedeo
locale @RobinvanderVliet - #2320
isIBAN
add AlgeriaDZ
locale @thibault-lr - #2343
isVAT
improveAU
locale @matthewberryman - #2345
isUUID
add support for v7 @ruscon - #2358
isTaxID
add Ukraineuk-UA
locale @arttiger - #2381
isDate
disallow hiphen before year @Sumit-tech-joshi - Doc fixes and others:
New Contributors
- @tomaspanek made their first contribution in #2257
- @estefrare made their first contribution in #2224
- @GMorris-professional made their first contribution in #2265
- @SimranSiddiqui made their first contribution in #2267
- @ZhulinskiiDanil made their first contribution in #2368
- @devmanbud made their first contribution in #2371
- @ruscon made their first contribution in #2345
- @amaliacatalina made their first contribution in #2284
- @RobinvanderVliet made their first contribution in #2285
- @anasshakil made their first contribution in #2211
- @AlexKrupko made their first contribution in #2140
- @urg made their first contribution in #2273
- @meyfa made their first contribution in #2276
- @nandavikas made their first contribution in #2278
- @MatthieuLemoine made their first contribution in #2279
- @thibault-lr made their first contribution in #2320
- @alinaghale88 made their first contribution in #2386
- @Sumit-tech-joshi made their first contribution in #2381
- @arttiger made their first contribution in #2358
- @matthewberryman made their first contribution in #2343
Full Changelog: 13.11.0...13.12.0
13.11.0
New Features / Validators
Fixes, New Locales and Enhancements
- #2025
isIBAN
addMA
locale @lroudge - #2117
isCreditCard
refactor @pano9500 - #2189
isLocale
add support for more language tags @kwahome - #2203
isVAT
forCU
@jimmyorpheus - #2217
isJWT
@Prathamesh061 - #2222
IsFQDN
test enhancements @aalekhpatel07 - #2226
isAlpha
,isAlphanumeric
forkk-KZ
@BekStar7 - #2229
isEmail
supportallow_underscores
@guspower - #2231
isDate
enhance Date declaration compatibility across multiple environments @CiprianS - #2235
isIBAN
add white and blacklist options to the isIBAN validator @edilson - #2237
isEmail
do not allow non-breaking space in user part @jeremy21212121 isMobilePhone
:- #2175
so-SO
@ohersi - #2176
fr-CF
@cheboi - #2197
es-CU
@klaframboise - #2202
pl-PL
@czerwony03 - #2209
fr-WF
@aidos42 - #2246
ar-SD
@Hussienma
- #2175
New Contributors 🎉
- @ohersi made their first contribution in #2175
- @klaframboise made their first contribution in #2197
- @aidos42 made their first contribution in #2209
- @jimmyorpheus made their first contribution in #2203
- @kwahome made their first contribution in #2189
- @uksarkar made their first contribution in #2188
- @CiprianS made their first contribution in #2231
- @BekStar7 made their first contribution in #2226
- @jeremy21212121 made their first contribution in #2237
- @Prathamesh061 made their first contribution in #2217
- @lroudge made their first contribution in #2025
- @Hussienma made their first contribution in #2246
- @edilson made their first contribution in #2235
- @aalekhpatel07 made their first contribution in #2222
- @czerwony03 made their first contribution in #2202
- @guspower made their first contribution in #2229
Full Changelog: 13.9.0...13.11.0
13.9.0
13.9.0
New Features / Validators
Fixes and Enhancements
-
#1888
isBase32
: add option for Crockford's base32 alternative @BigOsvaap -
#1920
isEmail
: addhost_whitelist
option @poor-coder -
#1939
isFQDN
: fixallow_numeric_tld
option @BigOsvaap -
#1962
isIP
: refactor @UnKnoWn-Consortium -
#1995
isURL
: fix check for host @mortbauer -
#2008
isCreditCard
@brianwhaley -
#2170
isEmail
: fixignore_max_length
for FQDN @sakhmedbayev -
#2020
isFloat
: fix comma(,) passing as float @frederike-ramin -
Documentation fixes:
-
Code Refactors:
New and Improved Locales
-
isAlpha
,isAlphanumeric
:- #1678
bn-BD
@rak810 - #1996
si-LK
@melkorCBA - #2014
ja-JP
@starcharles - #1995
ko-KR
@Dongkyuuuu
- #1678
-
isBIC
: -
isIdentityCard
:- #2142
hk-HK
@Dongkyuuuu
- #2142
-
isMobilePhone
:- #1813
my-MM
, @ferdousulhaque - #1868
de-DE
, @thomaschaaf - #1896
en-LS
, @DevilsAutumn - #1897
el-CY
, @ikerasiotis - #1909
es-NI
, @ajGingrich - #1910
az-AZ
, @shaanaliyev - #1922
ir-IR
, @ArashST79 - #1924
ky-KG
, @arsalanfiroozi - #1925
ar-YE
,ar-EH
,fa-AF
, @Mustafiz04 - #1932
ro-MD
, @mik7up - #1940
ar-YE
,en-BS
, @savannahvaith - #1952
ka-GE
, @avkvak - #1964 #1951
pt-BR
, @jhcaiafa @matheusnascgomes - #1983
es-HN
, @ademyan05 - #1985
nl-AW
, @adida948 - #1986
en-JM
, @ademyan05 - #1993
mn-MN
, @rksp25 - #1997
fr-BJ
, @rkuma552 @rksp25 - #2001
mg-MG
, @ShivangiRai1310 - #2002
en-PG
, @kai2128 - #2004
en-AG
, @jiaweilow - #2007
en-AI
, @elaine1129 - #2011
en-KN
, @Eelyneee - #2041
fr-CD
, @coolbeatz71 - #2084
en-SS
, @cheboi - #2109
dv-MV
, @pano9500 - #2129
en-HN
, @WikiRik - #2148
ar-KW
, @Yazan-KE @WikiRik - #2112
el-GR
, @pano9500 - #2116
en-BM
, @pano9500 - #2155
ms-MY
, @pano9500 - #2156
ro-RO
, @pano9500
- #1813
-
isLicensePlate
:- #1665
sv-SE
, @elmaxe - #1895
hu-HU
, @szabolcstarnai - #1944
en-NI
, @NishantJS - #1945
de-DE
, @bennetfabian - #1945
de-DE
, @bennetfabian - #2103
es-AR
, @alvarocastro
- #1665
-
isPassportNumber
: -
isPostalCode
: -
isTaxID
:- #1867
en-CA
, @boonya - #1989
'AT', 'BE', 'BG', 'HR', 'CY', 'CZ', 'DK', 'EE', 'FI', 'FR', 'DE', 'EL', 'HU', 'IE', 'LV', 'LT', 'LU', 'MT', 'PL', 'PT', 'RO', 'SK', 'SI', 'ES', 'SE', 'AL', 'MK', 'AU', 'BY', 'CA', 'IS', 'IN', 'ID', 'IL', 'KZ', 'NZ', 'NG', 'NO', 'PH', 'RU', 'SM', 'SA', 'RS', 'CH', 'TR', 'UA', 'UZ', 'AR', 'BO', 'BR', 'CL', 'CO', 'CR', 'EC', 'SV', 'GT', 'HN', 'MX', 'NI', 'PA', 'PY', 'PE', 'DO', 'UY', 'VE'
@Dev1lDragon
- #1867
New Contributors 🎉
- @ferdousulhaque made their first contribution in #1813
- @leonardovillela made their first contribution in #1860
- @thomaschaaf made their first contribution in #1868
- @WikiRik made their first contribution in #1865
- @elmaxe made their first contribution in #1665
- @boonya made their first contribution in #1867
- @BigOsvaap made their first contribution in #1888
- @braaar made their first contribution in #1892
- @DevilsAutumn made their first contribution in #1896
- @shaanaliyev made their first contribution in #1910
- @temoffey made their first contribution in #1916
- @rksp25 made their first contribution in #1993
- @matheusnascgomes made their first contribution in #1951
- @zlayabekrija made their first contribution in #1956
- @Rhilip made their first contribution in #1992
- @tfilo made their first contribution in https://github.com/validatorjs/...
13.7.0
13.7.0
New Features
- #1706
isISO4217
, currency code validator @jpaya17
Fixes and Enhancements
- #1647
isFQDN
: addallow_wildcard
option @fasenderos - #1654
isRFC3339
: Disallow prepended and appended strings to RFC 3339 date-time @jmacmahon - #1658 maintenance: increase code coverage @tux-tn
- #1669
IBAN
export list of country codes that implement IBAN @dror-heller @fedeci - #1676
isBoolean
: addloose
option @brybrophy - #1697 maintenance: fix npm installation error @rubiin
- #1708
isISO31661Alpha3
: perf @jpaya17 - #1711
isDate
: allow users to strictly validate dates with.
as delimiter @flymans - #1715
isCreditCard
: fix for Union Pay cards @shreyassai123 - #1718
isEmail
: replace all dots in GMail length validation @DasDingGehtNicht - #1721
isURL
: addallow_fragments
andallow_query_components
@cowboy-bebug - #1724
isISO31661Alpha2
: perf @jpaya17 - #1730
isMagnetURI
@tux-tn - #1738
trim
: remove regex to prevent ReDOS attack @tux-tn - #1747 maintenance: run scripts in parallel for build and clean @sachinraja
- #1748
isURL
: higher priority towhitelist
@deepanshu2506 - #1751
isURL
: allow url with colon and no port @MatteoPierro - #1777
isUUID
: fix fornull
version argument @theteladras - #1799
isFQDN
: check more special chars @MatteoPierro - #1833
isURL
: allow URL with an empty user @MiguelSavignano - #1835
unescape
: fixed bug where intermediate string contains escaped @Marcholio - #1836
contains
: can check that string contains seed multiple times @Marcholio - #1844 docs: add CDN instructions @luiscobits
- #1848
isUUID
: add support for validation ofv1
andv2
@theteladras - #1941
isEmail
: addhost_blacklist
option @fedeci
New and Improved Locales
-
isAlpha
,isAlphanumeric
:- #1716
hi-IN
@mikr13 - #1837
fi-FI
@Marcholio
- #1716
-
isPassportNumber
:- #1656
ID
@rubiin - #1714
CN
@anirudhgiri - #1809
PL
@Ronqn - #1810
RU
@Theta-Dev
- #1656
-
isPostalCode
: -
isIdentityCard
: -
isMobilePhone
:- #1679
de-DE
@AnnaMariaJansen - #1689
vi-VN
@luisrivas - #1695 #1682
zh-CN
@laulujan @yisibl - #1734
es-VE
@islasjuanp - #1746
nl-BE
@divikshrivastava - #1765
es-CU
@pasagedev - #1766
es-SV
, @hereje - #1767
ar-PS
, @brendan-c - #1769
en-BM
@HackProAIT - #1770
dz-BT
@lakshayr003 - #1771
en-BW
, @mgndolan - #1772
fr-CM
@beckettnormington - #1778
en-PK
@ammad20120 @tux-tn - #1780
tk-TM
, @husan-eshonqulov - #1784
en-GY
, @mfkrause - #1785
si-LK
@Madhavi96 - #1797
fr-PF
, @hereje - #1820
en-KI
, @c-tanner - #1826
hu-HU
@danielTiringer - #1834
fr-BF
,en-NA
@lakshayr003 - #1846
tg-TJ
@mgnss
- #1679
-
isLicensePlate
:- #1565
cs-CZ
@filiptronicek - #1790
fi-FI
@Marcholio
- #1565
-
isVAT
:- #1825
NL
@zeno4ever
- #1825
New Contributors 🎉
- @jmacmahon made their first contribution in #1654
- @drorheller made their first contribution in #1669
- @laulujan made their first contribution in #1695
- @filiptronicek made their first contribution in #1565
- @AnnaMariaJansen made their first contribution in #1679
- @luisrivas made their first contribution in #1689
- @tithanayut made their first contribution in #1657
- @jpaya17 made their first contribution in #1724
- @flymans made their first contribution in #1711
- @anirudhgiri made their first contribution in #1714
- @shreyassai123 made their first contribution in #1715
- @mikr13 made their first contribution in #1716
- @DasDingGehtNicht made their first contribution in #1718
- @cowboy-bebug made their first contribution in #1721
- @sachinraja made their first contribution in #1747
- @wiktorwojcik112 made their first contribution in #1745
- @divikshrivastava made their first contribution in #1746
- @deepanshu2506 made their first contribution in #1748
- @fasenderos made their first contribution in #1647
- @yisibl made their first contribution in #1682
- @MatteoPierro made their first contribution in #1751
- @pasagedev made their first contribution in #1765
- @theteladras made their first contribution in #1777
- @hammad20120 made their first contribution in #1778
- @nimanthadilz made their first contribution in #1786
- @Marcholio made their first contribution in #1790
- @Ronqn made their first contribution in #1809
- @danielTiringer made their first contribution in #1826
- @HackProAIT made their first contribution in #1769
- @MiguelSavignano made their first contribution in #1833
- @luiscobits made their first contribution in #1844
- @Theta-Dev made their first contribution in #1810
- @zeno4ever made their first contribution in https://github.com/validat...
13.6.0
13.6.0 - 21/04 Release
ℹ️ See the whole diff in PR #1650
-
New features:
-
Fixes and Enhancements:
- #1651 fix ReDOS vulnerabilities in
isHSL
andisEmail
@tux-tn - #1644
isURL
: Allow URLs to have only a username in the userinfo subcomponent @jbuchmann-coosto - #1633
isISIN
: optimization @bmacnaughton - #1632
isIP
: improved pattern for IPv4 and IPv6 @ognjenjevremovic - #1625 fix
[A-z]
regex range on some validators @bmacnaughton - #1620 fix docs @prahaladbelavadi
- #1616
isMacAddress
: improve regexes and options @fedeci - #1603 fix ReDOS vulnerabilities in
isSlug
andrtrim
@fedeci - #1863
isIPRange
: add support for IPv6 @neilime - #1577
isEAN
: add support for EAN-14 @varsubham @tux-tn - #1566
isStrongPassword
: add@
as a valid symbol @stingalleman - #1548
isBtcAddress
: add base58 @ezkemboi - #1546
isFQDN
: numeric domain names @tux-tn
- #1651 fix ReDOS vulnerabilities in
-
New and Improved locales:
isIdentityCard
,isPassportNumber
:- #1595
IR
@mhf-ir @fedeci - #1583
ar-LY
@asghaier76 @tux-tn - #1574
MY
@stranger26 @tux-tn
- #1595
isMobilePhone
:isPostalCode
:isTaxID
:- #1613
pt-BR
@mschunke - #1529
el-GR
@dspinellis
- #1613
isVAT
:
13.5.1
20/11 Release
NOTE: 13.5.0 had a build issue and was recalled, see #1538 #1537
-
New features:
-
Fixes and Enhancements:
- #1486
isISO8601
: addstrictSeparator
@brostone51 - #1474
isFQDN
: make more strict @CristhianMotoche - #1469
isFQDN
:allow_underscore
option @gibson042 - #1449
isEmail
: character blacklisting @rubiin - #1436
isURL
: addedrequire_port
option @yshanli - #1435
isEmail
: respectignore_max_length
option @evantahler - #1402
isDate
: add strictMode and prevent mixed delimiters @tux-tn - #1286
isAlpha
: supportignore
option @mum-never-proud
- #1486
-
New and Improved locales:
isAlpha
,isAlphanumeric
:isMobilePhone
:isPostalCode
:- #1534
CN
@httpsbao - #1515
IR
@masoudDaliriyan - #1502
SG
,MY
@stranger26 - #1480
TH
@ipiranhaa - #1459
BY
@rubiin - #1456
DO
andHT
@yomed
- #1534
isPassportNumber
:- #1468
BY
@zenby - #1467
RU
@dkochetkov
- #1468
__
this release is dedicated to @dbnandaa 🧒
13.1.17
20/09 Release
-
New features:
- None
-
Fixes and chores:
- #1425 fix validation for userinfo part for
isURL
@heanzyzabala - #1419 fix
isBase32
andisBase64
to validate empty strings properly @AberDerBart - #1408 tests for
isTaxId
@dspinellis - #1397 added
validate_length
option forisURL
@tomgrossman - #1383 #1428 doc typos @0xflotus @timgates42
- #1376 add missing tests and switch to Coverall @tux-tn
- #1373 improve code coverage @ezkemboi
- #1357 add Node v6 on build pipeline @profnandaa
- #1425 fix validation for userinfo part for
-
New and Improved locales:
isMobilePhone
:- #1439
az-AZ
@saidfagan - #1420
uz-Uz
@icyice0217 - #1391
de-DE
@heanzyzabala - #1388
en-PH
@stinkymonkeyph - #1370
es-ES
@rubiin - #1356
bs-BA
@MladenZeljic - #1303
zh-CN
@heathcliff-hu
- #1439
isPostalCode
:isAlpha
,isAlphanumeric
:- #1411
fa-AF
,fa-IR
@stinkymonkeyph - #1371
vi-VN
@rubiin
- #1411
isBAN
:- #1394
EG
,SV
@heanzyzabala
- #1394
isIdentityCard
:- #1384
IT
@lorenzodb1
- #1384