Skip to content

Releases: pcafstockf/async-injection

Improved handling of Reflect meta-data

23 May 23:06
Compare
Choose a tag to compare

Minor tweaks and updates

19 Jan 04:41
Compare
Choose a tag to compare
  • Backwards compatible binder api updates.
  • Update patch level dependencies.

Improved class constructor parameter type recognition

16 Nov 01:40
Compare
Choose a tag to compare
  • Improved handling of class constructor parameter type recognition.
  • Update dependencies.

Fix esm issues

06 Jun 01:29
Compare
Choose a tag to compare
  • Address esm issues #10 and #15
    • We now use .js extensions on relative imports.
    • This might break older webpack or tsc versions.
  • Fix missing type overload on Binder interface.
  • Update dev dependencies.

Updated docs

18 Jan 22:48
Compare
Choose a tag to compare
  • No code changes.
  • Updates to docs for consistency across projects.

devDependencies update

18 Jan 21:10
Compare
Choose a tag to compare
  • Update devDependencies.
  • Update github workflows.
  • Update badges in main ReadMe.
  • Add support directory.

Container cloning

17 Apr 00:54
Compare
Choose a tag to compare
  • 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

18 Feb 04:04
Compare
Choose a tag to compare
  • 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

28 Nov 00:53
Compare
Choose a tag to compare

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

02 Aug 22:28
Compare
Choose a tag to compare

Revert type declaration for AbstractConstructor which was broken during eslint integration.
Update eslint related dev-dependencies.