Skip to content

Commit c7c0760

Browse files
authored
Merge branch 'master' into master
2 parents 42ecd6c + 3873ebf commit c7c0760

44 files changed

Lines changed: 2472 additions & 269 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Add a descriptive title textbox above, e.g.
33
feat(validatorName): brief title of what has been done
44
-->
55

6-
{{ briefly describe what you have done in this PR }}
6+
<!--- briefly describe what you have done in this PR --->
77

88
## Checklist
99

.github/workflows/ci.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,8 @@ jobs:
2323
run: npm install
2424
- name: Run tests
2525
run: npm test
26-
- if: matrix.node-version == 14
27-
name: Generate coverage file
28-
run: npm run test:ci > coverage.lcov
2926
- if: matrix.node-version == 14
3027
name: Send coverage info to Codecov
3128
uses: codecov/codecov-action@v1
3229
with:
33-
file: ./coverage.lcov
30+
file: ./coverage/cobertura-coverage.xml
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ master ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ master ]
20+
schedule:
21+
- cron: '38 10 * * 4'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
permissions:
28+
actions: read
29+
contents: read
30+
security-events: write
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
language: [ 'javascript' ]
36+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37+
# Learn more about CodeQL language support at https://git.io/codeql-language-support
38+
39+
steps:
40+
- name: Checkout repository
41+
uses: actions/checkout@v2
42+
43+
# Initializes the CodeQL tools for scanning.
44+
- name: Initialize CodeQL
45+
uses: github/codeql-action/init@v1
46+
with:
47+
languages: ${{ matrix.language }}
48+
# If you wish to specify custom queries, you can do so here or in a config file.
49+
# By default, queries listed here will override any specified in a config file.
50+
# Prefix the list here with "+" to use these queries and those in the config file.
51+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
52+
53+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
54+
# If this step fails, then you should remove it and run the build manually (see below)
55+
- name: Autobuild
56+
uses: github/codeql-action/autobuild@v1
57+
58+
# ℹ️ Command-line programs to run using the OS shell.
59+
# 📚 https://git.io/JvXDl
60+
61+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
62+
# and modify them (or add more) to build your code if your project
63+
# uses a compiled language
64+
65+
#- run: |
66+
# make bootstrap
67+
# make release
68+
69+
- name: Perform CodeQL Analysis
70+
uses: github/codeql-action/analyze@v1

CHANGELOG.md

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,92 @@
1+
## 13.7.0
2+
3+
### New Features
4+
5+
- [#1706](https://github.com/validatorjs/validator.js/pull/1706) `isISO4217`, currency code validator @jpaya17
6+
7+
### New Features
8+
9+
- [#1706](https://github.com/validatorjs/validator.js/pull/1706) `isISO4217`, currency code validator @jpaya17
10+
11+
### Fixes and Enhancements
12+
13+
- [#1647](https://github.com/validatorjs/validator.js/pull/1647) `isFQDN`: add `allow_wildcard` option @fasenderos
14+
- [#1654](https://github.com/validatorjs/validator.js/pull/1654) `isRFC3339`: Disallow prepended and appended strings to RFC 3339 date-time @jmacmahon
15+
- [#1658](https://github.com/validatorjs/validator.js/pull/1658) maintenance: increase code coverage @tux-tn
16+
- [#1669](https://github.com/validatorjs/validator.js/pull/1669) `IBAN` export list of country codes that implement IBAN @dror-heller @fedeci
17+
- [#1676](https://github.com/validatorjs/validator.js/pull/1676) `isBoolean`: add `loose` option @brybrophy
18+
- [#1697](https://github.com/validatorjs/validator.js/pull/1697) maintenance: fix npm installation error @rubiin
19+
- [#1708](https://github.com/validatorjs/validator.js/pull/1708) `isISO31661Alpha3`: perf @jpaya17
20+
- [#1711](https://github.com/validatorjs/validator.js/pull/1711) `isDate`: allow users to strictly validate dates with `.` as delimiter @flymans
21+
- [#1715](https://github.com/validatorjs/validator.js/pull/1715) `isCreditCard`: fix for Union Pay cards @shreyassai123
22+
- [#1718](https://github.com/validatorjs/validator.js/pull/1718) `isEmail`: replace all dots in GMail length validation @DasDingGehtNicht
23+
- [#1721](https://github.com/validatorjs/validator.js/pull/1721) `isURL`: add `allow_fragments` and `allow_query_components` @cowboy-bebug
24+
- [#1724](https://github.com/validatorjs/validator.js/pull/1724) `isISO31661Alpha2`: perf @jpaya17
25+
- [#1730](https://github.com/validatorjs/validator.js/pull/1730) `isMagnetURI` @tux-tn
26+
- [#1738](https://github.com/validatorjs/validator.js/pull/1738) `rtrim`: remove regex to prevent ReDOS attack @tux-tn
27+
- [#1747](https://github.com/validatorjs/validator.js/pull/1747) maintenance: run scripts in parallel for build and clean @sachinraja
28+
- [#1748](https://github.com/validatorjs/validator.js/pull/1748) `isURL`: higher priority to `whitelist` @deepanshu2506
29+
- [#1751](https://github.com/validatorjs/validator.js/pull/1751) `isURL`: allow url with colon and no port @MatteoPierro
30+
- [#1777](https://github.com/validatorjs/validator.js/pull/1777) `isUUID`: fix for `null` version argument @theteladras
31+
- [#1799](https://github.com/validatorjs/validator.js/pull/1799) `isFQDN`: check more special chars @MatteoPierro
32+
- [#1833](https://github.com/validatorjs/validator.js/pull/1833) `isURL`: allow URL with an empty user @MiguelSavignano
33+
- [#1835](https://github.com/validatorjs/validator.js/pull/1835) `unescape`: fixed bug where intermediate string contains escaped @Marcholio
34+
- [#1836](https://github.com/validatorjs/validator.js/pull/1836) `contains`: can check that string contains seed multiple times @Marcholio
35+
- [#1844](https://github.com/validatorjs/validator.js/pull/1844) docs: add CDN instructions @luiscobits
36+
- [#1848](https://github.com/validatorjs/validator.js/pull/1848) `isUUID`: add support for validation of `v1` and `v2` @theteladras
37+
- [#1941](https://github.com/validatorjs/validator.js/pull/1641) `isEmail`: add `host_blacklist` option @fedeci
38+
39+
### New and Improved Locales
40+
41+
- `isAlpha`, `isAlphanumeric`:
42+
- [#1716](https://github.com/validatorjs/validator.js/pull/1716) `hi-IN` @MiKr13
43+
- [#1837](https://github.com/validatorjs/validator.js/pull/1837) `fi-FI` @Marcholio
44+
45+
- `isPassportNumber`:
46+
- [#1656](https://github.com/validatorjs/validator.js/pull/1656) `ID` @rubiin
47+
- [#1714](https://github.com/validatorjs/validator.js/pull/1714) `CN` @anirudhgiri
48+
- [#1809](https://github.com/validatorjs/validator.js/pull/1809) `PL` @Ronqn
49+
- [#1810](https://github.com/validatorjs/validator.js/pull/1810) `RU` @Theta-Dev
50+
51+
- `isPostalCode`:
52+
- [#1788](https://github.com/validatorjs/validator.js/pull/1788) `LK` @nimanthadilz
53+
54+
- `isIdentityCard`:
55+
- [#1657](https://github.com/validatorjs/validator.js/pull/1657) `TH` @tithanayut
56+
- [#1745](https://github.com/validatorjs/validator.js/pull/1745) `PL` @wiktorwojcik112 @fedeci @tux-tn
57+
- [#1786](https://github.com/validatorjs/validator.js/pull/1786) `LK` @nimanthadilz @tux-tn
58+
- [#1838](https://github.com/validatorjs/validator.js/pull/1838) `FI` @Marcholio
59+
60+
- `isMobilePhone`:
61+
- [#1679](https://github.com/validatorjs/validator.js/pull/1679) `de-DE` @AnnaMariaJansen
62+
- [#1689](https://github.com/validatorjs/validator.js/pull/1689) `vi-VN` @luisrivas
63+
- [#1695](https://github.com/validatorjs/validator.js/pull/1695) [#1682](https://github.com/validatorjs/validator.js/pull/1682) `zh-CN` @laulujan @yisibl
64+
- [#1734](https://github.com/validatorjs/validator.js/pull/1734) `es-VE` @islasjuanp
65+
- [#1746](https://github.com/validatorjs/validator.js/pull/1746) `nl-BE` @divikshrivastava
66+
- [#1765](https://github.com/validatorjs/validator.js/pull/1765) `es-CU` @pasagedev
67+
- [#1766](https://github.com/validatorjs/validator.js/pull/1766) `es-SV`, @hereje
68+
- [#1767](https://github.com/validatorjs/validator.js/pull/1767) `ar-PS`, @brendan-c
69+
- [#1769](https://github.com/validatorjs/validator.js/pull/1769) `en-BM` @HackProAIT
70+
- [#1770](https://github.com/validatorjs/validator.js/pull/1770) `dz-BT` @lakshayr003
71+
- [#1771](https://github.com/validatorjs/validator.js/pull/1771) `en-BW`, @mgndolan
72+
- [#1772](https://github.com/validatorjs/validator.js/pull/1772) `fr-CM` @beckettnormington
73+
- [#1778](https://github.com/validatorjs/validator.js/pull/1778) `en-PK` @ammad20120 @tux-tn
74+
- [#1780](https://github.com/validatorjs/validator.js/pull/1780) `tk-TM`, @Husan-Eshonqulov
75+
- [#1784](https://github.com/validatorjs/validator.js/pull/1784) `en-GY`, @mfkrause
76+
- [#1785](https://github.com/validatorjs/validator.js/pull/1785) `si-LK` @Madhavi96
77+
- [#1797](https://github.com/validatorjs/validator.js/pull/1797) `fr-PF`, @hereje
78+
- [#1820](https://github.com/validatorjs/validator.js/pull/1820) `en-KI`, @c-tanner
79+
- [#1826](https://github.com/validatorjs/validator.js/pull/1826) `hu-HU` @danielTiringer
80+
- [#1834](https://github.com/validatorjs/validator.js/pull/1834) `fr-BF`, `en-NA` @lakshayr003
81+
- [#1846](https://github.com/validatorjs/validator.js/pull/1846) `tg-TJ` @mgnss
82+
83+
- `isLicensePlate`:
84+
- [#1565](https://github.com/validatorjs/validator.js/pull/1565) `cs-CZ` @filiptronicek
85+
- [#1790](https://github.com/validatorjs/validator.js/pull/1790) `fi-FI` @Marcholio
86+
87+
- `isVAT`:
88+
- [#1825](https://github.com/validatorjs/validator.js/pull/1825) `NL` @zeno4ever
89+
190
#### 13.6.1
291

392
- **New features**:

0 commit comments

Comments
 (0)