Skip to content

Commit 2370dac

Browse files
authored
Merge branch 'main' into fix-14815
2 parents 6564b41 + 189bd47 commit 2370dac

File tree

669 files changed

+14740
-6252
lines changed

Some content is hidden

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

669 files changed

+14740
-6252
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ env:
1212

1313
jobs:
1414
Tests:
15+
permissions: {}
1516
runs-on: ${{ matrix.os }}
1617
timeout-minutes: 15
1718
strategy:
@@ -41,6 +42,7 @@ jobs:
4142
env:
4243
CI: true
4344
Lint:
45+
permissions: {}
4446
runs-on: ubuntu-latest
4547
timeout-minutes: 5
4648
steps:
@@ -61,6 +63,7 @@ jobs:
6163
if: (${{ success() }} || ${{ failure() }}) # ensures this step runs even if previous steps fail
6264
run: pnpm build && { [ "`git status --porcelain=v1`" == "" ] || (echo "Generated types have changed — please regenerate types locally with `cd packages/svelte && pnpm generate:types` and commit the changes after you have reviewed them"; git diff; exit 1); }
6365
Benchmarks:
66+
permissions: {}
6467
runs-on: ubuntu-latest
6568
timeout-minutes: 15
6669
steps:

.github/workflows/docs-preview-create-request.yml

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

.github/workflows/docs-preview-delete-request.yml

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
if: github.repository == 'sveltejs/svelte' && github.event.issue.pull_request && startsWith(github.event.comment.body, '/ecosystem-ci run')
1111
steps:
12+
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
1213
- uses: actions/github-script@v6
1314
with:
1415
script: |

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,15 @@ on:
66
types:
77
- completed
88

9+
permissions:
10+
pull-requests: write
11+
912
jobs:
1013
build:
1114
name: 'Update comment'
1215
runs-on: ubuntu-latest
1316
steps:
17+
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
1418
- name: Download artifact
1519
uses: actions/download-artifact@v4
1620
with:

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ on: [push, pull_request]
33

44
jobs:
55
build:
6+
permissions: {}
7+
68
runs-on: ubuntu-latest
79

810
steps:
9-
- name: Checkout code
10-
uses: actions/checkout@v4
11-
12-
- run: corepack enable
11+
- uses: actions/checkout@v4
12+
- uses: pnpm/action-setup@v4
1313
- uses: actions/setup-node@v4
1414
with:
15-
node-version: 18.x
15+
node-version: 22.x
1616
cache: pnpm
1717

1818
- name: Install dependencies

.github/workflows/release.yml

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

.github/workflows/sync-request.yml

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

