Releases: ciscoheat/sveltekit-flash-message
Releases · ciscoheat/sveltekit-flash-message
v2.4.4
Fixed
redirect
with two parameters accepted a Cookies
object, which wouldn't work as the redirect url couldn't be detected.
v2.4.2
Added
- Compatibility with Svelte 5
v2.4.1
Fixed
- SvelteKit 2 redirect issue fixed.
- Options for
getFlash
affects routes below.
- Removed debug messages.
Added
- Reintroduced
initFlash
, since flash options are now properly affecting routes below.
v2.3.1
Fixed
- Options weren't compared properly, causing problems when navigating.
v2.3.0
Added
- The
redirect
function can now take the cookies object as well as the whole RequestEvent.
Fixed
- Peer dependency support for SvelteKit 2. (#32)
v2.2.2
Fixed
- Options couldn't be set in different top-level layouts.
v2.2.1
Fixed
- Flash message didn't appear when posting to a form action on a different route. (#26)
v2.2.0
Fixed
- Default cookie option for
SameSite
(strict) wasn't set on the client.
Added
flashCookieOptions
added to getFlash
options.
v2.1.3
Fixed
afterNavigate
fix when automatically clearing the flash message.
- Flash message didn't appear when redirecting after
setFlash
.
v2.1.1
Fixed
- Compatibility with vitest
^0.34.1
.
Added
- The client part of the library can now be imported directly from
sveltekit-flash-message
, instead of sveltekit-flash-message/client
. (The latter also works, for compatibility.)