Skip to content

Latest commit

Β 

History

History
415 lines (233 loc) Β· 21 KB

CHANGELOG.md

File metadata and controls

415 lines (233 loc) Β· 21 KB

4.2.0 (2021-06-15)

Features

4.1.0 (2021-06-09)

Features

  • core: use proxy to get members from selector function (#301) (704c6ad)

Documentations

4.0.0 (2021-05-18)

⚠ BREAKING CHANGES

  • Upgrade to Nx 12.3.3

Features

3.5.2 (2021-04-09)

Bug Fixes

  • types: remove all named tuples to support TS <4 (9de3c72)

Documentations

  • classes: add more comments to AutoMap decorator (b00a01c)

3.5.1 (2021-04-09)

Bug Fixes

  • classes: only save metadata if typeFn is not null (3f03f8c)

3.5.0 (2021-04-07)

Features

  • classes: add logic to handle getter only properties (d081ac6)

Deprecations:

  • classes: AutoMap decorator now accepts an AutoMapOptions 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)

Refactor

  • core: move isResolver to utils (ea2bc42)

Documentations

  • update docs deps and add new docs (16719ff)

3.4.2 (2021-03-22)

Bug Fixes

  • core: pass extraArguments down to nested mapping (10465be)

3.4.1 (2021-03-16)

Bug Fixes

  • nestjs: fix memoize util (e56887b)

3.4.0 (2021-03-14)

Features

  • nestjs: add MapPipe to transform Query and Body (d8198e0)

Bug Fixes

  • core: add non-null assertion to mapMemberFn[misc] when transformation type is MapFrom/MapWith (746e94e)

Documentations

3.3.0 (2021-03-12)

Bug Fixes

  • classes: expose getMetadataList as public API (b5bde21)

Features

  • classes/mapped-types: add Mapped Types (46e02ba)

3.2.2 (2021-03-06)

Bug Fixes

  • sequelize: only run intiialize on sequelize model (05c3d82)

3.2.1 (2021-03-06)

Bug Fixes

  • sequelize: make options optional (8355120)

3.2.0 (2021-03-06)

Features

  • 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)

Bug Fixes

  • 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)

Features

  • 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)

Bug Fixes

  • core: null check for source selector on MapFrom (a489d9c)

3.0.10 (2021-02-26)

Bug Fixes

  • classes: make sure to reassign metadataList (ebd53dc)

3.0.9 (2021-02-26)

Bug Fixes

  • core: use isEmpty to check for nested metakey instead of using length (0329e6e)

3.0.8 (2021-02-24)

Bug Fixes

  • 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)

Bug Fixes

  • nestjs: move addProfile code to the micro task queue (70b268c), closes #264

3.0.6 (2021-02-21)

Bug Fixes

  • experimental/transformer-plugin: adjust transformer plugin to have a workaround for ESM (1f862d0)

3.0.5 (2021-02-19)

Bug Fixes

  • 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)

Bug Fixes

  • experimental/transformer-plugin: fix publish (c90047a), closes #261

3.0.1 (2021-02-19)

Bug Fixes

  • experimental/transformer-plugin: move into classes (05aae8a)

3.0.0 (2021-02-19)

Bug Fixes

  • 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)

Features

  • 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)

BREAKING CHANGES

  • pojos: Previously, null was used to skip properties. Now, use false instead, null means something else.

2.2.1 (2021-02-14)

Bug Fixes

  • core: move isDateConstructor and isPrimitiveConstructor from plugins to core (997528b)
  • core: utilize extraArguments in mapArray (ac5bb40)

Refactor

  • core: clean up misc (61f4f65)
  • classes/pojos: use isDateConstructor and isPrimitiveConstructor from core (b1dc211, 66a2f33)

2.2.0 (2021-02-14)

Features

  • core: add mapWithArguments (2732300)
  • types: add mapWithArguments to typing definitions (4b52da3)

2.1.1 (2021-02-06)

Bug Fixes

  • core: null/undefined check for source in map and mapArray (b37d29a)

2.1.0 (2021-02-03)

Bug Fixes

Features

  • classes: add AUTOMAP_PROPERTIES_METADATA_KEY to public api (1165380)

2.0.1 (2021-02-02)

Bug Fixes

  • core: ensure to call mapArray with mapWith if sourceValue is an Array (0eef348), closes #253

2.0.0 (2021-01-31)

Features

  • 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)

BREAKING CHANGES

  • This release enables strict mode for automapper. The type is stricter which might affect your current implementations.

1.2.0 (2021-01-31)

Features

  • core: add logic to run preMapArray if available when invoking mapArray (f1f97f3)
  • types: add MapArrayOptions and adjust mapArray signature (9d2df49)

Documentations

  • Add documentation on how to extend a plugin. Please check Docs for more information.

1.1.1 (2021-01-30)

Bug Fixes

  • classes: ensure to use return value of concat() (705cbec)

1.1.0 (2021-01-30)

Bug Fixes

  • classes: adjust code smell (cf53a1f)
  • core: adjust code smell (736f58d)
  • pojos: adjust code smell (4682fbf)

Features

  • core: better error message for mapping operation error (550d8e8)

1.0.4 (2021-01-29)

Bug Fixes

  • nestjs: ensure mapper is safe for accessing with optional chaining (83307f5)

1.0.3 (2021-01-28)

Bug Fixes

  • pojos: add Array to isPrimitiveConstructor. This is to match with the behavior in classes (6415463)

1.0.2 (2021-01-28)

Bug Fixes

  • classes: isPrimitiveConstructor also returns true for Array constructor (c5d111d), closes #249

1.0.1 (2021-01-25)

Bug Fixes

  • nestjs: make sure mapOptions passed in as null if it's empty (93e3761), closes #247

1.0.0 (2021-01-17)

Official release 1.0.0

Please check out README for more information

1.0.0-beta.9 (2021-01-11)

Refactor

  • nestjs: use global options in DynamicModule for forRoot instead of @Global decorator (8f05d8f)

Bug Fixes

  • nestjs: adjust globalNamingConventions options to also accept a single NamingConvention (822c790)

Features

  • nestjs: add MapInterceptor (1a811e5)

1.0.0-beta.8 (2021-01-09)

Refactor

  • core: adjust public API of core (d86af1d)

1.0.0-beta.7 (2021-01-08)

Bug Fixes

  • core: adjust getFlatteningSourcePath to take into account multiple parts path with naming conventions (811568e)

1.0.0-beta.6 (2021-01-07)

Features

  • 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)

Bug Fixes

  • 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)

Bug Fixes

  • core: remove properties added by istanbul for not failing in test coverage (1dcdcdb)

1.0.0-beta.3 (2021-01-04)

Bug Fixes

  • 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)

1.0.0-beta.0 (2021-01-04)

Bug Fixes

Features

  • nestjs: add nestjs integration package (db550c3)
  • add core (04cd18c)
  • prepare for beta (17e2199)
  • start working on some core functionalities (5d4fe2b)