CONTRIBUTING.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ We use [GitHub issues](https://github.com/sveltejs/svelte/issues) for our public
5151

5252
If you have questions about using Svelte, contact us on Discord at [svelte.dev/chat](https://svelte.dev/chat), and we will do our best to answer your questions.
5353

54-
If you see anything you'd like to be implemented, create a [feature request issue](https://github.com/sveltejs/svelte/issues/new?template=feature_request.yml)
54+
If you see anything you'd like to be implemented, create a [feature request issue](https://github.com/sveltejs/svelte/issues/new?template=feature_request.yml).
5555

5656
### Reporting new issues
5757

@@ -62,8 +62,6 @@ When [opening a new issue](https://github.com/sveltejs/svelte/issues/new/choose)
6262

6363
## Pull requests
6464

65-
> HEADS UP: Svelte 5 will likely change a lot on the compiler. For that reason, please don't open PRs that are large in scope, touch more than a couple of files etc. In other words, bug fixes are fine, but big feature PRs will likely not be merged.
66-
6765
### Proposing a change
6866

6967
If you would like to request a new feature or enhancement but are not yet thinking about opening a pull request, you can also file an issue with [feature template](https://github.com/sveltejs/svelte/issues/new?template=feature_request.yml).

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2016-24 [these people](https://github.com/sveltejs/svelte/graphs/contributors)
1+
Copyright (c) 2016-2025 [Svelte Contributors](https://github.com/sveltejs/svelte/graphs/contributors)
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
44

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
[![Cybernetically enhanced web apps: Svelte](https://sveltejs.github.io/assets/banner.png)](https://svelte.dev)
1+
<a href="https://svelte.dev">
2+
<picture>
3+
<source media="(prefers-color-scheme: dark)" srcset="assets/banner_dark.png">
4+
<img src="assets/banner.png" alt="Svelte - web development for the rest of us" />
5+
</picture>
6+
</a>
27

3-
[![license](https://img.shields.io/npm/l/svelte.svg)](LICENSE.md) [![Chat](https://img.shields.io/discord/457912077277855764?label=chat&logo=discord)](https://svelte.dev/chat)
8+
[![License](https://img.shields.io/npm/l/svelte.svg)](LICENSE.md) [![Chat](https://img.shields.io/discord/457912077277855764?label=chat&logo=discord)](https://svelte.dev/chat)
49

510
## What is Svelte?
611

@@ -24,10 +29,6 @@ You may view [our roadmap](https://svelte.dev/roadmap) if you'd like to see what
2429

2530
Please see the [Contributing Guide](CONTRIBUTING.md) and the [`svelte`](packages/svelte) package for information on contributing to Svelte.
2631

27-
### svelte.dev
28-
29-
The source code for https://svelte.dev lives in the [sites](https://github.com/sveltejs/svelte/tree/master/sites/svelte.dev) folder, with all the documentation right [here](https://github.com/sveltejs/svelte/tree/master/documentation). The site is built with [SvelteKit](https://svelte.dev/docs/kit).
30-
3132
## Is svelte.dev down?
3233

3334
Probably not, but it's possible. If you can't seem to access any `.dev` sites, check out [this SuperUser question and answer](https://superuser.com/q/1413402).

assets/banner.png

97.4 KB
Loading

assets/banner_dark.png

103 KB
Loading

benchmarking/benchmarks/reactivity/kairo/kairo_avoidable.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ function setup() {
2020
return {
2121
destroy,
2222
run() {
23-
$.flush_sync(() => {
23+
$.flush(() => {
2424
$.set(head, 1);
2525
});
2626
assert($.get(computed5) === 6);
2727
for (let i = 0; i < 1000; i++) {
28-
$.flush_sync(() => {
28+
$.flush(() => {
2929
$.set(head, i);
3030
});
3131
assert($.get(computed5) === 6);
@@ -45,7 +45,7 @@ export async function kairo_avoidable_unowned() {
4545
const { run, destroy } = setup();
4646

4747
const { timing } = await fastest_test(10, () => {
48-
for (let i = 0; i < 100; i++) {
48+
for (let i = 0; i < 1000; i++) {
4949
run();
5050
}
5151
});
@@ -74,7 +74,7 @@ export async function kairo_avoidable_owned() {
7474
});
7575

7676
const { timing } = await fastest_test(10, () => {
77-
for (let i = 0; i < 100; i++) {
77+
for (let i = 0; i < 1000; i++) {
7878
run();
7979
}
8080
});

benchmarking/benchmarks/reactivity/kairo/kairo_broad.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ function setup() {
2525
return {
2626
destroy,
2727
run() {
28-
$.flush_sync(() => {
28+
$.flush(() => {
2929
$.set(head, 1);
3030
});
3131
counter = 0;
3232
for (let i = 0; i < 50; i++) {
33-
$.flush_sync(() => {
33+
$.flush(() => {
3434
$.set(head, i);
3535
});
3636
assert($.get(last) === i + 50);
@@ -51,7 +51,7 @@ export async function kairo_broad_unowned() {
5151
const { run, destroy } = setup();
5252

5353
const { timing } = await fastest_test(10, () => {
54-
for (let i = 0; i < 100; i++) {
54+
for (let i = 0; i < 1000; i++) {
5555
run();
5656
}
5757
});
@@ -80,7 +80,7 @@ export async function kairo_broad_owned() {
8080
});
8181

8282
const { timing } = await fastest_test(10, () => {
83-
for (let i = 0; i < 100; i++) {
83+
for (let i = 0; i < 1000; i++) {
8484
run();
8585
}
8686
});

benchmarking/benchmarks/reactivity/kairo/kairo_deep.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ function setup() {
2525
return {
2626
destroy,
2727
run() {
28-
$.flush_sync(() => {
28+
$.flush(() => {
2929
$.set(head, 1);
3030
});
3131
counter = 0;
3232
for (let i = 0; i < iter; i++) {
33-
$.flush_sync(() => {
33+
$.flush(() => {
3434
$.set(head, i);
3535
});
3636
assert($.get(current) === len + i);
@@ -51,7 +51,7 @@ export async function kairo_deep_unowned() {
5151
const { run, destroy } = setup();
5252

5353
const { timing } = await fastest_test(10, () => {
54-
for (let i = 0; i < 100; i++) {
54+
for (let i = 0; i < 1000; i++) {
5555
run();
5656
}
5757
});
@@ -80,7 +80,7 @@ export async function kairo_deep_owned() {
8080
});
8181

8282
const { timing } = await fastest_test(10, () => {
83-
for (let i = 0; i < 100; i++) {
83+
for (let i = 0; i < 1000; i++) {
8484
run();
8585
}
8686
});

benchmarking/benchmarks/reactivity/kairo/kairo_diamond.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ function setup() {
2828
return {
2929
destroy,
3030
run() {
31-
$.flush_sync(() => {
31+
$.flush(() => {
3232
$.set(head, 1);
3333
});
3434
assert($.get(sum) === 2 * width);
3535
counter = 0;
3636
for (let i = 0; i < 500; i++) {
37-
$.flush_sync(() => {
37+
$.flush(() => {
3838
$.set(head, i);
3939
});
4040
assert($.get(sum) === (i + 1) * width);
@@ -55,7 +55,7 @@ export async function kairo_diamond_unowned() {
5555
const { run, destroy } = setup();
5656

5757
const { timing } = await fastest_test(10, () => {
58-
for (let i = 0; i < 100; i++) {
58+
for (let i = 0; i < 1000; i++) {
5959
run();
6060
}
6161
});
@@ -84,7 +84,7 @@ export async function kairo_diamond_owned() {
8484
});
8585

8686
const { timing } = await fastest_test(10, () => {
87-
for (let i = 0; i < 100; i++) {
87+
for (let i = 0; i < 1000; i++) {
8888
run();
8989
}
9090
});

benchmarking/benchmarks/reactivity/kairo/kairo_mux.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ function setup() {
2222
destroy,
2323
run() {
2424
for (let i = 0; i < 10; i++) {
25-
$.flush_sync(() => {
25+
$.flush(() => {
2626
$.set(heads[i], i);
2727
});
2828
assert($.get(splited[i]) === i + 1);
2929
}
3030
for (let i = 0; i < 10; i++) {
31-
$.flush_sync(() => {
31+
$.flush(() => {
3232
$.set(heads[i], i * 2);
3333
});
3434
assert($.get(splited[i]) === i * 2 + 1);
@@ -48,7 +48,7 @@ export async function kairo_mux_unowned() {
4848
const { run, destroy } = setup();
4949

5050
const { timing } = await fastest_test(10, () => {
51-
for (let i = 0; i < 100; i++) {
51+
for (let i = 0; i < 1000; i++) {
5252
run();
5353
}
5454
});
@@ -77,7 +77,7 @@ export async function kairo_mux_owned() {
7777
});
7878

7979
const { timing } = await fastest_test(10, () => {
80-
for (let i = 0; i < 100; i++) {
80+
for (let i = 0; i < 1000; i++) {
8181
run();
8282
}
8383
});

0 commit comments

Comments
 (0)