Skip to content

Releases: dipscope/TypeManager.TS

v2.0.0

22 May 14:51
Compare
Choose a tag to compare

Added

  • Dependency injection support.
  • Immutable types support.
  • Type hint support.
  • Custom data support.

Changed

  • Type serializer now an inteface.
  • Some helper decorators renamed to match option names.
  • Helper decorators moved to their own namespace.

Migrating from previous version

  • Replace extension with implementation for custom type serializers.
  • If your custom serializers uses implicit conversion make it part of the serialize and deserialize methods. You can check if it should be used based on newly introduced serializer context.
  • If you are using Serializer helper decorator then rename it to TypeSerializer.
  • For all helper decorators change imports to @dipscope/type-manager/helpers. Now they are located in their own namespace.

v1.3.0

22 May 14:51
Compare
Choose a tag to compare

Added

  • Type manager methods to configure each option individually.

Fixed

  • Type options were not applied after changes at runtime.

v1.2.2

22 May 14:50
Compare
Choose a tag to compare

Fixed

  • Type error when trying to serialize and deserialize object with null values.
  • Explicit deserialization of properties.

v1.2.1

22 May 14:50
Compare
Choose a tag to compare

Fixed

  • Broken exports for browser based applications.

v1.2.0

22 May 14:49
Compare
Choose a tag to compare

Added

  • Multiple property option to indicate that certain property is an array when using without reflect metadata.

Fixed

  • Type extraction using reflect metadata.

v1.1.0

22 May 14:49
Compare
Choose a tag to compare

Added

  • Global type options.
  • Default value definition for types and properties.
  • Implicit conversion for types and properties.
  • Type manager stringify and parse methods for working with JSON.