Skip to content

Commit ad76890

Browse files
docs: add changelog for 0.14.0
1 parent 9a775c5 commit ad76890

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

CHANGELOG.md

+53
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,59 @@
22

33
_This changelog follows the [keep a changelog][keep-a-changelog]_ format to maintain a human readable changelog.
44

5+
### [0.14.0](https://github.com/typestack/class-validator/compare/v0.13.2...v0.14.0) (2022-12-09)
6+
7+
### Added
8+
9+
- add `@IsTimeZone` decorator to check if given string is valid IANA time zone
10+
- add `@IsISO4217CurrencyCode` decorator to check if the string is an ISO 4217 currency code
11+
- add `@IsStrongPassword` decorator to check if given password matches specific complexity criteria
12+
- add `@IsBase58` decorator to check if a string is base58 encoded
13+
- add `@IsTaxId` decorator to check if a given string is a valid tax ID in a given locale
14+
- add support for passing function as date generator in `@MinDate` and `@MaxDate` decorators
15+
- add option to print constraint error message instead of constraint type in validation error
16+
- improve decorator metadata lookup performance
17+
- return possible values in error message for `@IsEnum` decorator
18+
19+
### Fixed
20+
21+
- re-added `@types/validator` as dependency
22+
- fix error generation when using `@NestedValidation`
23+
- pass validation options correctly to validator in `@IsDateString` decorator
24+
- support passing `Symbol` as parameter in error message generation
25+
- specify supported locales for `@IsAlphanumeric` decorator
26+
- correctly assign decorator name in metadata instead of loosing it
27+
- fix various spelling errors in documentation
28+
- fix various spelling errors and inconsistencies in JSDoc for decorators
29+
30+
### Changed
31+
32+
- remove documentation about deprecated schema based validation and added warning
33+
- update warning message logged about missing decorator metadata
34+
- update `libphonenumber-js` to `^1.10.14` from `^1.9.43`
35+
- update various dev-dependencies
36+
37+
### BREAKING CHANGES
38+
39+
**`forbidUnknownValues` option is enabled by default**
40+
41+
From this release the `forbidUnknownValues` is enabled by default. This is the desired behavior for majority of
42+
use-cases, but this change may break validation for some. The two scenarios that results in failed validation:
43+
44+
- when attempting to validate a class instance without metadata for it
45+
- when using group validation and the specified validation group results in zero validation applied
46+
47+
The old behavior can be restored via specifying `forbidUnknownValues: false` option when calling the validate functions.
48+
49+
For more details see [PR #1798](https://github.com/typestack/class-validator/pull/1798) and [#1422 (comment)](https://github.com/typestack/class-validator/issues/1422#issuecomment-1317953863).
50+
51+
**`@NestedValidation` decorator correctly assigns validation errors**
52+
53+
Until now the errors from a nested validation in some cases were incorrectly assigned
54+
to the parent instead of the child being validated. Now the validation errors are correctly assigned.
55+
56+
For more details see [#679](https://github.com/typestack/class-validator/issues/679).
57+
558
### [0.13.2](https://github.com/typestack/class-validator/compare/v0.13.1...v0.13.2) (2021-11-20)
659

760
> **NOTE:** This version fixes a security vulnerability allowing denial of service attacks with a specially crafted request payload.

0 commit comments

Comments
 (0)