@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 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-20260722064424
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: Add safe Bridge render, commit, failure, destroy, and route synchronization signals for React and Vue applications, together with correlated runtime observability reports.
12
- - 5b8174a: Report safe shared registration outcomes, dependency selection reasons, and explicit load context for observability.
13
- - 54e7333: Report real manifest, remote entry, and preload resource outcomes, including cache reuse, timeouts, failures, and recovery.
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-20260722064424
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-CV6hGncp.js";
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-DL03nFlF.js');
2
+ const require_core = require('./core-Dr2vLEcg.js');
3
3
 
4
4
  //#region src/browser.ts
5
5
  function ObservabilityPlugin(options = {}) {
@@ -1,4 +1,4 @@
1
- import { M as ObservabilityPluginOptions, q as ObservabilityRuntimePlugin } from "./core-CV6hGncp.js";
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;
@@ -1,5 +1,5 @@
1
1
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
2
- const require_core = require('./core-DL03nFlF.js');
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
- beforeLoadResource?: unknown;
543
- afterLoadResource?: unknown;
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;