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

add "ko-KR" in MobilePhoneLocale type #1219

Merged
merged 4 commits into from
Apr 13, 2023

Conversation

Yoowatney
Copy link
Contributor

Description

I have added the missing 'ko-KR' line. #1218

To-do list

  • I have added tests for what I changed.
  • This pull request is ready to merge.

+) If necessary, I can provide test code for adding 'ko-KR' line

@coveralls
Copy link

coveralls commented Mar 26, 2023

Coverage Status

Coverage: 100.0%. Remained the same when pulling 345b54a on Yoowatney:master into 1040ea9 on express-validator:master.

Copy link
Member

@gustavohenke gustavohenke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with the change requested below.

Please note that we're amidst the release of v7, so it might take a bit of time to release this change.

src/options.ts Outdated Show resolved Hide resolved
@gustavohenke gustavohenke linked an issue Mar 26, 2023 that may be closed by this pull request
@gustavohenke gustavohenke force-pushed the master branch 2 times, most recently from 3177f64 to 6e160b1 Compare April 7, 2023 12:26
@gustavohenke gustavohenke merged commit b255c16 into express-validator:master Apr 13, 2023
6 checks passed
beeme1mr pushed a commit to open-feature/playground that referenced this pull request Jun 16, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [express-validator](https://express-validator.github.io)
([source](https://togithub.com/express-validator/express-validator)) |
[`^6.14.2` ->
`^7.0.0`](https://renovatebot.com/diffs/npm/express-validator/6.15.0/7.0.1)
|
[![age](https://badges.renovateapi.com/packages/npm/express-validator/7.0.1/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/express-validator/7.0.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/express-validator/7.0.1/compatibility-slim/6.15.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/express-validator/7.0.1/confidence-slim/6.15.0)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>express-validator/express-validator</summary>

###
[`v7.0.1`](https://togithub.com/express-validator/express-validator/releases/tag/v7.0.1)

[Compare
Source](https://togithub.com/express-validator/express-validator/compare/v7.0.0...v7.0.1)

- Fixed `checkSchema()` warning that known validators are unknown when
its value is `false` -
[#&#8203;1223](https://togithub.com/express-validator/express-validator/issues/1223)

###
[`v7.0.0`](https://togithub.com/express-validator/express-validator/releases/tag/v7.0.0)

[Compare
Source](https://togithub.com/express-validator/express-validator/compare/v6.15.0...v7.0.0)

🚀 🙌  **First major version in almost 4 years!** 🚀 🤯
Thanks everybody for having the patience. Hopefully this version brings
many improvements to your developer experience!

#### Breaking changes 💥

-   **Minimum supported Node.js version is now 14+**
- Removed deprecated APIs -
[#&#8203;993](https://togithub.com/express-validator/express-validator/issues/993)
- Import paths `express-validator/check` and `express-validator/filter`
- Sanitization-only middlewares (e.g. `sanitize()`, `sanitizeBody()`,
etc)
- Deprecated TypeScript types (`ValidationParamSchema` and
`ValidationSchema`)
- `isObject()` validator now assumes `options.strict = true` by default
-   Validation errors changed shape
- Field validation errors `param` property has been renamed to `path`
- `oneOf()` validation errors no longer have a `param: '_error'`
property
- (TypeScript only) The `ValidationError` type is now a [discriminated
union](https://www.typescriptlang.org/docs/handbook/2/narrowing.html#discriminated-unions),
it might be necessary to use `switch` or `if` statements to check that
you're dealing with the type that you want to debug/format
- `oneOf()` signature changed: from `oneOf(chains, message)` to
`oneOf(chains, options: { message, errorType })`
- `oneOf()` default error structure now groups errors by their...
validation group!, instead of in a flat list

Checkout the migration guide for examples on how to work around some of
these:
https://express-validator.github.io/docs/migration-v6-to-v7

#### New features ✨

- **Added validation for no unknown fields** -
[#&#8203;558](https://togithub.com/express-validator/express-validator/issues/558),
[#&#8203;578](https://togithub.com/express-validator/express-validator/issues/578),
[#&#8203;612](https://togithub.com/express-validator/express-validator/issues/612),
[#&#8203;1148](https://togithub.com/express-validator/express-validator/issues/1148),
[#&#8203;809](https://togithub.com/express-validator/express-validator/issues/809),
[#&#8203;927](https://togithub.com/express-validator/express-validator/issues/927),
[#&#8203;1204](https://togithub.com/express-validator/express-validator/issues/1204)
- **Added globstars (deep wildcard) support** -
[#&#8203;790](https://togithub.com/express-validator/express-validator/issues/790),
[#&#8203;1137](https://togithub.com/express-validator/express-validator/issues/1137),
[#&#8203;1216](https://togithub.com/express-validator/express-validator/issues/1216)
- Added support for multiple custom validators/sanitizers in
`checkSchema()` -
[#&#8203;552](https://togithub.com/express-validator/express-validator/issues/552),
[#&#8203;1180](https://togithub.com/express-validator/express-validator/issues/1180)
- Added request-level bail -
[#&#8203;1100](https://togithub.com/express-validator/express-validator/issues/1100),
[#&#8203;1214](https://togithub.com/express-validator/express-validator/issues/1214)
- Added a `ExpressValidator` class which allows adding "persistent"
custom validators, sanitizers, and options -
[#&#8203;1077](https://togithub.com/express-validator/express-validator/issues/1077),
[#&#8203;1079](https://togithub.com/express-validator/express-validator/issues/1079),
[#&#8203;1209](https://togithub.com/express-validator/express-validator/issues/1209)
- Added `oneOf()` support to `.if()` -
[#&#8203;1170](https://togithub.com/express-validator/express-validator/issues/1170)
- Added new error types to `oneOf()` -
[#&#8203;956](https://togithub.com/express-validator/express-validator/issues/956),
[#&#8203;1022](https://togithub.com/express-validator/express-validator/issues/1022)

#### Bug fixes 🐛

- **Validating/sanitizing arrays no longer drops all but the first
value** -
[#&#8203;791](https://togithub.com/express-validator/express-validator/issues/791),
[#&#8203;755](https://togithub.com/express-validator/express-validator/issues/755),
[#&#8203;704](https://togithub.com/express-validator/express-validator/issues/704),
[#&#8203;1002](https://togithub.com/express-validator/express-validator/issues/1002)
- Added missing `ko-KR` to `MobilePhoneLocale` -
[#&#8203;1218](https://togithub.com/express-validator/express-validator/issues/1218),
[#&#8203;1219](https://togithub.com/express-validator/express-validator/issues/1219)
- Don't silently fail when setting `withMessage` and `not` in schemas -
[#&#8203;664](https://togithub.com/express-validator/express-validator/issues/664)

#### New Contributors

- [@&#8203;Yoowatney](https://togithub.com/Yoowatney) made their first
contribution in
[express-validator/express-validator#1219

**Full Changelog**:
express-validator/express-validator@v6.15.0...v7.0.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/open-feature/playground).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS45Ni4zIiwidXBkYXRlZEluVmVyIjoiMzUuOTYuMyIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

'ko-kr' line missing in MobilePhoneLocale type
4 participants