@solidjs/start 2.0.0-alpha.0 → 2.0.0-alpha.1

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.
Files changed (96) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/client/mount.d.ts +1 -7
  3. package/dist/client/mount.js +1 -99
  4. package/dist/config/constants.js +2 -2
  5. package/dist/config/fs-router.js +10 -22
  6. package/dist/config/fs-routes/fs-watcher.js +4 -4
  7. package/dist/config/fs-routes/index.js +4 -6
  8. package/dist/config/fs-routes/router.js +5 -5
  9. package/dist/config/fs-routes/tree-shake.js +12 -21
  10. package/dist/config/index.js +33 -36
  11. package/dist/config/lazy.js +9 -9
  12. package/dist/config/manifest.js +1 -1
  13. package/dist/http/index.d.ts +1 -4
  14. package/dist/http/index.js +3 -5
  15. package/dist/index.d.ts +0 -1
  16. package/dist/router.jsx +2 -2
  17. package/dist/server/assets/index.js +1 -1
  18. package/dist/server/assets/render.jsx +2 -2
  19. package/dist/server/fetchEvent.spec.js +1 -1
  20. package/dist/server/handler.js +29 -15
  21. package/dist/server/index.d.ts +1 -0
  22. package/dist/server/manifest/dev-client-manifest.js +1 -1
  23. package/dist/server/manifest/dev-ssr-manifest.js +1 -1
  24. package/dist/server/manifest/prod-ssr-manifest.js +7 -12
  25. package/dist/server/routes.js +3 -3
  26. package/dist/server/server-fns-runtime.js +2 -2
  27. package/dist/server/server-functions-handler.js +6 -11
  28. package/dist/server/server-runtime.js +8 -8
  29. package/dist/shared/dev-overlay/CodeView.d.ts +1 -1
  30. package/dist/shared/dev-overlay/CodeView.jsx +23 -34
  31. package/dist/shared/dev-overlay/DevOverlayDialog.jsx +4 -4
  32. package/dist/shared/dev-overlay/get-source-map.d.ts +1 -1
  33. package/dist/shared/dev-overlay/get-source-map.js +5 -5
  34. package/dist/shared/dev-overlay/icons.d.ts +10 -10
  35. package/dist/shared/dev-overlay/icons.jsx +91 -91
  36. package/dist/shared/dev-overlay/index.jsx +1 -1
  37. package/dist/shared/lazy.js +4 -2
  38. package/env.d.ts +9 -0
  39. package/package.json +5 -4
  40. package/scripts/build.js +3 -3
  41. package/scripts/validate-imports.js +8 -8
  42. package/src/client/mount.ts +1 -114
  43. package/src/config/constants.ts +3 -3
  44. package/src/config/dev-server.ts +95 -99
  45. package/src/config/fs-router.ts +140 -155
  46. package/src/config/fs-routes/fs-watcher.ts +57 -61
  47. package/src/config/fs-routes/index.ts +117 -119
  48. package/src/config/fs-routes/router.ts +7 -7
  49. package/src/config/fs-routes/tree-shake.ts +342 -363
  50. package/src/config/index.ts +36 -39
  51. package/src/config/lazy.ts +13 -13
  52. package/src/config/manifest.ts +5 -5
  53. package/src/config/vite-utils.ts +2 -6
  54. package/src/env.d.ts +10 -28
  55. package/src/http/index.ts +105 -142
  56. package/src/index.tsx +0 -12
  57. package/src/internal.d.ts +1 -1
  58. package/src/middleware/index.ts +39 -49
  59. package/src/router.tsx +4 -3
  60. package/src/server/StartServer.tsx +1 -7
  61. package/src/server/assets/index.ts +1 -1
  62. package/src/server/assets/render.tsx +6 -2
  63. package/src/server/collect-styles.ts +63 -70
  64. package/src/server/fetchEvent.spec.ts +71 -75
  65. package/src/server/fetchEvent.ts +17 -17
  66. package/src/server/handler.ts +136 -129
  67. package/src/server/index.tsx +13 -0
  68. package/src/server/manifest/client-manifest.ts +1 -1
  69. package/src/server/manifest/dev-client-manifest.ts +7 -5
  70. package/src/server/manifest/dev-ssr-manifest.ts +8 -6
  71. package/src/server/manifest/prod-client-manifest.ts +7 -4
  72. package/src/server/manifest/prod-ssr-manifest.ts +78 -94
  73. package/src/server/manifest/ssr-manifest.ts +4 -2
  74. package/src/server/routes.ts +96 -108
  75. package/src/server/server-fns-runtime.ts +3 -3
  76. package/src/server/server-functions-handler.ts +294 -319
  77. package/src/server/server-runtime.ts +13 -13
  78. package/src/server/spa/handler.ts +12 -12
  79. package/src/server/types.ts +46 -46
  80. package/src/server/util.ts +4 -4
  81. package/src/shared/ErrorBoundary.tsx +1 -1
  82. package/src/shared/HttpHeader.tsx +20 -20
  83. package/src/shared/HttpStatusCode.ts +14 -14
  84. package/src/shared/clientOnly.ts +3 -3
  85. package/src/shared/dev-overlay/CodeView.tsx +43 -46
  86. package/src/shared/dev-overlay/DevOverlayDialog.tsx +4 -4
  87. package/src/shared/dev-overlay/createStackFrame.ts +59 -62
  88. package/src/shared/dev-overlay/env.d.ts +2 -2
  89. package/src/shared/dev-overlay/get-source-map.ts +5 -7
  90. package/src/shared/dev-overlay/icons.tsx +289 -121
  91. package/src/shared/dev-overlay/index.tsx +1 -1
  92. package/src/shared/lazy.ts +4 -3
  93. package/src/shared/serverFunction.ts +1 -1
  94. package/src/virtual.d.ts +10 -10
  95. package/tsconfig.json +2 -2
  96. package/vitest.config.ts +2 -2
