void 1.12.2 → 1.13.0

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 (372) hide show
  1. package/README.md +1 -0
  2. package/dist/{account-cmd-CdJQba_Q.mjs → account-cmd-4fQiXYX7.mjs} +6 -6
  3. package/dist/{application-analysis-DVeN8yoi.mjs → application-analysis-BjEwHTV2.mjs} +19 -13
  4. package/dist/{application-routing-KKw4Y84h.mjs → application-routing-COCfD2yc.mjs} +1 -1
  5. package/dist/args-DrnTI35r.mjs +88 -0
  6. package/dist/args-MnQnqypt.mjs +1 -0
  7. package/dist/{auth-CqwJwItO.mjs → auth-CeBmolb-.mjs} +3 -3
  8. package/dist/{auth-A7cZ8aXA.mjs → auth-CvaDxOMi.mjs} +1 -1
  9. package/dist/{auth-link-D9MWA_dj.mjs → auth-link-I4omV0pL.mjs} +6 -6
  10. package/dist/{auth-router-FskgTU3B.mjs → auth-router-CXq4q7bb.mjs} +6 -5
  11. package/dist/{better-auth-shared-BS3pDQbT.d.mts → better-auth-shared-CrIkcN8I.d.mts} +2 -1
  12. package/dist/bindings-C7zOgxT3.d.mts +28 -0
  13. package/dist/browser-run-BKgZVwLk.mjs +124 -0
  14. package/dist/{build-cmd-B7OJ0U5R.mjs → build-cmd-Biz6u4rn.mjs} +6 -6
  15. package/dist/{cache-wSpi3aeM.mjs → cache-WkLMUrjQ.mjs} +6 -6
  16. package/dist/{cancel-deploy-DMWzkAlb.mjs → cancel-deploy-BRsrmyTk.mjs} +6 -5
  17. package/dist/{cf-access-DHklo7Rg.mjs → cf-access-B21j-nd6.mjs} +1 -1
  18. package/dist/{cf-build-output-Cso7Vh-t.mjs → cf-build-output-G-7Tdd8b.mjs} +6 -5
  19. package/dist/cf-build-output-Qc43LWzE.mjs +1 -0
  20. package/dist/{cf-command-values-5BPBRc9Z.mjs → cf-command-values-cUnJwCyG.mjs} +24 -1
  21. package/dist/{cf-config-migrate-D271BTiw.mjs → cf-config-migrate-CsbQGzMf.mjs} +200 -94
  22. package/dist/cf-user-agent-HHTRzfud.mjs +15 -0
  23. package/dist/cf-version-api-BWHMVtzw.mjs +1 -0
  24. package/dist/cf-version-api-XEEK2B9A.mjs +856 -0
  25. package/dist/cf-worker-settings-DJKdy97k.mjs +127 -0
  26. package/dist/cli/cli.mjs +1 -1
  27. package/dist/cli/cloudflare-operation-process.mjs +111 -47
  28. package/dist/cli/env-schema-probe.mjs +3 -3
  29. package/dist/cli/json-command-process.d.mts +6 -0
  30. package/dist/cli/json-command-process.mjs +91 -0
  31. package/dist/{cli-main-DaLrQfPS.mjs → cli-main-CJTGhcYN.mjs} +84 -113
  32. package/dist/{client-eLZwqkPH.mjs → client-0um7Lzze.mjs} +1 -1
  33. package/dist/{client-DE2m2ldh.mjs → client-BEHI4UWn.mjs} +14 -8
  34. package/dist/{cloudflare-auth-eWfhdZCk.mjs → cloudflare-auth-iOgRurWm.mjs} +1 -1
  35. package/dist/{cloudflare-cmd-SsFlJe2B.mjs → cloudflare-cmd-DsSlXbNy.mjs} +5 -5
  36. package/dist/{cloudflare-config-D9UFH_A5.mjs → cloudflare-config-KPHKf57C.mjs} +2 -2
  37. package/dist/{cloudflare-connect-BgpHcSg3.mjs → cloudflare-connect-bEtneBjT.mjs} +5 -4
  38. package/dist/{cloudflare-operations-ByjFGats.mjs → cloudflare-operations-BmICrRnm.mjs} +1 -1
  39. package/dist/{cloudflare-operations-BIRQkYwL.mjs → cloudflare-operations-D-9psgPQ.mjs} +19 -11
  40. package/dist/cloudflare-preview-8eLSQPdO.mjs +1 -0
  41. package/dist/cloudflare-preview-BaeU-m74.mjs +112 -0
  42. package/dist/{cloudflare-process-60r4Z2Zf.mjs → cloudflare-process-DFNpqV_m.mjs} +57 -29
  43. package/dist/cloudflare-user-output-DFbD0l4l.mjs +36 -0
  44. package/dist/collect-Aam0GwAU.mjs +1 -0
  45. package/dist/{collect-rNLybAnF.mjs → collect-KC4cizWM.mjs} +6 -1
  46. package/dist/{config-DA6ZbLXO.d.mts → config-BdmM5ZzP.d.mts} +12 -2
  47. package/dist/{config-BFX5ZB1J.mjs → config-CUYGZqdN.mjs} +2 -2
  48. package/dist/{config-BSoW3QCB.mjs → config-C_UjzkVS.mjs} +3 -3
  49. package/dist/{config-DtjrUtPo.mjs → config-Ge-MytMU.mjs} +1 -1
  50. package/dist/{config-Dv5jri1-.mjs → config-KZAiI3gG.mjs} +32 -6
  51. package/dist/config-entry.d.mts +1 -1
  52. package/dist/config-write-dKLINlm2.mjs +80 -0
  53. package/dist/{connect-WG4TcR_d.mjs → connect-Bqq3b9sX.mjs} +10 -9
  54. package/dist/{create-project-CbuDH5Hv.mjs → create-project-MXoP_rte.mjs} +1 -1
  55. package/dist/{create-project-8FdN6D2i.mjs → create-project-T-9AIQDe.mjs} +7 -6
  56. package/dist/{db-BSuWV1PI.mjs → db-B3eoVDNA.mjs} +50 -47
  57. package/dist/{db-args-CiQVg8SJ.mjs → db-args-BcvTZ8KE.mjs} +1 -1
  58. package/dist/db-args-Cx1y4vZn.mjs +1 -0
  59. package/dist/{db-types-B4Cf9dzR.mjs → db-types-BpgXVtQZ.mjs} +1 -1
  60. package/dist/{delete-WtLEfap2.mjs → delete-Cf6SroAw.mjs} +7 -6
  61. package/dist/deploy-DZ9j7MC4.mjs +2 -0
  62. package/dist/{deploy-DtJeunLF.mjs → deploy-UojYUEWr.mjs} +803 -1415
  63. package/dist/{deploy-managed-static-BWBsxOww.mjs → deploy-managed-static-DV_OmTWf.mjs} +54 -393
  64. package/dist/{deploy-security-notice-IRGy6Edf.mjs → deploy-security-notice-3jX71IeP.mjs} +6 -4
  65. package/dist/deploy-summary-Dkl0zvQy.mjs +377 -0
  66. package/dist/{deploy-transport-BKP_oV9q.mjs → deploy-transport-4ISWxx8n.mjs} +4 -3
  67. package/dist/deploy.mjs +14 -10
  68. package/dist/discover-BZWVWeQs.mjs +1 -0
  69. package/dist/{discover-IcspacCg.mjs → discover-BeFs7OPS.mjs} +1 -1
  70. package/dist/{dispatch-DIhDA3NI.mjs → dispatch-BUKbPdqb.mjs} +7 -7
  71. package/dist/{dist-Cr_xGE_K.mjs → dist-BngS28id.mjs} +6 -6
  72. package/dist/{dist-C47zy_kJ.mjs → dist-x99fIj4n.mjs} +1 -1
  73. package/dist/{domain-mweyYXSw.mjs → domain-BK6NWkWK.mjs} +7 -7
  74. package/dist/{drizzle-BJDMPrj7.mjs → drizzle-CnSbVeiZ.mjs} +12 -13
  75. package/dist/{drizzle-CQ5jWuDL.mjs → drizzle-CrkwVwK8.mjs} +1 -1
  76. package/dist/{email-DoDqRH6i.mjs → email-BBSDV0J5.mjs} +13 -12
  77. package/dist/{email-cloudflare-DeYH3Ke7.mjs → email-cloudflare-C-guKEbz.mjs} +10 -8
  78. package/dist/{env-DaAoYR2-.mjs → env-BVnKiGYJ.mjs} +8 -8
  79. package/dist/{env-EjHqc7m9.mjs → env-CU2tMDdO.mjs} +6 -1
  80. package/dist/{env-types-D2hBodXP.mjs → env-types-B33fEHRH.mjs} +1 -1
  81. package/dist/{env-validation-j9pjCDfA.mjs → env-validation-BnAsx6gz.mjs} +1 -1
  82. package/dist/{env-validation-D-v5_CWL.mjs → env-validation-SXsjd6-Z.mjs} +4 -4
  83. package/dist/{fetch-CiEsvjpP.mjs → fetch-DL7OCgwB.mjs} +1 -1
  84. package/dist/{fetch-stream-BIG5lHW6.mjs → fetch-stream-DEilLTCc.mjs} +2 -2
  85. package/dist/{gen-aOtHhZLD.mjs → gen-BxuIN1bz.mjs} +10 -9
  86. package/dist/gen-DaayFP9v.mjs +1 -0
  87. package/dist/{generate-Dq2Bgw75.mjs → generate-Ck-L3e0e.mjs} +1 -1
  88. package/dist/{generate-C3ZAqCy-.mjs → generate-t1dDUYZZ.mjs} +1 -1
  89. package/dist/{github-cmd-BR19Ffdz.mjs → github-cmd-B7U9Hjmi.mjs} +7 -6
  90. package/dist/{handler-DCrDLzw2.mjs → handler-2wAywJgj.mjs} +11 -9
  91. package/dist/{headers-DqBsjDxg.mjs → headers-DPI4MDGC.mjs} +1 -1
  92. package/dist/{help-DvClCzqL.mjs → help-Bgiu5PMX.mjs} +36 -4
  93. package/dist/help-DWGHmt_n.mjs +1 -0
  94. package/dist/html-5sfGLjiI.d.mts +3 -0
  95. package/dist/html-DPSOBDCh.mjs +1 -0
  96. package/dist/{index-Dn2mkPr2.d.mts → index-CqF8_p9C.d.mts} +5 -105
  97. package/dist/index-Cvqotnhc.d.mts +91 -0
  98. package/dist/{index-BQ5qYiAw.d.mts → index-DAinHkj8.d.mts} +1 -1
  99. package/dist/{index-8cAgNdb6.d.mts → index-lnEWwVAS.d.mts} +1 -1
  100. package/dist/index.d.mts +3 -2
  101. package/dist/index.mjs +536 -170
  102. package/dist/{info-P6MBiVJi.mjs → info-7COlpAfY.mjs} +32 -20
  103. package/dist/{init-B2VZ2Hut.mjs → init-DftAx3L4.mjs} +237 -88
  104. package/dist/input-jcps6lAn.mjs +64 -0
  105. package/dist/interactive-prompts-EK0dilFu.mjs +43 -0
  106. package/dist/{limits-BCoQLpn3.mjs → limits-3I3VdX2E.mjs} +4 -1
  107. package/dist/{link-Dyz9IGcM.mjs → link-C3WMNFTG.mjs} +7 -7
  108. package/dist/{list-VGYBMjmx.mjs → list-K4EGVUZN.mjs} +9 -9
  109. package/dist/{load-user-env-B8qC0Q2Y.mjs → load-user-env-uMmQJ-Th.mjs} +1 -1
  110. package/dist/{local-d1-CYOYkVwO.mjs → local-d1-BtLCVC1p.mjs} +2 -2
  111. package/dist/login-BJwPhV_S.mjs +1 -0
  112. package/dist/{login-jUBgfvzk.mjs → login-DaugBfBG.mjs} +6 -5
  113. package/dist/{logs-kS1wuR4b.mjs → logs-BR2szdN5.mjs} +6 -6
  114. package/dist/migrate-BHD46A31.mjs +1 -0
  115. package/dist/{migrate-BNZL1hee.mjs → migrate-Dtlg8fC6.mjs} +7 -7
  116. package/dist/nitro.mjs +3 -3
  117. package/dist/{node-DVJWfV6s.mjs → node-BbKlLpHa.mjs} +5 -5
  118. package/dist/{operator-ai-logging-DD0n6zc2.mjs → operator-ai-logging-4Nvs6Ut3.mjs} +5 -5
  119. package/dist/{operator-args-nvetCWuz.mjs → operator-args-DWvqq3Ws.mjs} +31 -15
  120. package/dist/{operator-auth-DMvn-y9X.mjs → operator-auth-DtRMGXYY.mjs} +2 -2
  121. package/dist/{operator-client-dFNnXfyB.mjs → operator-client-BG0VIMMM.mjs} +2 -2
  122. package/dist/operator-cmd-CR3Q9k4c.mjs +1 -0
  123. package/dist/{operator-cmd-wML5HNfS.mjs → operator-cmd-D4YcMKO-.mjs} +9 -9
  124. package/dist/{operator-security-D5MToU0p.mjs → operator-security-nVLo8vDt.mjs} +11 -5
  125. package/dist/{output-BZLnu0z8.mjs → output-DhJgS6Ve.mjs} +1 -1
  126. package/dist/output-OYwcEwok.mjs +1 -0
  127. package/dist/pages/client.d.mts +34 -20
  128. package/dist/pages/client.mjs +172 -74
  129. package/dist/pages/index.d.mts +11 -4
  130. package/dist/pages/index.mjs +5 -5
  131. package/dist/pages/islands-plugin.d.mts +2 -2
  132. package/dist/pages/islands-plugin.mjs +5 -3
  133. package/dist/pages/protocol.d.mts +3 -3
  134. package/dist/pages/protocol.mjs +3 -3
  135. package/dist/pages/serialize.d.mts +2 -2
  136. package/dist/pages/serialize.mjs +1 -1
  137. package/dist/parse-filename-DIPUjoCh.d.mts +2 -0
  138. package/dist/platform-C3Q44RJ8.mjs +250 -0
  139. package/dist/platform-args-BSyVZESg.mjs +1 -0
  140. package/dist/{platform-args-CvZSuhYS.mjs → platform-args-BnocJDC_.mjs} +1 -1
  141. package/dist/{platform-auth-config-Bv3oQ2gE.mjs → platform-auth-config-BbfNhjBc.mjs} +9 -9
  142. package/dist/{platform-auth-protection-OqzfhXwx.mjs → platform-auth-protection-BHPV4MUf.mjs} +9 -8
  143. package/dist/{platform-auth-recovery-rmIYjXST.mjs → platform-auth-recovery-DE0nArYy.mjs} +8 -7
  144. package/dist/{platform-cmd-D_4z2Ijv.mjs → platform-cmd-CLRU3BRb.mjs} +11 -10
  145. package/dist/{platform-cmd-B3rO4RhU.mjs → platform-cmd-Cs2LkT5L.mjs} +1 -1
  146. package/dist/{platform-discovery-CLxtixHJ.mjs → platform-discovery-CKeeeD82.mjs} +1 -1
  147. package/dist/{platform-domain-CUq9odbd.mjs → platform-domain-kn3WuKPG.mjs} +6 -5
  148. package/dist/{platform-lifecycle-DOSYo0UI.mjs → platform-lifecycle-BoCEYy2w.mjs} +1 -1
  149. package/dist/{platform-lifecycle-DuoVruij.mjs → platform-lifecycle-CKwOg8wz.mjs} +164 -72
  150. package/dist/{platform-management-D_gt3qLb.mjs → platform-management-CaSdFthX.mjs} +1 -1
  151. package/dist/{platform-management-MmO9IubR.mjs → platform-management-fyrsq2Ra.mjs} +27 -14
  152. package/dist/{platform-plans-config-DiydtNKY.mjs → platform-plans-config-BSI-6Inu.mjs} +11 -5
  153. package/dist/{platform-recovery-P_FVslfd.mjs → platform-recovery-PwJ54AIZ.mjs} +3 -3
  154. package/dist/{platform-registry-DHH6fivm.mjs → platform-registry-zHH3RiIm.mjs} +2 -1
  155. package/dist/{platform-setup-Lph9i-rh.mjs → platform-setup-DwYITHfY.mjs} +3 -3
  156. package/dist/{plugin-inference-COlq96WJ.mjs → plugin-inference-D5MjBVMB.mjs} +60 -142
  157. package/dist/prepare-CLl_TA_r.mjs +1 -0
  158. package/dist/{prepare-WvijE289.mjs → prepare-DZEs5AGr.mjs} +3 -3
  159. package/dist/{prepare-co1o1FFd.mjs → prepare-DhVzN7CB.mjs} +14 -12
  160. package/dist/{project-uXKua1it.mjs → project-BXpm-vgG.mjs} +1 -1
  161. package/dist/{project-dh9431bN.mjs → project-DC-BqHef.mjs} +1 -1
  162. package/dist/{project-cmd-BWJTplpc.mjs → project-cmd-BKN3qT4R.mjs} +31 -21
  163. package/dist/{project-paths-2ENfCCih.mjs → project-paths-BeAxxqGh.mjs} +1 -1
  164. package/dist/{project-security-BV1xfj1K.mjs → project-security-B-SHxprt.mjs} +1 -1
  165. package/dist/{project-security-CY_aahvW.mjs → project-security-BWTd6cTU.mjs} +87 -46
  166. package/dist/{project-team-BlIFXlmT.mjs → project-team-jcn9reIB.mjs} +6 -6
  167. package/dist/{project-token-CMsB7I1-.mjs → project-token-BHkBKtzt.mjs} +6 -6
  168. package/dist/{project-tsconfig-BOA4ym99.mjs → project-tsconfig-LjgxDdj_.mjs} +1 -1
  169. package/dist/{project-zero-trust-BI6pdpx4.mjs → project-zero-trust-2t_qI6xa.mjs} +4 -4
  170. package/dist/{protocol-4rEnumif.mjs → protocol-DhMbnxzy.mjs} +120 -35
  171. package/dist/{protocol-ERy-n3jf.d.mts → protocol-wG7JP5Mm.d.mts} +27 -4
  172. package/dist/{provision-DFv7SJDn.mjs → provision-C04aXE3a.mjs} +1 -1
  173. package/dist/{provision-Bh44omGA.mjs → provision-CQykn8gu.mjs} +8 -4
  174. package/dist/{redirect-Dyvuil0Q.mjs → redirect-DjyA_hx_.mjs} +1 -1
  175. package/dist/{requests-CfmJxNYg.mjs → requests-BznxnxTT.mjs} +5 -5
  176. package/dist/resolve-project-Bob_rEi2.mjs +1 -0
  177. package/dist/{resolve-project-8WZ3iVmr.mjs → resolve-project-s_FGWyr-.mjs} +2 -2
  178. package/dist/resource-binding-5nI30acw.mjs +20 -0
  179. package/dist/{resource-name-DlJ9QXzg.mjs → resource-name-D_gw36kh.mjs} +5 -1
  180. package/dist/{rollback-DL5HuAsM.mjs → rollback-CLiINtpt.mjs} +25 -14
  181. package/dist/{route-types-CSed9-Dp.mjs → route-types-DxvqN5bL.mjs} +59 -9
  182. package/dist/{route-url-B41eQ8QI.mjs → route-url-CRC8yR_2.mjs} +2 -3
  183. package/dist/{route-url-Bd6IX-JZ.d.mts → route-url-zDfC-7DD.d.mts} +33 -5
  184. package/dist/routes-stub.d.mts +18 -2
  185. package/dist/routes-stub.mjs +1 -1
  186. package/dist/{runner-CeguHWJx.mjs → runner-CnUrhc8H.mjs} +1 -1
  187. package/dist/{runner-mysql-DOjbj-N1.mjs → runner-mysql-CW6bFa67.mjs} +1 -1
  188. package/dist/{runner-mysql-D549vGGm.mjs → runner-mysql-DSLGFOlC.mjs} +1 -1
  189. package/dist/{runner-pg-Buzw17hl.mjs → runner-pg-BcGF7iBR.mjs} +1 -1
  190. package/dist/{runner-pg-DMJquR3d.mjs → runner-pg-OeP0JpEo.mjs} +1 -1
  191. package/dist/{runner-Bf94YVJK.mjs → runner-rnXCGa20.mjs} +1 -1
  192. package/dist/runtime/ai/index.mjs +1 -1
  193. package/dist/runtime/auth/better-auth-d1.d.mts +1 -1
  194. package/dist/runtime/auth/better-auth-mysql.d.mts +1 -1
  195. package/dist/runtime/auth/better-auth-postgres.d.mts +1 -1
  196. package/dist/runtime/client/fetch-server.mjs +1 -1
  197. package/dist/runtime/client/fetch-stream.mjs +1 -1
  198. package/dist/runtime/client/fetch.mjs +1 -1
  199. package/dist/runtime/client/index.mjs +2 -2
  200. package/dist/runtime/client/react.mjs +2 -2
  201. package/dist/runtime/client/solid.mjs +2 -2
  202. package/dist/runtime/client/svelte.mjs +2 -2
  203. package/dist/runtime/client/vue.mjs +2 -2
  204. package/dist/runtime/durable/index.mjs +11 -26
  205. package/dist/runtime/env/runtime.d.mts +2 -10
  206. package/dist/runtime/handler/index.d.mts +3 -2
  207. package/dist/runtime/handler/index.mjs +2 -2
  208. package/dist/runtime/handler/validator.d.mts +1 -1
  209. package/dist/runtime/handler/validator.mjs +1 -1
  210. package/dist/runtime/html.d.mts +2 -0
  211. package/dist/runtime/html.mjs +1 -0
  212. package/dist/runtime/image/index.d.mts +103 -0
  213. package/dist/runtime/image/index.mjs +89 -0
  214. package/dist/runtime/jsx/index.d.mts +3 -0
  215. package/dist/runtime/jsx/index.mjs +2 -0
  216. package/dist/runtime/jsx/jsx-dev-runtime.d.mts +1 -0
  217. package/dist/runtime/jsx/jsx-dev-runtime.mjs +2 -0
  218. package/dist/runtime/jsx/jsx-runtime.d.mts +1 -0
  219. package/dist/runtime/jsx/jsx-runtime.mjs +2 -0
  220. package/dist/runtime/limits/index.mjs +1 -1
  221. package/dist/runtime/live/client.d.mts +2 -2
  222. package/dist/runtime/live/index.d.mts +1 -1
  223. package/dist/runtime/routing/index.d.mts +87 -4
  224. package/dist/runtime/routing/index.mjs +59 -20
  225. package/dist/runtime/routing/route-url.d.mts +2 -2
  226. package/dist/runtime/routing/route-url.mjs +1 -1
  227. package/dist/runtime/sandbox/index.mjs +1 -1
  228. package/dist/runtime/sse/client.d.mts +1 -1
  229. package/dist/runtime/workflows/entry.d.mts +8 -0
  230. package/dist/runtime/workflows/entry.mjs +49 -0
  231. package/dist/runtime/workflows/index.d.mts +3 -0
  232. package/dist/runtime/workflows/index.mjs +77 -0
  233. package/dist/runtime/ws/index.d.mts +1 -1
  234. package/dist/runtime/ws/index.mjs +2 -2
  235. package/dist/runtime/ws/room.d.mts +1 -1
  236. package/dist/runtime/ws/server.d.mts +2 -2
  237. package/dist/runtime-Db72hLY-.d.mts +11 -0
  238. package/dist/scan-BxhB4BA-.mjs +946 -0
  239. package/dist/scan-D2ISAobj.mjs +308 -0
  240. package/dist/{secret-C-WBaUSS.mjs → secret-Ck9N5xbU.mjs} +9 -8
  241. package/dist/{security-sarif-ClyYwtAW.mjs → security-sarif-DzTIqNwZ.mjs} +1 -1
  242. package/dist/{serialize-DN-envGQ.d.mts → serialize-Dr9B-0yV.d.mts} +10 -1
  243. package/dist/{serialize-BmB4BfKu.mjs → serialize-nW4IeEBI.mjs} +23 -2
  244. package/dist/{skills-C-csz78e.mjs → skills-BR7YHAF7.mjs} +1 -1
  245. package/dist/{scan-Ct_SEzH4.mjs → source-analysis-cache-Ccm_JSOl.mjs} +340 -902
  246. package/dist/standard-schema-DvMcZGMK.mjs +8 -0
  247. package/dist/{subcommand-prompt-B4LOLosl.mjs → subcommand-prompt-AFf2LcrC.mjs} +2 -2
  248. package/dist/{types-FDH6NuY1.d.mts → types-RYVujNS6.d.mts} +4 -2
  249. package/dist/{version-metadata-DqgLa6gc.mjs → untrusted-env-4oW0TdBP.mjs} +1 -23
  250. package/dist/{url-DBQluotE.mjs → url-DAQ1c3lh.mjs} +45 -1
  251. package/dist/{validate-CtBWCzez.mjs → validate-B1PsQ_mt.mjs} +1 -1
  252. package/dist/validate-p9b3r1k4.mjs +1 -0
  253. package/dist/{validation-error-CtcAvyI7.mjs → validation-error-EKI0wMWX.mjs} +2 -2
  254. package/dist/{validator-Dfh9kCDm.mjs → validator-JJcf9E48.mjs} +5 -8
  255. package/dist/version-metadata-CEla0kgi.mjs +23 -0
  256. package/dist/{wrangler-DVe5KV5G.mjs → wrangler-AyMfdVJK.mjs} +34 -69
  257. package/dist/wrangler-BT7qrzWc.mjs +1 -0
  258. package/dist/{wrapper-CcMYpOS8.mjs → wrapper-DPlTBVOx.mjs} +5 -5
  259. package/docs/guide/ai.md +1 -1
  260. package/docs/guide/app-types.md +6 -23
  261. package/docs/guide/auth.md +2 -4
  262. package/docs/guide/database/d1.md +21 -67
  263. package/docs/guide/database/mysql.md +8 -0
  264. package/docs/guide/database/postgresql.md +2 -2
  265. package/docs/guide/database.md +1 -1
  266. package/docs/guide/deployment.md +18 -0
  267. package/docs/guide/edge/prerendering.md +3 -7
  268. package/docs/guide/edge/redirects.md +1 -1
  269. package/docs/guide/edge/revalidation.md +8 -17
  270. package/docs/guide/edge/rewrites.md +1 -1
  271. package/docs/guide/edge/static-assets.md +10 -22
  272. package/docs/guide/email/domains.md +3 -1
  273. package/docs/guide/email/receiving.md +2 -2
  274. package/docs/guide/email/sending.md +3 -1
  275. package/docs/guide/env-vars.md +2 -0
  276. package/docs/guide/image-generation.md +142 -0
  277. package/docs/guide/index.md +17 -15
  278. package/docs/guide/jobs.md +2 -4
  279. package/docs/guide/kv.md +1 -1
  280. package/docs/guide/og-images.md +83 -0
  281. package/docs/guide/pages-routing/actions-and-forms.md +6 -4
  282. package/docs/guide/pages-routing/errors.md +20 -4
  283. package/docs/guide/pages-routing/head.md +5 -5
  284. package/docs/guide/pages-routing/islands.md +4 -14
  285. package/docs/guide/pages-routing/markdown.md +2 -2
  286. package/docs/guide/pages-routing/overview.md +129 -15
  287. package/docs/guide/platform/administration/plans.md +47 -16
  288. package/docs/guide/platform/administration/projects.md +10 -0
  289. package/docs/guide/platform/administration/security-audits.md +76 -30
  290. package/docs/guide/platform/administration/zero-trust.md +1 -1
  291. package/docs/guide/platform/installation/ci.md +0 -4
  292. package/docs/guide/platform/installation/credentials.md +1 -1
  293. package/docs/guide/platform/installation/maintenance.md +10 -10
  294. package/docs/guide/platform/installation/prerequisites.md +3 -1
  295. package/docs/guide/platform/installation/setup.md +7 -15
  296. package/docs/guide/platform/installation/uninstall.md +6 -12
  297. package/docs/guide/project-collaboration.md +1 -4
  298. package/docs/guide/queues.md +6 -8
  299. package/docs/guide/quickstart.md +6 -8
  300. package/docs/guide/sandboxes.md +1 -1
  301. package/docs/guide/self-hosted-platform.md +4 -7
  302. package/docs/guide/server-routing.md +5 -3
  303. package/docs/guide/ssg.md +1 -1
  304. package/docs/guide/type-safety.md +74 -10
  305. package/docs/guide/websockets.md +5 -7
  306. package/docs/guide/workflows.md +122 -0
  307. package/docs/index.md +2 -3
  308. package/docs/integrations/agents.md +3 -16
  309. package/docs/integrations/cloudflare.md +98 -2
  310. package/docs/integrations/frameworks/analog.md +9 -11
  311. package/docs/integrations/frameworks/astro.md +16 -17
  312. package/docs/integrations/frameworks/nuxt.md +11 -13
  313. package/docs/integrations/frameworks/overview.md +18 -20
  314. package/docs/integrations/frameworks/react-router.md +55 -6
  315. package/docs/integrations/frameworks/sveltekit.md +8 -6
  316. package/docs/integrations/frameworks/tanstack-start.md +10 -6
  317. package/docs/integrations/hono.md +27 -12
  318. package/docs/integrations/nodejs-bun-deno.md +10 -2
  319. package/docs/reference/api/database.md +8 -10
  320. package/docs/reference/api/env.md +2 -2
  321. package/docs/reference/api/handlers.md +1 -1
  322. package/docs/reference/api/html.md +45 -0
  323. package/docs/reference/api/pages.md +118 -167
  324. package/docs/reference/api/rewrites.md +5 -5
  325. package/docs/reference/api/types.md +13 -6
  326. package/docs/reference/api/workflows.md +48 -0
  327. package/docs/reference/api.md +7 -1
  328. package/docs/reference/cli/database.md +22 -10
  329. package/docs/reference/cli/deploy.md +49 -4
  330. package/docs/reference/cli/domains.md +7 -3
  331. package/docs/reference/cli/email.md +3 -1
  332. package/docs/reference/cli/platform-installation.md +9 -53
  333. package/docs/reference/cli/platform-security.md +36 -8
  334. package/docs/reference/cli/platform-users.md +11 -1
  335. package/docs/reference/cli/platform-zero-trust.md +1 -1
  336. package/docs/reference/cli/project.md +52 -11
  337. package/docs/reference/cli/setup.md +8 -10
  338. package/docs/reference/cli.md +49 -47
  339. package/docs/reference/config.md +22 -8
  340. package/docs/reference/resource-inference.md +8 -1
  341. package/docs/reference/structure.md +5 -0
  342. package/package.json +52 -25
  343. package/schema.json +20 -1
  344. package/skills/void/SKILL.md +60 -54
  345. package/dist/cf-build-output-Wpk_e5CI.mjs +0 -1
  346. package/dist/cf-worker-settings-BBdlhm9U.mjs +0 -41
  347. package/dist/cli/db-execute-process.d.mts +0 -2
  348. package/dist/cli/db-execute-process.mjs +0 -57
  349. package/dist/cloudflare-user-output-CCR99eQY.mjs +0 -19
  350. package/dist/collect-B6nlSnsb.mjs +0 -1
  351. package/dist/db-args-BvMwAber.mjs +0 -1
  352. package/dist/deploy-GT4CW5fs.mjs +0 -2
  353. package/dist/discover-D2KGP3cR.mjs +0 -1
  354. package/dist/entry-Bwb9ev8K.mjs +0 -113
  355. package/dist/gen-vhBDHs3q.mjs +0 -1
  356. package/dist/help-fKPzcTJv.mjs +0 -1
  357. package/dist/isr-config-DiTnL9Tb.mjs +0 -115
  358. package/dist/login-BbSQTZ6d.mjs +0 -1
  359. package/dist/migrate-C9aoWLvY.mjs +0 -1
  360. package/dist/operator-cmd-jnjzuJKX.mjs +0 -1
  361. package/dist/output-D7K9TWIA.mjs +0 -1
  362. package/dist/platform-args-CMwMoiLp.mjs +0 -1
  363. package/dist/prepare-DcwigRUS.mjs +0 -1
  364. package/dist/providers-D5P8j_8D.d.mts +0 -5
  365. package/dist/resolve-project-YsTH-U9I.mjs +0 -1
  366. package/dist/static-exports-s7P86Ngp.mjs +0 -354
  367. package/dist/validate-CZYUIfR-.mjs +0 -1
  368. package/dist/wrangler-Dq269bjx.mjs +0 -1
  369. package/docs/guide/platform/development/local.md +0 -120
  370. package/docs/guide/platform/development/runtime.md +0 -115
  371. package/docs/guide/platform/development/schema-ci.md +0 -44
  372. package/docs/guide/platform-development.md +0 -16
