Validator.js Versions Save

String validation

13.11.0

8 months ago

New Features / Validators

  • #2144 isFreightContainerID: for shipping containers IDs @songyuew
  • #2188 isMailtoURI @uksarkar

Fixes, New Locales and Enhancements

  • #2025 isIBAN add MA locale @lroudge
  • #2117 isCreditCard refactor @pano9000
  • #2189 isLocale add support for more language tags @kwahome
  • #2203 isVAT for CU @jimmyorpheus
  • #2217 isJWT @Prathamesh061
  • #2222 IsFQDN test enhancements @aalekhpatel07
  • #2226 isAlpha, isAlphanumeric for kk-KZ @BekStar7
  • #2229 isEmail support allow_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:

New Contributors 🎉

Full Changelog: https://github.com/validatorjs/validator.js/compare/13.9.0...13.11.0

13.9.0

1 year ago

13.9.0

New Features / Validators

  • #1892 isISO6391: add ISO 639-1 validator @braaar
  • #1974 isLuhnNumber @ST-DDT

Fixes and Enhancements

  • #1865 isMACAddress: add EUI-validation @WikiRik @tux-tn

  • #1888 isBase32: add option for Crockford's base32 alternative @BigOsvaap

  • #1916 isDataURI: fix mediaType format @temoffey

  • #1920 isEmail: add host_whitelist option @poor-coder

  • #1939 isFQDN: fix allow_numeric_tld option @BigOsvaap

  • #1962 isIP: refactor @UnKnoWn-Consortium

  • #1967 isLength @ikkyu-3

  • #1992 isMagnetURI @Rhilip @tux-tn

  • #1995 isURL: fix check for host @mortbauer

  • #2008 isCreditCard @brianwhaley

  • #2075 isAfter: allow usage of option object @WikiRik

  • #2114 isRgbColor @pano9000

  • #2122 isDataURI: fix MIME types with underscores @pano9000

  • #2148 isStrongPassword @sandmule

  • #2157 isISBN: allow usage of option object @WikiRik

  • #2170 isEmail: fix ignore_max_length for FQDN @sakhmedbayev

  • #2020 isFloat: fix comma(,) passing as float @frederike-ramin

  • Documentation fixes:

  • Code Refactors:

New and Improved Locales

  • isAlpha, isAlphanumeric:

  • isBIC:

  • isIdentityCard:

    • #2142 hk-HK @Dongkyuuuu
  • 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, @pano9000
    • #2129 en-HN, @WikiRik
    • #2148 ar-KW, @Yazan-KE @WikiRik
    • #2112 el-GR, @pano9000
    • #2116 en-BM, @pano9000
    • #2155 ms-MY, @pano9000
    • #2156 ro-RO, @pano9000
  • 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
  • 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

New Contributors 🎉

Full Changelog: https://github.com/validatorjs/validator.js/compare/13.7.0...13.9.0

13.7.0

2 years ago

13.7.0

New Features

  • #1706 isISO4217, currency code validator @jpaya17

Fixes and Enhancements

  • #1647 isFQDN: add allow_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: add loose 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: add allow_fragments and allow_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 to whitelist @deepanshu2506
  • #1751 isURL: allow url with colon and no port @MatteoPierro
  • #1777 isUUID: fix for null 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 of v1 and v2 @theteladras
  • #1941 isEmail: add host_blacklist option @fedeci

New and Improved Locales

  • isAlpha, isAlphanumeric:

  • isPassportNumber:

  • isPostalCode:

  • isIdentityCard:

    • #1657 TH @tithanayut
    • #1745 PL @wiktorwojcik112 @fedeci @tux-tn
    • #1786 LK @nimanthadilz @tux-tn
    • #1838 FI @Marcholio
  • isMobilePhone:

  • isLicensePlate:

    • #1565 cs-CZ @filiptronicek
    • #1790 fi-FI @Marcholio
  • isVAT:


New Contributors 🎉

Full Changelog: https://github.com/validatorjs/validator.js/compare/13.6.1...13.7.0

13.6.1

3 years ago

13.6.0 - 21/04 Release

ℹī¸ See the whole diff in PR #1650

  • New features:

    • #1495 isLicensePlate @firlus
  • Fixes and Enhancements:

    • #1651 fix ReDOS vulnerabilities in isHSL and isEmail @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 and rtrim @fedeci
    • #1594 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
  • New and Improved locales:

    • isIdentityCard, isPassportNumber:
      • #1595 IR @mhf-ir @fedeci
      • #1583 ar-LY @asghaier76 @tux-tn
      • #1574 MY @stranger26 @tux-tn
    • isMobilePhone:
    • isPostalCode:
    • isTaxID:
    • isVAT:

13.5.1

3 years ago

20/11 Release

NOTE: 13.5.0 had a build issue and was recalled, see #1538 #1537

  • New features:

    • isVAT #1463 @CodingNagger
    • isTaxID #1446 @tplessas
    • isBase58 #1445 @ezkemboi
    • isStrongPassword #1348 @door-bell
  • Fixes and Enhancements:

    • #1486 isISO8601: add strictSeparator @brostone51
    • #1474 isFQDN: make more strict @CristhianMotoche
    • #1469 isFQDN: allow_underscore option @gibson042
    • #1449 isEmail: character blacklisting @rubiin
    • #1436 isURL: added require_port option @yshanli
    • #1435 isEmail: respect ignore_max_length option @evantahler
    • #1402 isDate: add strictMode and prevent mixed delimiters @tux-tn
    • #1286 isAlpha: support ignore option @mum-never-proud
  • New and Improved locales:

    • isAlpha, isAlphanumeric:
    • isMobilePhone:
      • #1521 ar-MA @artpumpkin
      • #1492 de-LU,it-SM, sq-AL and ga-IE @firlus
      • #1487 en-HN @jehielmartinez
      • #1473 ar-LB, es-PE, ka-GE @rubiin
      • #1470 es-DO @devrasec
      • #1460 es-BO @rubiin
      • #1444 es-AR @csrgt
      • #1407 pt-BR @viniciushvsilva
    • isPostalCode:
    • isPassportNumber:

__ this release is dedicated to @dbnandaa 🧒

v13.1.17

3 years ago

20/09 Release

  • New features:

    • None
  • Fixes and chores:

    • #1425 fix validation for userinfo part for isURL @heanzyzabala
    • #1419 fix isBase32 and isBase64 to validate empty strings properly @AberDerBart
    • #1408 tests for isTaxId @dspinellis
    • #1397 added validate_length option for isURL @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
  • 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
    • isPostalCode:
    • isAlpha, isAlphanumeric:
      • #1411 fa-AF, fa-IR @stinkymonkeyph
      • #1371 vi-VN @rubiin
    • isBAN:
      • #1394 EG, SV @heanzyzabala
    • isIdentityCard:

13.1.0

3 years ago

See the changelog.

12.2.0

4 years ago

See the changelog.

10.11.0

5 years ago

See the changelog

10.10.0

5 years ago

See the changelog.