svelte 5.43.0 → 5.43.2

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.43.0",
5
+ "version": "5.43.2",
6
6
  "type": "module",
7
7
  "types": "./types/index.d.ts",
8
8
  "engines": {
@@ -105,7 +105,7 @@ export function process_children(nodes, initial, is_element, context) {
105
105
  is_element &&
106
106
  // In case it's wrapped in async the async logic will want to skip sibling nodes up until the end, hence we cannot make this controlled
107
107
  // TODO switch this around and instead optimize for elements with a single block child and not require extra comments (neither for async nor normally)
108
- !(node.body.metadata.has_await || node.metadata.expression.has_await)
108
+ !(node.body.metadata.has_await || node.metadata.expression.is_async())
109
109
  ) {
110
110
  node.metadata.is_controlled = true;
111
111
  } else {
@@ -55,7 +55,7 @@ export function transform_body(instance_body, runner, transform) {
55
55
 
56
56
  if (visited.declarations.length === 1) {
57
57
  return b.thunk(
58
- b.assignment('=', s.node.id, visited.declarations[0].init ?? b.void0),
58
+ b.assignment('=', visited.declarations[0].id, visited.declarations[0].init ?? b.void0),
59
59
  s.has_await
60
60
  );
61
61
  }
package/src/version.js CHANGED
@@ -4,5 +4,5 @@
4
4
  * The current version, as set in package.json.
5
5
  * @type {string}
6
6
  */
7
- export const VERSION = '5.43.0';
7
+ export const VERSION = '5.43.2';
8
8
  export const PUBLIC_VERSION = '5';