Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented May 12, 2021

This PR contains the following updates:

Package Change Age Confidence
class-transformer ^0.3.1 -> ^0.5.0 age confidence

Release Notes

typestack/class-transformer (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: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

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

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

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


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/class-transformer-0.x branch from 6a97959 to d59d935 Compare May 14, 2021 11:26
@renovate renovate bot changed the title fix(deps): update dependency class-transformer to ^0.4.0 fix(deps): update dependency class-transformer to v0.4.0 May 14, 2021
@renovate renovate bot force-pushed the renovate/class-transformer-0.x branch 2 times, most recently from eba69ad to 0d0220d Compare May 17, 2021 08:25
@renovate renovate bot force-pushed the renovate/class-transformer-0.x branch 2 times, most recently from 3bc457e to 88c0201 Compare June 21, 2021 05:17
@renovate renovate bot force-pushed the renovate/class-transformer-0.x branch from 88c0201 to 38470eb Compare March 7, 2022 10:27
@renovate renovate bot changed the title fix(deps): update dependency class-transformer to v0.4.0 fix(deps): update dependency class-transformer to v0.5.1 Mar 7, 2022
@renovate renovate bot force-pushed the renovate/class-transformer-0.x branch from 38470eb to 3b11678 Compare November 20, 2022 12:33
@renovate renovate bot changed the title fix(deps): update dependency class-transformer to v0.5.1 fix(deps): update dependency class-transformer to ^0.5.0 Nov 20, 2022
@renovate renovate bot force-pushed the renovate/class-transformer-0.x branch from 3b11678 to 39c8559 Compare November 10, 2025 19:52
@renovate renovate bot force-pushed the renovate/class-transformer-0.x branch from 39c8559 to 57d838c Compare November 18, 2025 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant