Skip to content

v0.1.1

Choose a tag to compare

@czprz czprz released this 10 Jul 22:25

Bug Fixes

  • SSR safety: Both MfeStateService and ConfigRepositoryService now guard all localStorage access behind a typeof localStorage !== 'undefined' check, preventing ReferenceError in SSR / non-browser environments. BroadcastChannel was already guarded; localStorage was not.

  • Echo-loop guard in ConfigRepositoryService: Replaced the queueMicrotask-based inbound-key Set with a value-based inboundValues Map — consistent with MfeStateService and immune to microtask timing races (e.g. when used with Angular's TestBed.flushEffects()).

  • Removed unused peer dependency: @angular/common was listed as a peer dependency but never imported. Removed to avoid spurious install warnings for consumers.

Tooling

  • Added vitest.config.ts and test-setup.ts so the test suite can be run directly with npx vitest run without requiring Angular CLI.

Full Changelog

https://github.com/dever-labs/ngx-mfe-broker/blob/main/CHANGELOG.md