@@ -1,8 +1,8 @@
1
1
  // @refresh skip
2
- import type { JSX } from 'solid-js';
2
+ import type { JSX } from "solid-js";
3
3
 
4
4
  export function ArrowRightIcon(
5
- props: JSX.IntrinsicElements['svg'] & { title: string },
5
+ props: JSX.IntrinsicElements["svg"] & { title: string },
6
6
  ): JSX.Element {
7
7
  return (
8
8
  <svg
@@ -24,7 +24,7 @@ export function ArrowRightIcon(
24
24
  }
25
25
 
26
26
  export function ArrowLeftIcon(
27
- props: JSX.IntrinsicElements['svg'] & { title: string },
27
+ props: JSX.IntrinsicElements["svg"] & { title: string },
28
28
  ): JSX.Element {
29
29
  return (
30
30
  <svg
@@ -45,9 +45,7 @@ export function ArrowLeftIcon(
45
45
  );
46
46
  }
47
47
 
48
- export function RefreshIcon(
49
- props: JSX.IntrinsicElements['svg'] & { title: string },
50
- ): JSX.Element {
48
+ export function RefreshIcon(props: JSX.IntrinsicElements["svg"] & { title: string }): JSX.Element {
51
49
  return (
52
50
  <svg
53
51
  xmlns="http://www.w3.org/2000/svg"
@@ -68,7 +66,7 @@ export function RefreshIcon(
68
66
  }
69
67
 
70
68
  export function ViewCompiledIcon(
71
- props: JSX.IntrinsicElements['svg'] & { title: string },
69
+ props: JSX.IntrinsicElements["svg"] & { title: string },
72
70
  ): JSX.Element {
73
71
  return (
74
72
  <svg
@@ -96,7 +94,7 @@ export function ViewCompiledIcon(
96
94
  }
97
95
 
98
96
  export function ViewOriginalIcon(
99
- props: JSX.IntrinsicElements['svg'] & { title: string },
97
+ props: JSX.IntrinsicElements["svg"] & { title: string },
100
98
  ): JSX.Element {
101
99
  return (
102
100
  <svg
@@ -117,9 +115,7 @@ export function ViewOriginalIcon(
117
115
  );
118
116
  }
119
117
 
120
- export function CameraIcon(
121
- props: JSX.IntrinsicElements['svg'] & { title: string },
122
- ): JSX.Element {
118
+ export function CameraIcon(props: JSX.IntrinsicElements["svg"] & { title: string }): JSX.Element {
123
119
  return (
124
120
  <svg
125
121
  xmlns="http://www.w3.org/2000/svg"
@@ -129,9 +125,7 @@ export function CameraIcon(
129
125
  {...props}
130
126
  >
131
127
  <title>{props.title}</title>
132
- <path
133
- d="M12 9a3.75 3.75 0 1 0 0 7.5A3.75 3.75 0 0 0 12 9Z"
134
- />
128
+ <path d="M12 9a3.75 3.75 0 1 0 0 7.5A3.75 3.75 0 0 0 12 9Z" />
135
129
  <path
136
130
  fill-rule="evenodd"
137
131
  d="M9.344 3.071a49.52 49.52 0 0 1 5.312 0c.967.052 1.83.585 2.332 1.39l.821 1.317c.24.383.645.643 1.11.71.386.054.77.113 1.152.177 1.432.239 2.429 1.493 2.429 2.909V18a3 3 0 0 1-3 3h-15a3 3 0 0 1-3-3V9.574c0-1.416.997-2.67 2.429-2.909.382-.064.766-.123 1.151-.178a1.56 1.56 0 0 0 1.11-.71l.822-1.315a2.942 2.942 0 0 1 2.332-1.39ZM6.75 12.75a5.25 5.25 0 1 1 10.5 0 5.25 5.25 0 0 1-10.5 0Zm12-1.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z"
@@ -141,10 +135,7 @@ export function CameraIcon(
141
135
  );
142
136
  }
143
137
 
144
-
145
- export function DiscordIcon(
146
- props: JSX.IntrinsicElements['svg'] & { title: string },
147
- ): JSX.Element {
138
+ export function DiscordIcon(props: JSX.IntrinsicElements["svg"] & { title: string }): JSX.Element {
148
139
  return (
149
140
  <svg
150
141
  xmlns="http://www.w3.org/2000/svg"
@@ -159,9 +150,7 @@ export function DiscordIcon(
159
150
  );
160
151
  }
161
152
 
162
- export function GithubIcon(
163
- props: JSX.IntrinsicElements['svg'] & { title: string },
164
- ): JSX.Element {
153
+ export function GithubIcon(props: JSX.IntrinsicElements["svg"] & { title: string }): JSX.Element {
165
154
  return (
166
155
  <svg
167
156
  xmlns="http://www.w3.org/2000/svg"
@@ -171,118 +160,297 @@ export function GithubIcon(
171
160
  {...props}
172
161
  >
173
162
  <title>{props.title}</title>
174
- <path fill-rule="evenodd" clip-rule="evenodd" d="M12.026 2c-5.509 0-9.974 4.465-9.974 9.974 0 4.406 2.857 8.145 6.821 9.465.499.09.679-.217.679-.481 0-.237-.008-.865-.011-1.696-2.775.602-3.361-1.338-3.361-1.338-.452-1.152-1.107-1.459-1.107-1.459-.905-.619.069-.605.069-.605 1.002.07 1.527 1.028 1.527 1.028.89 1.524 2.336 1.084 2.902.829.091-.645.351-1.085.635-1.334-2.214-.251-4.542-1.107-4.542-4.93 0-1.087.389-1.979 1.024-2.675-.101-.253-.446-1.268.099-2.64 0 0 .837-.269 2.742 1.021a9.582 9.582 0 0 1 2.496-.336 9.554 9.554 0 0 1 2.496.336c1.906-1.291 2.742-1.021 2.742-1.021.545 1.372.203 2.387.099 2.64.64.696 1.024 1.587 1.024 2.675 0 3.833-2.33 4.675-4.552 4.922.355.308.675.916.675 1.846 0 1.334-.012 2.41-.012 2.737 0 .267.178.577.687.479C19.146 20.115 22 16.379 22 11.974 22 6.465 17.535 2 12.026 2z"></path>
163
+ <path
164
+ fill-rule="evenodd"
165
+ clip-rule="evenodd"
166
+ d="M12.026 2c-5.509 0-9.974 4.465-9.974 9.974 0 4.406 2.857 8.145 6.821 9.465.499.09.679-.217.679-.481 0-.237-.008-.865-.011-1.696-2.775.602-3.361-1.338-3.361-1.338-.452-1.152-1.107-1.459-1.107-1.459-.905-.619.069-.605.069-.605 1.002.07 1.527 1.028 1.527 1.028.89 1.524 2.336 1.084 2.902.829.091-.645.351-1.085.635-1.334-2.214-.251-4.542-1.107-4.542-4.93 0-1.087.389-1.979 1.024-2.675-.101-.253-.446-1.268.099-2.64 0 0 .837-.269 2.742 1.021a9.582 9.582 0 0 1 2.496-.336 9.554 9.554 0 0 1 2.496.336c1.906-1.291 2.742-1.021 2.742-1.021.545 1.372.203 2.387.099 2.64.64.696 1.024 1.587 1.024 2.675 0 3.833-2.33 4.675-4.552 4.922.355.308.675.916.675 1.846 0 1.334-.012 2.41-.012 2.737 0 .267.178.577.687.479C19.146 20.115 22 16.379 22 11.974 22 6.465 17.535 2 12.026 2z"
167
+ ></path>
175
168
  </svg>
176
169
  );
177
170
  }
178
171
 
179
172
  export function SolidStartIcon(
180
- props: JSX.IntrinsicElements['svg'] & { title: string },
173
+ props: JSX.IntrinsicElements["svg"] & { title: string },
181
174
  ): JSX.Element {
182
175
  return (
183
- <svg
184
- viewBox="0 0 701 701"
185
- fill="none"
186
- xmlns="http://www.w3.org/2000/svg"
187
- {...props}
188
- >
176
+ <svg viewBox="0 0 701 701" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
189
177
  <title>{props.title}</title>
190
178
  <g filter="url(#filter0_d_1_2)">
191
- <rect width="693" height="693" transform="translate(4)" fill="white"/>
192
- <mask id="mask0_1_2" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="323" y="556" width="174" height="72">
193
- <path d="M323.508 627.978L435.81 619.384C435.81 619.384 474.315 613.168 496.842 576.082L417.413 556.809L323.508 627.978Z" fill="white"/>
194
- </mask>
195
- <g mask="url(#mask0_1_2)">
196
- <path d="M510.734 559.645L490 661.769L309.658 625.183L330.349 523.018L510.734 559.645Z" fill="url(#paint0_linear_1_2)"/>
197
- </g>
198
- <mask id="mask1_1_2" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="73" y="364" width="424" height="220">
199
- <path d="M168.488 364.785C135.031 366.371 73.2477 372.295 73.2477 372.295L342.489 567.989L403.813 583.341L496.884 576.124L225.974 380.096C225.974 380.096 204.072 364.66 172.91 364.66C171.491 364.66 169.989 364.702 168.488 364.785Z" fill="white"/>
200
- </mask>
201
- <g mask="url(#mask1_1_2)">
202
- <path d="M192.016 773.57L-24.954 425.942L378.115 174.389L595.085 522.017L192.016 773.57Z" fill="url(#paint1_linear_1_2)"/>
203
- </g>
204
- <mask id="mask2_1_2" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="515" y="255" width="179" height="71">
205
- <path d="M515.573 325.822L631.254 318.688C631.254 318.688 670.885 312.931 693.621 275.928L611.438 255.487L515.573 325.822Z" fill="white"/>
206
- </mask>
207
- <g mask="url(#mask2_1_2)">
208
- <path d="M557.832 401.58L485.62 272.174L651.32 179.729L723.532 309.135L557.832 401.58Z" fill="url(#paint2_linear_1_2)"/>
209
- </g>
210
- <mask id="mask3_1_2" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="254" y="59" width="440" height="223">
211
- <path d="M352.251 59.0417C317.751 60.1681 254.132 65.2993 254.132 65.2993L534.345 265.666L597.755 281.936L693.621 275.928L411.697 75.2279C411.697 75.2279 388.294 59 355.505 59C354.42 59 353.335 59 352.251 59.0417Z" fill="white"/>
212
- </mask>
213
- <g mask="url(#mask3_1_2)">
214
- <path d="M623.161 -102.236L775.386 246.226L324.592 443.172L172.325 94.7097L623.161 -102.236Z" fill="url(#paint3_linear_1_2)"/>
215
- </g>
216
- <mask id="mask4_1_2" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="6" y="371" width="396" height="257">
217
- <path d="M6.62575 415.555C6.41717 415.889 6.20858 416.264 6 416.64L79.6305 469.912L153.261 523.185L275.909 611.917C317.125 641.744 373.318 628.895 401.393 583.215L326.762 529.234L252.13 475.252L130.483 387.229C115.632 376.508 98.8203 371.377 82.1335 371.377C53.0567 371.335 24.272 386.895 6.62575 415.555Z" fill="white"/>
218
- </mask>
219
- <g mask="url(#mask4_1_2)">
220
- <path d="M529.756 464.03L265.855 829.387L-122.321 549.008L141.538 183.65L529.756 464.03Z" fill="url(#paint4_linear_1_2)"/>
221
- </g>
222
- <mask id="mask5_1_2" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="187" y="64" width="411" height="263">
223
- <path d="M188.47 108.101C188.261 108.476 188.053 108.81 187.844 109.186L264.478 163.751L341.112 218.317L468.725 309.177C511.61 339.714 569.388 327.532 597.755 281.977L520.078 226.661L442.401 171.386L315.832 81.2352C300.063 70.0133 282.25 64.6318 264.645 64.6318C235.026 64.6318 206.074 79.9002 188.47 108.101Z" fill="white"/>
224
- </mask>
225
- <g mask="url(#mask5_1_2)">
226
- <path d="M685.945 96.6704L550.031 471.164L99.6544 307.675L235.527 -66.8184L685.945 96.6704Z" fill="url(#paint5_linear_1_2)"/>
227
- </g>
228
- <mask id="mask6_1_2" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="134" y="164" width="419" height="344">
229
- <path d="M134.363 170.051L233.149 278.64C237.571 284.856 242.744 290.571 248.626 295.66L441.567 507.791L537.432 501.784C565.8 456.229 554.036 394.53 511.151 363.993L383.539 273.133L306.863 218.567L230.229 164.002L134.363 170.051Z" fill="white"/>
230
- </mask>
231
- <g mask="url(#mask6_1_2)">
232
- <path d="M291.886 715.5L-31.1699 289.528L408.235 -43.7072L731.291 382.265L291.886 715.5Z" fill="url(#paint6_linear_1_2)"/>
233
- </g>
234
- <mask id="mask7_1_2" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="118" y="170" width="340" height="338">
235
- <path d="M133.696 171.094C105.703 216.065 117.301 276.971 159.644 307.091L286.255 397.241L363.932 452.516L441.609 507.791C469.976 462.236 458.212 400.537 415.327 370L287.631 279.141L210.997 224.575L134.363 170.051C134.154 170.384 133.904 170.718 133.696 171.094Z" fill="white"/>
236
- </mask>
237
- <g mask="url(#mask7_1_2)">
238
- <path d="M606.057 239.009L395.553 654.635L-30.4607 438.833L180.043 23.2069L606.057 239.009Z" fill="url(#paint7_linear_1_2)"/>
239
- </g>
179
+ <rect width="693" height="693" transform="translate(4)" fill="white" />
180
+ <mask
181
+ id="mask0_1_2"
182
+ style="mask-type:luminance"
183
+ maskUnits="userSpaceOnUse"
184
+ x="323"
185
+ y="556"
186
+ width="174"
187
+ height="72"
188
+ >
189
+ <path
190
+ d="M323.508 627.978L435.81 619.384C435.81 619.384 474.315 613.168 496.842 576.082L417.413 556.809L323.508 627.978Z"
191
+ fill="white"
192
+ />
193
+ </mask>
194
+ <g mask="url(#mask0_1_2)">
195
+ <path
196
+ d="M510.734 559.645L490 661.769L309.658 625.183L330.349 523.018L510.734 559.645Z"
197
+ fill="url(#paint0_linear_1_2)"
198
+ />
199
+ </g>
200
+ <mask
201
+ id="mask1_1_2"
202
+ style="mask-type:luminance"
203
+ maskUnits="userSpaceOnUse"
204
+ x="73"
205
+ y="364"
206
+ width="424"
207
+ height="220"
208
+ >
209
+ <path
210
+ d="M168.488 364.785C135.031 366.371 73.2477 372.295 73.2477 372.295L342.489 567.989L403.813 583.341L496.884 576.124L225.974 380.096C225.974 380.096 204.072 364.66 172.91 364.66C171.491 364.66 169.989 364.702 168.488 364.785Z"
211
+ fill="white"
212
+ />
213
+ </mask>
214
+ <g mask="url(#mask1_1_2)">
215
+ <path
216
+ d="M192.016 773.57L-24.954 425.942L378.115 174.389L595.085 522.017L192.016 773.57Z"
217
+ fill="url(#paint1_linear_1_2)"
218
+ />
219
+ </g>
220
+ <mask
221
+ id="mask2_1_2"
222
+ style="mask-type:luminance"
223
+ maskUnits="userSpaceOnUse"
224
+ x="515"
225
+ y="255"
226
+ width="179"
227
+ height="71"
228
+ >
229
+ <path
230
+ d="M515.573 325.822L631.254 318.688C631.254 318.688 670.885 312.931 693.621 275.928L611.438 255.487L515.573 325.822Z"
231
+ fill="white"
232
+ />
233
+ </mask>
234
+ <g mask="url(#mask2_1_2)">
235
+ <path
236
+ d="M557.832 401.58L485.62 272.174L651.32 179.729L723.532 309.135L557.832 401.58Z"
237
+ fill="url(#paint2_linear_1_2)"
238
+ />
239
+ </g>
240
+ <mask
241
+ id="mask3_1_2"
242
+ style="mask-type:luminance"
243
+ maskUnits="userSpaceOnUse"
244
+ x="254"
245
+ y="59"
246
+ width="440"
247
+ height="223"
248
+ >
249
+ <path
250
+ d="M352.251 59.0417C317.751 60.1681 254.132 65.2993 254.132 65.2993L534.345 265.666L597.755 281.936L693.621 275.928L411.697 75.2279C411.697 75.2279 388.294 59 355.505 59C354.42 59 353.335 59 352.251 59.0417Z"
251
+ fill="white"
252
+ />
253
+ </mask>
254
+ <g mask="url(#mask3_1_2)">
255
+ <path
256
+ d="M623.161 -102.236L775.386 246.226L324.592 443.172L172.325 94.7097L623.161 -102.236Z"
257
+ fill="url(#paint3_linear_1_2)"
258
+ />
259
+ </g>
260
+ <mask
261
+ id="mask4_1_2"
262
+ style="mask-type:luminance"
263
+ maskUnits="userSpaceOnUse"
264
+ x="6"
265
+ y="371"
266
+ width="396"
267
+ height="257"
268
+ >
269
+ <path
270
+ d="M6.62575 415.555C6.41717 415.889 6.20858 416.264 6 416.64L79.6305 469.912L153.261 523.185L275.909 611.917C317.125 641.744 373.318 628.895 401.393 583.215L326.762 529.234L252.13 475.252L130.483 387.229C115.632 376.508 98.8203 371.377 82.1335 371.377C53.0567 371.335 24.272 386.895 6.62575 415.555Z"
271
+ fill="white"
272
+ />
273
+ </mask>
274
+ <g mask="url(#mask4_1_2)">
275
+ <path
276
+ d="M529.756 464.03L265.855 829.387L-122.321 549.008L141.538 183.65L529.756 464.03Z"
277
+ fill="url(#paint4_linear_1_2)"
278
+ />
279
+ </g>
280
+ <mask
281
+ id="mask5_1_2"
282
+ style="mask-type:luminance"
283
+ maskUnits="userSpaceOnUse"
284
+ x="187"
285
+ y="64"
286
+ width="411"
287
+ height="263"
288
+ >
289
+ <path
290
+ d="M188.47 108.101C188.261 108.476 188.053 108.81 187.844 109.186L264.478 163.751L341.112 218.317L468.725 309.177C511.61 339.714 569.388 327.532 597.755 281.977L520.078 226.661L442.401 171.386L315.832 81.2352C300.063 70.0133 282.25 64.6318 264.645 64.6318C235.026 64.6318 206.074 79.9002 188.47 108.101Z"
291
+ fill="white"
292
+ />
293
+ </mask>
294
+ <g mask="url(#mask5_1_2)">
295
+ <path
296
+ d="M685.945 96.6704L550.031 471.164L99.6544 307.675L235.527 -66.8184L685.945 96.6704Z"
297
+ fill="url(#paint5_linear_1_2)"
298
+ />
299
+ </g>
300
+ <mask
301
+ id="mask6_1_2"
302
+ style="mask-type:luminance"
303
+ maskUnits="userSpaceOnUse"
304
+ x="134"
305
+ y="164"
306
+ width="419"
307
+ height="344"
308
+ >
309
+ <path
310
+ d="M134.363 170.051L233.149 278.64C237.571 284.856 242.744 290.571 248.626 295.66L441.567 507.791L537.432 501.784C565.8 456.229 554.036 394.53 511.151 363.993L383.539 273.133L306.863 218.567L230.229 164.002L134.363 170.051Z"
311
+ fill="white"
312
+ />
313
+ </mask>
314
+ <g mask="url(#mask6_1_2)">
315
+ <path
316
+ d="M291.886 715.5L-31.1699 289.528L408.235 -43.7072L731.291 382.265L291.886 715.5Z"
317
+ fill="url(#paint6_linear_1_2)"
318
+ />
319
+ </g>
320
+ <mask
321
+ id="mask7_1_2"
322
+ style="mask-type:luminance"
323
+ maskUnits="userSpaceOnUse"
324
+ x="118"
325
+ y="170"
326
+ width="340"
327
+ height="338"
328
+ >
329
+ <path
330
+ d="M133.696 171.094C105.703 216.065 117.301 276.971 159.644 307.091L286.255 397.241L363.932 452.516L441.609 507.791C469.976 462.236 458.212 400.537 415.327 370L287.631 279.141L210.997 224.575L134.363 170.051C134.154 170.384 133.904 170.718 133.696 171.094Z"
331
+ fill="white"
332
+ />
333
+ </mask>
334
+ <g mask="url(#mask7_1_2)">
335
+ <path
336
+ d="M606.057 239.009L395.553 654.635L-30.4607 438.833L180.043 23.2069L606.057 239.009Z"
337
+ fill="url(#paint7_linear_1_2)"
338
+ />
339
+ </g>
240
340
  </g>
241
341
  <defs>
242
- <filter id="filter0_d_1_2" x="0" y="0" width="701" height="701" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
243
- <feFlood flood-opacity="0" result="BackgroundImageFix"/>
244
- <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
245
- <feOffset dy="4"/>
246
- <feGaussianBlur stdDeviation="2"/>
247
- <feComposite in2="hardAlpha" operator="out"/>
248
- <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
249
- <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1_2"/>
250
- <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1_2" result="shape"/>
251
- </filter>
252
- <linearGradient id="paint0_linear_1_2" x1="522.269" y1="40.5341" x2="374.272" y2="769.949" gradientUnits="userSpaceOnUse">
253
- <stop stop-color="#1593F5"/>
254
- <stop offset="1" stop-color="#0084CE"/>
255
- </linearGradient>
256
- <linearGradient id="paint1_linear_1_2" x1="507.729" y1="830.625" x2="-112.45" y2="-163.072" gradientUnits="userSpaceOnUse">
257
- <stop stop-color="#1593F5"/>
258
- <stop offset="1" stop-color="#0084CE"/>
259
- </linearGradient>
260
- <linearGradient id="paint2_linear_1_2" x1="915.255" y1="847.35" x2="541.738" y2="177.838" gradientUnits="userSpaceOnUse">
261
- <stop stop-color="white"/>
262
- <stop offset="1" stop-color="#15ABFF"/>
263
- </linearGradient>
264
- <linearGradient id="paint3_linear_1_2" x1="254.189" y1="-332.587" x2="571.326" y2="393.304" gradientUnits="userSpaceOnUse">
265
- <stop stop-color="white"/>
266
- <stop offset="1" stop-color="#79CFFF"/>
267
- </linearGradient>
268
- <linearGradient id="paint4_linear_1_2" x1="610.213" y1="-56.2573" x2="106.317" y2="641.444" gradientUnits="userSpaceOnUse">
269
- <stop stop-color="#0057E5"/>
270
- <stop offset="1" stop-color="#0084CE"/>
271
- </linearGradient>
272
- <linearGradient id="paint5_linear_1_2" x1="496.212" y1="-82.6564" x2="337.643" y2="354.288" gradientUnits="userSpaceOnUse">
273
- <stop stop-color="white"/>
274
- <stop offset="1" stop-color="#15ABFF"/>
275
- </linearGradient>
276
- <linearGradient id="paint6_linear_1_2" x1="693.692" y1="789.133" x2="-102.675" y2="-260.944" gradientUnits="userSpaceOnUse">
277
- <stop stop-color="white"/>
278
- <stop offset="1" stop-color="#79CFFF"/>
279
- </linearGradient>
280
- <linearGradient id="paint7_linear_1_2" x1="555.118" y1="-188.777" x2="146.363" y2="618.161" gradientUnits="userSpaceOnUse">
281
- <stop stop-color="white"/>
282
- <stop offset="1" stop-color="#79CFFF"/>
283
- </linearGradient>
342
+ <filter
343
+ id="filter0_d_1_2"
344
+ x="0"
345
+ y="0"
346
+ width="701"
347
+ height="701"
348
+ filterUnits="userSpaceOnUse"
349
+ color-interpolation-filters="sRGB"
350
+ >
351
+ <feFlood flood-opacity="0" result="BackgroundImageFix" />
352
+ <feColorMatrix
353
+ in="SourceAlpha"
354
+ type="matrix"
355
+ values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
356
+ result="hardAlpha"
357
+ />
358
+ <feOffset dy="4" />
359
+ <feGaussianBlur stdDeviation="2" />
360
+ <feComposite in2="hardAlpha" operator="out" />
361
+ <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0" />
362
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1_2" />
363
+ <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1_2" result="shape" />
364
+ </filter>
365
+ <linearGradient
366
+ id="paint0_linear_1_2"
367
+ x1="522.269"
368
+ y1="40.5341"
369
+ x2="374.272"
370
+ y2="769.949"
371
+ gradientUnits="userSpaceOnUse"
372
+ >
373
+ <stop stop-color="#1593F5" />
374
+ <stop offset="1" stop-color="#0084CE" />
375
+ </linearGradient>
376
+ <linearGradient
377
+ id="paint1_linear_1_2"
378
+ x1="507.729"
379
+ y1="830.625"
380
+ x2="-112.45"
381
+ y2="-163.072"
382
+ gradientUnits="userSpaceOnUse"
383
+ >
384
+ <stop stop-color="#1593F5" />
385
+ <stop offset="1" stop-color="#0084CE" />
386
+ </linearGradient>
387
+ <linearGradient
388
+ id="paint2_linear_1_2"
389
+ x1="915.255"
390
+ y1="847.35"
391
+ x2="541.738"
392
+ y2="177.838"
393
+ gradientUnits="userSpaceOnUse"
394
+ >
395
+ <stop stop-color="white" />
396
+ <stop offset="1" stop-color="#15ABFF" />
397
+ </linearGradient>
398
+ <linearGradient
399
+ id="paint3_linear_1_2"
400
+ x1="254.189"
401
+ y1="-332.587"
402
+ x2="571.326"
403
+ y2="393.304"
404
+ gradientUnits="userSpaceOnUse"
405
+ >
406
+ <stop stop-color="white" />
407
+ <stop offset="1" stop-color="#79CFFF" />
408
+ </linearGradient>
409
+ <linearGradient
410
+ id="paint4_linear_1_2"
411
+ x1="610.213"
412
+ y1="-56.2573"
413
+ x2="106.317"
414
+ y2="641.444"
415
+ gradientUnits="userSpaceOnUse"
416
+ >
417
+ <stop stop-color="#0057E5" />
418
+ <stop offset="1" stop-color="#0084CE" />
419
+ </linearGradient>
420
+ <linearGradient
421
+ id="paint5_linear_1_2"
422
+ x1="496.212"
423
+ y1="-82.6564"
424
+ x2="337.643"
425
+ y2="354.288"
426
+ gradientUnits="userSpaceOnUse"
427
+ >
428
+ <stop stop-color="white" />
429
+ <stop offset="1" stop-color="#15ABFF" />
430
+ </linearGradient>
431
+ <linearGradient
432
+ id="paint6_linear_1_2"
433
+ x1="693.692"
434
+ y1="789.133"
435
+ x2="-102.675"
436
+ y2="-260.944"
437
+ gradientUnits="userSpaceOnUse"
438
+ >
439
+ <stop stop-color="white" />
440
+ <stop offset="1" stop-color="#79CFFF" />
441
+ </linearGradient>
442
+ <linearGradient
443
+ id="paint7_linear_1_2"
444
+ x1="555.118"
445
+ y1="-188.777"
446
+ x2="146.363"
447
+ y2="618.161"
448
+ gradientUnits="userSpaceOnUse"
449
+ >
450
+ <stop stop-color="white" />
451
+ <stop offset="1" stop-color="#79CFFF" />
452
+ </linearGradient>
284
453
  </defs>
285
454
  </svg>
286
455
  );
287
456
  }
288
-
@@ -6,7 +6,7 @@ import {
6
6
  createSignal,
7
7
  onCleanup,
8
8
  resetErrorBoundaries,
9
- type JSX
9
+ type JSX,
10
10
  } from "solid-js";
11
11
  import { HttpStatusCode } from "../HttpStatusCode.ts";
12
12
  import clientOnly from "../clientOnly.ts";
@@ -38,14 +38,15 @@ const withAssets = function <T extends () => Promise<{ default: Component<any> }
38
38
  useAssets(assets, nonce);
39
39
 
40
40
  return mod.default(props);
41
- }
41
+ },
42
42
  };
43
43
  };
44
44
 
45
45
  return wrapper as T;
46
46
  };
47
47
 
48
- const lazy = !isServer ? solidLazy: <T extends Component<any>>(fn: () => Promise<{ default: T }>) =>
49
- solidLazy(withAssets(fn));
48
+ const lazy = !isServer
49
+ ? solidLazy
50
+ : <T extends Component<any>>(fn: () => Promise<{ default: T }>) => solidLazy(withAssets(fn));
50
51
 
51
52
  export default lazy;
@@ -6,5 +6,5 @@ import type { ServerFunctionMeta } from "../server/types.ts";
6
6
  * Read more: https://docs.solidjs.com/solid-start/reference/server/get-server-function-meta
7
7
  */
8
8
  export function getServerFunctionMeta(): ServerFunctionMeta | undefined {
9
- return getRequestEvent()?.locals.serverFunctionMeta;
9
+ return getRequestEvent()?.locals.serverFunctionMeta;
10
10
  }
package/src/virtual.d.ts CHANGED
@@ -1,27 +1,27 @@
1
1
  declare module "solid-start:client-vite-manifest" {
2
- export const clientViteManifest: Record<
3
- string,
4
- { css?: Array<string>; file: string; [key: string]: unknown }
5
- >;
2
+ export const clientViteManifest: Record<
3
+ string,
4
+ { css?: Array<string>; file: string; [key: string]: unknown }
5
+ >;
6
6
  }
7
7
 
8
8
  interface StartManifest {
9
- getAssets(id: string): Promise<import("./server/assets/render").Asset[]>;
9
+ getAssets(id: string): Promise<import("./server/assets/render").Asset[]>;
10
10
  }
11
11
 
12
12
  declare module "solid-start:get-client-manifest" {
13
- export const getClientManifest: () => StartManifest;
13
+ export const getClientManifest: () => StartManifest;
14
14
  }
15
15
 
16
16
  declare module "solid-start:get-manifest" {
17
- export const getManifest: (target: "client" | "ssr") => StartManifest;
17
+ export const getManifest: (target: "client" | "ssr") => StartManifest;
18
18
  }
19
19
 
20
20
  declare module "solid-start:app" {
21
- export default App as import("solid-js").Component;
21
+ export default App as import("solid-js").Component;
22
22
  }
23
23
 
24
24
  declare module "solid-start:middleware" {
25
- type MaybeArray<T> = T | Array<T>;
26
- export default Middleware as import("h3").Middleware[];
25
+ type MaybeArray<T> = T | Array<T>;
26
+ export default Middleware as import("h3").Middleware[];
27
27
  }
package/tsconfig.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "types": ["vite/client"],
18
18
  "allowImportingTsExtensions": true,
19
19
  "rewriteRelativeImportExtensions": true,
20
- "rootDir": "./src"
20
+ "rootDir": "./src",
21
21
  },
22
- "include": ["./src", "./src/env.d.ts"]
22
+ "include": ["env.d.ts", "./src", "./src/env.d.ts"],
23
23
  }
package/vitest.config.ts CHANGED
@@ -4,6 +4,6 @@ export default defineConfig({
4
4
  test: {
5
5
  globals: true,
6
6
  environment: "node",
7
- mockReset: true
8
- }
7
+ mockReset: true,
8
+ },
9
9
  });