Skip to content

Commit 6ccc645

Browse files
committed
Deprecated flashMessage
1 parent 660e7c1 commit 6ccc645

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2626
- Bumped Valibot peerDep requirement to 1.0.0-rc.3.
2727
- Bumped Zod peerDep requirement to 3.24.2.
2828

29+
### Deprecated
30+
31+
- The `flashMessage` option is now deprecated, since SvelteKit has moved to [$app/state](https://svelte.dev/docs/kit/$app-state) instead of `$app/stores`, making it hard to support both. Use [sveltekit-flash-message](https://github.com/ciscoheat/sveltekit-flash-message) directly (`setFlash` or `redirect`) instead of integrating it with Superforms, it's less complicated as well.
32+
2933
## [2.23.1] - 2025-01-21
3034

3135
### Removed

src/lib/client/superForm.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,9 @@ export type FormOptions<
163163
timeoutMs: number;
164164
multipleSubmits: 'prevent' | 'allow' | 'abort';
165165
syncFlashMessage?: boolean;
166+
/**
167+
* @deprecated SvelteKit has moved to $app/state instead of $app/stores, making it hard to support both. Use the flash library directly (setFlash or redirect) instead of integrating it with Superforms.
168+
*/
166169
flashMessage: {
167170
module: {
168171
getFlash(page: Readable<Page>): Writable<App.PageData['flash']>;

0 commit comments

Comments
 (0)