@module-federation/observability-plugin 0.0.0-feat-operate-openruntime-20260722064424 → 0.0.0-feat-operate-openruntime-20260726083609
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/README.md +7 -0
- package/dist/CHANGELOG.md +5 -5
- package/dist/README.md +7 -0
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +1 -1
- package/dist/chrome-devtool.d.ts +1 -1
- package/dist/chrome-devtool.js +1 -1
- package/dist/{core-CV6hGncp.d.ts → core-BLVCDZ4z.d.ts} +13 -5
- package/dist/{core-DL03nFlF.js → core-Dr2vLEcg.js} +598 -183
- package/dist/esm/browser.js +1 -1
- package/dist/esm/chrome-devtool.js +1 -1
- package/dist/esm/{core-D09kJ17n.js → core-CMTYccSC.js} +598 -183
- package/dist/esm/index.js +1 -1
- package/dist/esm/node.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/node.js +1 -1
- package/package.json +5 -3
package/README.md
CHANGED
|
@@ -84,6 +84,13 @@ main flow started, succeeded, or failed. This plugin listens to those hooks,
|
|
|
84
84
|
derives detailed reasons like shared version mismatch or eager boundary issues,
|
|
85
85
|
and exposes the final loading state through a small `summary` object:
|
|
86
86
|
|
|
87
|
+
Runtime Core deliberately keeps this boundary narrow. It registers and invokes
|
|
88
|
+
the lifecycle hooks with raw facts from the real execution path. Candidate
|
|
89
|
+
lists, shared selection and registration reasons, resource and Bridge timing,
|
|
90
|
+
error classification, correlation, and sanitization are all derived here in
|
|
91
|
+
the observability plugin. Applications that do not install this plugin do not
|
|
92
|
+
pay for report construction or keep observability state in Runtime Core.
|
|
93
|
+
|
|
87
94
|
- `runtime-loaded`: Module Federation finished loading the remote module.
|
|
88
95
|
- `component-loaded`: business code called `markComponentLoaded`, or a producer
|
|
89
96
|
called the injected `onMFRemoteLoaded` callback.
|
package/dist/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @module-federation/observability-plugin
|
|
2
2
|
|
|
3
|
-
## 0.0.0-feat-operate-openruntime-
|
|
3
|
+
## 0.0.0-feat-operate-openruntime-20260726083609
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
|
|
9
9
|
### Patch Changes
|
|
10
10
|
|
|
11
|
-
- 21d8004:
|
|
12
|
-
- 5b8174a:
|
|
13
|
-
- 54e7333:
|
|
11
|
+
- 21d8004: Extend the existing Bridge render and destroy hooks with semantic context, add a route synchronization hook, and keep timing, sanitization, and correlation in the observability plugin.
|
|
12
|
+
- 5b8174a: Extend the semantic shared registration and resolution hooks with explicit load context, while keeping provider, candidate, and selection diagnostics in the observability plugin.
|
|
13
|
+
- 54e7333: Extend the semantic manifest, remote entry, and preload hooks with resource context and results, while keeping cache, timing, timeout, failure, and recovery diagnostics in the observability plugin.
|
|
14
14
|
- Updated dependencies [d901e2c]
|
|
15
|
-
- @module-federation/sdk@0.0.0-feat-operate-openruntime-
|
|
15
|
+
- @module-federation/sdk@0.0.0-feat-operate-openruntime-20260726083609
|
|
16
16
|
|
|
17
17
|
## 2.5.4
|
|
18
18
|
|
package/dist/README.md
CHANGED
|
@@ -84,6 +84,13 @@ main flow started, succeeded, or failed. This plugin listens to those hooks,
|
|
|
84
84
|
derives detailed reasons like shared version mismatch or eager boundary issues,
|
|
85
85
|
and exposes the final loading state through a small `summary` object:
|
|
86
86
|
|
|
87
|
+
Runtime Core deliberately keeps this boundary narrow. It registers and invokes
|
|
88
|
+
the lifecycle hooks with raw facts from the real execution path. Candidate
|
|
89
|
+
lists, shared selection and registration reasons, resource and Bridge timing,
|
|
90
|
+
error classification, correlation, and sanitization are all derived here in
|
|
91
|
+
the observability plugin. Applications that do not install this plugin do not
|
|
92
|
+
pay for report construction or keep observability state in Runtime Core.
|
|
93
|
+
|
|
87
94
|
- `runtime-loaded`: Module Federation finished loading the remote module.
|
|
88
95
|
- `component-loaded`: business code called `markComponentLoaded`, or a producer
|
|
89
96
|
called the injected `onMFRemoteLoaded` callback.
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as ObservabilityPluginOptions, q as ObservabilityRuntimePlugin } from "./core-
|
|
1
|
+
import { M as ObservabilityPluginOptions, q as ObservabilityRuntimePlugin } from "./core-BLVCDZ4z.js";
|
|
2
2
|
|
|
3
3
|
//#region src/browser.d.ts
|
|
4
4
|
declare function ObservabilityPlugin(options?: ObservabilityPluginOptions): ObservabilityRuntimePlugin;
|
package/dist/browser.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
-
const require_core = require('./core-
|
|
2
|
+
const require_core = require('./core-Dr2vLEcg.js');
|
|
3
3
|
|
|
4
4
|
//#region src/browser.ts
|
|
5
5
|
function ObservabilityPlugin(options = {}) {
|
package/dist/chrome-devtool.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as ObservabilityPluginOptions, q as ObservabilityRuntimePlugin } from "./core-
|
|
1
|
+
import { M as ObservabilityPluginOptions, q as ObservabilityRuntimePlugin } from "./core-BLVCDZ4z.js";
|
|
2
2
|
|
|
3
3
|
//#region src/chrome-devtool.d.ts
|
|
4
4
|
declare function ChromeObservabilityPlugin(options?: ObservabilityPluginOptions): ObservabilityRuntimePlugin;
|
package/dist/chrome-devtool.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
-
const require_core = require('./core-
|
|
2
|
+
const require_core = require('./core-Dr2vLEcg.js');
|
|
3
3
|
|
|
4
4
|
//#region src/chrome-devtool.ts
|
|
5
5
|
function ChromeObservabilityPlugin(options = {}) {
|
|
@@ -74,7 +74,6 @@ interface ObservabilityRuntimeStateInstance {
|
|
|
74
74
|
expose?: string;
|
|
75
75
|
status?: ObservabilityBridgeStatus;
|
|
76
76
|
lastOperationAt?: number;
|
|
77
|
-
commitObserved?: boolean;
|
|
78
77
|
routeSyncObserved?: boolean;
|
|
79
78
|
states: ObservabilityBridgeState[];
|
|
80
79
|
};
|
|
@@ -119,7 +118,6 @@ interface ObservabilityBridgeState {
|
|
|
119
118
|
lastOperation?: ObservabilityBridgeInfo['operation'];
|
|
120
119
|
lastOperationId?: string;
|
|
121
120
|
lastOperationAt?: number;
|
|
122
|
-
commitObserved: boolean;
|
|
123
121
|
routeSyncObserved: boolean;
|
|
124
122
|
}
|
|
125
123
|
interface ObservabilityRuntimeRelationship {
|
|
@@ -249,7 +247,7 @@ interface ObservabilityRemoteInfo {
|
|
|
249
247
|
}
|
|
250
248
|
interface ObservabilityResourceInfo {
|
|
251
249
|
type: string;
|
|
252
|
-
initiator: 'loadRemote' | 'preloadRemote';
|
|
250
|
+
initiator: 'loadRemote' | 'preloadRemote' | 'loadShare';
|
|
253
251
|
outcome?: 'success' | 'error' | 'timeout' | 'cached' | 'recovered';
|
|
254
252
|
url?: string;
|
|
255
253
|
startedAt: number;
|
|
@@ -539,8 +537,14 @@ interface ObservabilityRuntimeOrigin {
|
|
|
539
537
|
remoteHandler?: ObservabilityRuntimeRemoteHandlerLike;
|
|
540
538
|
loaderHook?: {
|
|
541
539
|
lifecycle?: {
|
|
542
|
-
|
|
543
|
-
|
|
540
|
+
afterLoadEntry?: unknown;
|
|
541
|
+
};
|
|
542
|
+
};
|
|
543
|
+
snapshotHandler?: {
|
|
544
|
+
hooks?: {
|
|
545
|
+
lifecycle?: {
|
|
546
|
+
afterLoadManifest?: unknown;
|
|
547
|
+
};
|
|
544
548
|
};
|
|
545
549
|
};
|
|
546
550
|
bridgeHook?: unknown;
|
|
@@ -578,6 +582,10 @@ interface ObservabilityRuntimeSharedSource {
|
|
|
578
582
|
strategy?: string;
|
|
579
583
|
shareConfig?: ObservabilityRuntimeSharedConfig;
|
|
580
584
|
get?: unknown;
|
|
585
|
+
treeShaking?: {
|
|
586
|
+
loaded?: boolean;
|
|
587
|
+
loading?: unknown;
|
|
588
|
+
};
|
|
581
589
|
}
|
|
582
590
|
type ObservabilityRuntimeShareScopeMap = Record<string, Record<string, Record<string, ObservabilityRuntimeSharedSource | undefined>>>;
|
|
583
591
|
type ObservabilityRuntimePlugin = ModuleFederationRuntimePlugin;
|