@sveltejs/kit 2.5.22 → 2.5.24
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 +2 -2
- package/src/core/sync/write_root.js +29 -8
- package/src/version.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sveltejs/kit",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.24",
|
|
4
4
|
"description": "SvelteKit is the fastest way to build Svelte apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"framework",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"vitest": "^2.0.1"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@sveltejs/vite-plugin-svelte": "^3.0.0",
|
|
49
|
+
"@sveltejs/vite-plugin-svelte": "^3.0.0 || ^4.0.0-next.1",
|
|
50
50
|
"svelte": "^4.0.0 || ^5.0.0-next.0",
|
|
51
51
|
"vite": "^5.0.3"
|
|
52
52
|
},
|
|
@@ -22,20 +22,39 @@ export function write_root(manifest_data, output) {
|
|
|
22
22
|
let l = max_depth;
|
|
23
23
|
|
|
24
24
|
let pyramid = dedent`
|
|
25
|
-
${
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
${
|
|
26
|
+
isSvelte5Plus()
|
|
27
|
+
? `<!-- svelte-ignore binding_property_non_reactive -->
|
|
28
|
+
<Pyramid_${l} bind:this={components[${l}]} data={data_${l}} {form} />`
|
|
29
|
+
: `<svelte:component this={constructors[${l}]} bind:this={components[${l}]} data={data_${l}} {form} />`
|
|
30
|
+
}`;
|
|
28
31
|
|
|
29
32
|
while (l--) {
|
|
30
33
|
pyramid = dedent`
|
|
31
34
|
{#if constructors[${l + 1}]}
|
|
32
|
-
${
|
|
33
|
-
|
|
35
|
+
${
|
|
36
|
+
isSvelte5Plus()
|
|
37
|
+
? dedent`{@const Pyramid_${l} = constructors[${l}]}
|
|
38
|
+
<!-- svelte-ignore binding_property_non_reactive -->
|
|
39
|
+
<Pyramid_${l} bind:this={components[${l}]} data={data_${l}} {form}>
|
|
40
|
+
${pyramid}
|
|
41
|
+
</Pyramid_${l}>`
|
|
42
|
+
: dedent`<svelte:component this={constructors[${l}]} bind:this={components[${l}]} data={data_${l}}>
|
|
34
43
|
${pyramid}
|
|
35
|
-
</svelte:component
|
|
44
|
+
</svelte:component>`
|
|
45
|
+
}
|
|
46
|
+
|
|
36
47
|
{:else}
|
|
37
|
-
${
|
|
38
|
-
|
|
48
|
+
${
|
|
49
|
+
isSvelte5Plus()
|
|
50
|
+
? dedent`
|
|
51
|
+
{@const Pyramid_${l} = constructors[${l}]}
|
|
52
|
+
<!-- svelte-ignore binding_property_non_reactive -->
|
|
53
|
+
<Pyramid_${l} bind:this={components[${l}]} data={data_${l}} {form} />
|
|
54
|
+
`
|
|
55
|
+
: dedent`<svelte:component this={constructors[${l}]} bind:this={components[${l}]} data={data_${l}} {form} />`
|
|
56
|
+
}
|
|
57
|
+
|
|
39
58
|
{/if}
|
|
40
59
|
`;
|
|
41
60
|
}
|
|
@@ -111,6 +130,8 @@ export function write_root(manifest_data, output) {
|
|
|
111
130
|
mounted = true;
|
|
112
131
|
return unsubscribe;
|
|
113
132
|
});
|
|
133
|
+
|
|
134
|
+
${isSvelte5Plus() ? `const Pyramid_${max_depth}=$derived(constructors[${max_depth}])` : ''}
|
|
114
135
|
</script>
|
|
115
136
|
|
|
116
137
|
${pyramid}
|
package/src/version.js
CHANGED