hyperledger-typescript-boilerplate
                                
                                 hyperledger-typescript-boilerplate copied to clipboard
                                
                                    hyperledger-typescript-boilerplate copied to clipboard
                            
                            
                            
                        Bump class-validator from 0.8.5 to 0.14.0
Bumps class-validator from 0.8.5 to 0.14.0.
Changelog
Sourced from class-validator's changelog.
0.14.0 (2022-12-09)
Added
- add
@IsTimeZonedecorator to check if given string is valid IANA time zone- add
@IsISO4217CurrencyCodedecorator to check if the string is an ISO 4217 currency code- add
@IsStrongPassworddecorator to check if given password matches specific complexity criteria- add
@IsBase58decorator to check if a string is base58 encoded- add
@IsTaxIddecorator to check if a given string is a valid tax ID in a given locale- add support for passing function as date generator in
@MinDateand@MaxDatedecorators- add option to print constraint error message instead of constraint type in validation error
- improve decorator metadata lookup performance
- return possible values in error message for
@IsEnumdecoratorFixed
- re-added
@types/validatoras dependency- fix error generation when using
@NestedValidation- pass validation options correctly to validator in
@IsDateStringdecorator- support passing
Symbolas parameter in error message generation- specify supported locales for
@IsAlphanumericdecorator- correctly assign decorator name in metadata instead of loosing it
- fix various spelling errors in documentation
- fix various spelling errors and inconsistencies in JSDoc for decorators
Changed
- enable
forbidUnknownValuesoption by default- remove documentation about deprecated schema based validation and added warning
- update warning message logged about missing decorator metadata
- update
libphonenumber-jsto^1.10.14from^1.9.43- update various dev-dependencies
BREAKING CHANGES
forbidUnknownValuesoption is enabled by defaultFrom this release the
forbidUnknownValuesis enabled by default. This is the desired behavior for majority of use-cases, but this change may break validation for some. The two scenarios that results in failed validation:
- when attempting to validate a class instance without metadata for it
- when using group validation and the specified validation group results in zero validation applied
The old behavior can be restored via specifying
forbidUnknownValues: falseoption when calling the validate functions.For more details see [PR #1798](typestack/class-validator#1798) and #1422 (comment).
@NestedValidationdecorator correctly assigns validation errorsUntil now the errors from a nested validation in some cases were incorrectly assigned
... (truncated)
Commits
- See full diff in compare view
Maintainer changes
This version was pushed to npm by typestack-release-bot, a new releaser for class-validator since your current version.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- @dependabot rebasewill rebase this PR
- @dependabot recreatewill recreate this PR, overwriting any edits that have been made to it
- @dependabot mergewill merge this PR after your CI passes on it
- @dependabot squash and mergewill squash and merge this PR after your CI passes on it
- @dependabot cancel mergewill cancel a previously requested merge and block automerging
- @dependabot reopenwill reopen this PR if it is closed
- @dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- @dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- @dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- @dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- @dependabot use these labelswill set the current labels as the default for future PRs for this repo and language
- @dependabot use these reviewerswill set the current reviewers as the default for future PRs for this repo and language
- @dependabot use these assigneeswill set the current assignees as the default for future PRs for this repo and language
- @dependabot use this milestonewill set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the Security Alerts page.