Skip to content

Commit 023a1af

Browse files
committed
Merge branch 'benmccann-svelte-5.0.0-next.28'
2 parents de14f86 + ee3f4ce commit 023a1af

File tree

8 files changed

+81
-61
lines changed

8 files changed

+81
-61
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Some frameworks like React, Vue.js or Angular, allow you to create a 1:1 relatio
5858

5959
The other mode is “non-keyed” and this is what e.g. vue.js uses by default for lists. In this mode, a change to the data items can modify DOM nodes that were associated with other data before. This can be more performant, since costly DOM operations can be avoided (e.g. first removing old nodes and then adding new nodes) and the existing DOM nodes are updated to display the new data. For React and Angular, using the item index as the key uses “non-keyed” mode for those frameworks.
6060

61-
Depending on your requirements, the “non-keyed” mode can be a performance gain or can cause severe problems, so one must carefully choose the mode and check that the framework supports that mode.
61+
Depending on your requirements, the “non-keyed” mode can be a performance gain or can cause severe problems, so one must carefully choose the mode and check that the framework supports that mode.
6262

6363
Read more here: [https://www.stefankrause.net/wp/?p=342](https://www.stefankrause.net/wp/?p=342)
6464

frameworks/keyed/svelte-classic/package-lock.json

Lines changed: 33 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frameworks/keyed/svelte-classic/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
"url": "https://github.com/krausest/js-framework-benchmark.git"
2323
},
2424
"devDependencies": {
25-
"@rollup/plugin-node-resolve": "15.1.0",
26-
"@rollup/plugin-terser": "0.4.3",
27-
"rollup": "^3.26.2",
28-
"rollup-plugin-svelte": "7.1.6",
29-
"svelte": "^5.0.0-next.8"
25+
"@rollup/plugin-node-resolve": "^15.2.3",
26+
"@rollup/plugin-terser": "^0.4.4",
27+
"rollup": "^3.29.4",
28+
"rollup-plugin-svelte": "^7.1.6",
29+
"svelte": "^5.0.0-next.28"
3030
}
3131
}

frameworks/keyed/svelte/package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frameworks/keyed/svelte/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
"@rollup/plugin-terser": "^0.4.4",
2727
"rollup": "^3.29.4",
2828
"rollup-plugin-svelte": "^7.1.6",
29-
"svelte": "^5.0.0-next.26"
29+
"svelte": "^5.0.0-next.28"
3030
}
3131
}

frameworks/keyed/svelte/src/Main.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<script>
44
let rowId = 1;
5-
let data = $state([]);
5+
let data = $state.frozen([]);
66
let selected = $state();
77
88
const adjectives = [

frameworks/non-keyed/svelte-classic/package-lock.json

Lines changed: 32 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frameworks/non-keyed/svelte-classic/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
"url": "https://github.com/krausest/js-framework-benchmark.git"
2323
},
2424
"devDependencies": {
25-
"@rollup/plugin-node-resolve": "15.1.0",
26-
"@rollup/plugin-terser": "0.4.3",
27-
"rollup": "^3.26.2",
25+
"@rollup/plugin-node-resolve": "^15.2.3",
26+
"@rollup/plugin-terser": "^0.4.4",
27+
"rollup": "^3.29.4",
2828
"rollup-plugin-svelte": "7.1.6",
29-
"svelte": "^5.0.0-next.8"
29+
"svelte": "^5.0.0-next.28"
3030
}
3131
}

0 commit comments

Comments
 (0)