pull/11836/head
Dominic Gannaway 2 years ago
commit f4c8752e9f

@ -429,11 +429,13 @@
"silly-lies-film",
"silly-ways-wash",
"silver-points-approve",
"silver-sheep-knock",
"six-bears-trade",
"six-boats-shave",
"sixty-items-crash",
"sixty-numbers-hope",
"sixty-pandas-rush",
"sixty-plants-cover",
"sleepy-cats-eat",
"slimy-clouds-talk",
"slimy-hairs-impress",

@ -1,5 +1,13 @@
# svelte
## 5.0.0-next.148
### Patch Changes
- chore: improve $state.frozen performance in prod ([#11852](https://github.com/sveltejs/svelte/pull/11852))
- breaking: removed deferred event updates ([#11855](https://github.com/sveltejs/svelte/pull/11855))
## 5.0.0-next.147
### Patch Changes

@ -2,7 +2,7 @@
"name": "svelte",
"description": "Cybernetically enhanced web apps",
"license": "MIT",
"version": "5.0.0-next.147",
"version": "5.0.0-next.148",
"type": "module",
"types": "./types/index.d.ts",
"engines": {

@ -380,30 +380,33 @@ function reconcile(array, state, anchor, render_fn, flags, get_key) {
const to_destroy = Array.from(seen);
while (current) {
while (current !== null) {
to_destroy.push(current);
current = current.next;
}
var destroy_length = to_destroy.length;
var controlled_anchor = (flags & EACH_IS_CONTROLLED) !== 0 && length === 0 ? anchor : null;
if (destroy_length > 0) {
var controlled_anchor = (flags & EACH_IS_CONTROLLED) !== 0 && length === 0 ? anchor : null;
if (is_animated) {
for (i = 0; i < to_destroy.length; i += 1) {
to_destroy[i].a?.measure();
}
if (is_animated) {
for (i = 0; i < destroy_length; i += 1) {
to_destroy[i].a?.measure();
}
for (i = 0; i < to_destroy.length; i += 1) {
to_destroy[i].a?.fix();
for (i = 0; i < destroy_length; i += 1) {
to_destroy[i].a?.fix();
}
}
}
pause_effects(to_destroy, controlled_anchor, () => {
for (var i = 0; i < to_destroy.length; i += 1) {
var item = to_destroy[i];
items.delete(item.k);
link(item.prev, item.next);
}
});
pause_effects(to_destroy, controlled_anchor, () => {
for (var i = 0; i < destroy_length; i += 1) {
var item = to_destroy[i];
items.delete(item.k);
link(item.prev, item.next);
}
});
}
if (is_animated) {
effect(() => {

@ -6,5 +6,5 @@
* https://svelte.dev/docs/svelte-compiler#svelte-version
* @type {string}
*/
export const VERSION = '5.0.0-next.147';
export const VERSION = '5.0.0-next.148';
export const PUBLIC_VERSION = '5';

Loading…
Cancel
Save