NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #2838 most downloaded on npm
Proper decorator-based transformation / serialization / deserialization of plain javascript objects to class constructors
Last release 5 years ago
no release in 18 months
Release timing varies
gaps range from 2 weeks to 1.2 years
Some releases are documented
notes for 10 of 17 stable releases
4 versions withdrawn
withdrawn after publishing
10 years old
31 releases · first in 2016
re-added accidentally removed deprecated function names classToPlain and plainToClass
classToPlain and plainToClass> NOTE: This version fixes a security vulnerability allowing denial of service attacks with a specially crafted request payload. Please update as soon…
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.
One column per quarter.
> NOTE: This version fixes a security vulnerability allowing denial of service attacks with a specially crafted request payload. Please update as soon…
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 -> instanceToPlainplainToClass -> plainToInstanceclassToClass -> instanceToInstanceplaintToclass when union-type member is undefinedSee the breaking changes from 0.3.2 release. It was accidentally released as patch version.
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 definedSignature change for `@Transform` decorator From this version the @Transform decorator receives the transformation parameters in a a wrapper object. Y
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)table of content added to readme
build: bump version to 0.2.3
build: bump version to 0.2.3
enableImplicitConversion has been added and imlplicit value conversion is disabled by default.@Exclude decorator.build: bump version to 0.2.2
build: bump version to 0.2.2
NOTE: This version is deprecated.
This version has introduced a breaking-change when this library is used with class-validator. See #257 for details.
docs: add changelog for 0.2.1
docs: add changelog for 0.2.1
NOTE: This version is deprecated.
excludeExtraneousValues optionbuild: bump verstion to 0.2.0
build: bump verstion to 0.2.0
Sets and Mapsnull values as primitivesimprove MetadataStorage perf by changing from Arrays to ES6 Maps by @sheiidan
objects with null prototype are converted properly now
null prototype are converted properly nowNothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
added TransformClassToPlain and TransformClassToClass decorators
TransformClassToPlain and TransformClassToClass decoratorsNothing published for this version
Nothing published for this version
Nothing published for this version
renamed library from constructor-utils to class-transformer
constructor-utils to class-transformerplainToConstructor now is plainToClass and constructorToPlain is classToPlain, etc.plainToConstructorArray method removed - now plainToClass handles it@Skip() decorator renamed to @Exclude()@Expose decorator@Expose decoratorexcludedPrefix to class transform options that allows exclude properties that start with one of the given prefixNothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →