4.2.0 (2021-06-15)
4.1.0 (2021-06-09)
- add @micalevisk as a contributor (29500ad)
- add @AliYusuf95 as a contributor (956aceb)
- update docusaurus beta (9e09d67)
4.0.0 (2021-05-18)
- Upgrade to Nx 12.3.3
- upgrade Nx (ea0eff6)
- upgrade packages (329828e)
- core: add partial support for ES6 computed property names (#293) (93d3f66), closes #289
3.5.2 (2021-04-09)
- types: remove all named tuples to support TS <4 (9de3c72)
- classes: add more comments to AutoMap decorator (b00a01c)
3.5.1 (2021-04-09)
- classes: only save metadata if typeFn is not null (3f03f8c)
3.5.0 (2021-04-07)
- classes: add logic to handle getter only properties (d081ac6)
- classes:
AutoMap
decorator now accepts anAutoMapOptions
instead. The other usage have been marked deprecated.
class Foo {
// before
@AutoMap(() => Bar)
bar: Bar;
// after
@AutoMap({ typeFn: () => Baz })
baz: Baz;
}
- core: allow mapWithArguments to accept Resolver (8f1dfc6)
- core: move isResolver to utils (ea2bc42)
- update docs deps and add new docs (16719ff)
3.4.2 (2021-03-22)
- core: pass extraArguments down to nested mapping (10465be)
3.4.1 (2021-03-16)
- nestjs: fix memoize util (e56887b)
3.4.0 (2021-03-14)
- nestjs: add MapPipe to transform Query and Body (d8198e0)
- core: add non-null assertion to mapMemberFn[misc] when transformation type is MapFrom/MapWith (746e94e)
- add docs about MapPipe (8a8d673)
3.3.0 (2021-03-12)
- classes: expose getMetadataList as public API (b5bde21)
- classes/mapped-types: add Mapped Types (46e02ba)
3.2.2 (2021-03-06)
- sequelize: only run intiialize on sequelize model (05c3d82)
3.2.1 (2021-03-06)
- sequelize: make options optional (8355120)
3.2.0 (2021-03-06)
- core: use postMap if available (fb22792)
- sequelize: add postMap to instantiate a Model instance from map result (9552516)
- types: add postMap to MapPlugin (bbdd895)
3.1.0 (2021-03-06)
- classes: move all single functions to exported utils (219b917)
- core: make sure to bind plugin to preMap this context (19479a3)
- types: add instantiate to MapPlugin public API (53343f9)
- classes: expose Constructible type (2c3eaf0)
- classes: expose instantiate (b2dd592)
- pojos: expose instantiate as public API (528b193)
- sequelize: add sequelize plugin (b9105bb)
3.0.11 (2021-03-04)
- core: null check for source selector on MapFrom (a489d9c)
3.0.10 (2021-02-26)
- classes: make sure to reassign metadataList (ebd53dc)
3.0.9 (2021-02-26)
- core: use isEmpty to check for nested metakey instead of using length (0329e6e)
3.0.8 (2021-02-24)
- classes: clean up optional chaining operator on function calls (e6c3299)
- core: clean up optional chaining (d223d79)
- core: run beforeMap in mapArray with an empty array instead (2975071)
- nestjs: revert back to resolved Promise. nextTick seems to run a little behind (5a91c31)
- nestjs: use process.nextTick instead of resolved Promise (4dd8da6)
- pojos: clean up optional chaining operator on function calls (65304a7)
3.0.7 (2021-02-22)
3.0.6 (2021-02-21)
- experimental/transformer-plugin: adjust transformer plugin to have a workaround for ESM (1f862d0)
3.0.5 (2021-02-19)
- classes: merge metadata from Reflection and Factory fn (393a7d3)
- experimental/transformer-plugin: fix options (bac5074)
- experimental/transformer-plugin: adjust merging options with default options (c4c123b)
3.0.2 (2021-02-19)
3.0.1 (2021-02-19)
- experimental/transformer-plugin: move into classes (05aae8a)
3.0.0 (2021-02-19)
- classes: treat property as primitives if metaResult is null. Default Date to undefined if valueAtKey is undefined (8e17527), closes #254
- core: treat null metadata/Date same as null value aka just map the value. add logic for isNullMetadata to MappingPropert (97f260d)
- pojos: treat property as primitives if metaResult is null. Date member to be returned as undefined if valueAtKey is undefined (3e474ab)
- types: add isNullMetadata to MappingTransformation (a0b39d9)
- classes: add logic to take advantage of transformer plugin if used (f3aca21)
- experimental/transformer-plugin: add transformer plugin for classes package (67cdd29)
- pojos: allow to pass in null for createMetadataMap to treat something as primitives (7357ad5)
- pojos: Previously,
null
was used to skip properties. Now, usefalse
instead,null
means something else.
2.2.1 (2021-02-14)
- core: move isDateConstructor and isPrimitiveConstructor from plugins to core (997528b)
- core: utilize extraArguments in mapArray (ac5bb40)
- core: clean up misc (61f4f65)
- classes/pojos: use
isDateConstructor
andisPrimitiveConstructor
from core (b1dc211, 66a2f33)
2.2.0 (2021-02-14)
2.1.1 (2021-02-06)
- core: null/undefined check for source in map and mapArray (b37d29a)
2.1.0 (2021-02-03)
- adjust config (b074b21)
- classes: add AUTOMAP_PROPERTIES_METADATA_KEY to public api (1165380)
2.0.1 (2021-02-02)
2.0.0 (2021-01-31)
- enable strict mode (6456bec)
- classes: strict mode friendly (bac51e9)
- core: strict mode friendly (5178c3c)
- nestjs: strict mode friendly (64abad4)
- pojos: strict mode friendly (deedc1b)
- types: strict mode friendly (f8e6211)
- This release enables strict mode for automapper. The type is stricter which might affect your current implementations.
1.2.0 (2021-01-31)
- core: add logic to run preMapArray if available when invoking mapArray (f1f97f3)
- types: add MapArrayOptions and adjust mapArray signature (9d2df49)
- Add documentation on how to extend a plugin. Please check Docs for more information.
1.1.1 (2021-01-30)
- classes: ensure to use return value of concat() (705cbec)
1.1.0 (2021-01-30)
- classes: adjust code smell (cf53a1f)
- core: adjust code smell (736f58d)
- pojos: adjust code smell (4682fbf)
- core: better error message for mapping operation error (550d8e8)
1.0.4 (2021-01-29)
- nestjs: ensure mapper is safe for accessing with optional chaining (83307f5)
1.0.3 (2021-01-28)
- pojos: add Array to isPrimitiveConstructor. This is to match with the behavior in
classes
(6415463)
1.0.2 (2021-01-28)
1.0.1 (2021-01-25)
1.0.0 (2021-01-17)
Please check out README for more information
1.0.0-beta.9 (2021-01-11)
- nestjs: use
global
options inDynamicModule
forforRoot
instead of@Global
decorator (8f05d8f)
- nestjs: adjust globalNamingConventions options to also accept a single NamingConvention (822c790)
- nestjs: add MapInterceptor (1a811e5)
1.0.0-beta.8 (2021-01-09)
- core: adjust public API of core (d86af1d)
1.0.0-beta.7 (2021-01-08)
- core: adjust getFlatteningSourcePath to take into account multiple parts path with naming conventions (811568e)
1.0.0-beta.6 (2021-01-07)
- core: add ability to pass in destinationObj and mutate on map instead of return (46e920d)
- core: adjust set() to have setMutate() and not return (bdd6d17)
1.0.0-beta.5 (2021-01-05)
- classes: rename types.d.ts to types.ts to include with bundle (3a15f72)
- pojos: adjust typings for createMetadataMap (18cc504)
1.0.0-beta.4 (2021-01-05)
- core: remove properties added by istanbul for not failing in test coverage (1dcdcdb)
1.0.0-beta.3 (2021-01-04)
- classes: skip empty metadataList before looping (88ecf9c)
- core: check null and fail fast in getPathRecursive (449da22)
1.0.0-beta.2 (2021-01-04)
1.0.0-beta.1 (2021-01-04)
- core: adjust isDefined (6187453)