@@ -0,0 +1,8 @@
1
+ // src/standard-schema.ts
2
+ function flattenIssues(issues) {
3
+ return Array.from(issues, (issue) => ({
4
+ message: issue.message,
5
+ path: issue.path?.map((p) => String(typeof p === "object" ? p.key : p)).join(".")
6
+ }));
7
+ }
8
+ export { flattenIssues as t };
@@ -1,5 +1,5 @@
1
- import { $ as wrapTextWithPrefix, G as promptTitle, M as getGuide, V as optionText, b as S_RADIO_ACTIVE, d as S_CHECKBOX_SELECTED, i as S_BAR_END, it as wrapAnsi, j as formatInstructionFooter, n as SELECT_INSTRUCTIONS, r as S_BAR, t as MULTISELECT_INSTRUCTIONS, u as S_CHECKBOX_INACTIVE, w as S_STEP_SUBMIT } from "./dist-Cr_xGE_K.mjs";
2
- import { h as import_picocolors } from "./output-BZLnu0z8.mjs";
1
+ import { $ as wrapTextWithPrefix, G as promptTitle, M as getGuide, V as optionText, b as S_RADIO_ACTIVE, d as S_CHECKBOX_SELECTED, i as S_BAR_END, it as wrapAnsi, j as formatInstructionFooter, n as SELECT_INSTRUCTIONS, r as S_BAR, t as MULTISELECT_INSTRUCTIONS, u as S_CHECKBOX_INACTIVE, w as S_STEP_SUBMIT } from "./dist-BngS28id.mjs";
2
+ import { h as import_picocolors } from "./output-DhJgS6Ve.mjs";
3
3
  // src/cli/subcommand-prompt.ts
