New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

validator

Package Overview
Dependencies
Maintainers
1
Versions
211
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

validator - npm Package Versions

1
1214
22

3.12.0

Diff
cohara87
published 3.12.0 •
cohara87
published 3.11.2 •
cohara87
published 3.11.1 •
cohara87
published 3.11.0 •

Changelog

Source

13.11.0

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:
cohara87
published 3.10.0 •
cohara87
published 3.9.0 •

Changelog

Source

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
cohara87
published 3.8.0 •
cohara87
published 3.7.0 •

Changelog

Source

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 rtrim: 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:

cohara87
published 3.6.0 •
cohara87
published 3.5.1 •

Changelog

Source

~~13.5.0~~ 13.5.1

  • 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:

<sub>— this release is dedicated to @dbnandaa 🧒</sub>