fix(deps): update dependency class-transformer to ^0.5.0 - autoclosed
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
class-transformer | dependencies | minor | ^0.3.1 -> ^0.5.0 |
Release Notes
typestack/class-transformer
v0.5.1
Changed
- re-added accidentally removed deprecated function names
classToPlain
andplainToClass
v0.5.0
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.
v0.4.1
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 - fixed a scenario when a specially crafted JS object would be parsed to Array
Changed
- various dev-dependencies updated
v0.4.0
Breaking Changes
See the breaking changes from 0.3.2
release. It was accidentally released as patch version.
Added
- add option to ignore unset properties
-
group
information is exposed in the@Transform
handler - transformation options are exposed in the
@Transform
handler
Fixed
- fixed TypeError when
discriminator.subTypes
is not defined
Changed
- various dev-dependencies has been updated
v0.3.2
Breaking Changes
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. */)
Added
-
exposeDefaultValues
option has been added, when enabled properties will use their default values when no value is present for the property - the name of the currently transformed parameter is exposed in the
@Transform
decorator
Fixed
Changed
- various internal refactors
- various changes to the project tooling
- various dev-dependencies has been updated
Configuration
-
If you want to rebase/retry this MR, click this checkbox.
This MR has been generated by Renovate Bot.