What’s new in Svelte: September 2024

A bunch of updates to Svelte dropped in the last few weeks, plus a few quality of life improvements in the Svelte language tools. Let's take a look... What's new in Svelte and Language Tools

A bunch of updates to Svelte dropped in the last few weeks, plus a few quality of life improvements in the Svelte language tools.

Let’s take a look…

What’s new in Svelte and Language Tools (#What’s-new-in-Svelte-and-Language-Tools)

• $state.frozen has been replaced with $state.raw (5.0.0-next.218, Docs (https://svelte-5-preview.vercel.app/docs/runes#state-raw), #12808 (https://github.com/sveltejs/svelte/pull/12808))

• $state.is has been removed. RIP, little guy (#12916 (https://github.com/sveltejs/svelte/pull/12916))

• svelte:options now lets you set the css: “inject” compiler option on a per-component basis (5.0.0-next.209, #12660 (https://github.com/sveltejs/svelte/pull/12660))

svelte:component is now unnecessary in runes mode and therefore is deprecated (5.0.0-next.203/217, #12646 (https://github.com/sveltejs/svelte/pull/12646) and #12694 (https://github.com/sveltejs/svelte/pull/12694))

• :global is now allowed in more places - making it easier to use in