Skip to content

Commit

Permalink
docs: add changelog for 0.13.2
Browse files Browse the repository at this point in the history
  • Loading branch information
NoNameProvided committed Nov 20, 2021
1 parent 70278ab commit 495a275
Showing 1 changed file with 93 additions and 73 deletions.
166 changes: 93 additions & 73 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,43 @@
## [0.13.1](https://github.com/typestack/class-validator/compare/v0.13.0...v0.13.1) (2021-01-14)
# Changelog

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

### [0.13.2](https://github.com/typestack/class-validator/compare/v0.13.1...v0.13.2) (2021-11-20)

> __NOTE:__ This version fixes a security vulnerability allowing denial of service attacks with a specially crafted request payload.
> Please update as soon as possible.
#### Fixed

- switched to use `Array.isArray` in array checks from `instanceof` operator

#### Changed

- `libphonenumber-js` package updated to `1.9.43` from `1.9.7`
- `validator` package updated to `13.5.2` from `13.5.2`
- various dev-dependencies updated

### [0.13.1](https://github.com/typestack/class-validator/compare/v0.13.0...v0.13.1) (2021-01-14)

#### Added

- optional mather function has been added to the `ArrayUnique` decorator

### Fixed
#### Fixed

- a typo was fixed in the error message generated by the `IsUUID` decorator
- calling `ValidationError.toString()` doesn't result in an error when `forbidNonWhitelisted` parameter was used
- fixed typo in error message generated by `IsIn` decorator
- the `@types/validator` package is correctly installed
- `inlineSources` option is enabled in tsconfig preventing various sourcemap errors when consuming the package

### Changed
#### Changed

- various dev dependencies has been updated

## [0.13.0](https://github.com/typestack/class-validator/compare/v0.12.2...v0.13.0) (2021-01-11)
### [0.13.0](https://github.com/typestack/class-validator/compare/v0.12.2...v0.13.0) (2021-01-11)

### Added
#### Added

