Skip to content

Commit c07f275

Browse files
authored
Merge branch 'master' into angola
2 parents f7a037b + d91af4b commit c07f275

34 files changed

Lines changed: 1212 additions & 381 deletions

.github/workflows/ci.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,24 @@ on:
66
branches: [master]
77
jobs:
88
test:
9-
runs-on: ubuntu-20.04
9+
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
node-version: [20, 18, 16, 14, 12, 10, 8, 6]
12+
node-version: [22, 20, 18, 16, 14, 12, 10, 8, 6]
1313
name: Run tests on Node.js ${{ matrix.node-version }}
1414
steps:
1515
- name: Setup Node.js ${{ matrix.node-version }}
16-
uses: actions/setup-node@v2-beta
16+
uses: actions/setup-node@v4
1717
with:
1818
node-version: ${{ matrix.node-version }}
19-
check-latest: true
2019
- name: Checkout repository
21-
uses: actions/checkout@v2
20+
uses: actions/checkout@v4
2221
- name: Install dependencies
23-
run: npm install --legacy-peer-deps
22+
run: npm install --legacy-peer-deps
2423
- name: Run tests
2524
run: npm test
26-
- if: matrix.node-version == 20
25+
- if: matrix.node-version == 22
2726
name: Send coverage info to Codecov
28-
uses: codecov/codecov-action@v1
27+
uses: codecov/codecov-action@v5
2928
with:
30-
file: ./coverage/cobertura-coverage.xml
29+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ jobs:
3838

3939
steps:
4040
- name: Checkout repository
41-
uses: actions/checkout@v2
41+
uses: actions/checkout@v4
4242

4343
# Initializes the CodeQL tools for scanning.
4444
- name: Initialize CodeQL
45-
uses: github/codeql-action/init@v2
45+
uses: github/codeql-action/init@v3
4646
with:
4747
languages: ${{ matrix.language }}
4848
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -53,7 +53,7 @@ jobs:
5353
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5454
# If this step fails, then you should remove it and run the build manually (see below)
5555
- name: Autobuild
56-
uses: github/codeql-action/autobuild@v2
56+
uses: github/codeql-action/autobuild@v3
5757

5858
# ℹ️ Command-line programs to run using the OS shell.
5959
# 📚 https://git.io/JvXDl
@@ -67,4 +67,4 @@ jobs:
6767
# make release
6868

6969
- name: Perform CodeQL Analysis
70-
uses: github/codeql-action/analyze@v2
70+
uses: github/codeql-action/analyze@v3

.github/workflows/npm-publish.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,20 @@ on:
44
types: [created]
55
jobs:
66
publish:
7-
runs-on: ubuntu-20.04
7+
runs-on: ubuntu-latest
88
permissions:
99
contents: read
1010
id-token: write
1111
steps:
12-
- name: Setup Node.js 18
13-
uses: actions/setup-node@v3
12+
- name: Setup Node.js 22
13+
uses: actions/setup-node@v4
1414
with:
15-
node-version: 18
16-
check-latest: true
15+
node-version: 22
1716
registry-url: https://registry.npmjs.org/
1817
- name: Checkout Repository
19-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
2019
- name: Install Dependencies
21-
run: npm install
20+
run: npm install --legacy-peer-deps
2221
- name: Run Tests
2322
run: npm test
2423
- name: Publish Package to NPM Registry

