Skip to content

v0.2.0

Latest

Choose a tag to compare

@czprz czprz released this 15 Jul 23:32

⚠️ Breaking Change

MfeStateService no longer falls back to in-memory defaults when a key is missing from localStorage.

Changed

  • Fail-fast initialisation: if a key is missing from localStorage in a browser environment, an error is thrown immediately rather than silently using a default value
  • Two-pass init: shell-provided initialState values are written to localStorage on first boot (if not already present), then signals are initialised exclusively from localStorage
  • SSR / non-browser environments (no localStorage) still use the provided initialState value directly
  • Removed unused internal defaults map from MfeStateService
  • Updated docs to reflect fail-fast semantics and shell ownership of initial values

Why

The shell always loads first and owns all initial values. Any key missing from localStorage at init time indicates misconfiguration — surfacing it as an error is safer than returning a stale or wrong default.