This repository was archived by the owner on Apr 21, 2024. It is now read-only.
Releases: Coder-Spirit/lambda-ioc
Releases · Coder-Spirit/lambda-ioc
Release list
1.0.0
Breaking changes
- Removed
constructorcombinator. This was done because after introducingregisterConstructorandregisterAsyncConstructor(which are much more powerful), it became completely redundant. Removing it will help to make the library more lightweight, and to have a simpler API.
0.8.0
New Features
This release introduces a new function cc2ic that helps dealing with the injection of concrete class constructors, allowing us to "interpret" them as "interface constructors".
This can be very helpful, as we depend on abstract interfaces, but we inject concrete implementations, and it is very difficult to encode this information into the complex types we use in Lambda-IOC.
0.7.1
0.7.0
New Features / Fixes
- Implemented new method
registerConstructor, that allows to register constructors without having to rely on theconstructorcombinator. - Implemented indirect self resolution for the methods:
registerConstructorregisterAsyncConstructor
0.6.0
0.5.1
0.5.0
0.4.0
New features
resolveGroup: Now we can resolve a group of dependencies in just one single call.resolveGroupAsync
Dependencies belong to a group if their name is of the form:
`${groupName}:${string}` // Examples: 'controllers:login', 'controllers:logout'0.3.0
Improvements
- Stricter type checks for dependencies re-registration
- Performance improvement: avoid internal clone operations when possible
Development
- Increased testing coverage: it was already maxed at 100%, but the value is misleading, certain aspects of the library (mostly typing) were not covered. This is still true, even if "real" coverage is now higher.