ciscoheat / sveltekit-flash-message

Send temporary data after redirect, usually from endpoints. Works with both SSR and client.
https://www.npmjs.com/package/sveltekit-flash-message
MIT License
263 stars 6 forks source link

compatibility with sveltekit 1.0.0-next.505 #3

Closed rburgst closed 2 years ago

rburgst commented 2 years ago

Getting the following error since I upgraded sveltekit again

Use `event.cookies.set(name, value, options)` instead of `event.setHeaders` to set cookies
Error: Use `event.cookies.set(name, value, options)` instead of `event.setHeaders` to set cookies
ciscoheat commented 2 years ago

Thank you, will fix very soon!

ciscoheat commented 2 years ago

Should be working again in 0.7.0.

ciscoheat commented 2 years ago

$page.form could possible make this lib redundant (see https://kit.svelte.dev/docs/form-actions#anatomy-of-an-action), I will check it out.

ciscoheat commented 2 years ago

Parts of it at least (form actions), but then it won't be strongly typed, so maybe not. :)