All notable changes to this project will be documented in this file.
Allow concrete injection via custom keys and remove @Injectable()
from framwork.
-
Property
key
to options for@Singleton()
,@Transient()
and@Inject()
key
stores class with this key and not its hash in the registry- if
key
was used for creating the singleton or transient, it also has to be used for injeciton
- Removed
@Injectable()
from framework due to its deprecation
Allow concrete parameter injection.
@Inject()
injects concrete parameters in the constructor.- Will overwrite the injected parameters by the framework
@Singleton()
to create singletons@Transient()
to create transients- Chaining of decorators
Add optional options for @Injectable()
.
- option to use custom registry instead of the default one
- specify registry in `InjectableOptions``
- option to specify non-singleton-injections for classes
- set
singleton
inInjectableOptions
to false
- set
The initial release of this module.
- the functionality of simple dependency injection using TypeScript decorators
@Injectable()
on classes- create singletons and automatically inject them into other classes' constructors