Repository navigation
1.2.0 - Harden and standardize Inertia event delivery
Added
- Release README automation support: Added/updated a maintainer-generated README head used during releases to standardize the README header content for future release builds.
Changed
-
Inertia event delivery improvements: Improved the safety of Mosaicast event delivery integrated with Inertia navigation.
- Same-page reload hardening: The delivery logic now skips stale/invalid
partial/historyprops. - Payload validation and normalization:
- Validates and normalizes incoming event payloads.
- Converts empty payload arrays to empty objects.
- Ignores malformed event payloads without dropping other valid sibling events.
- Dispatcher API alignment: Updated the delivery surface to use the Mosaicast dispatcher API where applicable, aligning event emission with the dispatcher-driven architecture.
- Same-page reload hardening: The delivery logic now skips stale/invalid
-
Documentation badge consistency: Standardized README badge/logo presentation for release and compatibility signaling to reduce ambiguity about version/support requirements.
Fixed
- More reliable event delivery under Inertia navigation: Inertia navigation should now more reliably deliver only valid Mosaicast events, avoiding cases where stale/invalid
partial/historyprops could lead to incorrect event delivery.
Testing
- Updated Inertia flash/routing assertions: Refactored Inertia-related tests to better reflect Mosaicast’s event/flash lifecycle, including updated assertions for same-page reloads and navigation flows.
Compatibility / Migration
- If you rely on older dispatcher wiring or previously tolerated/serialized event payload shapes, ensure your emitted/serialized Mosaicast event payloads conform to stricter validation:
- Events must have a valid non-empty
name. - Payloads must match the expected structure.
- Malformed/invalid event items are now skipped rather than propagated, so events with invalid shape may no longer reach the client even if other sibling events are valid.
- Events must have a valid non-empty