Advent of Svelte

Last December, Svelte Society (https://bsky.app/profile/sveltesociety.dev) presented an advent calendar's worth of festive Svelte-themed code challenges (https://advent.sveltesociety.dev/). This

Last December, Svelte Society (https://bsky.app/profile/sveltesociety.dev) presented an advent calendar’s worth of festive Svelte-themed code challenges (https://advent.sveltesociety.dev/).

This year, we’re turning it around: you get to relax while we take on a challenge. We’ve set ourselves a goal of releasing one thing a day from here until Christmas, whether it’s a new feature in Svelte or SvelteKit or an improvement to the website.

Follow @svelte.dev (https://bsky.app/profile/svelte.dev) and @sveltesociety.dev (https://bsky.app/profile/sveltesociety.dev) and check back every day to see what we’ve been cooking up.

Day 1: error boundaries (#Day-1:-error-boundaries)This is a long-awaited and much-requested feature, that allows you to isolate and recover from errors that occur during rendering.

• docs (/docs/svelte/svelte-boundary)

• tutorial (/tutorial/svelte/svelte-boundary)

Day 2: each without as (#Day-2:-each-without-as)If you just want to render something in an {#each …} block n times, and don’t care about the value, you can now omit the as part.

• docs (/docs/svelte/each#Each-blocks-without-an-item)

• demo (/playground/untitled#H4sIAAAAAAAAA3WP3WrDMAyFX0VoDFqWtGRXxWsKY4-x7MKx1SbUtY2tdi0h7z7s_myD9k6c8-lIZ0Ard4QCPzqKEVong8YC172hiOJzQD75ZCcBiyv87v0sHshw0loZ6Z6unGWyHFHgUvcHUEbGWDeo0qUyX2pw1diGhyeSqoMBDNkNdwIWMBYQpN2OyX4EpJ8uQMO_J0RrpNrWwyQFwEvGpvAMr1DXNVTjajnX_WF1SZ6n5JxyG2–XUY-Gcro7M_bMJyXdR-9kScBm9Drt7OWxpJp541kKpUz-52NAgJ5kjxZFFCtw_QuG9z3I7B1QVMQUPkjRGd6DbnjxZXRk-IySO6dgCqpWZ9l6Ppsw61U201we6vFv_3cPvc-18UCmY6MgsOexq_xBw8BVaUkAgAA)

Day 3: exported snippets (#Day-3:-exported-snippets)You can now export snippets from a component’s