Skip to content

Commit 6c004b4

Browse files
authored
Merge branch 'master' into fix/Add-Maestro-credit-card-ranges
2 parents 1cfa3ad + f2b1082 commit 6c004b4

Some content is hidden

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

42 files changed

+1195
-198
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ A clear and concise description of what the bug is.
1414
**Examples**
1515
If applicable, add screenshots to help explain your problem.
1616

17+
**Reproductions**
18+
If applicable, provide a reproduction on platforms like [runkit](npm.runkit.com/validator)
19+
1720
**Additional context**
1821
Validator.js version:
1922
Node.js version:

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-20.04
1010
strategy:
1111
matrix:
12-
node-version: [14, 12, 10, 8, 6]
12+
node-version: [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 }}
@@ -20,10 +20,10 @@ jobs:
2020
- name: Checkout repository
2121
uses: actions/checkout@v2
2222
- name: Install dependencies
23-
run: npm install
23+
run: npm install --legacy-peer-deps
2424
- name: Run tests
2525
run: npm test
26-
- if: matrix.node-version == 14
26+
- if: matrix.node-version == 20
2727
name: Send coverage info to Codecov
2828
uses: codecov/codecov-action@v1
2929
with:

.github/workflows/npm-publish.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,23 @@ on:
55
jobs:
66
publish:
77
runs-on: ubuntu-20.04
8+
permissions:
9+
contents: read
10+
id-token: write
811
steps:
9-
- name: Setup Node.js 14
10-
uses: actions/setup-node@v2-beta
12+
- name: Setup Node.js 18
13+
uses: actions/setup-node@v3
1114
with:
12-
node-version: 14
15+
node-version: 18
1316
check-latest: true
1417
registry-url: https://registry.npmjs.org/
1518
- name: Checkout Repository
16-
uses: actions/checkout@v2
19+
uses: actions/checkout@v3
1720
- name: Install Dependencies
1821
run: npm install
1922
- name: Run Tests
2023
run: npm test
2124
- name: Publish Package to NPM Registry
22-
run: npm publish
25+
run: npm publish --provenance
2326
env:
2427
NODE_AUTH_TOKEN: ${{secrets.NPM_SECRET}}

CHANGELOG.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,37 @@
1+
# 13.12.0
2+
3+
### New Features / Validators
4+
5+
- [#2143](https://github.com/validatorjs/validator.js/pull/2143) `isAbaRouting` @songyuew
6+
7+
### Fixes, New Locales and Enhancements
8+
9+
- [#2207](https://github.com/validatorjs/validator.js/pull/2207) `isLicensePlate` add Pakistani `en-PK` locale @anasshakil
10+
- [#2208](https://github.com/validatorjs/validator.js/issues/2208) `isPort` fix invalid leading zeros @anasshakil
11+
- [#2224](https://github.com/validatorjs/validator.js/pull/2224) `isTaxID` added Argentina `es-AR` locale @estefrare
12+
- [#2257](https://github.com/validatorjs/validator.js/pull/2257) `isDate` timezone offset fix @tomaspanek
13+
- [#2265](https://github.com/validatorjs/validator.js/pull/2265) `isPassportNumber` added `ZA` locale @GMorris-professional
14+
- `isMobilePhone`:
15+
- [#2267](https://github.com/validatorjs/validator.js/pull/2267) added `en-MW` locale @SimranSiddiqui
16+
- [#2140](https://github.com/validatorjs/validator.js/pull/2140) fix `am-AM` locale @AlexKrupko
17+
- [#2271](https://github.com/validatorjs/validator.js/pull/2271) `isPostalAddress` fix `NL` locale @RobinvanderVliet
18+
- [#2273](https://github.com/validatorjs/validator.js/pull/2273) `isISO4217` add `SLE` currency @urg
19+
- [#2278](https://github.com/validatorjs/validator.js/pull/2278) `isStrongPassword` fix symbolRegex to include `\` @nandavikas
20+
- [#2279](https://github.com/validatorjs/validator.js/pull/2279) `isVAT` fixed `KZ` locale @MatthieuLemoine
21+
- [#2285](https://github.com/validatorjs/validator.js/pull/2285) `isAlpha`, `isAlphanumeric` added `eo` locale @RobinvanderVliet
22+
- [#2320](https://github.com/validatorjs/validator.js/pull/2320) `isIBAN` add Algeria `DZ` locale @thibault-lr
23+
- [#2343](https://github.com/validatorjs/validator.js/pull/2343) `isVAT`improve `AU` locale @matthewberryman
24+
- [#2345](https://github.com/validatorjs/validator.js/pull/2345) `isUUID` add support for v7 @ruscon
25+
- [#2358](https://github.com/validatorjs/validator.js/pull/2358) `isTaxID` add Ukraine `uk-UA` locale @arttiger
26+
- [#2381](https://github.com/validatorjs/validator.js/pull/2381) `isDate` disallow hiphen before year @Sumit-tech-joshi
27+
- **Doc fixes and others:**
28+
- [#2276](https://github.com/validatorjs/validator.js/pull/2276) @meyfa
29+
- [#2341](https://github.com/validatorjs/validator.js/pull/2341) @WikiRik
30+
- [#2364](https://github.com/validatorjs/validator.js/pull/2364) @rubiin
31+
- [#2368](https://github.com/validatorjs/validator.js/pull/2368) @ZhulinskiiDanil
32+
- [#2371](https://github.com/validatorjs/validator.js/pull/2371) @devmanbud
33+
- [#2386](https://github.com/validatorjs/validator.js/pull/2386) @alinaghale88
34+
135
# 13.11.0
236

337
### New Features / Validators

CONTRIBUTING.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Contributing to validator.js
2+
Welcome to validator.js repository!! We appreciate your interest in contributing to this open library and for helping our community grow.
3+
4+
## How to Contribute
5+
### Code Contribution
6+
In general, we follow the "fork-and-pull" Git workflow.
7+
8+
1. [Fork](https://docs.github.com/en/get-started/exploring-projects-on-github/contributing-to-a-project) the repository on GitHub
9+
2. Clone the project to your local machine
10+
3. Work on your fork
11+
* Make your changes and additions
12+
- Most of your changes should be focused on src/ and test/ folders and/or [README.md](https://github.com/validatorjs/validator.js/blob/master/README.md).
13+
- Files such as validator.js, validator.min.js and files in lib/ folder are autogenerated when running tests (npm test) and need not to be changed **manually**.
14+
* Change or add tests if needed
15+
* Run tests and make sure they pass
16+
* Add changes to README.md if needed
17+
4. Commit changes to your own branch
18+
5. **Make sure** you merge the latest from "upstream" and resolve conflicts if there is any
19+
6. Repeat step 3(3) above
20+
7. Push your work back up to your fork
21+
8. Submit a Pull request so that we can review your changes
22+
23+
#### Run Tests
24+
Tests are using mocha. To run the tests use:
25+
26+
```sh
27+
$ npm test
28+
```
29+
30+
### Financial Contribution
31+
We welcome financial contributions on our [open collective](https://opencollective.com/validatorjs).
32+
33+
You can opt to become a [backer](https://opencollective.com/validatorjs#backer) or a [sponsor](https://opencollective.com/validatorjs#sponsor) and help our project sustain over time.
34+
35+
Thank you to the people who have already contributed:
36+
37+
<a href="https://github.com/validatorjs/validator.js/graphs/contributors"><img src="https://opencollective.com/validatorjs/contributors.svg?width=890" /></a>

0 commit comments

Comments
 (0)