What's new in Svelte: August 2021
Shadow DOM, export and await - oh my!
From The Changelog (JS Party Ep. 182) to Svelte Radio (Episodes 29 and 30), it seems that folks couldn't help but talk about Svelte, this month! Also, shadow DOM support and new export and await functionality are new in Svelte.
New in Svelte
July was the most active month for the Svelte core repo since late 2019 as we really worked to reduce the number of outstanding PRs and saw the release of Svelte 3.39.0, 3.40.0, and 3.41.0. Tons of bug fixes were added as well as the following new features:
|trustedevent modifier allows you to check if an event is trusted before it's called (#6137)
svelte/ssrpackage to support work on improving SvelteKit SSR (#6416)
errorModecompiler option to support improved preprocessing of TypeScript files (#6194)
You can now specify a
targetwhen creating a component - making it possible to render Svelte components inside the shadow DOM (#5869)
For a full list of features and bug fixes, check out the Svelte changelog.
prerender.onErrorwhich lets you fine-tune which errors fail the build and which do not (#2007)
esbuild's configuration is now exposed for use with SvelteKit adapters (#1914)
Cookies will only be passed through if the target host is the same as the SvelteKit application or a more specific subdomain of it (#1847)
index.js exports will now be changed to directory exports when packaging - making for nicer imports (#1905)
modeis now exposed from
To see all updates to SvelteKit, check out the SvelteKit changelog.
Features & bug fixes from around svelte/*
Language Tools now better support the "Workplace Trust" functionality (used in VS Code)
In svelte2tsx, ambient type declarations are now renamed to avoid conflicting declarations in the future. Users are now expected to provide the ambient type definitions themselves - fixing JS output
Sapper released v0.29.2 which fixes regex routes, status codes when requesting a directory, and exports when a user has not provided a
Apps & Sites
Central Bank Digital Currency (CBDC) tracker is a site that keeps track of how countries around the world are adopting digital currencies.
Svelte Commerce is an advanced frontend platform for eCommerce based on Sveltekit.
neovimcraft is a SvelteKit site dedicated to neovim plugins
Looking for a Svelte project to work on? Interested in helping make Svelte's presence on the web better? Check out the list of open issues if you'd like to contribute to the Svelte Society rewrite in SvelteKit.
How I Built a Cross-Platform Desktop Application with Svelte, Redis, and Rust is a blog post by Luke Edwards, Svelte maintainer and Developer Advocate from Cloudflare.
How to Create a Blog with SvelteKit and Strapi is a step-by-step tutorial by Aarnav Pai from Strapi
Sveltekit Markdown Blog is a YouTube tutorial series by WebJeda.
Using Custom Elements in Svelte is a deep dive into custom elements by Geoff Rich.
learn / graphql / svelte is a free 2-hour GraphQL course course from Hasura.
How to add Magic Link to a SvelteKit application is a guide to the popular password-less login pattern.
Libraries, Tools & Components
Svelte-Capacitor just released v2.0.0 - making it even easier to build hybrid mobile apps for iOS and Android using Svelte and Capacitor with near native performance.
svelte-remixicon is an icon library for Svelte based on Remix Icon, consisting of more than 2000 icons.
SveltePress is a documentation tool built on top of SvelteKit.
Svelte Starter Kit is a boilerplate to quckly get up and running with Svelte, with Auth and User Profiles powered by Supabase.
Kahi UI is a Svelte-first UI kit with Dark Mode built-in.
Check out sveltejs/integrations for more templates, adders and adapters from across the Svelte ecosystem.