@frontmcp/di 1.9.1-rc.1 → 1.9.1-rc.2
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/esm/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontmcp/di",
|
|
3
|
-
"version": "1.9.1-rc.
|
|
3
|
+
"version": "1.9.1-rc.2",
|
|
4
4
|
"description": "Generic dependency injection container and registry utilities for TypeScript applications",
|
|
5
5
|
"author": "AgentFront <info@agentfront.dev>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"node": ">=24.0.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@frontmcp/lazy-zod": "1.9.1-rc.
|
|
50
|
+
"@frontmcp/lazy-zod": "1.9.1-rc.2",
|
|
51
51
|
"reflect-metadata": "^0.2.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Provider-related interfaces for dependency injection.
|
|
3
3
|
*/
|
|
4
|
-
import type { Type, Token, ClassType, ValueType, FactoryType, ClassToken } from './base.interface.js';
|
|
5
4
|
import type { ProviderMetadata } from '../metadata/provider.metadata.js';
|
|
5
|
+
import type { ClassToken, ClassType, FactoryType, Token, Type, ValueType } from './base.interface.js';
|
|
6
6
|
/**
|
|
7
7
|
* Base interface for all providers.
|
|
8
8
|
* Providers are registered in the DI container and can be resolved by token.
|
|
@@ -34,9 +34,9 @@ export type ProviderValueType<T = unknown> = ValueType<T> & {
|
|
|
34
34
|
metadata?: ProviderMetadata;
|
|
35
35
|
};
|
|
36
36
|
/**
|
|
37
|
-
* Provider using useFactory pattern.
|
|
37
|
+
* Provider using useFactory pattern. Without `inject`, the factory receives no dependencies.
|
|
38
38
|
*/
|
|
39
|
-
export type ProviderFactoryType<T = unknown, Tokens extends readonly (ClassToken | Token)[] = readonly Token[]> = FactoryType<T, Tokens> & {
|
|
39
|
+
export type ProviderFactoryType<T = unknown, Tokens extends readonly (ClassToken | Token)[] = readonly Token[]> = Omit<FactoryType<T, Tokens>, 'inject'> & Partial<Pick<FactoryType<T, Tokens>, 'inject'>> & {
|
|
40
40
|
metadata?: ProviderMetadata;
|
|
41
41
|
};
|
|
42
42
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontmcp/di",
|
|
3
|
-
"version": "1.9.1-rc.
|
|
3
|
+
"version": "1.9.1-rc.2",
|
|
4
4
|
"description": "Generic dependency injection container and registry utilities for TypeScript applications",
|
|
5
5
|
"author": "AgentFront <info@agentfront.dev>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"node": ">=24.0.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@frontmcp/lazy-zod": "1.9.1-rc.
|
|
50
|
+
"@frontmcp/lazy-zod": "1.9.1-rc.2",
|
|
51
51
|
"reflect-metadata": "^0.2.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|