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
[0.3.2][v0.3.2] [BREAKING CHANGE] - 2021-01-14
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
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps class-transformer from 0.3.1 to 0.4.0.
Changelog
Sourced from class-transformer's changelog.
... (truncated)
Commits
ab093a3
merge: release 0.4.0 (#593)a101300
docs: update changelog for 0.4.0ba1b3b8
build: bump version to 0.4.029a6c77
docs: add changelog for 0.4.02356b3a
feat: add option to ignore unset fields during class to plain transformation8d52929
build: update ts-jest config9858a8c
build(deps-dev): bump@typescript-eslint/parser
from 4.13.0 to 4.15.0 (#588)b50a156
build(deps-dev): bump@typescript-eslint/eslint-plugin
(#592)5a8b033
build: auto-merge dependency updatesad2840f
build(deps-dev): bump typescript from 4.1.3 to 4.1.5 (#591)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)