Skip to content

v0.1.2 — Toast dismiss race fix

Choose a tag to compare

@marilenaRM marilenaRM released this 07 Jul 16:38

Fixed

  • A dismiss (click or very short delay) racing the connect() animation frame could re-add the fade-in class after removal, leaving the toast stuck visible with no timer. The pending frame is now cancelled in dismiss() and disconnect().

Added

  • 14 Vitest/jsdom tests for both Stimulus controllers, security paths first: tampered cookie payload rendered as inert text (no XSS), cookie cleared before rendering, no replay on Turbo cache restores, type filtering, malformed payload handling, role by toast type — plus fade-in/auto-dismiss/click behavior
  • CI now runs the JS test suite (node 22)

Full changelog: v0.1.1...v0.1.2