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/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.3",
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.0",
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'
@@ -40,6 +40,7 @@ export const EAGER_EFFECT = 1 << 17;
40
40
  export const HEAD_EFFECT = 1 << 18;
41
41
  export const EFFECT_PRESERVED = 1 << 19;
42
42
  export const USER_EFFECT = 1 << 20;
43
+ export const EFFECT_OFFSCREEN = 1 << 25;
43
44
 
44
45
  // Flags exclusive to deriveds
45
46
  /**
@@ -110,13 +110,13 @@ export function log_effect_tree(effect, depth = 0) {
110
110
  console.groupEnd();
111
111
  }
112
112
 
113
- if (effect.nodes_start && effect.nodes_end) {
113
+ if (effect.nodes) {
114
114
  // eslint-disable-next-line no-console
115
- console.log(effect.nodes_start);
115
+ console.log(effect.nodes.start);
116
116
 
117
- if (effect.nodes_start !== effect.nodes_end) {
117
+ if (effect.nodes.start !== effect.nodes.end) {
118
118
  // eslint-disable-next-line no-console
119
- console.log(effect.nodes_end);
119
+ console.log(effect.nodes.end);
120
120
  }
121
121
  }
122
122
 
@@ -1,5 +1,4 @@
1
- /** @import { TemplateNode } from '#client' */
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(/** @type {TemplateNode} */ (get_first_child(element)));
12
+ set_hydrate_node(get_first_child(element));
14
13
  }
15
14
 
16
15
  render_effect(() => {