Skip to content

Commit 836153a

Browse files
authored
Merge branch 'main' into main
2 parents f245d82 + 74cdd9b commit 836153a

File tree

113 files changed

+219
-198
lines changed

Some content is hidden

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

113 files changed

+219
-198
lines changed

apps/svelte.dev/content/docs/kit/10-getting-started/30-project-structure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ my-project/
2020
│ ├ error.html
2121
│ ├ hooks.client.js
2222
│ ├ hooks.server.js
23-
| ├ service-worker.js
23+
├ service-worker.js
2424
│ └ tracing.server.js
2525
├ static/
2626
│ └ [your static assets]

apps/svelte.dev/content/docs/kit/20-core-concepts/60-remote-functions.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default config;
3434

3535
## Overview
3636

37-
Remote functions are exported from a `.remote.js` or `.remote.ts` file, and come in four flavours: `query`, `form`, `command` and `prerender`. On the client, the exported functions are transformed to `fetch` wrappers that invoke their counterparts on the server via a generated HTTP endpoint. Remote files must be placed in your `src` directory.
37+
Remote functions are exported from a `.remote.js` or `.remote.ts` file, and come in four flavours: `query`, `form`, `command` and `prerender`. On the client, the exported functions are transformed to `fetch` wrappers that invoke their counterparts on the server via a generated HTTP endpoint. Remote files can be placed anywhere in your `src` directory (except inside the `src/lib/server` directory), and third party libraries can provide them, too.
3838

3939
## query
4040

@@ -326,6 +326,8 @@ A form is composed of a set of _fields_, which are defined by the schema. In the
326326
327327
These attributes allow SvelteKit to set the correct input type, set a `name` that is used to construct the `data` passed to the handler, populate the `value` of the form (for example following a failed submission, to save the user having to re-enter everything), and set the [`aria-invalid`](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-invalid) state.
328328
329+
> [!NOTE] The generated `name` attribute uses JS object notation (e.g. `nested.array[0].value`). String keys that require quotes such as `object['nested-array'][0].value` are not supported. Under the hood, boolean checkbox and number field names are prefixed with `b:` and `n:`, respectively, to signal SvelteKit to coerce the values from strings prior to validation.
330+
329331
Fields can be nested in objects and arrays, and their values can be strings, numbers, booleans or `File` objects. For example, if your schema looked like this...
330332
331333
```js

apps/svelte.dev/content/docs/kit/40-best-practices/06-icons.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ A great way to use icons is to define them purely via CSS. Iconify offers suppor
99

1010
## Svelte
1111

12-
There are many [icon libraries for Svelte](/packages#icons). When choosing an icon library, it is recommended to avoid those that provide a `.svelte` file per icon as these libraries can have thousands of `.svelte` files which really slow down [Vite's dependency optimization](https://vite.dev/guide/dep-pre-bundling.html). This can become especially pathological if the icons are imported both via an umbrella import and subpath import [as described in the `vite-plugin-svelte` FAQ](https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/faq.md#what-is-going-on-with-vite-and-pre-bundling-dependencies).
12+
There are many [icon libraries for Svelte](/packages#icons). When choosing an icon library, it is recommended to avoid those that provide a `.svelte` file per icon, as these libraries can have thousands of `.svelte` files which really slow down [Vite's dependency optimization](https://vite.dev/guide/dep-pre-bundling.html). This can become especially pathological if the icons are imported both via an umbrella import and subpath import [as described in the `vite-plugin-svelte` FAQ](https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/faq.md#what-is-going-on-with-vite-and-pre-bundling-dependencies).

apps/svelte.dev/content/docs/kit/98-reference/[email protected]

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2524,6 +2524,15 @@ interface RemoteFormIssue {/*…*/}
25242524
message: string;
25252525
```
25262526

