Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release staging: November 2021 release (13.7.0) #1853

Closed
wants to merge 69 commits into from
Closed

Commits on Apr 21, 2021

  1. fix(isISO8601): disallow prepended and appended strings to RFC 3339 d…

    …ate-time (#1654)
    
    Fixes #1653
    
    Also adds corresponding test cases to ISO 8601 validator
    Joe MacMahon committed Apr 21, 2021
    Configuration menu
    Copy the full SHA
    d1a9b6d View commit details
    Browse the repository at this point in the history

Commits on May 24, 2021

  1. feat: added support for indonesian passport number (#1656)

    * feat: added indonesia passport
    
    * fix: updated readme
    rubiin committed May 24, 2021
    Configuration menu
    Copy the full SHA
    907bb07 View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2021

  1. feat: Export list of country codes that implement IBAN (#1669)

    * feat(niceToHave): Export list of country codes that implement IBAN
    
    * Update src/index.js
    
    Co-authored-by: Federico Ciardi <fed.ciardi@gmail.com>
    
    * fix(bug): Export isIBANLocales by its correct alias
    
    * fix(test): fix name change in test
    
    * fix(standards): change members exported name
    
    Co-authored-by: drorh <dror.heller@nielsen.com>
    Co-authored-by: Federico Ciardi <fed.ciardi@gmail.com>
    3 people committed Jul 16, 2021
    Configuration menu
    Copy the full SHA
    2595554 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b82d4e1 View commit details
    Browse the repository at this point in the history
  3. feat(isLicensePlate): Add Czech license plates (#1565)

    * Add Czech license plates to the RegEx mix
    
    * Reorder list
    
    * Update README
    
    * Add tests
    
    * Remove trailing space
    
    * Add more tests
    filiptronicek committed Jul 16, 2021
    Configuration menu
    Copy the full SHA
    c87956a View commit details
    Browse the repository at this point in the history
  4. feat(isBoolean) Add loose option to isBoolean validator (#1676)

    * Add loose option to isBoolean validator
    
    * Move boolean array definitions outside of function
    Bryan Brophy committed Jul 16, 2021
    Configuration menu
    Copy the full SHA
    044159d View commit details
    Browse the repository at this point in the history
  5. feat(isMobilePhone): change the german prefix from '+490' to '+49' or…

    … '0' (#1679)
    
    * fix: restrict german numbers
    
    * fix: allow 0 prefix
    
    Co-authored-by: Anna-Maria Jansen <anna-maria.jansen@nui.care>
    AnnaMariaJansen and Anna-Maria Jansen committed Jul 16, 2021
    Configuration menu
    Copy the full SHA
    01eeaef View commit details
    Browse the repository at this point in the history
  6. fix: npm installation error (#1697)

    fixes #1696
    rubiin committed Jul 16, 2021
    1 Configuration menu
    Copy the full SHA
    cff8a2e View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e08e79a View commit details
    Browse the repository at this point in the history
  8. chore: Increase coverage and make codecov more precise (#1658)

    * fix(isTaxID):  fix typo and remove unnecessary conditions
    
    * test: add more cases to handle uncovered branches/conditions
    
    * chore: make coverage report for codecov more precise
    
    Switch from lcov to cobertura to allow handling branch coverage on PR reports
    tux-tn committed Jul 16, 2021
    Configuration menu
    Copy the full SHA
    d36f79c View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    f5f4fcd View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2021

  1. 1 Configuration menu
    Copy the full SHA
    8c4b3b3 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2021

  1. perf(isISO31661Alpha2): use a Set along with .has instead of includes (

    …#1724)
    
    fix(isBIC): refactor use of CountryCodes using Set's methods
    jmpaya committed Sep 20, 2021
    Configuration menu
    Copy the full SHA
    5b04cc5 View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2021

  1. fix(isMagnetURI): update validation regex (#1730)

    * fix(isMagnetURI): update validation regex
    
    - Validate only exact xn topics (btih,sha1,...)
    - Validate only 32 or 40 hashes
    - Make tr and dn parameters optional
    - Allow any other parameter (protocol allow passing non standard parameters)
    - Use placeholder hashes in tests 
    - Fix ReDOS in old regex
    - Add new tests
    
    * fix(isMagnetURI): prevent matching hashes longer than 40 characters
    
    * fix(isMagnetURI): check only string ending after hash or new parameter start
    tux-tn committed Sep 21, 2021
    Configuration menu
    Copy the full SHA
    7376945 View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2021

  1. feat(isISO4217): add currency code validator (#1706)

    * feat(isISO4217): add currency code validator (#1703)
    
    * perf(isISO4217): use a Set along with .has instead of .indexOf
    
    * refactor(isISO4217): Enhance tests with lowercase examples
    jmpaya committed Sep 26, 2021
    Configuration menu
    Copy the full SHA
    f34112d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5b649c6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b0d49bd View commit details
    Browse the repository at this point in the history
  4. feat(isPassportNumber): fix regex for CN (#1714)

    * fix: (isPassportNumber) fix regex for CN
    
    * feat(isPassportNumber): fix regex for CN (#1686)
    anirudhgiri committed Sep 26, 2021
    Configuration menu
    Copy the full SHA
    69881b6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e84623b View commit details
    Browse the repository at this point in the history
  6. feat(isAlpha, isAlphanumeric): Adds Hindi (hi-IN) language support ad…

    …dition to isAlpha & isAlphanumeric (#1716)
    
    * feat: ✨ Hindi language support addition
    
    This commit introduces Indian Hindi language support (hi-IN)
    
    *
    
    * test: ✅ test case for alphanumeric added
    mikr13 committed Sep 26, 2021
    Configuration menu
    Copy the full SHA
    b069167 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a3497bd View commit details
    Browse the repository at this point in the history
  8. feat(isURL): add allow_fragments and allow_query_components (#1721)

    * feat(isURL): add `allow_fragments` option
    
    * feat(isURL): add `allow_query_components` option
    cowboy-bebug committed Sep 26, 2021
    Configuration menu
    Copy the full SHA
    326cfb9 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    c899b31 View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2021

  1. refactor: run scripts in parallel for build and clean (#1747)

    * refactor: run scripts in parallel for build and clean
    
    * use globs
    sachinraja committed Oct 2, 2021
    1 Configuration menu
    Copy the full SHA
    05e382b View commit details
    Browse the repository at this point in the history
  2. feat(isEmail): add host_blacklist option (#1641)

    * feat(isEmail): add `domain_denylist` option
    
    * Fix tests
    
    * Update option name
    fedeci committed Oct 2, 2021
    Configuration menu
    Copy the full SHA
    04b73ad View commit details
    Browse the repository at this point in the history
  3. feat(isIdentityCard): Add PL locale (#1745)

    * Add validation for PESEL
    
    * Move PESEL validation to isIdentityCard
    
    * Fix consistent-return
    
    * Fix trailing-space
    
    * Attempt to improve code coverage
    
    * Handle else in control sum check
    
    * Remove unnecessary return
    
    Co-authored-by: Federico Ciardi <fed.ciardi@gmail.com>
    
    * Fix linter error
    
    * Add missing tests
    
    * Add missing test
    
    * Replace Array.forEach with Array. reduce
    
    Co-authored-by: Sarhan Aissi <tux-tn@users.noreply.github.com>
    
    * Use reduce instead forEach
    
    * Simplify reduce function
    
    Co-authored-by: Federico Ciardi <fed.ciardi@gmail.com>
    Co-authored-by: Sarhan Aissi <tux-tn@users.noreply.github.com>
    3 people committed Oct 2, 2021
    Configuration menu
    Copy the full SHA
    f2a1587 View commit details
    Browse the repository at this point in the history
  4. fix(isMobilePhone.js): regex for Belgium locale (#1746)

    * Updating regex of Belgium and the valid and invalid phone numbers in validators.js
    
    * Fixing accidental deletion of closing braces
    
    * Fixing the test numbers for fr-BE (french Belgium) too in validators.js since phone number rules will be same for that too
    
    Co-authored-by: Divik Shrivastava <divik.s@safe.security>
    divikshrivastava and Divik Shrivastava committed Oct 2, 2021
    Configuration menu
    Copy the full SHA
    4ec30b7 View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2021

  1. feat(isUrl): higher priority to whitelist (#1748)

    * isUrl higher priority to whitelist
    
    * remove extra line at end of package.json
    deepanshu2506 committed Oct 5, 2021
    Configuration menu
    Copy the full SHA
    13651ea View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2021

  1. feat(isFQDN): add allow_wildcard option (#1647)

    Co-authored-by: Andrea Fassina <andrea.fassina@nativery.com>
    fasenderos and andreafassina committed Oct 30, 2021
    Configuration menu
    Copy the full SHA
    622184e View commit details
    Browse the repository at this point in the history
  2. fix(isMobilePhone): use a loose and future-oriented way to verify Chi…

    …nese mobile phone numbers (#1682)
    yisibl committed Oct 30, 2021
    Configuration menu
    Copy the full SHA
    6b213cf View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    60dffb9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    29ed3a0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9347d6d View commit details
    Browse the repository at this point in the history
  6. fix(isMobilePhone): regex for Pakistan(PK) (#1778)

    * Fix Mobile Phone Regex Pakistan(PK)
    
    Update the regex to validate mobile numbers correctly for Pakistan
    
    * Add tests for mobile number validation locale en-PK (Pakistan)
    
    * Linting fix
    
    * Update src/lib/isMobilePhone.js
    
    Update pakistan mobile regex according to suggestion
    
    Co-authored-by: Sarhan Aissi <tux-tn@users.noreply.github.com>
    
    * Update tests for PK phone numbers
    
    Co-authored-by: Sarhan Aissi <tux-tn@users.noreply.github.com>
    hammad20120 and tux-tn committed Oct 30, 2021
    Configuration menu
    Copy the full SHA
    050a424 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    5ed7db1 View commit details
    Browse the repository at this point in the history
  8. feat(isIdentityCard): add 'LK' (Sri Lanka) locale (#1786)

    * Implement isIdentityCard LK(Sri Lanka) locale
    
    * Add tests for isIdentityCard LK locale
    
    * Update README.md for the isIdentityCard LK locale
    
    * Change let to const
    
    Co-authored-by: Sarhan Aissi <tux-tn@users.noreply.github.com>
    
    Co-authored-by: Sarhan Aissi <tux-tn@users.noreply.github.com>
    nimanthadilz and tux-tn committed Oct 30, 2021
    Configuration menu
    Copy the full SHA
    dc9f843 View commit details
    Browse the repository at this point in the history
  9. feat(isPostalCode): add LK (Sri Lanka) locale (#1788)

    * Add `LK` locale to `isPostalCode`
    
    * Add tests for `LK` locale of `isPostalCode`
    
    * Update README.md
    nimanthadilz committed Oct 30, 2021
    Configuration menu
    Copy the full SHA
    8451206 View commit details
    Browse the repository at this point in the history
  10. feat(isLicensePlate): add finnish locale (#1790)

    Co-authored-by: Markus <markus.tyrkko@gmail.com>
    Marcholio and Markus committed Oct 30, 2021
    Configuration menu
    Copy the full SHA
    526417a View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    6eed6a4 View commit details
    Browse the repository at this point in the history
  12. fix(isPassportNumber): update Poland country code (#1809)

    * Updated Poland Country Code
    
    * Updated PO to PL in validator.js
    
    * Changed PO to PL in README.md
    
    * Typo in README.md
    
    Co-authored-by: Ronan Doudiès <rondou@eptm-it.ch>
    Ronqn and Ronan Doudiès committed Oct 30, 2021
    Configuration menu
    Copy the full SHA
    a837e6f View commit details
    Browse the repository at this point in the history
  13. fix(isMobilePhone): update Hungarian locale (#1826)

    * Add internal country code option
    
    * Add new area code options
    
    * Add tests to hu mobile number validation
    danielTiringer committed Oct 30, 2021
    Configuration menu
    Copy the full SHA
    ba4106f View commit details
    Browse the repository at this point in the history
  14. feat(isMobilePhone): add Bermuda en-BM locale (#1769)

    * Added validation for Bermuda on isMobilePhone
    
    * changed regex for bermuda to disable landline no
    HackProAIT committed Oct 30, 2021
    Configuration menu
    Copy the full SHA
    c42b2d9 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    7835db1 View commit details
    Browse the repository at this point in the history
  16. feat(isUrl): urls with empty user (#1833)

    * allow urls with empty user
    
    * use array extract
    
    * reuse auth split
    MiguelSavignano committed Oct 30, 2021
    Configuration menu
    Copy the full SHA
    28f899d View commit details
    Browse the repository at this point in the history
  17. fix(unescape): fixed bug where intermediate string contains escaped c…

    …haracters (#1835)
    
    * Fixed bug where intermediate string contains escaped characters
    
    * Added reference to issue
    
    Co-authored-by: Markus Tyrkkö <markus.tyrkko@nitor.com>
    Co-authored-by: Markus <markus.tyrkko@gmail.com>
    3 people committed Oct 30, 2021
    Configuration menu
    Copy the full SHA
    3fcf768 View commit details
    Browse the repository at this point in the history
  18. feat: added finnish locale to isAlpha and isAlphanumeric (#1837)

    Co-authored-by: Markus Tyrkkö <markus.tyrkko@nitor.com>
    Marcholio and Marcholio committed Oct 30, 2021
    Configuration menu
    Copy the full SHA
    2201869 View commit details
    Browse the repository at this point in the history
  19. feat(isIdentityCard): add finnish locale (#1838)

    Co-authored-by: Markus <markus.tyrkko@gmail.com>
    Marcholio and Markus committed Oct 30, 2021
    Configuration menu
    Copy the full SHA
    57cc14e View commit details
    Browse the repository at this point in the history
  20. add CDN use option with unpkg (#1844)

    closes #1507
    Luis Romero committed Oct 30, 2021
    1 Configuration menu
    Copy the full SHA
    7bee611 View commit details
    Browse the repository at this point in the history
  21. fix: Russian passport number regex (#1810)

    * fix: Russian passport number regex
    
    fixes #1807
    Theta-Dev committed Oct 30, 2021
    Configuration menu
    Copy the full SHA
    de1cb29 View commit details
    Browse the repository at this point in the history
  22. 1 Configuration menu
    Copy the full SHA
    5773869 View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2021

  1. feat: (isMobilePhone): add Cameroon fr-CM locale (#1772)

    * Add Cameroon validation regex
    
    I have added a regex for validating Cameroonian mobile numbers which should work. I'm not super comfortable with regular expressions, so if I have screwed something up, please let me know. I have done some basic testing and it has functioned fine thus far.
    
    * Update README to include fr-CM in isMobilePhone
    
    * Add (very) basic testing for Cameroonian mobile number
    
    * Fix missing brace (whoops!)
    
    * Fix commas (I hope)
    
    * Fix sloppy tests
    
    Fix my sloppy tests. I'm really tired and probably should not be working on this, but I accidentally added an extra digit while typing.
    
    * Update regex for correctness
    
    Add mobile prefix (6) to regex, remove space allowance, and optimize regex
    
    * Update tests for correctness
    
    * Remove invalid space
    
    Sorry!
    
    * Rerun failed tests (internal server error)
    tarob0ba committed Oct 31, 2021
    Configuration menu
    Copy the full SHA
    f2381e0 View commit details
    Browse the repository at this point in the history
  2. feat(contains): add possibility to check that string contains seed mu…

    …ltiple times (#1836)
    
    * Added feature to require minimum number of occurrences for the seed in 'contains'
    
    * Changed regex to split
    
    Co-authored-by: Markus Tyrkkö <markus.tyrkko@nitor.com>
    Co-authored-by: Markus <markus.tyrkko@gmail.com>
    3 people committed Oct 31, 2021
    Configuration menu
    Copy the full SHA
    769f6d5 View commit details
    Browse the repository at this point in the history
  3. feat(isUUID): add support for validation of version v1 and v2 (#1848)

    * fix(isUUID) for null version argument supply
    
    * improve(isUUID) validation for version 1 and 2
    theteladras committed Oct 31, 2021
    1 Configuration menu
    Copy the full SHA
    af2b43c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    01d3da3 View commit details
    Browse the repository at this point in the history
  5. feat(isMobilePhone): add Bhutan dz-BT locale (#1770)

    * Add dz-BT to isMobilePhone.js
    
    * Add isMobilePhone test for dz-BT
    
    * Added isMobilePhone regex for dz-BT 
    
    Added mobile operator codes as well
    
    * Added dz-BT in isMobilePhone readme
    
    * Added isMobilePhone test for dz-BT
    
    Updated the test cases
    lakshayr003 committed Oct 31, 2021
    Configuration menu
    Copy the full SHA
    fc0fefc View commit details
    Browse the repository at this point in the history
  6. feat(isMobilePhone): regex for Burkina Faso fr-BF and Namibia en-NA l…

    …ocales
    
    chore: squashed commits from #1834
    
    feat(isMobilePhone): regex for Namibia locale
    
    fix(isMobilePhone): removing telephone validation
    
    fix(isMobliePhone): regex now validates as intended
    
    fix(isMobilePhone): requiring phone number prefixes in validation
    
    feat(isMobilePhone): regex for Burkina Faso locale
    
    fix(isMobilePhone): removing code intended for a different branch
    
    fix(isMobilePhone): Making plus sign optional
    
    feat(isMobilePhone): regex for Burkina Faso locale
    ZeeMangena authored and profnandaa committed Oct 31, 2021
    Configuration menu
    Copy the full SHA
    5c2d69e View commit details
    Browse the repository at this point in the history
  7. feat(isMobilePhone): add Maldives dv-MV locale

    chore: squashed #1829
    
    Add locale for Maldives in mobile phone validator
    
    Add tests for mobile numbers validation of maldives locale i.e. dv-MV
    
    Update readme to add Maldives locale (dv-MV) in isMobilePhone documentation
    Prajwalrajbasnet authored and profnandaa committed Oct 31, 2021
    Configuration menu
    Copy the full SHA
    c96d805 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ed60123 View commit details
    Browse the repository at this point in the history
  9. feat(isMobilePhone): add Kiribati en-KI locale

    [chore] squashed from #1820
    
    Clean up validator and add trailing comma
    c-tanner authored and profnandaa committed Oct 31, 2021
    Configuration menu
    Copy the full SHA
    8627e48 View commit details
    Browse the repository at this point in the history
  10. feat(isMobilePhone): add Frech Polynesia fr-PF locale

    Create validation for frech polynesia mobile phones according to wikipedia:
    
    https://en.wikipedia.org/wiki/Telephone_numbers_in_French_Polynesia#Mobile
    hereje authored and profnandaa committed Oct 31, 2021
    Configuration menu
    Copy the full SHA
    f7ff349 View commit details
    Browse the repository at this point in the history
  11. feat(isMobilePhone): add Guyana en-GY locale

    [chore] fixed merge conflicts in #1784
    
    feat: (isMobilePhone) Add Guyana mobile phone validation
    
    Fix linter errors
    mfkrause authored and profnandaa committed Oct 31, 2021
    Configuration menu
    Copy the full SHA
    0e5d5d4 View commit details
    Browse the repository at this point in the history
  12. feat(isMobilePhone): add Turkmenistan tk-TM

    squashed commits and resolved merge conflict for #1780
    
    Add Turkmenistan validation regax
    
    Update README.md to include Turkmenistan (tk-Tm)
    
    Add test cases for tk-TM
    
    add missing comma for isMobilePhone.js
    
    add missing commas for test/validators.js
    husan-eshonqulov authored and profnandaa committed Oct 31, 2021
    Configuration menu
    Copy the full SHA
    26605f9 View commit details
    Browse the repository at this point in the history
  13. feat(isMobilePhone): add Botswana en-BW locale

    Added new condition for Botswana
    
    New regex for Botswana numbers
    
    Phone number information was found from the following sources:
    - https://www.howtocallabroad.com/botswana/
    - https://countrycode.org/botswana
    
    Updated README.md to include en-BW
    
    Included the new case for Botswana (en-BW)
    
    Added test cases for isMobilePhone en-BW
    
    Added some test cases to check length for the phone number & area code pattern.
    
    Changed regex for BW
    
    Fixed the pattern for Botswana mobile phone numbers and edited the test cases. I followed the convention from Table 8 of the national numbering plan document and the mobile number pattern on the Wiki page.
    
    Update validators.js
    
    Oops! Looks like the file didn't update with some of my modified test cases - my apologies!
    mgndolan authored and profnandaa committed Oct 31, 2021
    Configuration menu
    Copy the full SHA
    a3faa83 View commit details
    Browse the repository at this point in the history
  14. feat(isMobilePhone): add Palestine ar-PS locale

    Add isMobilePhone test for ar-PS
    
    Add ar-PS to isMobilePhone readme
    
    Correct ar-PS validation
    
    Update ar-PS isMobible tests
    brendan-c authored and profnandaa committed Oct 31, 2021
    Configuration menu
    Copy the full SHA
    5b06703 View commit details
    Browse the repository at this point in the history
  15. feat(isMobilePhone): add El Salvador es-SV locale

    * Solve issue with wrong validation on El Salvador mobile phones
    * update tests accordingly
    
    in order to define the right regEx, the following site was
    consulted.
    
    https://www.siget.gob.sv/guia-de-servicios/consulta-el-plan-de-numeracion/numeros-moviles/
    hereje authored and profnandaa committed Oct 31, 2021
    Configuration menu
    Copy the full SHA
    f17e220 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    83cb7f8 View commit details
    Browse the repository at this point in the history
  17. Merge pull request #1851 from validatorjs/chore/fix-merge-conflicts

    chore: fix merge conflicts
    profnandaa committed Oct 31, 2021
    Configuration menu
    Copy the full SHA
    45901ec View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2021

  1. Configuration menu
    Copy the full SHA
    496fc8b View commit details
    Browse the repository at this point in the history
  2. 13.7.0

    profnandaa committed Nov 1, 2021
    Configuration menu
    Copy the full SHA
    47ee5ad View commit details
    Browse the repository at this point in the history