Skip to content

Commit ec5cb13

Browse files
committed
Merge branch 'main' into form-factory
2 parents aa3f8e1 + 2ccc638 commit ec5cb13

File tree

58 files changed

+506
-87
lines changed

Some content is hidden

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

58 files changed

+506
-87
lines changed

.changeset/blue-baboons-jam.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sveltejs/kit': patch
3+
---
4+
5+
fix: include hash when using `resolve` with hash routing enabled

.changeset/deep-parks-marry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sveltejs/adapter-vercel': patch
3+
---
4+
5+
chore: improve runtime config parsing

.changeset/ten-rats-spend.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@sveltejs/kit': patch
3+
---
4+
5+
fix: `afterNavigate` callback not running after hydration when experimental async is enabled
6+
fix: Snapshot `restore` method not called after reload when experimental async is enabled

.changeset/thin-frogs-create.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sveltejs/kit': patch
3+
---
4+
5+
fix: expose `issue.path` in `.allIssues()`

.github/workflows/audit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- uses: pnpm/[email protected]
2222
- uses: actions/setup-node@v6
2323
with:
24-
node-version: '22.x'
24+
node-version: '24.x'
2525
cache: pnpm
2626
- run: pnpm install --frozen-lockfile
2727
# check prod dependencies as these would affect users

.github/workflows/ci.yml

Lines changed: 40 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- uses: pnpm/[email protected]
2727
- uses: actions/setup-node@v6
2828
with:
29-
node-version: 22
29+
node-version: 24
3030
cache: pnpm
3131
- run: pnpm install --frozen-lockfile
3232
- run: pnpm build
@@ -38,7 +38,7 @@ jobs:
3838
- uses: pnpm/[email protected]
3939
- uses: actions/setup-node@v6
4040
with:
41-
node-version: 22
41+
node-version: 24
4242
cache: pnpm
4343
- run: pnpm install --frozen-lockfile
4444
- run: pnpm run lint
@@ -84,7 +84,7 @@ jobs:
8484
run: find packages -type d -name test-results -not -empty | tar -czf test-results.tar.gz --files-from=-
8585
- name: Upload test results
8686
if: failure()
87-
uses: actions/upload-artifact@v4
87+
uses: actions/upload-artifact@v5
8888
with:
8989
retention-days: 3
9090
name: test-failure-${{ github.run_id }}-${{ matrix.os }}-${{ matrix.node-version }}-${{ matrix.e2e-browser }}
@@ -142,7 +142,7 @@ jobs:
142142
run: find packages -type d -name test-results -not -empty | tar -czf test-results-cross-platform-${{ matrix.mode }}.tar.gz --files-from=-
143143
- name: Upload test results
144144
if: failure()
145-
uses: actions/upload-artifact@v4
145+
uses: actions/upload-artifact@v5
146146
with:
147147
retention-days: 3
148148
name: test-failure-cross-platform-${{ matrix.mode }}-${{ github.run_id }}-${{ matrix.os }}-${{ matrix.node-version }}-${{ matrix.e2e-browser }}
@@ -162,7 +162,7 @@ jobs:
162162
- uses: pnpm/[email protected]
163163
- uses: actions/setup-node@v6
164164
with:
165-
node-version: 22
165+
node-version: 24
166166
cache: pnpm
167167
- run: pnpm install --frozen-lockfile
168168
- run: pnpm playwright install chromium
@@ -176,11 +176,45 @@ jobs:
176176
run: find packages -type d -name test-results -not -empty | tar -czf test-results-server-side-route-resolution-${{ matrix.mode }}.tar.gz --files-from=-
177177
- name: Upload test results
178178
if: failure()
179-
uses: actions/upload-artifact@v4
179+
uses: actions/upload-artifact@v5
180180
with:
181181
retention-days: 3
182182
name: test-failure-server-side-route-resolution-${{ matrix.mode }}-${{ github.run_id }}
183183
path: test-results-server-side-route-resolution-${{ matrix.mode }}.tar.gz
184+
test-kit-svelte-async:
185+
runs-on: ubuntu-latest
186+
timeout-minutes: 30
187+
strategy:
188+
fail-fast: false
189+
matrix:
190+
include:
191+
- mode: 'dev'
192+
- mode: 'build'
193+
steps:
194+
- run: git config --global core.autocrlf false
195+
- uses: actions/checkout@v5
196+
- uses: pnpm/[email protected]
197+
- uses: actions/setup-node@v6
198+
with:
199+
node-version: 24
200+
cache: pnpm
201+
- run: pnpm install --frozen-lockfile
202+
- run: pnpm playwright install chromium
203+
- run: pnpm run sync-all
204+
- run: pnpm test:svelte-async:${{ matrix.mode }}
205+
- name: Print flaky test report
206+
run: node scripts/print-flaky-test-report.js
207+
- name: Archive test results
208+
if: failure()
209+
shell: bash
210+
run: find packages -type d -name test-results -not -empty | tar -czf test-results-svelte-async-${{ matrix.mode }}.tar.gz --files-from=-
211+
- name: Upload test results
212+
if: failure()
213+
uses: actions/upload-artifact@v5
214+
with:
215+
retention-days: 3
216+
name: test-failure-svelte-async-${{ matrix.mode }}-${{ github.run_id }}
217+
path: test-results-svelte-async-${{ matrix.mode }}.tar.gz
184218
test-others:
185219
runs-on: ubuntu-latest
186220
strategy:

documentation/docs/20-core-concepts/60-remote-functions.md

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

3434
## Overview
3535

36-
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.
36+
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.
3737

3838
## query
3939

@@ -325,6 +325,8 @@ A form is composed of a set of _fields_, which are defined by the schema. In the
325325
326326
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.
327327
328+
> [!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.
329+
328330
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...
329331
330332
```js

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
"test:cross-platform:build": "pnpm run --dir packages/kit test:cross-platform:build",
1111
"test:server-side-route-resolution:dev": "pnpm run --dir packages/kit test:server-side-route-resolution:dev",
1212
"test:server-side-route-resolution:build": "pnpm run --dir packages/kit test:server-side-route-resolution:build",
13+
"test:svelte-async:dev": "pnpm run --dir packages/kit test:svelte-async:dev",
14+
"test:svelte-async:build": "pnpm run --dir packages/kit test:svelte-async:build",
1315
"test:vite-ecosystem-ci": "pnpm --dir packages/kit test",
1416
"test:others": "pnpm -r --filter='./packages/*' --filter=!./packages/kit/ --workspace-concurrency=1 test",
1517
"check": "pnpm -r prepublishOnly && pnpm -r check",

packages/adapter-static/test/apps/spa/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"test": "playwright test"
1010
},
1111
"devDependencies": {
12-
"@sveltejs/adapter-node": "workspace:^",
1312
"@sveltejs/kit": "workspace:^",
1413
"@sveltejs/vite-plugin-svelte": "catalog:",
1514
"sirv-cli": "catalog:",

packages/adapter-vercel/CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# @sveltejs/adapter-vercel
22

3+
## 6.1.0
4+
### Minor Changes
5+
6+
7+
- feat: Add experimental support for Bun runtime ([#14817](https://github.com/sveltejs/kit/pull/14817))
8+
9+
10+
### Patch Changes
11+
12+
- Updated dependencies [[`102aecf`](https://github.com/sveltejs/kit/commit/102aecfd228dd632664d748b9e87bc6d219294c4)]:
13+
- @sveltejs/kit@2.48.1
14+
315
## 6.0.0
416
### Major Changes
517

0 commit comments

Comments
 (0)