Skip to content

Latest commit

Β 

History

History
217 lines (121 loc) Β· 11.5 KB

CHANGELOG.md

File metadata and controls

217 lines (121 loc) Β· 11.5 KB

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)