Changelog
0.10.0 [BREAKING] - 2021.01.15
Changelog
0.9.1 - 2021.01.11
Changelog
0.9.0 - 2021.01.10
Prior to this version when an unknown constructable type was requested from the default container it was added automatically
to the container and returned. This behavior has changed and now a ServiceNotFoundError
error is thrown.
Until now resetting a container removed all dependency declarations from the container. From now on the default behavior
is to remove the created instances only but not the definitions. This means requesting a Service again from the container
won't result in a ServiceNotFoundError
but will create a new instance of the requested function again.
The old behavior can be restored with passing the { strategy: 'resetServices'}
to the ContainerInstance.reset
function.
undefined
to default
ServiceNotFoundError
to better explain which service is missing (#138)@Inject
-ed properties were not injected in inherited child classes (ref #102)Container.reset()
was called (ref #157)Changelog
0.8.0
Changelog
0.7.0
@Require
decorator@InjectMany
decorator to support injection of "many" valuesChangelog
0.6.0
provide
method, use set
method insteadRequire
decorator. Use es6 imports instead or named services@Service
decoratorHandler
's value
accepts a container which requests the value