Skip to content

Commit 12fb2c6

Browse files
merge: release 0.5.0 (#993)
2 parents 9c9d7f6 + f9441d8 commit 12fb2c6

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

CHANGELOG.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,27 @@
22

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

5-
### [0.4.1][v0.4.1] - 2021-11-20
5+
### [0.5.0][v0.5.0] [BREAKING CHANGE] - 2021-11-20
66

77
> **NOTE:** This version fixes a security vulnerability allowing denial of service attacks with a specially crafted request payload. Please update as soon as possible.
88
9+
#### Breaking Changes
10+
11+
See the breaking changes from `0.4.1` release. It was accidentally released as patch version.
12+
13+
### [0.4.1][v0.4.1] [BREAKING CHANGE] - 2021-11-20
14+
15+
> **NOTE:** This version fixes a security vulnerability allowing denial of service attacks with a specially crafted request payload. Please update as soon as possible.
16+
17+
#### Breaking Changes
18+
19+
**Exported functions has been renamed**
20+
Some of the exported functions has been renamed to better reflect what they are doing.
21+
22+
- `classToPlain` -> `instanceToPlain`
23+
- `plainToClass` -> `plainToInstance`
24+
- `classToClass` -> `instanceToInstance`
25+
926
#### Fixed
1027

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

232+
[v0.5.0]: https://github.com/typestack/class-transformer/compare/v0.4.1...v0.5.0
215233
[v0.4.1]: https://github.com/typestack/class-transformer/compare/v0.4.0...v0.4.1
216234
[v0.4.0]: https://github.com/typestack/class-transformer/compare/v0.3.2...v0.4.0
217235
[v0.3.2]: https://github.com/typestack/class-transformer/compare/v0.3.1...v0.3.2

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "class-transformer",
3-
"version": "0.4.1",
3+
"version": "0.5.0",
44
"description": "Proper decorator-based transformation / serialization / deserialization of plain javascript objects to class constructors",
55
"author": "TypeStack contributors",
66
"license": "MIT",

0 commit comments

Comments
 (0)