- improve MetadataStorage perf by changing from Arrays to ES6 Maps by @sheiidan
- fixed getAncestor issue with unknown nested properties by @247GradLabs
- objects with
null
prototype are converted properly now - objects with unknown non primitive properties are converted properly now
- corrected a typo in the README.md
- fixed the deserialize example in the README.md
- added
TransformClassToPlain
andTransformClassToClass
decorators
- renamed library from
constructor-utils
toclass-transformer
- completely renamed most of names
- renamed all main methods:
plainToConstructor
now isplainToClass
andconstructorToPlain
isclassToPlain
, etc. plainToConstructorArray
method removed - nowplainToClass
handles it@Skip()
decorator renamed to@Exclude()
- added
@Expose
decorator - added lot of new options: groups, versioning, custom names, etc.
- methods and getters that should be exposed must be decorated with
@Expose
decorator - added
excludedPrefix
to class transform options that allows exclude properties that start with one of the given prefix
- fixed array with primitive types being converted
- fixed bugs when getters are not converted with es6 target
- fixed issue #4
- added type guessing during transformation from constructor to plain object
- added sample with generics
- renamed
constructor-utils/constructor-utils
toconstructor-utils
package namespace
- removed code mappings from package
- removed
import "reflect-metadata"
from source code. Now reflect metadata should be included like any other shims.
- Library has changed its name from
serializer.ts
toconstructor-utils
. - Added
constructor-utils
namespace.