Skip to content

Commit c784e6e

Browse files
authored
Merge branch 'main' into fix-spelling
2 parents ce7aac4 + e035311 commit c784e6e

File tree

75 files changed

+2153
-1086
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+2153
-1086
lines changed
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
---
2+
title: "What's new in Svelte: July 2025"
3+
description: 'Vite 7 and Rolldown support, better traces and vitest browser mode support'
4+
author: Dani Sandoval
5+
authorURL: https://dreamindani.com
6+
---
7+
8+
Whether you're trying out Vite 7, vitest browser mode or [remote functions](https://github.com/sveltejs/kit/discussions/13897), there's lots of experimental features to try this month.
9+
10+
Want some Svelte swag while you're chatting on Discord? With the new `sv ⚡` [server tag](https://support.discord.com/hc/en-us/articles/31444248479639-Server-Tags#h_01JT6VKRACHQADX7EBXR84QTAQ), you do just that. While signed into Discord, you can adopt our tag via profile settings.
11+
12+
There's a bunch to cover, from blog posts to new libraries, so let's dive in...
13+
14+
## What's new in Svelte and SvelteKit
15+
16+
- `$inspect.trace` now includes source name logging to make it easy to find which file the log came from (**[email protected]**, [Docs](<https://svelte.dev/docs/svelte/$inspect#$inspect.trace()>), #[16060](https://github.com/sveltejs/svelte/pull/16060))
17+
- The latest version of SvelteKit now supports Vite 7 and Rolldown. Compilation should be faster using Rolldown, but with larger bundle sizes until additional tree-shaking is implemented in Rolldown (**[email protected]**, [Docs](https://vite.dev/guide/rolldown.html#how-to-try-rolldown), [#13747](https://github.com/sveltejs/kit/pull/13747))
18+
19+
For a full list of bug fixes in Svelte, SvelteKit and its adapters, check out their CHANGELOGs [here](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md) and [here](https://github.com/sveltejs/kit/tree/main/packages).
20+
21+
## What's new in the CLI and Language Tools
22+
23+
- The `sv` CLI now supports Vite's browser mode in Vitest - allowing you to run your tests in the browser natively (**[email protected]**, [Docs](https://vitest.dev/guide/browser/), [#588](https://github.com/sveltejs/cli/pull/588))
24+
- The language server now makes it easier to search for symbol names (`Ctrl + T` in VSCode). Some of the handling is also synced to the Svelte TypeScript plugin so that it's more consistent, which also means vscode can better deduplicate the results from both tsserver and Svelte language server (**[email protected]**, [#2769](https://github.com/sveltejs/language-tools/pull/2769))
25+
26+
---
27+
28+
## Community Showcase
29+
30+
### Apps & Sites built with Svelte
31+
32+
- [Planet Poster](https://planet-poster.vercel.app/) is an interactive art work inspired by a poster of, you guessed it, planets
33+
- [roomy-worlds](https://flo-bit.dev/roomy-worlds/) lets you create small 3d worlds and share/edit with your community
34+
- [Prodcast](https://www.prodcastapp.com/) lets you discover products curated from your favorite podcasts
35+
- [Distill](https://www.distillintelligence.com/) automates company and industry monitoring with all news, updates, and summarized insights in one place
36+
- [thom.chat](https://github.com/tglide/thom-chat) is an open-source alternative/clone to T3 Chat
37+
- [Visual Source](https://github.com/jhwz/visual-source) is a GUI for managing your projects design tokens
38+
39+
### Learning Resources
40+
41+
_Featuring Svelte Contributors and Ambassadors_
42+
43+
- [Type-Safe Persistence and Auto-Theming in Svelte 5](https://www.puruvj.dev/blog/svelte-5-runic-persist-theming) by Puru VJ
44+
- [$effect is fine but proxies are better](https://ricciuti.me/blog/effect-is-fine-but-proxies-are-better) and [How to build Web Components with Svelte](https://mainmatter.com/blog/2025/06/25/web-components-with-svelte/?utm_source=svelte_newsletter&utm_medium=social&utm_campaign=25-06-26-how-to-build-web-components-with-svelte) by Paolo Ricciuti
45+
46+
_This Week in Svelte_
47+
48+
- [Ep. 106](https://www.youtube.com/watch?v=_7_8HKvee8M) — Changelog
49+
- [Ep. 107](https://www.youtube.com/watch?v=Ijb8l9XEz2g) — svelte-lexical
50+
51+
_To Watch/Read_
52+
53+
- [Sveltest](https://sveltest.dev/docs/getting-started) is a guide to set up testing for Svelte 5 applications using the experimental vitest-browser-svelte library
54+
- [A Playful Onboarding: Your first interactive animation from A to Z](https://director.design/chapters/playful-onboarding) by Director.design
55+
- [Migrating from @testing-library/svelte to vitest-browser-svelte](https://scottspence.com/posts/migrating-from-testing-library-svelte-to-vitest-browser-svelte) by Scott Spence
56+
- [Why Silicon Valley CTOs Are Secretly Moving Away from React](https://freedium.cfd/https://javascript.plainenglish.io/why-silicon-valley-ctos-are-secretly-moving-away-from-react-bdf64f0b6072) by Freedium
57+
- [Async Local Storage](https://blog.robino.dev/posts/async-local-storage) by Ross Robino
58+
- [Mainmatter](https://mainmatter.com/events/?utm_source=svelte_newsletter&utm_medium=social&utm_campaign=25-06-25-how-to-build-web-components-with-svelte) has a bunch of Svelte workshops in July so be sure to check those out!
59+
60+
### Libraries, Tools & Components
61+
62+
- [shadcn-svelte v1](https://shadcn-svelte.com/) - after 11 months in pre-release (@next), shadcn-svelte has officially hit v1.0. Congrats!
63+
- [Quaff](https://github.com/quaffui/quaff) is a component library for Svelte that follows the Material Design 3 guidelines
64+
- [Neodrag v3](https://www.puruvj.dev/blog/neodrag-v3-alpha) Alpha is out with multi-framework adapters, event delegation and more
65+
- [Svelte Polaris](https://svelte-polaris-docs.storebud.workers.dev/) is port of Shopify's design system to build Shopify apps
66+
- [Origin UI](https://originui-svelte.pages.dev/) is a collection of copy-and-paste components for quickly build application UIs
67+
- [Svelte 5 MCP Server](https://github.com/StudentOfJS/svelte5-mcp) is a specialized Model Context Protocol (MCP) server for Svelte 5 frontend development
68+
- [Frizzante](https://razshare.github.io/frizzante-docs/guides/get-started/) is a minimalistic and opinionated web server framework written in Go that uses Svelte to render pages
69+
- [Storybook 9](https://storybook.js.org/blog/storybook-9/) is out now and includes updates to the Svelte CSF story format to support Svelte 5
70+
- [Sheepdog](https://github.com/mainmatter/sheepdog) supplies a simple way to introduce cancellable concurrency into your app
71+
- Flowbite Svelte now has [datatable](https://flowbite-svelte.com/docs/plugins/datatables) and [text editor (WYSIWYG)](https://flowbite-svelte.com/docs/plugins/wysiwyg) components
72+
- [Ark UI](https://ark-ui.com/), a headless UI library, now has a Svelte version
73+
- [SVAR Svelte Filter](https://svar.dev/svelte/filter/) helps you add complex filtering UI and logic to data-heavy apps like admin panels or dashboards
74+
75+
That's it for this month! Let us know if we missed anything on [Reddit](https://www.reddit.com/r/sveltejs/) or [Discord](https://discord.gg/svelte).
76+
77+
Until next time 👋🏼!

apps/svelte.dev/content/docs/cli/10-introduction/10-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The command line interface (CLI), `sv`, is a toolkit for creating and maintainin
99

1010
The easiest way to run `sv` is with [`npx`](https://docs.npmjs.com/cli/v8/commands/npx) (or the equivalent command if you're using a different package manager — for example, `pnpx` if you're using [pnpm](https://pnpm.io/)):
1111

12-
```bash
12+
```sh
1313
npx sv <command> <args>
1414
```
1515

apps/svelte.dev/content/docs/cli/20-commands/10-sv-create.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: sv create
77

88
## Usage
99

10-
```bash
10+
```sh
1111
npx sv create [options] [path]
1212
```
1313

apps/svelte.dev/content/docs/cli/20-commands/20-sv-add.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ title: sv add
77

88
## Usage
99

10-
```bash
10+
```sh
1111
npx sv add
1212
```
1313

14-
```bash
14+
```sh
1515
npx sv add [add-ons]
1616
```
1717

apps/svelte.dev/content/docs/cli/20-commands/30-sv-check.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ Requires Node 16 or later.
1515

1616
You will need to have the `svelte-check` package installed in your project:
1717

18-
```bash
18+
```sh
1919
npm i -D svelte-check
2020
```
2121

2222
## Usage
2323

24-
```bash
24+
```sh
2525
npx sv check
2626
```
2727

@@ -60,7 +60,7 @@ Use this if you only want to check the Svelte files found in the current directo
6060

6161
Files/folders to ignore, relative to workspace root. Paths should be comma-separated and quoted. Example:
6262

63-
```bash
63+
```sh
6464
npx sv check --ignore "dist,build"
6565
```
6666

@@ -76,7 +76,7 @@ If provided, warnings will cause `sv check` to exit with an error code.
7676

7777
A quoted, comma-separated list of `code:behaviour` pairs where `code` is a [compiler warning code](../svelte/compiler-warnings) and `behaviour` is either `ignore` or `error`:
7878

79-
```bash
79+
```sh
8080
npx sv check --compiler-warnings "css_unused_selector:ignore,a11y_missing_attribute:error"
8181
```
8282

@@ -91,7 +91,7 @@ A quoted, comma-separated list of sources that should run diagnostics on your co
9191

9292
Example:
9393

94-
```bash
94+
```sh
9595
npx sv check --diagnostic-sources "js,svelte"
9696
```
9797

apps/svelte.dev/content/docs/cli/20-commands/40-sv-migrate.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ Some migrations may annotate your codebase with tasks for completion that you ca
99

1010
## Usage
1111

12-
```bash
12+
```sh
1313
npx sv migrate
1414
```
1515

1616
You can also specify a migration directly via the CLI:
17-
```bash
17+
```sh
1818
npx sv migrate [migration]
1919
```
2020

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
NOTE: do not edit this file, it is generated in apps/svelte.dev/scripts/sync-docs/index.ts
3+
title: devtools-json
4+
---
5+
6+
The `devtools-json` add-on installs [`vite-plugin-devtools-json`](https://github.com/ChromeDevTools/vite-plugin-devtools-json/), which is a Vite plugin for generating a Chromium DevTools project settings file on-the-fly in the development server. This file is served from `/.well-known/appspecific/com.chrome.devtools.json` and tells Chromium browsers where your project's source code lives so that you can use [the workspaces feature](https://developer.chrome.com/docs/devtools/workspaces) to edit source files in the browser.
7+
8+
> [!NOTE]
9+
> Installing the plugin enables the feature for all users connecting to the dev server with a Chromium browser, and allows the browser to read and write all files within the directory. If using Chrome's AI Assistance feature, this may also result in data being sent to Google.
10+
11+
## Alternatives
12+
13+
If you'd prefer not to install the plugin, but still want to avoid seeing a message about the missing file, you have a couple of options.
14+
15+
Firstly, you can prevent the request from being issued on your machine by disabling the feature in your browser. You can do this in Chrome by visiting `chrome://flags` and disabling the "DevTools Project Settings". You may also be interested in disabling "DevTools Automatic Workspace Folders" since it’s closely related.
16+
17+
You can also prevent the web server from issuing a notice regarding the incoming request for all developers of your application by handling the request yourself. For example, you can create a file named `.well-known/appspecific/com.chrome.devtools.json` with the contents `"Go away, Chrome DevTools!"` or you can add logic to respond to the request in your [`handle`](https://svelte.dev/docs/kit/hooks#Server-hooks-handle) hook:
18+
19+
```js
20+
/// file: src/hooks.server.js
21+
import { dev } from '$app/environment';
22+
23+
export function handle({ event, resolve }) {
24+
if (dev && event.url.pathname === '/.well-known/appspecific/com.chrome.devtools.json') {
25+
return new Response(undefined, { status: 404 });
26+
}
27+
28+
return resolve(event);
29+
}
30+
```
31+
32+
## Usage
33+
34+
```sh
35+
npx sv add devtools-json
36+
```
37+
38+
## What you get
39+
40+
- `vite-plugin-devtools-json` added to your Vite plugin options

apps/svelte.dev/content/docs/cli/30-add-ons/05-drizzle.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: drizzle
77

88
## Usage
99

10-
```bash
10+
```sh
1111
npx sv add drizzle
1212
```
1313

@@ -28,7 +28,7 @@ Which database variant to use:
2828
- `mysql` — another popular open source database
2929
- `sqlite` — file-based database not requiring a database server
3030

31-
```bash
31+
```sh
3232
npx sv add drizzle=database:postgresql
3333
```
3434

@@ -40,7 +40,7 @@ The SQL client to use, depends on `database`:
4040
- For `mysql`: `mysql2`, `planetscale`
4141
- For `sqlite`: `better-sqlite3`, `libsql`, `turso`
4242

43-
```bash
43+
```sh
4444
npx sv add drizzle=database:postgresql+client:postgres.js
4545
```
4646

@@ -50,6 +50,6 @@ Drizzle is compatible with well over a dozen database drivers. We just offer a f
5050

5151
Whether to add Docker Compose configuration. Only available for [`database`](#Options-database) `postgresql` or `mysql`
5252

53-
```bash
53+
```sh
5454
npx sv add drizzle=database:postgresql+client:postgres.js+docker:yes
5555
```

apps/svelte.dev/content/docs/cli/30-add-ons/10-eslint.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: eslint
77

88
## Usage
99

10-
```bash
10+
```sh
1111
npx sv add eslint
1212
```
1313

apps/svelte.dev/content/docs/cli/30-add-ons/15-lucia.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ An auth setup following [the Lucia auth guide](https://lucia-auth.com/).
77

88
## Usage
99

10-
```bash
10+
```sh
1111
npx sv add lucia
1212
```
1313

@@ -22,6 +22,6 @@ npx sv add lucia
2222

2323
Whether to include demo registration and login pages.
2424

25-
```bash
25+
```sh
2626
npx sv add lucia=demo:yes
2727
```

0 commit comments

Comments
 (0)