Skip to content

fix(deps): update dependency class-transformer to ^0.5.0 - autoclosed

Renovate-Bot requested to merge renovate/class-transformer-0.x into V2.0

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

Compare Source

Changed
  • re-added accidentally removed deprecated function names classToPlain and plainToClass

v0.5.0

Compare Source

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

Compare Source

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

Compare Source

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

Compare Source

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
  • fixed an issue with transforming Map (#​319)
  • fixed an issue with sourcemap generation (#​472)
Changed
  • various internal refactors
  • various changes to the project tooling
  • various dev-dependencies has been updated

Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever MR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • If you want to rebase/retry this MR, click this checkbox.

This MR has been generated by Renovate Bot.

Merge request reports