This changelog follows the keep a changelog format to maintain a human readable changelog.
0.3.1 - 2020-07-29
- table of content added to readme
- moved from Mocha to Jest
- added Prettier for code formatting
- added Eslint for linting
- updated CI configuration
- removed some unused dev dependencies
- updated dependencies to latest version
- circular dependency fixed
- dev dependencies removed from package.json before publishing (no more security warnings)
- transformer oder is deterministic now (#231)
- fix prototype pollution issue (#367)
0.2.3 [BREAKING CHANGE]
enableImplicitConversionhas been added and imlplicit value conversion is disabled by default.- reverted #234 - fix: write properties with defined default values on prototype which broke the
@Excludedecorator.
0.2.2 [BREAKING CHANGE]
NOTE: This version is deprecated.
This version has introduced a breaking-change when this library is used with class-validator. See #257 for details.
- implicity type conversion between values.
NOTE: This version is deprecated.
- add option to strip unkown properties via using the
excludeExtraneousValuesoption
0.2.0 [BREAKING CHANGE]
- add documentation for using
Sets andMaps - add opotion to pass a discriminator function to convert values into different types based on custom conditions
- added support for polymorphism based on a named type property
- fix bug when transforming
nullvalues as primitives
- improve MetadataStorage perf by changing from Arrays to ES6 Maps by @sheiidan
- fixed getAncestor issue with unknown nested properties by @247GradLabs
- objects with
nullprototype 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
TransformClassToPlainandTransformClassToClassdecorators
- renamed library from
constructor-utilstoclass-transformer - completely renamed most of names
- renamed all main methods:
plainToConstructornow isplainToClassandconstructorToPlainisclassToPlain, etc. plainToConstructorArraymethod removed - nowplainToClasshandles it@Skip()decorator renamed to@Exclude()- added
@Exposedecorator - added lot of new options: groups, versioning, custom names, etc.
- methods and getters that should be exposed must be decorated with
@Exposedecorator - added
excludedPrefixto 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-utilstoconstructor-utilspackage 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.tstoconstructor-utils. - Added
constructor-utilsnamespace.