4
4
  const isUpKey = (key) => key === "\x1B[A" || key === "\x1BOA";
5
5
  const isDownKey = (key) => key === "\x1B[B" || key === "\x1BOB";
@@ -1,4 +1,4 @@
1
- type RouteEnvironment = "dev" | "prod";
1
+ import { t as RouteEnvironment } from "./parse-filename-DIPUjoCh.mjs";
2
2
  type ExplicitBoolean = true | false | undefined;
3
3
  type SsrMode = "auto" | "server" | "client";
4
4
  type PrerenderMode = "auto" | "force" | "disabled";
@@ -70,6 +70,8 @@ type PageBoundaryDefinition = {
70
70
  directory: string;
71
71
  componentId: string;
72
72
  filePath: string;
73
+ /** Optional `.server` companion that exports `head()`, relative to pages/. */
74
+ serverPath?: string;
73
75
  };
74
76
  type PageError = Readonly<{
75
77
  status: number;
@@ -86,4 +88,4 @@ type DevCssAsset = {
86
88
  /** CSS bytes returned by Vite's client environment transform with ?inline. */
87
89
  css: string;
88
90
  };
89
- export { PageDefinition as a, PageScanResult as c, NamedLayoutDefinition as i, RouteEnvironment as l, ErrorPageProps as n, PageError as o, LayoutDefinition as r, PageRenderMode as s, DevCssAsset as t };
91
+ export { PageDefinition as a, PageScanResult as c, NamedLayoutDefinition as i, ErrorPageProps as n, PageError as o, LayoutDefinition as r, PageRenderMode as s, DevCssAsset as t };
@@ -1,5 +1,4 @@
1
1
  import { a as join } from "./dist-DMYe8CZJ.mjs";
2
- import { l as bindingNamesForField, p as findBindingNameOwner } from "./wrangler-DVe5KV5G.mjs";
3
2
  // src/shared/untrusted-env.ts
4
3
  /** Authentication inputs that Wrangler may consume from the environment. */
5
4
  const WRANGLER_AUTH_CREDENTIAL_ENV_VARS = [
@@ -48,25 +47,4 @@ function buildEnv(extra, options) {
48
47
  env[pathKey] = existing ? `${binDir}${delimiter}${existing}` : binDir;
49
48
  return env;
50
49
  }
51
- // src/shared/version-metadata.ts
52
- /** Build-only marker: an existing-site handoff must not add Worker bindings. */
53
- const CLOUDFLARE_PRESERVE_BINDINGS_BUILD_ENV = "VOID_CLOUDFLARE_PRESERVE_BINDINGS";
54
- const DEFAULT_VERSION_METADATA_BINDING = "__VOID_VERSION_METADATA";
55
- /** Keep the authored singleton name, and reject a cross-type binding collision. */
56
- function readVersionMetadataBinding(config) {
57
- const name = bindingNamesForField("version_metadata", config.version_metadata)[0];
58
- if (!name) return;
59
- const owner = findBindingNameOwner(config, "version_metadata", name);
60
- if (owner) throw new Error(`Cloudflare version metadata binding ${name} conflicts with ${owner}.`);
61
- return name;
62
- }
63
- /** Self-metadata adds no remote resource or plan entitlement. */
64
- function selectNativeVersionMetadataBinding(config, options) {
65
- if (!options.nativeBuild) return;
66
- const authored = readVersionMetadataBinding(config);
67
- if (authored || options.preserveBindings) return authored;
68
- const owner = findBindingNameOwner(config, "version_metadata", DEFAULT_VERSION_METADATA_BINDING);
69
- if (owner) throw new Error(`Cloudflare version metadata binding ${DEFAULT_VERSION_METADATA_BINDING} conflicts with ${owner}.`);
70
- return DEFAULT_VERSION_METADATA_BINDING;
71
- }
72
- export { buildEnv as a, WRANGLER_AUTH_CREDENTIAL_ENV_VARS as i, readVersionMetadataBinding as n, selectNativeVersionMetadataBinding as r, CLOUDFLARE_PRESERVE_BINDINGS_BUILD_ENV as t };
50
+ export { buildEnv as n, WRANGLER_AUTH_CREDENTIAL_ENV_VARS as t };
@@ -64,6 +64,28 @@ function searchWithoutPreservedQuery(search, preserved) {
64
64
  if (search === "?" + preserved) return "";
65
65
  return search.endsWith("&" + preserved) ? search.slice(0, -preserved.length - 1) : search;
66
66
  }
67
+ // src/pages/form-value-equality.ts
68
+ function isPlainObject(value) {
69
+ if (value === null || typeof value !== "object") return false;
70
+ const prototype = Object.getPrototypeOf(value);
71
+ return prototype === Object.prototype || prototype === null;
72
+ }
73
+ function isEqualFormValue(a, b) {
74
+ if (Object.is(a, b)) return true;
75
+ if (Array.isArray(a) || Array.isArray(b)) {
76
+ if (!Array.isArray(a) || !Array.isArray(b) || a.length !== b.length) return false;
77
+ for (let index = 0; index < a.length; index += 1) if (Object.hasOwn(a, index) !== Object.hasOwn(b, index) || !isEqualFormValue(a[index], b[index])) return false;
78
+ return true;
79
+ }
80
+ if (isPlainObject(a) || isPlainObject(b)) {
81
+ if (!isPlainObject(a) || !isPlainObject(b)) return false;
82
+ const aKeys = Object.keys(a);
83
+ const bKeys = Object.keys(b);
84
+ if (aKeys.length !== bKeys.length) return false;
85
+ return aKeys.every((key) => Object.hasOwn(b, key) && isEqualFormValue(a[key], b[key]));
86
+ }
87
+ return false;
88
+ }
67
89
  // src/pages/url.ts
68
90
  function isSameOrigin(url, origin) {
69
91
  if (url.protocol === "capacitor:") {
@@ -72,6 +94,28 @@ function isSameOrigin(url, origin) {
72
94
  }
73
95
  return url.origin === origin;
74
96
  }
97
+ /**
98
+ * A query string's values by key, repeated keys as arrays. Keys are collected in
99
+ * a Map, so `?toString=x` cannot read Object.prototype.
100
+ */
101
+ function groupQueryValues(params) {
102
+ const values = /* @__PURE__ */ new Map();
103
+ for (const [key, value] of params) {
104
+ const existing = values.get(key);
105
+ if (existing === void 0) values.set(key, value);
106
+ else if (Array.isArray(existing)) existing.push(value);
107
+ else values.set(key, [existing, value]);
108
+ }
109
+ return Object.fromEntries(values);
110
+ }
111
+ /** Query data associated with a page's public URL. */
112
+ function pageUrlQuery(url) {
113
+ const search = url.split("#", 1)[0];
114
+ const index = search.indexOf("?");
115
+ const query = index === -1 ? {} : groupQueryValues(new URLSearchParams(search.slice(index)));
116
+ delete query["__proto__"];
117
+ return query;
118
+ }
75
119
  function isHexDigit(char) {
76
120
  return char !== void 0 && (char >= "0" && char <= "9" || char >= "a" && char <= "f" || char >= "A" && char <= "F");
77
121
  }
@@ -106,4 +150,4 @@ function decodePagePath(path) {
106
150
  }
107
151
  return decoded;
108
152
  }
109
- export { hasActionKey as a, searchWithoutActionKey as c, actionKeySegment as i, searchWithoutPreservedQuery as l, isSameOrigin as n, markActionKey as o, PRESERVED_QUERY_HEADER as r, queryKey as s, decodePagePath as t, withPageQuery as u };
153
+ export { isPlainObject as a, hasActionKey as c, searchWithoutActionKey as d, searchWithoutPreservedQuery as f, isEqualFormValue as i, markActionKey as l, isSameOrigin as n, PRESERVED_QUERY_HEADER as o, withPageQuery as p, pageUrlQuery as r, actionKeySegment as s, decodePagePath as t, queryKey as u };
@@ -1,5 +1,5 @@
1
1
  import { a as join } from "./dist-DMYe8CZJ.mjs";
2
- import { n as readJournal, r as stripSqlExt } from "./collect-rNLybAnF.mjs";
2
+ import { i as stripSqlExt, r as readJournal } from "./collect-KC4cizWM.mjs";
3
3
  import { i as getExecutableSql, t as DESTRUCTIVE_PRAGMA } from "./plan-BOD70XGS.mjs";
4
4
  import { existsSync, readdirSync } from "node:fs";
5
5
  import { hasStandalonePragma } from "@void/deploy-core";
@@ -0,0 +1 @@
1
+ export { i as validateMigrations } from "./validate-B1PsQ_mt.mjs";
@@ -4,14 +4,14 @@ function getHandlerComposition(handler) {
4
4
  return handler?.[compositionKey];
5
5
  }
6
6
  /** Record the composition; a nested composed leaf is flattened into one chain. */
7
- function setHandlerComposition(handler, middlewares, leaf) {
7
+ function setHandlerComposition(handler, middlewares, leaf, options) {
8
8
  const nested = getHandlerComposition(leaf);
9
9
  const composition = nested ? {
10
10
  middlewares: [...middlewares, ...nested.middlewares],
11
11
  leaf: nested.leaf
12
12
  } : {
13
13
  middlewares,
14
- leaf
14
+ leaf: options?.withValidation ? leaf : (c) => leaf(c)
15
15
  };
16
16
  Object.defineProperty(handler, compositionKey, { value: composition });
17
17
  return handler;
@@ -1,10 +1,6 @@
1
+ import { t as flattenIssues } from "./standard-schema-DvMcZGMK.mjs";
2
+ import { getQueryParams } from "hono/utils/url";
1
3
  // src/runtime/handler/validator.ts
2
- function flattenIssues(issues) {
3
- return Array.from(issues, (issue) => ({
4
- message: issue.message,
5
- path: issue.path?.map((p) => typeof p === "object" ? p.key : p).join(".")
6
- }));
7
- }
8
4
  async function validateSlot(schema, value) {
9
5
  const result = await schema["~standard"].validate(value);
10
6
  if (result.issues) return {
@@ -114,7 +110,7 @@ async function readBody(c) {
114
110
  if (!isFormContentType(c.req.header("content-type"))) return c.req.json();
115
111
  return formRecordToObject(await c.req.parseBody());
116
112
  }
117
- async function runValidation(validators, c) {
113
+ async function runValidation(validators, c, queryUrl) {
118
114
  const input = {};
119
115
  const allIssues = [];
120
116
  if (validators.params) {
@@ -127,7 +123,8 @@ async function runValidation(validators, c) {
127
123
  });
128
124
  }
129
125
  if (validators.query) {
130
- const raw = Object.fromEntries(Object.entries(c.req.queries()).map(([key, values]) => [key, values.length === 1 ? values[0] : values]));
126
+ const queries = queryUrl === void 0 ? c.req.queries() : getQueryParams(queryUrl);
127
+ const raw = Object.fromEntries(Object.entries(queries).map(([key, values]) => [key, values.length === 1 ? values[0] : values]));
131
128
  const result = await validateSlot(validators.query, raw);
132
129
  if (result.ok) input.query = result.value;
133
130
  else allIssues.push({
@@ -0,0 +1,23 @@
1
+ import { c as bindingNamesForField, f as findBindingNameOwner } from "./wrangler-AyMfdVJK.mjs";
2
+ // src/shared/version-metadata.ts
3
+ /** Build-only marker: an existing-site handoff must not add Worker bindings. */
4
+ const CLOUDFLARE_PRESERVE_BINDINGS_BUILD_ENV = "VOID_CLOUDFLARE_PRESERVE_BINDINGS";
5
+ const DEFAULT_VERSION_METADATA_BINDING = "__VOID_VERSION_METADATA";
6
+ /** Keep the authored singleton name, and reject a cross-type binding collision. */
7
+ function readVersionMetadataBinding(config) {
8
+ const name = bindingNamesForField("version_metadata", config.version_metadata)[0];
9
+ if (!name) return;
10
+ const owner = findBindingNameOwner(config, "version_metadata", name);
11
+ if (owner) throw new Error(`Cloudflare version metadata binding ${name} conflicts with ${owner}.`);
12
+ return name;
13
+ }
14
+ /** Self-metadata adds no remote resource or plan entitlement. */
15
+ function selectNativeVersionMetadataBinding(config, options) {
16
+ if (!options.nativeBuild) return;
17
+ const authored = readVersionMetadataBinding(config);
18
+ if (authored || options.preserveBindings) return authored;
19
+ const owner = findBindingNameOwner(config, "version_metadata", DEFAULT_VERSION_METADATA_BINDING);
20
+ if (owner) throw new Error(`Cloudflare version metadata binding ${DEFAULT_VERSION_METADATA_BINDING} conflicts with ${owner}.`);
21
+ return DEFAULT_VERSION_METADATA_BINDING;
22
+ }
23
+ export { readVersionMetadataBinding as n, selectNativeVersionMetadataBinding as r, CLOUDFLARE_PRESERVE_BINDINGS_BUILD_ENV as t };
@@ -1,68 +1,20 @@
1
1
  import { a as join, c as resolve, n as dirname, o as normalize, t as basename } from "./dist-DMYe8CZJ.mjs";
2
- import { a as persistCloudflareConfig, i as materializeCloudflareConfig, r as ignoreMaterializedCloudflareConfig } from "./cloudflare-config-D9UFH_A5.mjs";
3
- import { o as TYPED_CONFIG_FILE, s as loadTypedVoidConfigFile } from "./project-paths-2ENfCCih.mjs";
4
- import { h as validateConfig, p as readConfig } from "./config-Dv5jri1-.mjs";
2
+ import { a as persistCloudflareConfig, i as materializeCloudflareConfig, r as ignoreMaterializedCloudflareConfig } from "./cloudflare-config-KPHKf57C.mjs";
3
+ import "./project-paths-BeAxxqGh.mjs";
4
+ import { o as writeVoidProjectConfig } from "./config-write-dKLINlm2.mjs";
5
+ import { h as readConfig } from "./config-KZAiI3gG.mjs";
5
6
  import { t as hasOwnKey } from "./has-own-key-D9QEnAkF.mjs";
6
7
  import { t as Buffer } from "./node-buffer-D7kgjaDs.mjs";
7
8
  import { existsSync, readFileSync, writeFileSync } from "node:fs";
8
- import { parseSync } from "vite";
9
9
  import { appendSqliteClassMigration, isRecord } from "@void/deploy-core";
10
10
  import { createHash } from "node:crypto";
11
11
  import { isDeepStrictEqual } from "node:util";
12
12
  import { SyntaxKind, applyEdits, createScanner, findNodeAtLocation, modify, parse, parseTree } from "jsonc-parser";
13
- // src/config-write.ts
14
- const GENERATED_MARKERS = [
15
- "// Generated by void migrate.",
16
- "// Generated from void.json by void migrate.",
17
- "// Generated by void init."
18
- ];
19
- function renderVoidConfig(config, marker = GENERATED_MARKERS[0]) {
20
- return `${marker}\nimport { defineConfig } from 'void/config';\n\nexport default defineConfig(${JSON.stringify(config, null, 2)});\n`;
21
- }
22
- function isStaticValue(node) {
23
- if (!node) return false;
24
- if (node.type === "Literal") return node.value === null || [
25
- "string",
26
- "number",
27
- "boolean"
28
- ].includes(typeof node.value);
29
- if (node.type === "UnaryExpression") return node.operator === "-" && node.argument?.type === "Literal" && typeof node.argument.value === "number";
30
- if (node.type === "ArrayExpression") return node.elements?.every(isStaticValue) ?? false;
31
- if (node.type !== "ObjectExpression") return false;
32
- return node.properties?.every((property) => property.type === "Property" && property.kind === "init" && !property.computed && !property.method && (property.key?.type === "Identifier" || property.key?.type === "Literal") && isStaticValue(property.value)) ?? false;
33
- }
34
- function isGeneratedStaticConfig(source) {
35
- if (!GENERATED_MARKERS.some((marker) => source.startsWith(marker))) return false;
36
- let program;
37
- try {
38
- const parsed = parseSync(TYPED_CONFIG_FILE, source, {
39
- lang: "js",
40
- sourceType: "module",
41
- preserveParens: false,
42
- showSemanticErrors: true
43
- });
44
- if (parsed.errors.length > 0 || parsed.comments.length !== 1 || !GENERATED_MARKERS.includes(`// ${parsed.comments[0]?.value.trim()}`)) return false;
45
- program = parsed.program;
46
- } catch {
47
- return false;
48
- }
49
- const [importDeclaration, exportDeclaration] = program.body ?? [];
50
- const call = exportDeclaration?.declaration;
51
- return program.body?.length === 2 && importDeclaration?.type === "ImportDeclaration" && importDeclaration.source?.value === "void/config" && importDeclaration.specifiers?.length === 1 && importDeclaration.specifiers[0]?.imported?.name === "defineConfig" && importDeclaration.specifiers[0]?.local?.name === "defineConfig" && exportDeclaration?.type === "ExportDefaultDeclaration" && call?.type === "CallExpression" && call.callee?.name === "defineConfig" && call.arguments?.length === 1 && isStaticValue(call.arguments[0]);
52
- }
53
- function canRewriteVoidProjectConfig(root) {
54
- const path = join(root, TYPED_CONFIG_FILE);
55
- return !existsSync(path) || isGeneratedStaticConfig(readFileSync(path, "utf8"));
56
- }
57
- /** Update CLI-owned static config without silently rewriting authored TypeScript. */
58
- function writeVoidProjectConfig(root, config) {
59
- validateConfig(config, TYPED_CONFIG_FILE);
60
- const path = join(root, TYPED_CONFIG_FILE);
61
- if (existsSync(path)) {
62
- if (!isGeneratedStaticConfig(readFileSync(path, "utf8"))) throw new Error(`config: ${TYPED_CONFIG_FILE} contains authored TypeScript or comments. Update it directly and rerun the command.`);
63
- validateConfig(loadTypedVoidConfigFile(path), TYPED_CONFIG_FILE);
64
- }
65
- writeFileSync(path, renderVoidConfig(config, "// Generated by void init."));
13
+ // src/shared/browser-compat.ts
14
+ const BROWSER_QUICK_ACTIONS_DATE = "2026-03-24";
15
+ const DEFAULT_WORKER_COMPAT_DATE = "2026-03-24";
16
+ function assertBrowserCompatibility(date) {
17
+ if (date < "2026-03-24") throw new Error(`void/image: Set worker.compatibility_date in void.config.ts to ${BROWSER_QUICK_ACTIONS_DATE} or later to use Browser Run Quick Actions.`);
66
18
  }
67
19
  // src/cli/wrangler.ts
68
20
  const COMPAT_DATE_RE = /^\d{4}-\d{2}-\d{2}$/;
@@ -153,8 +105,6 @@ function writeWranglerPublishedTrafficSnapshot(configPath, snapshot, options) {
153
105
  const next = existing ? raw.slice(0, existing.index) + marker + raw.slice(existing.index + existing[0].length) : `${marker}${raw.includes("\r\n") ? "\r\n" : "\n"}${raw}`;
154
106
  if (next !== raw) writeProjectWranglerFile(configPath, next);
155
107
  }
156
- /** Latest compatibility date the Void test suite is pinned against. */
157
- const LATEST_KNOWN_COMPAT_DATE = "2026-02-24";
158
108
  function normalizeWranglerCompatibilityFlags(flags, options) {
159
109
  const existingFlags = flags ?? [];
160
110
  if (options?.needsNodejsCompat && !existingFlags.includes(NODEJS_COMPAT_FLAG)) return [...existingFlags.filter((flag) => flag !== NODEJS_ALS_FLAG), NODEJS_COMPAT_FLAG];
@@ -279,7 +229,7 @@ function readWranglerCompatFields(root, config, buildOutputDir) {
279
229
  };
280
230
  }
281
231
  function resolveWranglerCompat(fields, options) {
282
- const result = { compatibilityDate: fields.voidDate ?? fields.wranglerDate ?? fields.buildDate ?? options?.defaultDate ?? "2026-02-24" };
232
+ const result = { compatibilityDate: fields.voidDate ?? fields.wranglerDate ?? fields.buildDate ?? options?.defaultDate ?? "2026-03-24" };
283
233
  const flags = fields.voidFlags ?? fields.wranglerFlags ?? fields.buildFlags;
284
234
  if (flags && flags.length > 0) result.compatibilityFlags = flags;
285
235
  return result;
@@ -292,18 +242,18 @@ function readVoidConfigIfExists(root) {
292
242
  }
293
243
  function ensureVoidCompatibilityDate(root, rootWrangler) {
294
244
  if (existsSync(join(root, "void.config.ts"))) {
295
- writeProvisionedWranglerConfig(root, { compatibilityDate: LATEST_KNOWN_COMPAT_DATE });
296
- return LATEST_KNOWN_COMPAT_DATE;
245
+ writeProvisionedWranglerConfig(root, { compatibilityDate: DEFAULT_WORKER_COMPAT_DATE });
246
+ return DEFAULT_WORKER_COMPAT_DATE;
297
247
  }
298
248
  const filePath = join(root, VOID_CONFIG_FILE);
299
249
  if (!existsSync(filePath)) {
300
- if (existsSync(join(root, "wrangler.toml"))) writeFileSync(filePath, `${JSON.stringify({ worker: { compatibility_date: LATEST_KNOWN_COMPAT_DATE } }, null, 2)}\n`);
301
- else if (rootWrangler || projectWranglerPaths(root).some((path) => existsSync(path))) writeProvisionedWranglerConfig(root, { compatibilityDate: LATEST_KNOWN_COMPAT_DATE });
250
+ if (existsSync(join(root, "wrangler.toml"))) writeFileSync(filePath, `${JSON.stringify({ worker: { compatibility_date: DEFAULT_WORKER_COMPAT_DATE } }, null, 2)}\n`);
251
+ else if (rootWrangler || projectWranglerPaths(root).some((path) => existsSync(path))) writeProvisionedWranglerConfig(root, { compatibilityDate: DEFAULT_WORKER_COMPAT_DATE });
302
252
  else {
303
- writeVoidProjectConfig(root, { worker: { compatibility_date: LATEST_KNOWN_COMPAT_DATE } });
253
+ writeVoidProjectConfig(root, { worker: { compatibility_date: DEFAULT_WORKER_COMPAT_DATE } });
304
254
  ignoreMaterializedCloudflareConfig(root);
305
255
  }
306
- return LATEST_KNOWN_COMPAT_DATE;
256
+ return DEFAULT_WORKER_COMPAT_DATE;
307
257
  }
308
258
  let nextConfig;
309
259
  try {
@@ -316,10 +266,10 @@ function ensureVoidCompatibilityDate(root, rootWrangler) {
316
266
  }
317
267
  nextConfig.worker = {
318
268
  ...nextConfig.worker ?? {},
319
- compatibility_date: LATEST_KNOWN_COMPAT_DATE
269
+ compatibility_date: DEFAULT_WORKER_COMPAT_DATE
320
270
  };
321
271
  writeFileSync(filePath, `${JSON.stringify(nextConfig, null, 2)}\n`);
322
- return LATEST_KNOWN_COMPAT_DATE;
272
+ return DEFAULT_WORKER_COMPAT_DATE;
323
273
  }
324
274
  /**
325
275
  * Add missing inferred bindings to the project Wrangler config for local dev; existing
@@ -387,6 +337,21 @@ function syncWranglerBindings(root, bindings, options) {
387
337
  }
388
338
  }
389
339
  }
340
+ if (bindings.needsBrowser && parsed.browser === void 0) {
341
+ parsed.browser = { binding: options?.bindingNames?.browser ?? "BROWSER" };
342
+ modified = true;
343
+ }
344
+ const browser = parsed.browser;
345
+ if (typeof browser?.binding === "string" && browser.binding !== "BROWSER") {
346
+ const vars = parsed.vars ?? {};
347
+ if (vars.__VOID_BROWSER_BINDING !== browser.binding) {
348
+ parsed.vars = {
349
+ ...vars,
350
+ __VOID_BROWSER_BINDING: browser.binding
351
+ };
352
+ modified = true;
353
+ }
354
+ }
390
355
  if (options?.websockets) {
391
356
  const existing = durableObjectBindingsOf(parsed);
392
357
  const migrations = Array.isArray(parsed.migrations) ? parsed.migrations : [];
@@ -1486,4 +1451,4 @@ function normalizeMigrationsPath(p) {
1486
1451
  const normalized = normalize(p.replaceAll("\\", "/"));
1487
1452
  return normalized.endsWith("/") ? normalized.slice(0, -1) : normalized;
1488
1453
  }
1489
- export { syncWranglerWebSockets as A, readWranglerManagedQueueCleanupCandidates as C, sameMigrationsDir as D, resolveLiveBindingConfig as E, canRewriteVoidProjectConfig as F, renderVoidConfig as I, writeVoidProjectConfig as L, writeProvisionedWranglerConfig as M, writeWranglerPublishedTrafficSnapshot as N, syncWranglerBindings as O, GENERATED_MARKERS as P, readWranglerCustomDomains as S, readWranglerWebSocketTombstones as T, persistMaterializedWranglerConfig as _, LIVE_MIGRATION_TAG as a, readRootWranglerConfig as b, bindingEntriesForField as c, ensureWranglerCompatibilityDate as d, ensureWranglerNodejsAlsFlag as f, normalizeWranglerCompatibilityFlags as g, nextDurableObjectMigrationTag as h, LATEST_KNOWN_COMPAT_DATE as i, updateWranglerCustomDomain as j, syncWranglerDurableObjects as k, bindingNamesForField as l, hasDurableObjectSqliteMigration as m, DEFAULT_LIVE_CLASS as n, acknowledgeWranglerManagedQueueRemovals as o, findBindingNameOwner as p, FRIENDLY_BINDING_NAMES as r, assertNoDuplicateMembers as s, DEFAULT_LIVE_BINDING as t, ensureWranglerCompat as u, readExistingLiveBindingConfig as v, readWranglerPublishedTrafficSnapshot as w, readWranglerCompat as x, readProvisionedBindingEntry as y };
1454
+ export { updateWranglerCustomDomain as A, readWranglerPublishedTrafficSnapshot as C, syncWranglerBindings as D, sameMigrationsDir as E, writeWranglerPublishedTrafficSnapshot as M, DEFAULT_WORKER_COMPAT_DATE as N, syncWranglerDurableObjects as O, assertBrowserCompatibility as P, readWranglerManagedQueueCleanupCandidates as S, resolveLiveBindingConfig as T, readExistingLiveBindingConfig as _, acknowledgeWranglerManagedQueueRemovals as a, readWranglerCompat as b, bindingNamesForField as c, ensureWranglerNodejsAlsFlag as d, findBindingNameOwner as f, persistMaterializedWranglerConfig as g, normalizeWranglerCompatibilityFlags as h, LIVE_MIGRATION_TAG as i, writeProvisionedWranglerConfig as j, syncWranglerWebSockets as k, ensureWranglerCompat as l, nextDurableObjectMigrationTag as m, DEFAULT_LIVE_CLASS as n, assertNoDuplicateMembers as o, hasDurableObjectSqliteMigration as p, FRIENDLY_BINDING_NAMES as r, bindingEntriesForField as s, DEFAULT_LIVE_BINDING as t, ensureWranglerCompatibilityDate as u, readProvisionedBindingEntry as v, readWranglerWebSocketTombstones as w, readWranglerCustomDomains as x, readRootWranglerConfig as y };
@@ -0,0 +1 @@
1
+ export { y as readRootWranglerConfig } from "./wrangler-AyMfdVJK.mjs";
@@ -1,8 +1,8 @@
1
1
  import { a as join, l as toSlash, n as dirname, r as extname } from "./dist-DMYe8CZJ.mjs";
2
- import { t as findEnvFile } from "./env-types-D2hBodXP.mjs";
3
- import { l as getDatabaseDialect, p as readConfig } from "./config-Dv5jri1-.mjs";
4
- import { c as voidDbBundlerPlugin, r as cloudflareQueueName, t as generateQueueResolverSource } from "./dispatch-DIhDA3NI.mjs";
5
- import { n as readProjectPaths } from "./project-paths-2ENfCCih.mjs";
2
+ import { t as findEnvFile } from "./env-types-B33fEHRH.mjs";
3
+ import { h as readConfig, u as getDatabaseDialect } from "./config-KZAiI3gG.mjs";
4
+ import { c as voidDbBundlerPlugin, r as cloudflareQueueName, t as generateQueueResolverSource } from "./dispatch-BUKbPdqb.mjs";
5
+ import { n as readProjectPaths } from "./project-paths-BeAxxqGh.mjs";
6
6
  import { t as ENV_REGISTRY_KEY } from "./env-registry-BbCdIOXP.mjs";
7
7
  import { t as WORKER_CONDITIONS } from "./worker-conditions-CBZ0RYsZ.mjs";
8
8
  import { t as MagicString } from "./dist-B6eN80gc.mjs";
@@ -150,7 +150,7 @@ async function generateWrapper(workerDir, workerMain, root, features) {
150
150
  let migrations;
151
151
  let migrationPlanBundle;
152
152
  if (features.hasMigrations) {
153
- const { collectMigrations } = await import("./collect-B6nlSnsb.mjs");
153
+ const { collectMigrations } = await import("./collect-Aam0GwAU.mjs");
154
154
  const { buildMigrationPlanBundle } = await import("./plan-CQ-N4gws.mjs");
155
155
  const migrationsDir = readProjectPaths(root).migrationsDir;
156
156
  migrations = collectMigrations(migrationsDir);
package/docs/guide/ai.md CHANGED
@@ -167,7 +167,7 @@ const response = await ai.provider('openai').fetch('/chat/completions', {
167
167
  });
168
168
  ```
169
169
 
170
- If the signal aborts while you read a streaming response, reading it rejects with the signal's reason instead of ending with a `void:error` event.
170
+ If you cancel while reading the stream, the read rejects with `signal.reason`. Catch it where you read the response. An aborted stream won’t send a final `void:error` event.
171
171
 
172
172
  ### OpenAI
173
173
 
@@ -5,13 +5,9 @@ outline: deep
5
5
 
6
6
  # Supported App Types
7
7
 
8
- Void supports three types of apps:
8
+ If you’re starting with file-based routes and pages, build a [Void app](#void-apps). If you already use a Vite-based framework, keep its routing and add a [framework integration](#meta-frameworks). For a site that builds to a directory of HTML, CSS, and JavaScript, you can [deploy those files](#pre-built-static-sites) directly.
9
9
 
10
- 1. **Void apps:** Vite apps powered by Void's framework layer, including [API routes](./server-routing.md), [pages mode](./pages-routing/overview.md), [auth](./auth.md), [crons](./jobs.md), and [queues](./queues.md)
11
- 2. **Meta frameworks:** [TanStack Start](https://tanstack.com/start/latest), [React Router](https://reactrouter.com/), [SvelteKit](https://svelte.dev/docs/kit), [Nuxt](https://nuxt.com/), and [Astro](https://astro.build/)
12
- 3. **Static sites:** SPAs, sites built with tools like [VitePress](https://vitepress.dev/), or any directory of static files
13
-
14
- The type is auto-detected from your project structure, or you can set it explicitly in [`void.config.ts`](../reference/config.md).
10
+ Void detects the app type from your project. You can also set it in [`void.config.ts`](../reference/config.md).
15
11
 
16
12
  ## Void Apps
17
13
 
@@ -21,7 +17,7 @@ A Void app can be **API-only** (just `routes/`), a **SPA + API** (frontend in `s
21
17
 
22
18
  <VoidAppFileTree annotations />
23
19
 
24
- Void serves API routes, page rendering, and optional [custom SSR](./ssr.md) alongside static assets. Resources such as D1, KV, and R2 are [inferred from your code](../reference/resource-inference.md) and provisioned when you deploy.
20
+ Resources such as D1, KV, and R2 are [inferred from your code](../reference/resource-inference.md) and provisioned when you deploy.
25
21
 
26
22
  Void apps can also use [`output: 'static'`](./ssg.md) to pre-render all pages at build time. That gives you a fully static site that can be deployed anywhere, with no Cloudflare Worker required.
27
23
 
@@ -29,22 +25,11 @@ Void apps can also use [`output: 'static'`](./ssg.md) to pre-render all pages at
29
25
 
30
26
  ## Meta Frameworks
31
27
 
32
- Void supports deploying Vite-based meta-framework apps with `void deploy`. The framework owns routing and SSR. Void handles [binding inference](../reference/resource-inference.md), [typed DB queries](./database.md), migrations, and deployment.
33
-
34
- | Framework | Detected from package | Setup guide |
35
- | --------------------------------------------------- | ----------------------- | ----------------------------------------------------- |
36
- | [TanStack Start](https://tanstack.com/start/latest) | `@tanstack/react-start` | [Guide](../integrations/frameworks/tanstack-start.md) |
37
- | [React Router v7](https://reactrouter.com/) | `@react-router/dev` | [Guide](../integrations/frameworks/react-router.md) |
38
- | [SvelteKit](https://svelte.dev/docs/kit) | `@sveltejs/kit` | [Guide](../integrations/frameworks/sveltekit.md) |
39
- | [Nuxt](https://nuxt.com/) | `nuxt` | [Guide](../integrations/frameworks/nuxt.md) |
40
- | [Analog](https://analogjs.org/) | `@analogjs/platform` | [Guide](../integrations/frameworks/analog.md) |
41
- | [Astro](https://astro.build/) | `astro` | [Guide](../integrations/frameworks/astro.md) |
42
-
43
- Add `voidPlugin()` to the framework's Vite config to get binding inference, typed DB generation, migration management, cron jobs, queues, and caching. Void-managed auth is not supported in framework mode; use Better Auth's official integration for your framework. See the [Meta Frameworks Integration](../integrations/frameworks/overview.md) for supported features and setup guides.
28
+ Keep your framework’s routing and rendering. Add `voidPlugin()` for resource bindings, typed database queries, migrations, and deployment. Follow the setup guide for [TanStack Start](../integrations/frameworks/tanstack-start.md), [React Router](../integrations/frameworks/react-router.md), [SvelteKit](../integrations/frameworks/sveltekit.md), [Nuxt](../integrations/frameworks/nuxt.md), [Analog](../integrations/frameworks/analog.md), or [Astro](../integrations/frameworks/astro.md). See [feature support](../integrations/frameworks/overview.md#feature-support) for background jobs, caching, and authentication.
44
29
 
45
30
  ## Pre-built Static Sites
46
31
 
47
- Any project that produces static files, whether that is an SPA, a static site, or a plain directory. Void serves the assets without requiring application code.
32
+ Deploy a directory of static files with `void deploy --dir <path>`.
48
33
 
49
34
  **SPAs** (client-side single-page apps) serve `index.html` with a 200 status for paths that match no file, so client-side routing works out of the box. On a Void platform, missing files under the hashed assets folder (`/assets/`) return 404 instead. Detected when `vite` is a dependency and no backend files exist.
50
35
 
@@ -57,8 +42,6 @@ At the edge, the resolution order is:
57
42
  3. `404.html` with **status 404** (if the file exists)
58
43
  4. Plain 404 response
59
44
 
60
- **Deploy:** `void deploy` or `void deploy --dir <path>` uploads static files directly. Assets are served from the edge with automatic caching.
61
-
62
45
  ## Adding a backend to a static site
63
46
 
64
47
  If you add API routes to a static site generator, tell Void whether to deploy the backend too. Auto-detection sees both the SSG dependency and backend files, and stops until you set `inference.appType`.
@@ -88,7 +71,7 @@ export default defineConfig({
88
71
  });
89
72
  ```
90
73
 
91
- `vitepress build` emits the site, then `vite build` copies `publicDir` into `dist/client` and emits the worker into `dist/ssr`. Keep `voidPlugin()` in the **root** `vite.config.ts` only — not in the generator's own config (e.g. `.vitepress/config.ts`).
74
+ Add `voidPlugin()` only to the root `vite.config.ts`.
92
75
 
93
76
  The Worker handles unmatched requests. Set [`routing.notFound`](../reference/config.md#routing-notfound) to serve the generator's `404.html` for those requests:
94
77
 
@@ -139,9 +139,7 @@ Calls such as `signUpEmail` sign the current browser in as the new user. To crea
139
139
 
140
140
  ## Querying Authentication Tables
141
141
 
142
- To query users or reference them from your own tables, import Void's generated authentication schema from `@auth-schema`. It exports `userTable`, `sessionTable`, `accountTable`, `verificationTable`, and any tables added by your Better Auth plugins. Like `@schema`, it needs no setup when your root `tsconfig.json` extends `.void/tsconfig.json`.
143
-
144
- Query users with Drizzle:
142
+ To list the people who signed up most recently, import `userTable` from `@auth-schema` and order the rows by `createdAt`. The alias works like `@schema` when your root `tsconfig.json` extends `.void/tsconfig.json`.
145
143
 
146
144
  ```ts
147
145
  import { userTable } from '@auth-schema';
@@ -152,7 +150,7 @@ export function listUsers() {
152
150
  }
153
151
  ```
154
152
 
155
- To associate a post with its author, reference `userTable.id`:
153
+ The same schema gives you `sessionTable`, `accountTable`, `verificationTable`, and the tables added by your Better Auth plugins. You can also use them in your own schema. For example, give each post an author by referencing `userTable.id`.
156
154
 
157
155
  ```ts
158
156
  import { userTable } from '@auth-schema';