Skip to content

Commit 90f562c

Browse files
committed
Merge branch 'dev/const-boundary' of https://github.com/adiguba/svelte into dev/const-boundary
2 parents 5b73cc8 + 6c13df9 commit 90f562c

File tree

65 files changed

+1044
-742
lines changed

Some content is hidden

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

65 files changed

+1044
-742
lines changed

.changeset/spotty-drinks-tan.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
fix: allow for duplicate `var` declarations

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2016-2025 [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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</picture>
66
</a>
77

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)
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)
99

1010
## What is Svelte?
1111

benchmarking/benchmarks/reactivity/kairo/kairo_avoidable.js

Lines changed: 2 additions & 2 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);

benchmarking/benchmarks/reactivity/kairo/kairo_broad.js

Lines changed: 2 additions & 2 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);

benchmarking/benchmarks/reactivity/kairo/kairo_deep.js

Lines changed: 2 additions & 2 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);

benchmarking/benchmarks/reactivity/kairo/kairo_diamond.js

Lines changed: 2 additions & 2 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);

benchmarking/benchmarks/reactivity/kairo/kairo_mux.js

Lines changed: 2 additions & 2 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);

benchmarking/benchmarks/reactivity/kairo/kairo_repeated.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ function setup() {
2525
return {
2626
destroy,
2727
run() {
28-
$.flush_sync(() => {
28+
$.flush(() => {
2929
$.set(head, 1);
3030
});
3131
assert($.get(current) === size);
3232
counter = 0;
3333
for (let i = 0; i < 100; i++) {
34-
$.flush_sync(() => {
34+
$.flush(() => {
3535
$.set(head, i);
3636
});
3737
assert($.get(current) === i * size);

benchmarking/benchmarks/reactivity/kairo/kairo_triangle.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ function setup() {
3838
destroy,
3939
run() {
4040
const constant = count(width);
41-
$.flush_sync(() => {
41+
$.flush(() => {
4242
$.set(head, 1);
4343
});
4444
assert($.get(sum) === constant);
4545
counter = 0;
4646
for (let i = 0; i < 100; i++) {
47-
$.flush_sync(() => {
47+
$.flush(() => {
4848
$.set(head, i);
4949
});
5050
assert($.get(sum) === constant - width + i * width);

0 commit comments

Comments
 (0)