v0.1.4 — Customization hooks & observability
Added
- Two customization hooks for cookie-rendered toasts, both XSS-safe:
- a cancelable
…toast-container:appendevent — callpreventDefault()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]
- a cancelable
- 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
ToastConfigvalue object instead of scalar constructor args loadExtension()parameter names realigned withAbstractBundle(named-arguments safety)ToastStackis now\Countable
Full changelog: v0.1.3...v0.1.4