CHANGELOG.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,57 @@
1+
# 13.15.0
2+
3+
### New Features / Validators
4+
5+
- [#2399](https://github.com/validatorjs/validator.js/pull/2399) `isISO31661Numeric` @RobinvanderVliet
6+
- [#2294](https://github.com/validatorjs/validator.js/pull/2294) `isULID` @arafatkn
7+
- [#2215](https://github.com/validatorjs/validator.js/pull/2215) `isISO15924` @xDivisionByZerox
8+
9+
### Fixes, New Locales and Enhancements
10+
11+
- `isMobilePhone`
12+
- [#2395](https://github.com/validatorjs/validator.js/pull/2395) add `es-GT` locale @ignaciosuarezquilis
13+
- [#1971](https://github.com/validatorjs/validator.js/pull/1971) improve `en-GB` locale @ihmpavel
14+
- [#2359](https://github.com/validatorjs/validator.js/pull/2359) improve `uk-UA` locale @arttiger
15+
- [#2350](https://github.com/validatorjs/validator.js/pull/2350) improve `ky-KG` locale @sadraliev
16+
- [#2482](https://github.com/validatorjs/validator.js/pull/2482) improve `en-ZM` locale @sonikishan
17+
- [#2362](https://github.com/validatorjs/validator.js/pull/2362) improve `en-GH` locale @NanaAb-116
18+
- [#2500](https://github.com/validatorjs/validator.js/pull/2500) add `mk-MK` locale @eshward95
19+
- [#2534](https://github.com/validatorjs/validator.js/pull/2534) improve `sq-AL` locale @nichoola
20+
- [#2406](https://github.com/validatorjs/validator.js/pull/2406) `isBtcAddress` support all address formats and testnets @madoke
21+
- [#2339](https://github.com/validatorjs/validator.js/pull/2339) `isIBAN` improve `VG` regex @ST-DDT
22+
- [#2332](https://github.com/validatorjs/validator.js/pull/2332) `isISO4217` update currency codes @cbodtorf
23+
- [#2291](https://github.com/validatorjs/validator.js/pull/2291) `isIdentityCard` add `PK` locale @Daniyal-Qureshi
24+
- [#2414](https://github.com/validatorjs/validator.js/pull/2414) `isEmail` fix blacklist_chars @keshavlingala
25+
- [#2416](https://github.com/validatorjs/validator.js/pull/2416) `isInt`/`isFloat` handle undefined and null values @Daniyal-Qureshi
26+
- [#2415](https://github.com/validatorjs/validator.js/pull/2415) `isPostalCode` add `CO` locale @jorgevrgs
27+
- [#2404](https://github.com/validatorjs/validator.js/pull/2404) `isPassportNumber` export `passportNumberLocales` @derekparnell
28+
- [#2029](https://github.com/validatorjs/validator.js/pull/2029) `isRgbColor` add `allowSpaces` option @a-h-i
29+
- [#2421](https://github.com/validatorjs/validator.js/pull/2421) `isUUID` require valid variant field and require RFC9562 UUID in version `all` @broofa
30+
- [#2439](https://github.com/validatorjs/validator.js/pull/2439) `isURL` add `max_allowed_length` option @pinkiesky
31+
- [#2437](https://github.com/validatorjs/validator.js/pull/2437) `isEmail` reject starting with double quotes @code0emperor
32+
- [#2333](https://github.com/validatorjs/validator.js/pull/2333) `isLicensePlate` add `en-SG` locale @Sabarinathan07
33+
- [#2441](https://github.com/validatorjs/validator.js/pull/2441) `normalizeEmail` add `yandex_convert_yandexru` option @AayushGH
34+
- [#2443](https://github.com/validatorjs/validator.js/pull/2443) `isDate` return false instead of Error in certain cases @pano9000
35+
- [#2474](https://github.com/validatorjs/validator.js/pull/2474) `isLength` add `discreteLengths` option @Suven-p
36+
- [#2481](https://github.com/validatorjs/validator.js/pull/2481) `isDate` disallow mismatching length in `strictMode` @sonikishan
37+
- [#2492](https://github.com/validatorjs/validator.js/pull/2492) `isISO6346` set check digit to 0 if remainder is 10 @joelcuy
38+
- [#2493](https://github.com/validatorjs/validator.js/pull/2493) `isPostalCode` improve `BR` locale @ticmaisdev
39+
- [#2494](https://github.com/validatorjs/validator.js/pull/2494) `isEmail` allow regexp in `host_whitelist` and `host_blacklist` @weikangchia
40+
- [#2518](https://github.com/validatorjs/validator.js/pull/2518) `isIBAN` improve `IE`/`PS` regex @Tarasz57
41+
- **Doc fixes and others:**
42+
- [#2402](https://github.com/validatorjs/validator.js/pull/2402) @BibhushanKarki
43+
- [#2394](https://github.com/validatorjs/validator.js/pull/2394) @RobinvanderVliet
44+
- [#1732](https://github.com/validatorjs/validator.js/pull/1732) @alguerocode
45+
- [#2413](https://github.com/validatorjs/validator.js/pull/2413) @rubiin
46+
- [#2408](https://github.com/validatorjs/validator.js/pull/2408) @profnandaa
47+
- [#2411](https://github.com/validatorjs/validator.js/pull/2411) @rubiin
48+
- [#2325](https://github.com/validatorjs/validator.js/pull/2325) @ovarn
49+
- [#2418](https://github.com/validatorjs/validator.js/pull/2418) @ihmpavel
50+
- [#2323](https://github.com/validatorjs/validator.js/pull/2323) @ovarn
51+
- [#2423](https://github.com/validatorjs/validator.js/pull/2423) @rubiin
52+
- [#2409](https://github.com/validatorjs/validator.js/pull/2409) @profnandaa
53+
- [#2442](https://github.com/validatorjs/validator.js/pull/2442) @pano9000
54+
155
# 13.12.0
256

357
### New Features / Validators

0 commit comments

Comments
 (0)