Release Notes
Features
- CSP nonce support.
<ToastContainer nonce={...}>applies the nonce to the
injected<style>tag. Closes #1209.
Fixes
onChangefiresstatus: 'removed'synchronously ontoast.dismiss()instead
of after the exit animation — observers (incl.useNotificationCenter) now
see correctly ordered events. Also guards against double-onClose. Closes #1275.- Touch drag no longer re-pauses the toast on release — the old check compared a
PointerEvent against'touchend', which never matched. Closes #1217. - Vertical drag now visually moves the toast (
--ygets a unit). Thanks
@janpaepke, #1277. - Stacked scale is clamped at 0.5, preventing zero/negative scale in deep
stacks. Closes #1171, #1174. - Stacked container respects mobile
100vwagain. Closes #1234.
Accessibility
role="progressbar"now includesaria-valuenow,aria-valuemin,aria-valuemax.
Thanks @singhankit001, #1283. Closes #1259.
Internal
- Migrated to a pnpm workspace (
pnpm link .no longer required for contributors).
Publish layout unchanged — addon still ships inside the main package. - CSS now injected at mount via
useStyleSheet(prerequisite fornonce). - Dep bumps: TypeScript 6, Vite 8, Cypress 15, React 19.2, plus the rest.
- CI:
upload-artifactv3 → v4.
Thanks to @janpaepke, @singhankit001, and reporters of the fixed issues.