@bleedingdev/modern-js-types 3.2.0-ultramodern.99 → 3.4.0-ultramodern.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/cli/index.d.ts +5 -0
- package/common/index.d.ts +0 -3
- package/package.json +7 -4
- package/common/moduleSdk.d.ts +0 -101
package/cli/index.d.ts
CHANGED
|
@@ -64,6 +64,11 @@ export interface Route {
|
|
|
64
64
|
loader?: any;
|
|
65
65
|
loaderDeps?: any;
|
|
66
66
|
action?: any;
|
|
67
|
+
/**
|
|
68
|
+
* @deprecated React Router v8 no longer accepts `hasErrorBoundary` on route
|
|
69
|
+
* objects. Provide `error`/`errorElement` instead and let the router infer
|
|
70
|
+
* the boundary.
|
|
71
|
+
*/
|
|
67
72
|
hasErrorBoundary?: boolean;
|
|
68
73
|
shouldRevalidate?: any;
|
|
69
74
|
validateSearch?: any;
|
package/common/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"modern",
|
|
18
18
|
"modern.js"
|
|
19
19
|
],
|
|
20
|
-
"version": "3.
|
|
20
|
+
"version": "3.4.0-ultramodern.0",
|
|
21
21
|
"types": "./index.d.ts",
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
@@ -46,11 +46,14 @@
|
|
|
46
46
|
]
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"@jest/types": "^30.4.1"
|
|
51
|
+
},
|
|
49
52
|
"devDependencies": {
|
|
50
53
|
"@types/babel__core": "^7.20.5",
|
|
51
|
-
"@types/node": "^
|
|
52
|
-
"http-proxy-middleware": "^4.
|
|
53
|
-
"type-fest": "5.
|
|
54
|
+
"@types/node": "^26.0.0",
|
|
55
|
+
"http-proxy-middleware": "^4.1.1",
|
|
56
|
+
"type-fest": "5.7.0"
|
|
54
57
|
},
|
|
55
58
|
"sideEffects": false,
|
|
56
59
|
"publishConfig": {
|
package/common/moduleSdk.d.ts
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
export type ModuleRuntimeLane =
|
|
2
|
-
| 'effect-first'
|
|
3
|
-
| 'tanstack-first'
|
|
4
|
-
| 'hono-compat'
|
|
5
|
-
| 'react-router-compat';
|
|
6
|
-
|
|
7
|
-
export type ModuleLifecycleHook =
|
|
8
|
-
| 'registerRoutes'
|
|
9
|
-
| 'registerCapabilities'
|
|
10
|
-
| 'registerMigrations'
|
|
11
|
-
| 'registerEventContracts';
|
|
12
|
-
|
|
13
|
-
export type ModulePolicyHook =
|
|
14
|
-
| 'authorize'
|
|
15
|
-
| 'enforceTenantScope'
|
|
16
|
-
| 'validateOperationContext'
|
|
17
|
-
| 'validateEventEnvelope';
|
|
18
|
-
|
|
19
|
-
export type ModuleObservabilityHook =
|
|
20
|
-
| 'emitBusinessMetric'
|
|
21
|
-
| 'emitAuditEvent'
|
|
22
|
-
| 'emitTraceContext'
|
|
23
|
-
| 'emitEventContractViolation';
|
|
24
|
-
|
|
25
|
-
export type ModuleObservabilitySignal = 'metrics' | 'audit' | 'trace';
|
|
26
|
-
export type ModuleComplianceFlagName =
|
|
27
|
-
| keyof ModuleComplianceFlags
|
|
28
|
-
| (string & {});
|
|
29
|
-
export type ModuleLifecycleHookName = ModuleLifecycleHook | (string & {});
|
|
30
|
-
export type ModulePolicyHookName = ModulePolicyHook | (string & {});
|
|
31
|
-
export type ModuleObservabilityHookName =
|
|
32
|
-
| ModuleObservabilityHook
|
|
33
|
-
| (string & {});
|
|
34
|
-
export type ModuleObservabilitySignalName =
|
|
35
|
-
| ModuleObservabilitySignal
|
|
36
|
-
| (string & {});
|
|
37
|
-
|
|
38
|
-
export interface ModuleComplianceFlags {
|
|
39
|
-
usesSdkContracts: boolean;
|
|
40
|
-
usesPolicyMiddleware: boolean;
|
|
41
|
-
usesObservabilityHooks: boolean;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export interface ModuleSdkSharedRequirements {
|
|
45
|
-
requiredManifestFields: string[];
|
|
46
|
-
requiredComplianceFlags: ModuleComplianceFlagName[];
|
|
47
|
-
requiredObservabilitySignals: ModuleObservabilitySignalName[];
|
|
48
|
-
requiredLifecycleHooks: ModuleLifecycleHookName[];
|
|
49
|
-
requiredPolicyHooks: ModulePolicyHookName[];
|
|
50
|
-
requiredObservabilityHooks: ModuleObservabilityHookName[];
|
|
51
|
-
forbiddenCodePatterns: string[];
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export interface ModuleSdkProfileContract {
|
|
55
|
-
requiredManifestFields?: string[];
|
|
56
|
-
requiredComplianceFlags?: ModuleComplianceFlagName[];
|
|
57
|
-
requiredObservabilitySignals?: ModuleObservabilitySignalName[];
|
|
58
|
-
requiredLifecycleHooks?: ModuleLifecycleHookName[];
|
|
59
|
-
requiredPolicyHooks?: ModulePolicyHookName[];
|
|
60
|
-
requiredObservabilityHooks?: ModuleObservabilityHookName[];
|
|
61
|
-
forbiddenCodePatterns?: string[];
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export interface ModuleSdkContracts {
|
|
65
|
-
schemaVersion: number;
|
|
66
|
-
compatibilityLanes: ModuleRuntimeLane[];
|
|
67
|
-
sharedRequirements: ModuleSdkSharedRequirements;
|
|
68
|
-
profiles?: Record<string, ModuleSdkProfileContract>;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export interface ModuleSdkManifest {
|
|
72
|
-
moduleId: string;
|
|
73
|
-
profile?: string;
|
|
74
|
-
version: string;
|
|
75
|
-
runtime: ModuleRuntimeLane;
|
|
76
|
-
sourceDir: string;
|
|
77
|
-
lifecycleHooks: ModuleLifecycleHookName[];
|
|
78
|
-
policyHooks: ModulePolicyHookName[];
|
|
79
|
-
observability: {
|
|
80
|
-
signals: ModuleObservabilitySignalName[];
|
|
81
|
-
hooks: ModuleObservabilityHookName[];
|
|
82
|
-
};
|
|
83
|
-
compliance: ModuleComplianceFlags & Record<string, boolean>;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export interface ModuleEventContract {
|
|
87
|
-
name: string;
|
|
88
|
-
version: number;
|
|
89
|
-
schemaHash: string;
|
|
90
|
-
producerModuleId: string;
|
|
91
|
-
description?: string;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export interface ModuleEventEnvelope<Payload = unknown> {
|
|
95
|
-
name: string;
|
|
96
|
-
version: number;
|
|
97
|
-
schemaHash: string;
|
|
98
|
-
timestamp: number;
|
|
99
|
-
payload: Payload;
|
|
100
|
-
meta?: Record<string, unknown>;
|
|
101
|
-
}
|