@travetto/di
Advanced tools
Comparing version 2.0.3 to 2.1.0
{ | ||
"name": "@travetto/di", | ||
"displayName": "Dependency Injection", | ||
"version": "2.0.3", | ||
"version": "2.1.0", | ||
"description": "Dependency registration/management and injection support.", | ||
@@ -32,8 +32,8 @@ "keywords": [ | ||
"dependencies": { | ||
"@travetto/transformer": "^2.0.3", | ||
"@travetto/registry": "^2.0.2" | ||
"@travetto/transformer": "^2.1.0", | ||
"@travetto/registry": "^2.1.0" | ||
}, | ||
"devDependencies": { | ||
"@travetto/config": "^2.0.3", | ||
"@travetto/schema": "^2.0.5" | ||
"@travetto/config": "^2.1.0", | ||
"@travetto/schema": "^2.1.0" | ||
}, | ||
@@ -40,0 +40,0 @@ "docDependencies": { |
@@ -14,3 +14,3 @@ <!-- This file was generated by @travetto/doc and should not be modified directly --> | ||
## Declaration | ||
The [@Injectable](https://github.com/travetto/travetto/tree/main/module/di/src/decorator.ts#L30) and [@InjectableFactory](https://github.com/travetto/travetto/tree/main/module/di/src/decorator.ts#L72) decorators provide the registration of dependencies. Dependency declaration revolves around exposing `class`es and subtypes thereof to provide necessary functionality. Additionally, the framework will utilize dependencies to satisfy contracts with various implementations (e.g. [MongoModelService](https://github.com/travetto/travetto/tree/main/module/model-mongo/src/service.ts#L42) provides itself as an injectable candidate for [ModelCrudSupport](https://github.com/travetto/travetto/tree/main/module/model/src/service/crud.ts). | ||
The [@Injectable](https://github.com/travetto/travetto/tree/main/module/di/src/decorator.ts#L30) and [@InjectableFactory](https://github.com/travetto/travetto/tree/main/module/di/src/decorator.ts#L72) decorators provide the registration of dependencies. Dependency declaration revolves around exposing `class`es and subtypes thereof to provide necessary functionality. Additionally, the framework will utilize dependencies to satisfy contracts with various implementations (e.g. [MongoModelService](https://github.com/travetto/travetto/tree/main/module/model-mongo/src/service.ts#L44) provides itself as an injectable candidate for [ModelCrudSupport](https://github.com/travetto/travetto/tree/main/module/model/src/service/crud.ts). | ||
@@ -17,0 +17,0 @@ **Code: Example Injectable** |
Updated@travetto/registry@^2.1.0
Updated@travetto/transformer@^2.1.0