2527+
<div class="ts-block-property-details"></div>
2528+
</div>
2529+
2530+
<div class="ts-block-property">
2531+
2532+
```dts
2533+
path: Array<string | number>;
2534+
```
2535+
25272536
<div class="ts-block-property-details"></div>
25282537
</div></div>
25292538

apps/svelte.dev/scripts/sync-packages/index.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,20 @@ async function getNpmAndGitHubData(pkg: string): Promise<PackageKey & PackageNpm
123123

124124
const npm_description = npmInfo.description;
125125
const raw_repo_url = npmInfo.repository?.url ?? '';
126-
const repo_url = raw_repo_url?.replace(/^git\+/, '').replace(/\.git$/, '');
126+
let repo_url = raw_repo_url
127+
?.replace(/^git\+/, '')
128+
.replace(/\.git$/, '')
129+
.replace(/ssh:\/\/git@github.com\/(.+)/, (_, m) => `https://github.com/${m}`);
130+
127131
if (!repo_url) {
128132
// console.error(`repo_url not found for ${pkg}`);
129133
logsAtTheEnd.push({ type: 'no_repo_url', pkg, extra: `not found` });
130134
}
135+
136+
if (repo_url.startsWith('github.com')) {
137+
repo_url = 'https://' + repo_url;
138+
}
139+
131140
const git_org = repo_url?.split('/')[3];
132141
const git_repo = repo_url?.split('/')[4];
133142

apps/svelte.dev/src/lib/packages-meta.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,8 @@ const FEATURED: {
319319
packages: [
320320
{ name: '@testing-library/svelte', description: 'Testing utilities for DOM interaction' },
321321
{ name: 'playwright', description: 'Browser automation for end-to-end testing' },
322-
{ name: 'vitest' }
322+
{ name: 'vitest' },
323+
{ name: 'storybook' }
323324
]
324325
},
325326
{

apps/svelte.dev/src/lib/server/generated/registry/ai-sdk-svelte.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
"repo_url": "https://github.com/vercel/ai",
55
"authors": ["vercel-release-bot", "matheuss", "matt.straka"],
66
"homepage": "https://ai-sdk.dev/docs",
7-
"version": "3.0.79",
8-
"downloads": 308705,
9-
"github_stars": 18803,
10-
"updated": "2025-10-25T19:30:51.328Z",
7+
"version": "3.0.82",
8+
"downloads": 322602,
9+
"github_stars": 18952,
10+
"updated": "2025-10-29T10:20:42.747Z",
1111
"svelte_range": "^5.31.0",
1212
"typescript": true,
1313
"runes": true,

apps/svelte.dev/src/lib/server/generated/registry/altcha.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"authors": ["ovx"],
66
"homepage": "https://altcha.org",
77
"version": "2.2.4",
8-
"downloads": 17259,
9-
"github_stars": 1620,
8+
"downloads": 20901,
9+
"github_stars": 1632,
1010
"updated": "2025-09-27T22:35:07.312Z",
1111
"svelte_range": "^5.28.6",
1212
"typescript": true,

apps/svelte.dev/src/lib/server/generated/registry/amplify-adapter.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"authors": ["zimbronapps"],
66
"homepage": "https://github.com/gzimbron/amplify-adapter#readme",
77
"version": "1.2.3",
8-
"downloads": 1686,
8+
"downloads": 1633,
99
"github_stars": 32,
1010
"updated": "2025-09-11T19:17:42.448Z",
1111
"kit_range": "^2.4.0",

apps/svelte.dev/src/lib/server/generated/registry/ark-ui-svelte.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"authors": ["segunadebayo", "schroetier"],
66
"homepage": "https://ark-ui.com",
77
"version": "5.11.2",
8-
"downloads": 454,
9-
"github_stars": 4734,
8+
"downloads": 317,
9+
"github_stars": 4755,
1010
"updated": "2025-10-18T20:55:41.236Z",
1111
"svelte_range": ">=5.20.0",
1212
"kit_range": "2.46.5",

0 commit comments

Comments
 (0)