Skip to content

1.2.0 - Harden and standardize Inertia event delivery

Choose a tag to compare

@allanmcarvalho allanmcarvalho released this 04 Nov 18:41
· 10 commits to 1.x since this release

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/history props.
    • 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.
  • 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/history props 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.