Skip to content

Commit a1be776

Browse files
committed
Merge branch 'main' into defer-effects-in-pending-boundary
2 parents 20edfe1 + 3c694ce commit a1be776

File tree

209 files changed

+3817
-1699
lines changed

Some content is hidden

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

209 files changed

+3817
-1699
lines changed

.changeset/ninety-pandas-move.md

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

.github/workflows/ecosystem-ci-trigger.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
contents: read # to clone the repo
1616
steps:
1717
- name: monitor action permissions
18-
uses: GitHubSecurityLab/actions-permissions/monitor@v1
1918
- name: check user authorization # user needs triage permission
2019
uses: actions/github-script@v7
2120
id: check-permissions

.github/workflows/pkg.pr.new-comment.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ jobs:
1414
name: 'Update comment'
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
1817
- name: Download artifact
1918
uses: actions/download-artifact@v4
2019
with:

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ jobs:
1717
name: Release
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
2120
- name: Checkout Repo
2221
uses: actions/checkout@v4
2322
with:

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ packages/svelte/src/internal/client/warnings.js
1515
packages/svelte/src/internal/shared/errors.js
1616
packages/svelte/src/internal/shared/warnings.js
1717
packages/svelte/src/internal/server/errors.js
18+
packages/svelte/src/internal/server/warnings.js
1819
packages/svelte/tests/migrate/samples/*/output.svelte
1920
packages/svelte/tests/**/*.svelte
2021
packages/svelte/tests/**/_expected*

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The [Open Source Guides](https://opensource.guide/) website has a collection of
99

1010
## Get involved
1111

12-
There are many ways to contribute to Svelte, and many of them do not involve writing any code. Here's a few ideas to get started:
12+
There are many ways to contribute to Svelte, and many of them do not involve writing any code. Here are a few ideas to get started:
1313

1414
- Simply start using Svelte. Go through the [Getting Started](https://svelte.dev/docs#getting-started) guide. Does everything work as expected? If not, we're always looking for improvements. Let us know by [opening an issue](#reporting-new-issues).
1515
- Look through the [open issues](https://github.com/sveltejs/svelte/issues). A good starting point would be issues tagged [good first issue](https://github.com/sveltejs/svelte/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22). Provide workarounds, ask for clarification, or suggest labels. Help [triage issues](#triaging-issues-and-pull-requests).
@@ -90,9 +90,9 @@ A good test plan has the exact commands you ran and their output, provides scree
9090

9191
#### Writing tests
9292

93-
All tests are located in `/test` folder.
93+
All tests are located in the `/tests` folder.
9494

95-
Test samples are kept in `/test/xxx/samples` folder.
95+
Test samples are kept in `/tests/xxx/samples` folders.
9696

9797
#### Running tests
9898

documentation/docs/98-reference/.generated/client-warnings.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,27 @@ Reactive `$state(...)` proxies and the values they proxy have different identiti
312312
313313
To resolve this, ensure you're comparing values where both values were created with `$state(...)`, or neither were. Note that `$state.raw(...)` will _not_ create a state proxy.
314314
315+
### state_proxy_unmount
316+
317+
```
318+
Tried to unmount a state proxy, rather than a component
319+
```
320+
321+
`unmount` was called with a state proxy:
322+
323+
```js
324+
import { mount, unmount } from 'svelte';
325+
import Component from './Component.svelte';
326+
let target = document.body;
327+
// ---cut---
328+
let component = $state(mount(Component, { target }));
329+
330+
// later...
331+
unmount(component);
332+
```
333+
334+
Avoid using `$state` here. If `component` _does_ need to be reactive for some reason, use `$state.raw` instead.
335+
315336
### svelte_boundary_reset_noop
316337
317338
```

documentation/docs/98-reference/.generated/server-errors.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
<!-- This file is generated by scripts/process-messages/index.js. Do not edit! -->
22

3+
### await_invalid
4+
5+
```
6+
Encountered asynchronous work while rendering synchronously.
7+
```
8+
9+
You (or the framework you're using) called [`render(...)`](svelte-server#render) with a component containing an `await` expression. Either `await` the result of `render` or wrap the `await` (or the component containing it) in a [`<svelte:boundary>`](svelte-boundary) with a `pending` snippet.
10+
11+
### html_deprecated
12+
13+
```
14+
The `html` property of server render results has been deprecated. Use `body` instead.
15+
```
16+
317
### lifecycle_function_unavailable
418

519
```
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!-- This file is generated by scripts/process-messages/index.js. Do not edit! -->
2+
3+
### experimental_async_ssr
4+
5+
```
6+
Attempted to use asynchronous rendering without `experimental.async` enabled
7+
```
8+
9+
Set `experimental.async: true` in your compiler options (usually in `svelte.config.js`) to use async server rendering. This render ran synchronously.

documentation/docs/98-reference/.generated/shared-errors.md

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,5 @@
11
<!-- This file is generated by scripts/process-messages/index.js. Do not edit! -->
22

3-
### await_outside_boundary
4-
5-
```
6-
Cannot await outside a `<svelte:boundary>` with a `pending` snippet
7-
```
8-
9-
The `await` keyword can only appear in a `$derived(...)` or template expression, or at the top level of a component's `<script>` block, if it is inside a [`<svelte:boundary>`](/docs/svelte/svelte-boundary) that has a `pending` snippet:
10-
11-
```svelte
12-
<svelte:boundary>
13-
<p>{await getData()}</p>
14-
15-
{#snippet pending()}
16-
<p>loading...</p>
17-
{/snippet}
18-
</svelte:boundary>
19-
```
20-
21-
This restriction may be lifted in a future version of Svelte.
22-
233
### invalid_default_snippet
244

255
```

0 commit comments

Comments
 (0)