npm / @module-federation/runtime
@module-federation/runtime
What changed in @module-federation/runtime 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-19.
2 breaking14 new APIs and options2 behavior and defaults2 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@module-federation/runtime 220 changes
Breaking changes 2
Legacy share-scope metadata is ignored during shared registration and resolution.
Shared and eager loading evidence is gated to stable runtime 2.5.0+ for Chrome-extension compatibility.
New APIs and options 14
The existing render and destroy hooks now receive semantic context.
A route synchronization hook is added.
The shared-version satisfy helper is now re-exported for use by developers.
These hooks now receive explicit load context, enabling context-aware shared registration and resolution.
A build-specific export provides build summaries and build error reports.
A separate observability plugin entry uses an independent name and fixed browser scope for Chrome-extension compatibility.
Error stack capture is configurable, with explicit opt-ins for raw stacks in console output.
getInstance now supports finder callbacks, clarifying how developers can find runtime instances.
A local collector mode supports AI-assisted browser debugging.
A Node-specific export provides file reports.
An opt-in observability plugin adds runtime and build reports, lifecycle and phase events, loading outcomes, and normalized error details for debugging.
Matched remotes can receive an explicitly injected temporary React callback when they finish loading.
Lifecycle hooks are available for remotes and shared modules.
Opt-in console traces are available for loadRemote and loadShare operations.
Behavior and default changes 2
These diagnostics are kept in the observability plugin.
Dedicated runtime error codes identify invalid manifests, missing exposes, and remote container init failures.
Fixes and other changes 2
Timing, sanitization, and correlation remain in the observability plugin.
Instance creation now includes id and options.