Releases: pcafstockf/async-injection
Releases · pcafstockf/async-injection
Improved handling of Reflect meta-data
Minor tweaks and updates
- Backwards compatible binder api updates.
- Update patch level dependencies.
Improved class constructor parameter type recognition
- Improved handling of class constructor parameter type recognition.
- Update dependencies.
Fix esm issues
Updated docs
- No code changes.
- Updates to docs for consistency across projects.
devDependencies update
- Update devDependencies.
- Update github workflows.
- Update badges in main ReadMe.
- Add support directory.
Container cloning
- Add experimental ability to clone a Container (see Container.clone JSDoc comments for details).
- Fix error handling callback to pass instantiated object when construction succeeds but post construction fails.
- Reformat code project wide (based on IntelliJ formatting options).
Support optional typing for interfaces and constants
- Add Angular style InjectionToken class as a variant of InjectableId to support implicit typing of constants and interfaces.
- Minor update to Binder.resolveSingletons to make it chainable (aka return the Container/Binder instance).
- Minor updates to ReadMe.
Support resource cleanup for Singletons
For Singleton type services, the @Release decorator allows for notification to a service when it is no longer needed (e.g. service.destroy()
).
The Container.releaseSingletons
method can be used to release all Singletons in a Container
. This might be done for instance when you have allocated a child Container
for the duration of a single transaction and want to quickly unsubscribe and release resources allocated during that transaction, before also dropping your reference to the child Container
itself.
Update devDependencies.
Type fixes
Revert type declaration for AbstractConstructor which was broken during eslint integration.
Update eslint related dev-dependencies.