Releases: dipscope/TypeManager.TS
Releases · dipscope/TypeManager.TS
v4.0.2
v4.0.1
v4.0.0
Added
- Polymorphic types support.
- Enums support.
- Accessors support.
- Multiple runtime configurations support.
Changed
- Newly introduced
TypeFn
is now used instead ofTypeCtor
in configure methods due to adding polymorphic types support. - Static methods of
TypeManager
now return static instance to enable method chaining.
Migrating from previous version
- Replace
TypeCtor
withTypeFn
if you are using declarative configuration.
v3.0.0
Added
- Generics support.
- Circular object reference support.
- Short property declaration syntax.
- Naming convention support.
- Module separation.
- New set of serializers.
Changed
- Core types, interfaces and classes moved to a core module to keep main namespace clean.
- All decorators are now available from the main namespace.
Fixed
- Invalid implicit conversion of boolean serializer.
- Properties were not assigned during deserialization if they already have initialized value.
Removed
- Multiple decorator and related options as they are no longer required.
Migrating from previous version
- Replace all core type and interface imports from
@dipscope/type-manager
to@dipscope/type-manager/core
. - Replace all helper decorator imports from
@dipscope/type-manager/helpers
to@dipscope/type-manager
. - Change all places where
Property
decorator is used to declare an array of types to a proper generic variant. - If you are using
TypeSerializer
,TypeFactory
,TypeInjector
helper decorators or interfaces then rename them toSerializer
,Factory
,Injector
accordingly. - If you are using
typeAlias
ortypeResolver
property options replace them totypeArgument
.
v2.0.4
v2.0.3
v2.0.2
v2.0.1
v2.0.0
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 toTypeSerializer
. - For all helper decorators change imports to
@dipscope/type-manager/helpers
. Now they are located in their own namespace.