- **project is restructured to allow three-shaking**
- added option to fail on first validation error (#620)
Expand All @@ -31,28 +50,28 @@
- the 'any' locale is allowed in the `isPostalCode` decorator (#634)
- the `IsDateString()` decorator now aliases the `IsISO8601()` decorator (#672)

### Changed
#### Changed

- project tooling has been updated significantly
- google-libphonenumber has been replaced with libphonenumber-js (this should have no effect on validation)
- build process generates include both ES/CommonJS and UMD variations
- various dev dependencies has been updated

## [0.12.2](https://github.com/typestack/class-validator/compare/v0.12.1...v0.12.2) (2020-04-23)
### [0.12.2](https://github.com/typestack/class-validator/compare/v0.12.1...v0.12.2) (2020-04-23)

### Bug Fixes
#### Fixed

- move `tslib` from `peerDependencies` to `dependencies` ([827eff1](https://github.com/typestack/class-validator/commit/827eff1)), closes [#588](https://github.com/typestack/class-validator/issues/588)

## [0.12.1](https://github.com/typestack/class-validator/compare/v0.12.0...v0.12.1) (2020-04-18)
### [0.12.1](https://github.com/typestack/class-validator/compare/v0.12.0...v0.12.1) (2020-04-18)

### Bug Fixes
#### Fixed

- apply only nested validator for ValidateNested multi-dimensional array ([c463be5](https://github.com/typestack/class-validator/commit/c463be5))

# [0.12.0](https://github.com/typestack/class-validator/compare/v0.11.1...v0.12.0) (2020-04-18)
### [0.12.0](https://github.com/typestack/class-validator/compare/v0.11.1...v0.12.0) (2020-04-18)

### Bug Fixes
#### Fixed

- accept negative timezone in isDateString ([#564](https://github.com/typestack/class-validator/issues/564)) ([2012d72](https://github.com/typestack/class-validator/commit/2012d72)), closes [#565](https://github.com/typestack/class-validator/issues/565)
- apply all decorators type PropertyDecorator ([#556](https://github.com/typestack/class-validator/issues/556)) ([5fb36e3](https://github.com/typestack/class-validator/commit/5fb36e3)), closes [#555](https://github.com/typestack/class-validator/issues/555)
Expand All @@ -65,11 +84,11 @@
- switch isLatitude & isLongitude validators ([#537](https://github.com/typestack/class-validator/issues/537)) ([c27500b](https://github.com/typestack/class-validator/commit/c27500b))
- ValidateNested support multi-dimensional arrays ([#539](https://github.com/typestack/class-validator/issues/539)) ([62678e1](https://github.com/typestack/class-validator/commit/62678e1))

### Code Refactoring
#### Changed

- update build process to enable tree shaking ([#568](https://github.com/typestack/class-validator/issues/568)) ([11a7b8b](https://github.com/typestack/class-validator/commit/11a7b8b)), closes [#258](https://github.com/typestack/class-validator/issues/258) [#248](https://github.com/typestack/class-validator/issues/248) [#247](https://github.com/typestack/class-validator/issues/247) [#212](https://github.com/typestack/class-validator/issues/212)

### Features
#### Added

- sync validatorjs version from v10.11.3 to v13.0.0 ([09120b7](https://github.com/typestack/class-validator/commit/09120b7)), closes [#576](https://github.com/typestack/class-validator/issues/576) [#425](https://github.com/typestack/class-validator/issues/425)

Expand Down Expand Up @@ -99,26 +118,26 @@

- IsNumberString decorator arguments changed to `@IsNumberString(ValidatorJS.IsNumericOptions, ValidationOptions)`.

## [0.11.1](https://github.com/typestack/class-validator/compare/v0.11.0...v0.11.1) (2020-03-18)
### [0.11.1](https://github.com/typestack/class-validator/compare/v0.11.0...v0.11.1) (2020-03-18)

### Bug Fixes
#### Fixed

- IsNumber validator now works when maxDecimalPlaces=0 ([#524](https://github.com/typestack/class-validator/issues/524)) ([b8aa922](https://github.com/typestack/class-validator/commit/b8aa922))

### Features
#### Added

- add all option in isuuid validator ([#452](https://github.com/typestack/class-validator/issues/452)) ([98e9382](https://github.com/typestack/class-validator/commit/98e9382))
- add IsFirebasePushId validator ([#548](https://github.com/typestack/class-validator/issues/548)) ([e7e2e53](https://github.com/typestack/class-validator/commit/e7e2e53))
- add options for isISO8601 validator ([#460](https://github.com/typestack/class-validator/issues/460)) ([90a6638](https://github.com/typestack/class-validator/commit/90a6638))

# [0.11.0](https://github.com/typestack/class-validator/compare/v0.10.2...v0.11.0) (2019-11-01)
### [0.11.0](https://github.com/typestack/class-validator/compare/v0.10.2...v0.11.0) (2019-11-01)

### Bug Fixes
#### Fixed

- create instance of ValidationError for whitelist errors ([#434](https://github.com/typestack/class-validator/issues/434)) ([a98f5dd](https://github.com/typestack/class-validator/commit/a98f5dd)), closes [#325](https://github.com/typestack/class-validator/issues/325)
- pass context for isDefined and custom validators ([#296](https://github.com/typestack/class-validator/issues/296)) ([0ef898e](https://github.com/typestack/class-validator/commit/0ef898e)), closes [#292](https://github.com/typestack/class-validator/issues/292)

### Features
#### Added

- add isHash validator ([#445](https://github.com/typestack/class-validator/issues/445)) ([c454cf9](https://github.com/typestack/class-validator/commit/c454cf9))
- add isISSN validator ([#450](https://github.com/typestack/class-validator/issues/450)) ([4bd586e](https://github.com/typestack/class-validator/commit/4bd586e))
Expand All @@ -130,37 +149,37 @@

- update @types/validator from 11.1.0 to version 12.0.0 - please check it's [changelog][validator-js-release-notes]

## [0.10.2](https://github.com/typestack/class-validator/compare/v0.10.1...v0.10.2) (2019-10-14)
### [0.10.2](https://github.com/typestack/class-validator/compare/v0.10.1...v0.10.2) (2019-10-14)

### Bug Fixes
#### Fixed

- apply custom constraint class validation to each item in the array ([#295](https://github.com/typestack/class-validator/issues/295)) ([5bb704e](https://github.com/typestack/class-validator/commit/5bb704e)), closes [#260](https://github.com/typestack/class-validator/issues/260)

### Features
#### Added

- add isLatLong, isLatitude, isLongtitude validators ([#427](https://github.com/typestack/class-validator/issues/427)) ([3fd15c4](https://github.com/typestack/class-validator/commit/3fd15c4)), closes [#415](https://github.com/typestack/class-validator/issues/415)
- add IsObject and IsNotEmptyObject new decorators ([#334](https://github.com/typestack/class-validator/issues/334)) ([0a41aeb](https://github.com/typestack/class-validator/commit/0a41aeb))
- support ES6 Map and Set for regular validators with each option ([#430](https://github.com/typestack/class-validator/issues/430)) ([a055bba](https://github.com/typestack/class-validator/commit/a055bba)), closes [#428](https://github.com/typestack/class-validator/issues/428)

## [0.10.1](https://github.com/typestack/class-validator/compare/v0.10.0...v0.10.1) (2019-09-25)
### [0.10.1](https://github.com/typestack/class-validator/compare/v0.10.0...v0.10.1) (2019-09-25)

### Bug Fixes
#### Fixed

- add default message for isMilitaryTime validator ([#411](https://github.com/typestack/class-validator/issues/411)) ([204b7df](https://github.com/typestack/class-validator/commit/204b7df)), closes [#287](https://github.com/typestack/class-validator/issues/287)
- add default message for isPort validator ([#404](https://github.com/typestack/class-validator/issues/404)) ([74e568c](https://github.com/typestack/class-validator/commit/74e568c))
- add locale parameter for isAlpha and isAlphanumeric validat… ([#406](https://github.com/typestack/class-validator/issues/406)) ([2f4bf4e](https://github.com/typestack/class-validator/commit/2f4bf4e))

### Features
#### Added

- add `skipUndefinedProperties`, `skipNullProperties` options ([#414](https://github.com/typestack/class-validator/issues/414)) ([76c948a](https://github.com/typestack/class-validator/commit/76c948a)), closes [#308](https://github.com/typestack/class-validator/issues/308)

# [0.10.0](https://github.com/typestack/class-validator/compare/v0.9.1...v0.10.0) (2019-08-10)
### [0.10.0](https://github.com/typestack/class-validator/compare/v0.9.1...v0.10.0) (2019-08-10)

### Bug Fixes
#### Fixed

- add correct signature for custom error message handler ([249c41d](https://github.com/typestack/class-validator/commit/249c41d))

### Features
#### Added

- add `IsISO31661Alpha3` and `IsISO31661Alpha2` validators ([#273](https://github.com/typestack/class-validator/issues/273)) ([55c57b3](https://github.com/typestack/class-validator/commit/55c57b3))
- **IsDecimal:** implement `IsDecimal` from validatorjs ([#359](https://github.com/typestack/class-validator/issues/359)) ([b4c8e21](https://github.com/typestack/class-validator/commit/b4c8e21))
Expand All @@ -176,75 +195,75 @@
- `isDateString` now check to match only entire ISO Date ([#275](https://github.com/typestack/class-validator/issues/275)) ([5012464](https://github.com/typestack/class-validator/commit/5012464))
- remove `IsCurrencyOptions`, `IsURLOptions`, `IsEmailOptions`, `IsFQDNOptions` interfaces and replace with interfaces from `@types/validator`

## [0.9.1](https://github.com/typestack/class-validator/compare/v0.9.0...v0.9.1)
### [0.9.1](https://github.com/typestack/class-validator/compare/v0.9.0...v0.9.1)

### Features
#### Added

- added option to pass custom context for the decorators

### Bug Fixes
#### Fixed

- validating against a schema will validate against that one instead of every registered one

# [0.9.0](https://github.com/typestack/class-validator/compare/v0.8.5...v0.9.0) [BREAKING CHANGE]
### [0.9.0](https://github.com/typestack/class-validator/compare/v0.8.5...v0.9.0) [BREAKING CHANGE]

### Features
#### Added

- updated [validator.js][validator-js] from 9.2.0 to 10.4.0 (Check it's [changelog][validator-js-release-notes] for what has changed.)
- until now fractional numbers was not allowed in the `IsNumberString` decorator, now they are allowed
- until now Gmail addresses could contain multiple dots or random text after a `+` symbol, this is not allowed anymore
- `IsPhoneNumber` decorator has been added which uses the [google-libphonenumber][google-libphonenumber] library to validate international phone numbers accurately

### Bug Fixes
#### Fixed

- update `IsURLOptions` to match underlying validator host list options
- added a console warning when no metadata decorator is found as it's possibly not intended
- the `Min` and `Max` decorator will corectly show an inclusive error message when failing
- fixed a runtime error when `validationArguments.value` is not a string

## [0.8.5](https://github.com/typestack/class-validator/compare/v0.8.4...v0.8.5)
### [0.8.5](https://github.com/typestack/class-validator/compare/v0.8.4...v0.8.5)

### Bug Fixes
#### Fixed

- remove `ansicolor` package, because it's incompatible with IE

## [0.8.4](https://github.com/typestack/class-validator/compare/v0.8.3...v0.8.4)
### [0.8.4](https://github.com/typestack/class-validator/compare/v0.8.3...v0.8.4)

### Features
#### Added

- `ValidatorOptions` now has a `forbidUnknownValues` key to prevent unknown objects to pass validation
- it's highly advised to turn this option on
- now this option defaults to `false` but will be default to `true` after the **1.0** release

## [0.8.3](https://github.com/typestack/class-validator/compare/v0.8.2...v0.8.3)
### [0.8.3](https://github.com/typestack/class-validator/compare/v0.8.2...v0.8.3)

### Bug Fixes
#### Fixed

- handle when `target` property is undefined when calling `ValidationError.toString()`

## [0.8.2](https://github.com/typestack/class-validator/compare/v0.8.1...v0.8.2)
### [0.8.2](https://github.com/typestack/class-validator/compare/v0.8.1...v0.8.2)

### Features
#### Added

- added `ValidationError.toString()` method for easier debugging
- added `printError` method to pretty-print errors in NodeJS or the browser

### Bug Fixes
#### Fixed

- fixed wrong type info in `ValidatorOptions`
- fixed wrong type info in `ValidationSchema` \(the `options` key now is optional\)
- corrected `IsNumericString` to `IsNumberString` in the README
- fixed type of `host_whitelist` and `host_backlist` in `IsURLOptions`

## [0.8.1](https://github.com/typestack/class-validator/compare/v0.8.0...v0.8.1)
### [0.8.1](https://github.com/typestack/class-validator/compare/v0.8.0...v0.8.1)

### Bug Fixes
#### Fixed

- fixed wrong type info in `ValidatorOptions`

# 0.8.0 \[BREAKING CHANGE\]
### 0.8.0 \[BREAKING CHANGE\]

### Features
##### Added

- updated [validator.js][validator-js] from 7.0.0 to 9.2.0 (Check it's [changelog][validator-js-release-notes] for what has changed.)

Expand All @@ -261,52 +280,52 @@
- added option to throw error on unknown properties \(`forbidNonWhitelisted: true`\)
- added `@Allow` decorator to prevent stripping properties without other constraint

### Bug Fixes
#### Fixed

- fixed issue with `@IsDateString` now it allow dates without fraction seconds to be set
- fixed issue with `@IsDateString` now it allow dates without with timezones to be set
- `@ValidateNested` correctly generates validation error on non object and non array values

## 0.6.7
### 0.6.7

### Bug Fixes
#### Fixed

- fixed issue with `@ValidateNested` when nested property is not defined and it throw an error \(\#59\)

## 0.6.5
### 0.6.5

### Bug Fixes
#### Fixed

- fixed bugs with `@IsUrl`, `@IsEmail` and several other decorators

## 0.6.4
### 0.6.4

### Features
#### Added

- added `@IsMilitaryTime` decorator.

## 0.6.3
### 0.6.3

### Features
#### Added

- added `validateOrReject` method which rejects promise instead of returning array of errors in resolved result

## 0.6.1
### 0.6.1

### Features
#### Added

- added `@IsArray` decorator.

# 0.6.0 \[BREAKING CHANGE\]
### 0.6.0 \[BREAKING CHANGE\]

### Features
#### Added

- breaking change with `@ValidateNested` on arrays: Validator now groups the validation errors by sub-object, rather than them all being grouped together. See \#32 for a demonstration of the updated structure.
- added `@ValidateIf` decorator, see conditional validation in docs.

# 0.5.0 \[BREAKING CHANGE\]
### 0.5.0 \[BREAKING CHANGE\]

### Features
#### Added

- async validations must be marked with `{ async: true }` option now.

Expand All @@ -316,15 +335,15 @@
- there is a breaking change in `registerDecorator` method. Now it accepts options object.
- breaking change with `@ValidatorConstraint` decorator. Now it accepts option object instead of single name.

## 0.4.1
### 0.4.1

### Bug Fixes
#### Fixed

- fixed issue with wrong source maps packaged

# 0.4.0 \[BREAKING CHANGE\]
### 0.4.0 \[BREAKING CHANGE\]

### Features
#### Added

- everything should be imported from "class-validator" main entry point now
- `ValidatorInterface` has been renamed to `ValidatorConstraintInterface`
Expand All @@ -343,18 +362,19 @@
- if no groups were specified, decorators with groups now are being ignored
- changed signature of the `ValidationError`. Now if it has nested errors it does not return them in a flat array

### Bug Fixes
#### Fixed

- fixed all decorators that should not work only with strings

# 0.3.0
### 0.3.0

### Features
#### Added

- package has changed its name from `validator.ts` to `class-validator`.
- sanitation functionality has been removed from this library. Use [class-sanitizer][1] instead.
- sanitation functionality has been removed from this library. Use [class-sanitizer][class-sanitizer] instead.

[1]: https://github.com/typestack/class-validator/class-sanitizer
[class-sanitizer]: https://github.com/typestack/class-validator/class-sanitizer
[validator-js]: https://github.com/chriso/validator.js
[validator-js-release-notes]: https://github.com/chriso/validator.js/blob/master/CHANGELOG.md
[google-libphonenumber]: https://github.com/ruimarinho/google-libphonenumber
[keep-a-changelog]: https://keepachangelog.com/en/1.0.0/

0 comments on commit 495a275

Please sign in to comment.