Skip to content

v0.1.4 — Customization hooks & observability

Choose a tag to compare

@marilenaRM marilenaRM released this 09 Jul 05:29

Added

  • Two customization hooks for cookie-rendered toasts, both XSS-safe:
    • a cancelable …toast-container:append event — call preventDefault() and render with your own toast library
    • a <template> target inside the container, cloned per toast — your markup, the message lands as text in [data-toast-message]
  • Optional logging (monolog channel turbo_toast): warning when queued toasts are discarded on a 5xx or dropped over the cookie size budget (no more silent drops), debug on emission

Changed

  • Services now use snake_case ids (marilena_rm_turbo_toast.*) with class aliases for autowiring — decorate or replace by stable id
  • Resolved configuration is carried by a ToastConfig value object instead of scalar constructor args
  • loadExtension() parameter names realigned with AbstractBundle (named-arguments safety)
  • ToastStack is now \Countable

Full changelog: v0.1.3...v0.1.4