Skip to content

Update remaining Svelte 5 migration across processor, demo, and docs#394

Merged
TorstenDittmann merged 2 commits intomainfrom
migrate-svelte-5-docs
Feb 7, 2026
Merged

Update remaining Svelte 5 migration across processor, demo, and docs#394
TorstenDittmann merged 2 commits intomainfrom
migrate-svelte-5-docs

Conversation

@TorstenDittmann
Copy link
Copy Markdown
Owner

Complete the remaining Svelte 5 migration work by removing legacy syntax and deprecated APIs from generated output, fixtures, app routes, and documentation examples.

  • update transformer output to emit <script module> for frontmatter exports instead of context="module"
  • align processor and transformer tests with the new output format
  • migrate test Svelte modules from context="module" to <script module>
  • replace legacy <slot /> usage in test components with snippet rendering via children and {@render children?.()}
  • migrate demo layouts from $app/stores to $app/state
  • replace $page-store access with page state access in demo route layouts
  • modernize docs examples to Svelte 5 syntax:
    • <script module>
    • $props() calls
    • snippet-based children rendering instead of slots
  • make processor fixture comparisons newline-tolerant using trimEnd() to avoid trailing newline mismatches across environments

Complete the remaining Svelte 5 migration work by removing legacy syntax
and deprecated APIs from generated output, fixtures, app routes, and
documentation examples.
- update transformer output to emit `<script module>` for frontmatter
  exports instead of `context="module"`
- align processor and transformer tests with the new output format
- migrate test Svelte modules from `context="module"` to `<script
  module>`
- replace legacy `<slot />` usage in test components with snippet
  rendering via `children` and `{@render children?.()}`
- migrate demo layouts from `$app/stores` to `$app/state`
- replace `$page`-store access with `page` state access in demo route
  layouts
- modernize docs examples to Svelte 5 syntax:
  - `<script module>`
  - `$props()` calls
  - snippet-based children rendering instead of slots
- make processor fixture comparisons newline-tolerant using `trimEnd()`
  to avoid trailing newline mismatches across environments
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Feb 7, 2026

Deploying svelte-markdoc-preprocess with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3b1d3e1
Status: ✅  Deploy successful!
Preview URL: https://af9883f2.svelte-markdoc-preprocess.pages.dev
Branch Preview URL: https://migrate-svelte-5-docs.svelte-markdoc-preprocess.pages.dev

View logs

@TorstenDittmann TorstenDittmann merged commit 8c20bd6 into main Feb 7, 2026
10 checks passed
@TorstenDittmann TorstenDittmann deleted the migrate-svelte-5-docs branch February 7, 2026 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant