Skip to content

3.0.0

Compare
Choose a tag to compare
@remojansen remojansen released this 11 Jan 19:41
· 911 commits to master since this release

⚠️ This release is production ready but the update of all the side projects is work in progress ⚠️

Breaking changes

  • The Kernel class is now named Container.
  • The Kernel method getServiceIdentifierAsString is not a method of Container you can import it from imversify directly.
  • The 2.x PlanAndResolveArgs interface is now NextArgs.
  • The PlanAndResolveArgs signature has been changed.
  • The resolution logic in 2.0 and 3.0 is slightly different in order to support new features (e.g. @optional ) and defaults contextual injections. Some contextual constraints may be affected as a result of this change.

New features

  • Added support for isBound and unbind in container modules.
  • Added AMD bundle to the NPM package
  • New container method: getAllNamed
  • New container method: getAllTagged
  • New container method: merge
  • New container method: createChild
  • New container method: isBoundNamed
  • New container method: isBoundTagged
  • Added support for whenTargetIsDefault
  • Added support for@optional dependencies
  • Added support for global container options new Container({ /* options */ })
  • Allow to use symbols or numbers as values with @named and @tagged
  • New Provider features

Non-functional improvements

Bug Fixes

  • Container.getAll does not return named bindings #405