Skip to content

Commit fce240d

Browse files
authored
Merge branch 'sveltejs:main' into main
2 parents 068a914 + 92301c5 commit fce240d

File tree

242 files changed

+3038
-1771
lines changed

Some content is hidden

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

242 files changed

+3038
-1771
lines changed

.changeset/clean-wolves-bathe.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-svelte": minor
3+
---
4+
5+
feat: mark scripts in libraries as being side effect free by default

.github/workflows/audit.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ permissions:
1313

1414
jobs:
1515
Audit:
16+
# prevents this action from running on forks
17+
if: github.repository == 'sveltejs/kit'
1618
runs-on: ubuntu-latest
1719
steps:
1820
- uses: actions/checkout@v4

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ jobs:
5959
- run: pnpm playwright install ${{ matrix.e2e-browser }}
6060
- run: pnpm run sync-all
6161
- run: pnpm test:kit
62+
- name: Print flaky test report
63+
run: node scripts/print-flaky-test-report.js
6264
- name: Archive test results
6365
if: failure()
6466
shell: bash
@@ -115,6 +117,8 @@ jobs:
115117
- run: pnpm playwright install ${{ matrix.e2e-browser }}
116118
- run: pnpm run sync-all
117119
- run: pnpm test:cross-platform:${{ matrix.mode }}
120+
- name: Print flaky test report
121+
run: node scripts/print-flaky-test-report.js
118122
- name: Archive test results
119123
if: failure()
120124
shell: bash

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
if: github.repository == 'sveltejs/kit'
1313
permissions:
1414
contents: write # to create release (changesets/action)
15+
id-token: write # OpenID Connect token needed for provenance
1516
pull-requests: write # to create pull request (changesets/action)
1617
name: Release
1718
runs-on: ubuntu-latest
@@ -39,6 +40,7 @@ jobs:
3940
version: pnpm changeset:version
4041
env:
4142
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
NPM_CONFIG_PROVENANCE: true
4244
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4345
UPDATE_TEMPLATE_SSH_KEY: ${{ secrets.UPDATE_TEMPLATE_SSH_KEY }}
4446

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
title: Getting started
3+
---

documentation/docs/10-getting-started/meta.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

documentation/docs/20-core-concepts/20-load.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,7 @@ To summarize, a `load` function will rerun in the following situations:
664664
- It references a property of `url` (such as `url.pathname` or `url.search`) whose value has changed. Properties in `request.url` are _not_ tracked
665665
- It calls `url.searchParams.get(...)`, `url.searchParams.getAll(...)` or `url.searchParams.has(...)` and the parameter in question changes. Accessing other properties of `url.searchParams` will have the same effect as accessing `url.search`.
666666
- It calls `await parent()` and a parent `load` function reran
667+
- A child `load` function calls `await parent()` and is rerunning, and the parent is a server load function
667668
- It declared a dependency on a specific URL via [`fetch`](#making-fetch-requests) (universal load only) or [`depends`](types#public-types-loadevent), and that URL was marked invalid with [`invalidate(url)`](modules#$app-navigation-invalidate)
668669
- All active `load` functions were forcibly rerun with [`invalidateAll()`](modules#$app-navigation-invalidateall)
669670

documentation/docs/20-core-concepts/30-form-actions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,8 @@ The easiest way to progressively enhance a form is to add the `use:enhance` acti
329329
+<form method="POST" use:enhance>
330330
```
331331

332+
> `use:enhance` can only be used with forms that have `method="POST"`. It will not work with `method="GET"`, which is the default for forms without a specified method. Attempting to use `use:enhance` on forms without `method="POST"` will result in an error.
333+
332334
> Yes, it's a little confusing that the `enhance` action and `<form action>` are both called 'action'. These docs are action-packed. Sorry.
333335
334336
Without an argument, `use:enhance` will emulate the browser-native behaviour, just without the full-page reloads. It will:
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
title: Core concepts
3+
---

documentation/docs/20-core-concepts/meta.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)