class-transformer
Advanced tools
Changelog
[0.5.1][v0.5.1] [BREAKING CHANGE] - 2021-11-22
classToPlain
and plainToClass
Changelog
[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.
See the breaking changes from 0.4.1
release. It was accidentally released as patch version.
Changelog
[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.
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
plaintToclass
when union-type member is undefinedChangelog
[0.4.0][v0.4.0] [BREAKING CHANGE] - 2021-02-14
See the breaking changes from 0.3.2
release. It was accidentally released as patch version.
group
information is exposed in the @Transform
handler@Transform
handlerdiscriminator.subTypes
is not definedChangelog
[0.3.2][v0.3.2] [BREAKING CHANGE] - 2021-01-14
Signature change for @Transform
decorator
From this version the @Transform
decorator receives the transformation parameters in a a wrapper object. You need to
destructure the values you are interested in.
Old way:
@Transform((value, obj, type) => /* Do some stuff with value here. */)
New way with wrapper object:
@Transform(({ value, key, obj, type }) => /* Do some stuff with value here. */)
exposeDefaultValues
option has been added, when enabled properties will use their default values when no value is present for the property@Transform
decoratorMap
(#319)Changelog
[0.3.1][v0.3.1] - 2020-07-29
Changelog
[0.2.3][v0.2.3] [BREAKING CHANGE]
enableImplicitConversion
has been added and imlplicit value conversion is disabled by default.@Exclude
decorator.Changelog
[0.2.2][v0.2.2] [BREAKING CHANGE]
NOTE: This version is deprecated.
This version has introduced a breaking-change when this library is used with class-validator. See #257 for details.
Changelog
[0.2.1][v0.2.1]
NOTE: This version is deprecated.
excludeExtraneousValues
optionChangelog
[0.2.0][v0.2.0] [BREAKING CHANGE]
Set
s and Map
snull
values as primitives