svelte 5.45.3 → 5.45.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/compiler/index.js +1 -1
- package/package.json +2 -2
- package/src/compiler/phases/2-analyze/index.js +5 -0
- package/src/internal/client/constants.js +1 -0
- package/src/internal/client/dev/debug.js +4 -4
- package/src/internal/client/dom/blocks/css-props.js +2 -3
- package/src/internal/client/dom/blocks/each.js +212 -222
- package/src/internal/client/dom/blocks/html.js +7 -5
- package/src/internal/client/dom/blocks/svelte-element.js +11 -14
- package/src/internal/client/dom/blocks/svelte-head.js +2 -2
- package/src/internal/client/dom/elements/transitions.js +15 -7
- package/src/internal/client/dom/hydration.js +2 -2
- package/src/internal/client/dom/operations.js +10 -13
- package/src/internal/client/dom/template.js +15 -13
- package/src/internal/client/reactivity/async.js +1 -6
- package/src/internal/client/reactivity/batch.js +1 -1
- package/src/internal/client/reactivity/effects.js +25 -27
- package/src/internal/client/render.js +5 -4
- package/src/internal/client/runtime.js +1 -1
- package/src/version.js +1 -1
- package/types/index.d.ts +2 -0
- package/types/index.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "svelte",
|
|
3
3
|
"description": "Cybernetically enhanced web apps",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "5.45.
|
|
5
|
+
"version": "5.45.5",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"types": "./types/index.d.ts",
|
|
8
8
|
"engines": {
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
"clsx": "^2.1.1",
|
|
166
166
|
"devalue": "^5.5.0",
|
|
167
167
|
"esm-env": "^1.2.1",
|
|
168
|
-
"esrap": "^2.2.
|
|
168
|
+
"esrap": "^2.2.1",
|
|
169
169
|
"is-reference": "^3.0.3",
|
|
170
170
|
"locate-character": "^3.0.0",
|
|
171
171
|
"magic-string": "^0.30.11",
|
|
@@ -1105,6 +1105,11 @@ function calculate_blockers(instance, scopes, analysis) {
|
|
|
1105
1105
|
functions.push(node);
|
|
1106
1106
|
} else if (node.type === 'VariableDeclaration') {
|
|
1107
1107
|
for (const declarator of node.declarations) {
|
|
1108
|
+
if (get_rune(declarator.init, instance.scope) === '$props.id') {
|
|
1109
|
+
// special case
|
|
1110
|
+
continue;
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1108
1113
|
if (
|
|
1109
1114
|
declarator.init?.type === 'ArrowFunctionExpression' ||
|
|
1110
1115
|
declarator.init?.type === 'FunctionExpression'
|
|
@@ -110,13 +110,13 @@ export function log_effect_tree(effect, depth = 0) {
|
|
|
110
110
|
console.groupEnd();
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
if (effect.
|
|
113
|
+
if (effect.nodes) {
|
|
114
114
|
// eslint-disable-next-line no-console
|
|
115
|
-
console.log(effect.
|
|
115
|
+
console.log(effect.nodes.start);
|
|
116
116
|
|
|
117
|
-
if (effect.
|
|
117
|
+
if (effect.nodes.start !== effect.nodes.end) {
|
|
118
118
|
// eslint-disable-next-line no-console
|
|
119
|
-
console.log(effect.
|
|
119
|
+
console.log(effect.nodes.end);
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { render_effect, teardown } from '../../reactivity/effects.js';
|
|
1
|
+
import { render_effect } from '../../reactivity/effects.js';
|
|
3
2
|
import { hydrating, set_hydrate_node } from '../hydration.js';
|
|
4
3
|
import { get_first_child } from '../operations.js';
|
|
5
4
|
|
|
@@ -10,7 +9,7 @@ import { get_first_child } from '../operations.js';
|
|
|
10
9
|
*/
|
|
11
10
|
export function css_props(element, get_styles) {
|
|
12
11
|
if (hydrating) {
|
|
13
|
-
set_hydrate_node(
|
|
12
|
+
set_hydrate_node(get_first_child(element));
|
|
14
13
|
}
|
|
15
14
|
|
|
16
15
|
render_effect(() => {
|