@codefast/di 0.10.1 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +265 -0
- package/README.md +69 -6
- package/dist/ambient/active-container.d.ts +7 -2
- package/dist/ambient/active-container.js +6 -1
- package/dist/container/binding-builders.d.ts +19 -1
- package/dist/container/binding-builders.js +75 -16
- package/dist/container/container.js +224 -47
- package/dist/core/binding-declaration.d.ts +120 -0
- package/dist/core/binding-declaration.js +186 -0
- package/dist/core/binding.d.ts +57 -5
- package/dist/core/binding.js +48 -1
- package/dist/core/module.d.ts +7 -4
- package/dist/core/module.js +17 -3
- package/dist/core/registry.d.ts +11 -7
- package/dist/core/registry.js +122 -38
- package/dist/core/state-epoch.d.ts +18 -1
- package/dist/core/state-epoch.js +17 -0
- package/dist/core/tag.js +1 -1
- package/dist/decorators/decorator-metadata.d.ts +9 -0
- package/dist/decorators/decorator-metadata.js +20 -0
- package/dist/decorators/inject.js +2 -1
- package/dist/decorators/injectable.js +3 -1
- package/dist/decorators/lifecycle-decorators.js +8 -2
- package/dist/errors/errors.d.ts +77 -3
- package/dist/errors/errors.js +93 -10
- package/dist/index.d.ts +3 -1
- package/dist/index.js +2 -1
- package/dist/injection/descriptor.js +3 -7
- package/dist/injection/resolve-options.js +6 -4
- package/dist/introspection/dependency-graph.d.ts +7 -2
- package/dist/introspection/dependency-graph.js +46 -23
- package/dist/introspection/graph-adapters/reactflow.js +6 -4
- package/dist/introspection/inspector.js +6 -9
- package/dist/lifecycle/lifecycle-manager.js +14 -2
- package/dist/lifecycle/scope-manager.js +28 -10
- package/dist/metadata/verifying-metadata-reader.d.ts +4 -3
- package/dist/metadata/verifying-metadata-reader.js +28 -6
- package/dist/resolution/async-fan-out.d.ts +12 -0
- package/dist/resolution/async-fan-out.js +26 -0
- package/dist/resolution/cache/activation-need.d.ts +0 -1
- package/dist/resolution/cache/activation-need.js +11 -18
- package/dist/resolution/cache/binding-lookup-cache.d.ts +0 -7
- package/dist/resolution/cache/binding-lookup-cache.js +30 -17
- package/dist/resolution/cache/class-introspector.d.ts +11 -0
- package/dist/resolution/cache/class-introspector.js +18 -0
- package/dist/resolution/context.d.ts +15 -23
- package/dist/resolution/context.js +47 -56
- package/dist/resolution/path/resolution-path.d.ts +48 -13
- package/dist/resolution/path/resolution-path.js +89 -38
- package/dist/resolution/plan/instantiation-plan.js +61 -21
- package/dist/resolution/plan/plan-codegen.d.ts +7 -4
- package/dist/resolution/plan/plan-codegen.js +60 -32
- package/dist/resolution/resolver.d.ts +4 -5
- package/dist/resolution/resolver.js +288 -258
- package/package.json +14 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codefast/di",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Lightweight dependency injection primitives for Codefast",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"codefast",
|
|
@@ -58,6 +58,10 @@
|
|
|
58
58
|
"types": "./dist/core/binding.d.ts",
|
|
59
59
|
"import": "./dist/core/binding.js"
|
|
60
60
|
},
|
|
61
|
+
"./core/binding-declaration": {
|
|
62
|
+
"types": "./dist/core/binding-declaration.d.ts",
|
|
63
|
+
"import": "./dist/core/binding-declaration.js"
|
|
64
|
+
},
|
|
61
65
|
"./core/binding-scope": {
|
|
62
66
|
"types": "./dist/core/binding-scope.d.ts",
|
|
63
67
|
"import": "./dist/core/binding-scope.js"
|
|
@@ -98,6 +102,10 @@
|
|
|
98
102
|
"types": "./dist/core/types.d.ts",
|
|
99
103
|
"import": "./dist/core/types.js"
|
|
100
104
|
},
|
|
105
|
+
"./decorators/decorator-metadata": {
|
|
106
|
+
"types": "./dist/decorators/decorator-metadata.d.ts",
|
|
107
|
+
"import": "./dist/decorators/decorator-metadata.js"
|
|
108
|
+
},
|
|
101
109
|
"./decorators/inject": {
|
|
102
110
|
"types": "./dist/decorators/inject.d.ts",
|
|
103
111
|
"import": "./dist/decorators/inject.js"
|
|
@@ -178,6 +186,10 @@
|
|
|
178
186
|
"types": "./dist/metadata/verifying-metadata-reader.d.ts",
|
|
179
187
|
"import": "./dist/metadata/verifying-metadata-reader.js"
|
|
180
188
|
},
|
|
189
|
+
"./resolution/async-fan-out": {
|
|
190
|
+
"types": "./dist/resolution/async-fan-out.d.ts",
|
|
191
|
+
"import": "./dist/resolution/async-fan-out.js"
|
|
192
|
+
},
|
|
181
193
|
"./resolution/cache/activation-need": {
|
|
182
194
|
"types": "./dist/resolution/cache/activation-need.d.ts",
|
|
183
195
|
"import": "./dist/resolution/cache/activation-need.js"
|
|
@@ -224,6 +236,6 @@
|
|
|
224
236
|
"access": "public"
|
|
225
237
|
},
|
|
226
238
|
"engines": {
|
|
227
|
-
"node": ">=
|
|
239
|
+
"node": ">=24.0.0"
|
|
228
240
|
}
|
|
229
241
|
}
|