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

maintenance: 2405 release #2269

Closed
wants to merge 27 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
2c4aede
fix(isDate): Timezone Offset Fix (#2257)
tomaspanek Aug 18, 2023
3541b0d
feat(isTaxId): add tax id for Argentina, es-AR (#2224)
estefrare Aug 18, 2023
6923860
feat(isPassportNumber): added South African, ZA validator (#2265)
GMorris-professional Aug 18, 2023
b958bd7
feat(isMobilePhone): Added the regex for Malawi en-MW (#2267)
SimranSiddiqui Aug 18, 2023
332b501
fix(docs): misspelling of Mailto (#2368)
ZhulinskiiDanil Mar 5, 2024
4197b86
chore(isMailtoURI): remove unnecessary default to (#2341)
WikiRik Mar 5, 2024
31c88cf
fix(docs): fixed typo in README.md (#2371)
devmanbud Apr 25, 2024
6d5c52a
feat(isUUID): support uuid v7 (#2345)
ruscon Apr 25, 2024
752bd09
fix(isPassportNumber): fix regex Azerbaijan (#2284)
amaliacatalina Apr 25, 2024
0a100fe
feat(isAlpha, isAlphanumeric): add Esperanto (eo) locale (#2285)
RobinvanderVliet Apr 25, 2024
edb6b1c
fix(isPostalCode): improve Dutch postal code regex (#2271)
RobinvanderVliet Apr 25, 2024
b34a335
fix(isPort): Invalid leading zeros (#2208)
anasshakil Apr 25, 2024
32b174e
feat(isLicensePlate): Support for Pakistani vehicles (#2207)
anasshakil Apr 25, 2024
19f11cf
feat: added isAbaRouting validator (#2143)
songyuew Apr 25, 2024
6b3f62d
fix(isMobilePhone): fixed validation for am-AM (#2140)
AlexKrupko Apr 25, 2024
817e56e
ci: add latest node versions (#2364)
rubiin Apr 25, 2024
72c8dc1
fix(isPassport): added tests for ZA Passport Number (#2270)
GMorris-professional Apr 27, 2024
5677f91
fix: add SLE to the isISO4217 validator (#2273)
urg Apr 27, 2024
2253a77
chore: Publish to NPM with provenance (#2276)
meyfa Apr 27, 2024
8a40349
fix: symbolRegex in isStrongPassword to include '\' (#2278)
nandavikas Apr 27, 2024
11ac6a4
fix(isVAT): fixed KZ VAT number length check (#2279)
MatthieuLemoine Apr 27, 2024
d8c93d2
feat(isIBAN): add Algeria locale (#2320)
thibault-lr Apr 27, 2024
eacccaf
docs: move contributing guidelines to CONTRIBUTING.md (#2386)
alinaghale88 Apr 27, 2024
0836777
fix(isDate): hyphen before year is not allowed (#2381)
Sumit-tech-joshi Apr 27, 2024
43a0f09
feat(isTaxID): added TaxID for Ukraine uk-UA (#2358)
arttiger Apr 27, 2024
83d6ffd
fix(isVAT): improved ABN (AU VAT) validation (#2343)
matthewberryman Apr 27, 2024
cd4e7bf
13.12.0
profnandaa May 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [14, 12, 10, 8, 6]
node-version: [20, 18, 16, 14, 12, 10, 8, 6]
name: Run tests on Node.js ${{ matrix.node-version }}
steps:
- name: Setup Node.js ${{ matrix.node-version }}
Expand All @@ -20,10 +20,10 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install dependencies
run: npm install
run: npm install --legacy-peer-deps
- name: Run tests
run: npm test
- if: matrix.node-version == 14
- if: matrix.node-version == 20
name: Send coverage info to Codecov
uses: codecov/codecov-action@v1
with:
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,23 @@ on:
jobs:
publish:
runs-on: ubuntu-20.04
permissions:
contents: read
id-token: write
steps:
- name: Setup Node.js 14
uses: actions/setup-node@v2-beta
- name: Setup Node.js 18
uses: actions/setup-node@v3
with:
node-version: 14
node-version: 18
check-latest: true
registry-url: https://registry.npmjs.org/
- name: Checkout Repository
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install Dependencies
run: npm install
- name: Run Tests
run: npm test
- name: Publish Package to NPM Registry
run: npm publish
run: npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_SECRET}}
34 changes: 34 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,37 @@
# 13.12.0

### New Features / Validators

- [#2143](https://github.com/validatorjs/validator.js/pull/2143) `isAbaRouting` @songyuew

### Fixes, New Locales and Enhancements

- [#2207](https://github.com/validatorjs/validator.js/pull/2207) `isLicensePlate` add Pakistani `en-PK` locale @anasshakil
- [#2208](https://github.com/validatorjs/validator.js/issues/2208) `isPort` fix invalid leading zeros @anasshakil
- [#2224](https://github.com/validatorjs/validator.js/pull/2224) `isTaxID` added Argentina `es-AR` locale @estefrare
- [#2257](https://github.com/validatorjs/validator.js/pull/2257) `isDate` timezone offset fix @tomaspanek
- [#2265](https://github.com/validatorjs/validator.js/pull/2265) `isPassportNumber` added `ZA` locale @GMorris-professional
- `isMobilePhone`:
- [#2267](https://github.com/validatorjs/validator.js/pull/2267) added `en-MW` locale @SimranSiddiqui
- [#2140](https://github.com/validatorjs/validator.js/pull/2140) fix `am-AM` locale @AlexKrupko
- [#2271](https://github.com/validatorjs/validator.js/pull/2271) `isPostalAddress` fix `NL` locale @RobinvanderVliet
- [#2273](https://github.com/validatorjs/validator.js/pull/2273) `isISO4217` add `SLE` currency @urg
- [#2278](https://github.com/validatorjs/validator.js/pull/2278) `isStrongPassword` fix symbolRegex to include `\` @nandavikas
- [#2279](https://github.com/validatorjs/validator.js/pull/2279) `isVAT` fixed `KZ` locale @MatthieuLemoine
- [#2285](https://github.com/validatorjs/validator.js/pull/2285) `isAlpha`, `isAlphanumeric` added `eo` locale @RobinvanderVliet
- [#2320](https://github.com/validatorjs/validator.js/pull/2320) `isIBAN` add Algeria `DZ` locale @thibault-lr
- [#2343](https://github.com/validatorjs/validator.js/pull/2343) `isVAT`improve `AU` locale @matthewberryman
- [#2345](https://github.com/validatorjs/validator.js/pull/2345) `isUUID` add support for v7 @ruscon
- [#2358](https://github.com/validatorjs/validator.js/pull/2358) `isTaxID` add Ukraine `uk-UA` locale @arttiger
- [#2381](https://github.com/validatorjs/validator.js/pull/2381) `isDate` disallow hiphen before year @Sumit-tech-joshi
- **Doc fixes and others:**
- [#2276](https://github.com/validatorjs/validator.js/pull/2276) @meyfa
- [#2341](https://github.com/validatorjs/validator.js/pull/2341) @WikiRik
- [#2364](https://github.com/validatorjs/validator.js/pull/2364) @rubiin
- [#2368](https://github.com/validatorjs/validator.js/pull/2368) @ZhulinskiiDanil
- [#2371](https://github.com/validatorjs/validator.js/pull/2371) @devmanbud
- [#2386](https://github.com/validatorjs/validator.js/pull/2386) @alinaghale88

# 13.11.0

### New Features / Validators
Expand Down
37 changes: 37 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Contributing to validator.js
Welcome to validator.js repository!! We appreciate your interest in contributing to this open library and for helping our community grow.

## How to Contribute
### Code Contribution
In general, we follow the "fork-and-pull" Git workflow.

1. [Fork](https://docs.github.com/en/get-started/exploring-projects-on-github/contributing-to-a-project) the repository on GitHub
2. Clone the project to your local machine
3. Work on your fork
* Make your changes and additions
- 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).
- 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**.
* Change or add tests if needed
* Run tests and make sure they pass
* Add changes to README.md if needed
4. Commit changes to your own branch
5. **Make sure** you merge the latest from "upstream" and resolve conflicts if there is any
6. Repeat step 3(3) above
7. Push your work back up to your fork
8. Submit a Pull request so that we can review your changes

#### Run Tests
Tests are using mocha. To run the tests use:

```sh
$ npm test
```

### Financial Contribution
We welcome financial contributions on our [open collective](https://opencollective.com/validatorjs).

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.

Thank you to the people who have already contributed:

<a href="https://github.com/validatorjs/validator.js/graphs/contributors"><img src="https://opencollective.com/validatorjs/contributors.svg?width=890" /></a>
Loading
Loading