Skip to content

Commit

Permalink
merge: release 0.5.0 (#993)
Browse files Browse the repository at this point in the history
  • Loading branch information
NoNameProvided authored Nov 20, 2021
2 parents 9c9d7f6 + f9441d8 commit 12fb2c6
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
20 changes: 19 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,27 @@

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

### [0.4.1][v0.4.1] - 2021-11-20
### [0.5.0][v0.5.0] [BREAKING CHANGE] - 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.
#### Breaking Changes

See the breaking changes from `0.4.1` release. It was accidentally released as patch version.

### [0.4.1][v0.4.1] [BREAKING CHANGE] - 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.
#### Breaking Changes

**Exported functions has been renamed**
Some of the exported functions has been renamed to better reflect what they are doing.

- `classToPlain` -> `instanceToPlain`
- `plainToClass` -> `plainToInstance`
- `classToClass` -> `instanceToInstance`

#### Fixed

- prevent unhandled error in `plaintToclass` when union-type member is undefined
Expand Down Expand Up @@ -212,6 +229,7 @@ This version has introduced a breaking-change when this library is used with cla
- Library has changed its name from `serializer.ts` to `constructor-utils`.
- Added `constructor-utils` namespace.

[v0.5.0]: https://github.com/typestack/class-transformer/compare/v0.4.1...v0.5.0
[v0.4.1]: https://github.com/typestack/class-transformer/compare/v0.4.0...v0.4.1
[v0.4.0]: https://github.com/typestack/class-transformer/compare/v0.3.2...v0.4.0
[v0.3.2]: https://github.com/typestack/class-transformer/compare/v0.3.1...v0.3.2
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "class-transformer",
"version": "0.4.1",
"version": "0.5.0",
"description": "Proper decorator-based transformation / serialization / deserialization of plain javascript objects to class constructors",
"author": "TypeStack contributors",
"license": "MIT",
Expand Down

0 comments on commit 12fb2c6

Please sign in to comment.