svelte 4.2.11 → 4.2.12

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.cjs CHANGED
@@ -35503,14 +35503,13 @@ class InlineComponentWrapper extends Wrapper {
35503
35503
  // statements will become switch_props function body
35504
35504
  // rewrite last statement, add props update logic
35505
35505
  statements[statements.length - 1] = b$1`
35506
+ for (let #i = 0; #i < ${levels}.length; #i += 1) {
35507
+ ${props} = @assign(${props}, ${levels}[#i]);
35508
+ }
35506
35509
  if (#dirty !== undefined && ${condition}) {
35507
- ${props} = @get_spread_update(${levels}, [
35510
+ ${props} = @assign(${props}, @get_spread_update(${levels}, [
35508
35511
  ${changes}
35509
- ]);
35510
- } else {
35511
- for (let #i = 0; #i < ${levels}.length; #i += 1) {
35512
- ${props} = @assign(${props}, ${levels}[#i]);
35513
- }
35512
+ ]));
35514
35513
  }
35515
35514
  `;
35516
35515
  }
@@ -43596,7 +43595,7 @@ function is_used_as_reference(node, parent) {
43596
43595
  * https://svelte.dev/docs/svelte-compiler#svelte-version
43597
43596
  * @type {string}
43598
43597
  */
43599
- const VERSION = '4.2.11';
43598
+ const VERSION = '4.2.12';
43600
43599
 
43601
43600
  const regex_leading_directory_separator = /^[/\\]/;
43602
43601
  const regex_starts_with_term_export = /^Export/;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte",
3
- "version": "4.2.11",
3
+ "version": "4.2.12",
4
4
  "description": "Cybernetically enhanced web apps",
5
5
  "type": "module",
6
6
  "module": "src/runtime/index.js",
@@ -277,14 +277,13 @@ export default class InlineComponentWrapper extends Wrapper {
277
277
  // statements will become switch_props function body
278
278
  // rewrite last statement, add props update logic
279
279
  statements[statements.length - 1] = b`
280
+ for (let #i = 0; #i < ${levels}.length; #i += 1) {
281
+ ${props} = @assign(${props}, ${levels}[#i]);
282
+ }
280
283
  if (#dirty !== undefined && ${condition}) {
281
- ${props} = @get_spread_update(${levels}, [
284
+ ${props} = @assign(${props}, @get_spread_update(${levels}, [
282
285
  ${changes}
283
- ]);
284
- } else {
285
- for (let #i = 0; #i < ${levels}.length; #i += 1) {
286
- ${props} = @assign(${props}, ${levels}[#i]);
287
- }
286
+ ]));
288
287
  }
289
288
  `;
290
289
  }
@@ -6,5 +6,5 @@
6
6
  * https://svelte.dev/docs/svelte-compiler#svelte-version
7
7
  * @type {string}
8
8
  */
9
- export const VERSION = '4.2.11';
9
+ export const VERSION = '4.2.12';
10
10
  export const PUBLIC_VERSION = '4';