void 1.6.2 → 1.8.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.
- package/dist/{account-cmd-D903EEWQ.mjs → account-cmd-CZKntRH2.mjs} +6 -6
- package/dist/action-key-ByZ6DDld.mjs +64 -0
- package/dist/{application-analysis-DlUG-XNT.mjs → application-analysis-CyTagJQM.mjs} +31 -10
- package/dist/{application-routing-GCBSwXA9.mjs → application-routing-BLrMVpqi.mjs} +2 -1
- package/dist/{auth-CL-p_rqV.mjs → auth-BN0NU9dz.mjs} +1 -1
- package/dist/{auth-CH4PLAX1.d.mts → auth-Bk9VGtQW.d.mts} +9 -2
- package/dist/{auth-Dy8svcqQ.mjs → auth-CCk9Seol.mjs} +2 -2
- package/dist/{auth-YVjBX5NY.mjs → auth-DyWp-fSo.mjs} +7 -1
- package/dist/{auth-link-g9J7MSmP.mjs → auth-link-BOaQWMKw.mjs} +6 -6
- package/dist/{auth-router-DMZbG9Qn.mjs → auth-router-D0-VcmDs.mjs} +3 -3
- package/dist/{better-auth-shared-BJyG2mH0.d.mts → better-auth-shared-CQFdtguU.d.mts} +2 -2
- package/dist/{better-auth-shared-C958aM7W.mjs → better-auth-shared-CdVyCUou.mjs} +1 -1
- package/dist/boundary-plans-CRmWH68v.d.mts +25 -0
- package/dist/{build-cmd-DmjbuT6d.mjs → build-cmd-JTsXXf2F.mjs} +5 -5
- package/dist/{cache-2khBO1MR.mjs → cache-D0m3Z_Xf.mjs} +5 -5
- package/dist/{cancel-deploy-_itbbvY3.mjs → cancel-deploy-Ce6Os4fa.mjs} +4 -4
- package/dist/{cf-build-output-B1C8U83u.mjs → cf-build-output-CWNOH-KA.mjs} +2 -1
- package/dist/cf-build-output-DUZnAeZ1.mjs +1 -0
- package/dist/{cf-config-migrate-Dy8MrKgF.mjs → cf-config-migrate-Bb-EdAQq.mjs} +5 -1
- package/dist/cli/cli.mjs +68 -1868
- package/dist/cli/cloudflare-operation-process.mjs +101 -26
- package/dist/cli/env-schema-probe.d.mts +1 -1
- package/dist/cli/env-schema-probe.mjs +3 -3
- package/dist/cli-main-rkrJy2Ge.mjs +1889 -0
- package/dist/client-D1Vz1Zep.mjs +1 -0
- package/dist/{client-CoxPEhJq.mjs → client-SZPyj4X_.mjs} +10 -4
- package/dist/{cloudflare-auth-CuS42-9A.mjs → cloudflare-auth-7jTqy9Bx.mjs} +1 -1
- package/dist/{cloudflare-cmd-DTF19-j-.mjs → cloudflare-cmd-ChPLQcTP.mjs} +5 -5
- package/dist/{cloudflare-config-Ce8j5S7V.mjs → cloudflare-config-DtOGAbeB.mjs} +2 -2
- package/dist/{cloudflare-connect-BN4dHp8i.mjs → cloudflare-connect-Co93VYTo.mjs} +3 -3
- package/dist/{cloudflare-operations-DrZGzQap.mjs → cloudflare-operations-CXaDKYj2.mjs} +6 -6
- package/dist/{cloudflare-operations-laxRA8HN.mjs → cloudflare-operations-DATekLwI.mjs} +1 -1
- package/dist/{cloudflare-process-D9aC-jXr.mjs → cloudflare-process-DmTxZR-N.mjs} +2 -2
- package/dist/{config-hL-S-Y9D.mjs → config-5oSQhZNj.mjs} +3 -1
- package/dist/{config-CPxJmt4M.d.mts → config-CTlUaXWZ.d.mts} +3 -1
- package/dist/{config-CNDjO-15.mjs → config-DcqUBGCb.mjs} +1 -1
- package/dist/config-entry.d.mts +1 -1
- package/dist/{config-DMR0i3Z2.mjs → config-wo2EaH0X.mjs} +1 -1
- package/dist/{connect-DHepM7Xs.mjs → connect-DlvXt1JR.mjs} +7 -7
- package/dist/{create-project-Bq0M8MtO.mjs → create-project-CC_7hmYJ.mjs} +5 -5
- package/dist/{create-project-BiMmR5wA.mjs → create-project-DzY05xqC.mjs} +1 -1
- package/dist/{db-CqfT6lhV.mjs → db-FhyYGcJJ.mjs} +39 -39
- package/dist/{db-types-DRmxBJ2K.mjs → db-types-sVwEpyPR.mjs} +4 -2
- package/dist/{delete-CY4L8fi2.mjs → delete-CModjyOC.mjs} +5 -5
- package/dist/{deploy-La_Ly8g_.mjs → deploy-Cz9TEzZy.mjs} +502 -110
- package/dist/deploy-DMieisRu.mjs +2 -0
- package/dist/{deploy-managed-static-CESLfKHN.mjs → deploy-managed-static-DlxxXkAM.mjs} +16 -16
- package/dist/{deploy-transport-DcI6LXhY.mjs → deploy-transport-DUvm6-CR.mjs} +3 -3
- package/dist/deploy.mjs +8 -8
- package/dist/{dispatch-DM4Xdd2l.mjs → dispatch-CCiaAnSK.mjs} +7 -7
- package/dist/{dist-eV_Ep60B.mjs → dist-Cp4b1_T9.mjs} +1 -1
- package/dist/{dist-D23AAMxT.mjs → dist-STQXl8ck.mjs} +86 -138
- package/dist/{domain-BD1KOQL3.mjs → domain-DvdZPA50.mjs} +6 -6
- package/dist/{drizzle-C8MPqt5m.mjs → drizzle-D4V_06-B.mjs} +1 -1
- package/dist/{drizzle-lFdzSEa9.mjs → drizzle-DBSpPpU1.mjs} +34 -8
- package/dist/{email-XAspopcj.mjs → email-ASpNrfLd.mjs} +10 -10
- package/dist/{email-cloudflare-RxIQoPc9.mjs → email-cloudflare-kqoN9jst.mjs} +25 -16
- package/dist/{entry-DFBca6aS.mjs → entry-BweGTCgj.mjs} +1 -1
- package/dist/{env-DrYUh55t.mjs → env-Bpkg3G5i.mjs} +7 -7
- package/dist/{env-CuzZZyjB.mjs → env-UqS-21xi.mjs} +8 -1
- package/dist/env-mask-D31Qztl9.mjs +46 -0
- package/dist/{env-public-CeNeO_AT.d.mts → env-public-DtJL_hZq.d.mts} +8 -7
- package/dist/{env-validation-Del3C8AY.mjs → env-validation-BpCCQE_6.mjs} +6 -6
- package/dist/{env-validation-Bosj7EVg.mjs → env-validation-CN386Utu.mjs} +1 -1
- package/dist/{fetch-C8yhLoF3.mjs → fetch-CAIVkLvW.mjs} +1 -1
- package/dist/{fetch-B-gLGYVl.d.mts → fetch-CbI6lNnk.d.mts} +6 -4
- package/dist/{fetch-stream-DafNtVJC.mjs → fetch-stream-6Op0qlLd.mjs} +1 -1
- package/dist/{fetch-stream-DuwxWmBM.d.mts → fetch-stream-DoED9atq.d.mts} +1 -1
- package/dist/gen-M5fNQKfH.mjs +1 -0
- package/dist/{gen-DSkScMIz.mjs → gen-upKJChvd.mjs} +7 -7
- package/dist/{github-cmd-CA-lBdkn.mjs → github-cmd-BvMOlb8Z.mjs} +6 -6
- package/dist/{handler-BR6Tvjkp.d.mts → handler-BO7Od-z9.d.mts} +22 -8
- package/dist/{handler-DnI_au0K.mjs → handler-C9SnmeW1.mjs} +5 -4
- package/dist/{headers--cbz6iZ8.mjs → headers-COGEDoMN.mjs} +11 -2
- package/dist/help-CItQVDL4.mjs +1 -0
- package/dist/{help-1OCFDsRr.mjs → help-TPCjTu6e.mjs} +7 -3
- package/dist/index.d.mts +5 -5
- package/dist/index.mjs +379 -265
- package/dist/{info-BpxpsX0B.mjs → info-EsDyihwf.mjs} +4 -4
- package/dist/{init-DpVXO5S-.mjs → init-a4lVagrb.mjs} +33 -32
- package/dist/{link-DAXOT-G_.mjs → link-CE55DDzS.mjs} +6 -6
- package/dist/{list-BFQ0gcML.mjs → list-CxRthQks.mjs} +7 -7
- package/dist/{live-DF4HUl2m.mjs → live-CYJ4KGoR.mjs} +2 -2
- package/dist/{live-0xrcVpyq.d.mts → live-Kc55iuOQ.d.mts} +2 -2
- package/dist/{local-d1-CLVPP6v7.mjs → local-d1-CFcH9Bx3.mjs} +2 -2
- package/dist/{login-RIw7ffPe.mjs → login-AfcSGSmE.mjs} +5 -5
- package/dist/login-ZHsAm-I6.mjs +1 -0
- package/dist/{logs-B2OeLS4X.mjs → logs-BgRJuvb1.mjs} +6 -6
- package/dist/{migrate-DiI50Chz.mjs → migrate-BNAh6m_C.mjs} +5 -5
- package/dist/migrate-BflbbZQK.mjs +1 -0
- package/dist/nitro.d.mts +5 -0
- package/dist/nitro.mjs +27 -8
- package/dist/{node-Bc-dBAGL.mjs → node-CXFUw0Uz.mjs} +5 -5
- package/dist/{operator-args-D79WQP70.mjs → operator-args-DGTuCdSE.mjs} +9 -1
- package/dist/{operator-auth-CfDcmzpo.mjs → operator-auth-CD3pap65.mjs} +1 -1
- package/dist/{operator-client-BIY4-N_6.mjs → operator-client-XvXTkea6.mjs} +2 -2
- package/dist/{operator-cmd-CEI5Aaza.mjs → operator-cmd-C-viB7Si.mjs} +7 -7
- package/dist/operator-cmd-D6qNuJ_z.mjs +1 -0
- package/dist/output-BsdnNpxa.mjs +1 -0
- package/dist/{output-BCdLioKP.mjs → output-DNVILSz2.mjs} +1 -1
- package/dist/pages/client.d.mts +43 -15
- package/dist/pages/client.mjs +165 -80
- package/dist/pages/index.d.mts +6 -4
- package/dist/pages/index.mjs +6 -6
- package/dist/pages/islands-plugin.d.mts +1 -1
- package/dist/pages/islands-plugin.mjs +13 -2
- package/dist/pages/protocol.d.mts +2 -2
- package/dist/pages/protocol.mjs +1 -1
- package/dist/pages/serialize.d.mts +2 -2
- package/dist/pages/serialize.mjs +1 -1
- package/dist/{platform-args-Cx1M-7bq.mjs → platform-args-CiYeZmc5.mjs} +1 -1
- package/dist/platform-args-DJvF1-kl.mjs +1 -0
- package/dist/{platform-auth-config-ZrYm8KVs.mjs → platform-auth-config-Dt2qEc2w.mjs} +10 -10
- package/dist/{platform-auth-protection-t6mdY4nn.mjs → platform-auth-protection-B7TaF-PZ.mjs} +8 -8
- package/dist/{platform-auth-recovery-XeBmPTXx.mjs → platform-auth-recovery-suXSteJ6.mjs} +7 -7
- package/dist/{platform-cmd-EXehmSYA.mjs → platform-cmd-9rvYBBtr.mjs} +9 -9
- package/dist/{platform-cmd-C7BevP9b.mjs → platform-cmd-DuAsIxbU.mjs} +1 -1
- package/dist/{platform-domain-DR263ObA.mjs → platform-domain-DhH_vDr6.mjs} +5 -5
- package/dist/{platform-lifecycle-CN4aXldN.mjs → platform-lifecycle-3uI-E2bF.mjs} +1 -1
- package/dist/{platform-lifecycle-BvU_TNji.mjs → platform-lifecycle-CXmXe2xt.mjs} +17 -17
- package/dist/{platform-management-_UE1_GM8.mjs → platform-management-BBCHfwji.mjs} +4 -4
- package/dist/{platform-management-yS2sve3V.mjs → platform-management-PdrgDQTe.mjs} +1 -1
- package/dist/{platform-plans-config-Dx1agneU.mjs → platform-plans-config-BGwkXYDM.mjs} +5 -5
- package/dist/{platform-recovery-CPVk9-Q4.mjs → platform-recovery-C8NxXGRR.mjs} +3 -3
- package/dist/{platform-setup-Vw1AaUN8.mjs → platform-setup-Casiffqj.mjs} +3 -3
- package/dist/{plugin-inference-bQ1Be840.mjs → plugin-inference-CErfTgEx.mjs} +4 -4
- package/dist/{prepare-D8L9AQbw.mjs → prepare-BDKWZgfL.mjs} +12 -9
- package/dist/{prepare-BkRhDnxw.mjs → prepare-BLrzXjIl.mjs} +3 -3
- package/dist/prepare-a1_5usAn.mjs +1 -0
- package/dist/{prerender-render-RlAj6hh8.mjs → prerender-render-BAdYhivW.mjs} +44 -15
- package/dist/prerender-render.d.mts +12 -2
- package/dist/prerender-render.mjs +1 -1
- package/dist/{project-cmd-DH3CuFC6.mjs → project-cmd-DzGvxXKH.mjs} +18 -18
- package/dist/{project-team-MjT5K4rQ.mjs → project-team-C5XtHbZk.mjs} +5 -5
- package/dist/{project-token-BKHGwY3k.mjs → project-token-B4D5yhHQ.mjs} +5 -5
- package/dist/{project-tsconfig-BMveFb4b.mjs → project-tsconfig-nhnTWO_Y.mjs} +3 -1
- package/dist/{project-zero-trust-Bzdd05-h.mjs → project-zero-trust--0LvktDg.mjs} +5 -5
- package/dist/{protocol-COyySMki.mjs → protocol-B1Tvc9-x.mjs} +232 -74
- package/dist/{protocol-CkwjASep.d.mts → protocol-Cg2I81NA.d.mts} +13 -4
- package/dist/{provision-B0HqoRuI.mjs → provision-C3yiHdld.mjs} +2 -2
- package/dist/{provision-CYhZR_Mn.mjs → provision-CAcrauvr.mjs} +1 -1
- package/dist/{requests-daJmVpjk.mjs → requests-CrRiTgQA.mjs} +4 -4
- package/dist/resolve-project-C5wC-Hoi.mjs +1 -0
- package/dist/{resolve-project-D0YNnJfm.mjs → resolve-project-Da3OgCU1.mjs} +1 -1
- package/dist/{rollback-AVwiMAkk.mjs → rollback-BsmQyj-Q.mjs} +7 -7
- package/dist/{route-types-e69EqY88.mjs → route-types-CgtlFCDz.mjs} +268 -14
- package/dist/{route-url-C_YIH_zO.d.mts → route-url-C3JwYrER.d.mts} +8 -3
- package/dist/{route-url-CRDF-I0I.mjs → route-url-CfCR4oMj.mjs} +4 -3
- package/dist/routes-stub.d.mts +14 -4
- package/dist/routes-stub.mjs +1 -1
- package/dist/{runner-QMeOpScZ.mjs → runner-CTk21HrO.mjs} +1 -1
- package/dist/{runner-mysql-0zVmB1JW.mjs → runner-mysql-CHvEg_sy.mjs} +1 -1
- package/dist/runtime/ai.mjs +1 -1
- package/dist/runtime/auth.d.mts +2 -2
- package/dist/runtime/auth.mjs +1 -1
- package/dist/runtime/better-auth-mysql.d.mts +1 -1
- package/dist/runtime/better-auth-mysql.mjs +1 -1
- package/dist/runtime/better-auth-pg.d.mts +1 -1
- package/dist/runtime/better-auth-pg.mjs +1 -1
- package/dist/runtime/better-auth.d.mts +1 -1
- package/dist/runtime/better-auth.mjs +1 -1
- package/dist/runtime/client-react.d.mts +3 -3
- package/dist/runtime/client-react.mjs +2 -2
- package/dist/runtime/client-solid.d.mts +3 -3
- package/dist/runtime/client-solid.mjs +2 -2
- package/dist/runtime/client-svelte.d.mts +3 -3
- package/dist/runtime/client-svelte.mjs +2 -2
- package/dist/runtime/client-vue.d.mts +3 -3
- package/dist/runtime/client-vue.mjs +2 -2
- package/dist/runtime/client.d.mts +3 -3
- package/dist/runtime/client.mjs +2 -2
- package/dist/runtime/db.d.mts +6 -3
- package/dist/runtime/db.mjs +2 -2
- package/dist/runtime/email/testing.mjs +2 -2
- package/dist/runtime/email.mjs +3 -3
- package/dist/runtime/env-public.d.mts +1 -1
- package/dist/runtime/env-public.mjs +55 -85
- package/dist/runtime/fetch-server.d.mts +1 -1
- package/dist/runtime/fetch-server.mjs +1 -1
- package/dist/runtime/fetch-stream.d.mts +2 -2
- package/dist/runtime/fetch-stream.mjs +1 -1
- package/dist/runtime/fetch.d.mts +1 -1
- package/dist/runtime/fetch.mjs +1 -1
- package/dist/runtime/handler.d.mts +1 -1
- package/dist/runtime/handler.mjs +1 -1
- package/dist/runtime/isr.d.mts +3 -1
- package/dist/runtime/live-client.d.mts +11 -2
- package/dist/runtime/live-client.mjs +8 -0
- package/dist/runtime/live-server.mjs +1 -1
- package/dist/runtime/live.d.mts +1 -1
- package/dist/runtime/live.mjs +1 -1
- package/dist/runtime/log.mjs +1 -1
- package/dist/runtime/remote/index.mjs +1 -1
- package/dist/runtime/route-url.d.mts +2 -2
- package/dist/runtime/route-url.mjs +1 -1
- package/dist/runtime/routing.d.mts +21 -5
- package/dist/runtime/routing.mjs +251 -29
- package/dist/runtime/sandbox.mjs +1 -1
- package/dist/runtime/sse-client.d.mts +9 -1
- package/dist/runtime/sse-client.mjs +7 -0
- package/dist/runtime/validator.d.mts +1 -1
- package/dist/runtime/validator.mjs +1 -1
- package/dist/runtime/ws-server.d.mts +3 -3
- package/dist/runtime/ws-server.mjs +1 -1
- package/dist/runtime/ws.d.mts +1 -1
- package/dist/runtime/ws.mjs +1 -1
- package/dist/{scan-F0psanp7.mjs → scan-BJ3bj6aP.mjs} +236 -32
- package/dist/{secret-szNdoeKa.mjs → secret-D0g5oBsP.mjs} +7 -7
- package/dist/serialize-DN-envGQ.d.mts +18 -0
- package/dist/serialize-Pf-CIQK_.mjs +39 -0
- package/dist/{skills-D393E4lB.mjs → skills-CoBB9_Ao.mjs} +1 -1
- package/dist/{ast-bindings-BkivMJIo.mjs → static-exports-DFkzL-NX.mjs} +96 -33
- package/dist/{subcommand-prompt-CxJXporl.mjs → subcommand-prompt-0yIARXf2.mjs} +2 -2
- package/dist/{types-agfx0alu.d.mts → types-IPut3_Yx.d.mts} +15 -1
- package/dist/url-CuoEn0o3.mjs +43 -0
- package/dist/validator-8-NZs2Xr.mjs +168 -0
- package/dist/{version-metadata-BC3LK7Y-.mjs → version-metadata-eUd6Ar_U.mjs} +1 -1
- package/dist/wrangler-R3kMdJfw.mjs +1 -0
- package/dist/{wrangler-Gn4EoY4-.mjs → wrangler-k40T7XTQ.mjs} +2 -2
- package/dist/{wrapper-B9W9RE8z.mjs → wrapper-CVMZarxf.mjs} +11 -8
- package/dist/{ws-Dmjg5NH2.d.mts → ws--U7QicYy.d.mts} +2 -2
- package/docs/guide/ai.md +3 -0
- package/docs/guide/app-types.md +1 -0
- package/docs/guide/auth.md +63 -0
- package/docs/guide/database/d1.md +16 -1
- package/docs/guide/database/mysql.md +1 -0
- package/docs/guide/database/postgresql.md +1 -0
- package/docs/guide/database.md +34 -0
- package/docs/guide/deployment.md +9 -0
- package/docs/guide/durable-state.md +1 -0
- package/docs/guide/edge/headers.md +1 -0
- package/docs/guide/edge/prerendering.md +10 -4
- package/docs/guide/edge/redirects.md +1 -0
- package/docs/guide/edge/revalidation.md +6 -0
- package/docs/guide/edge/rewrites.md +1 -0
- package/docs/guide/edge/static-assets.md +1 -0
- package/docs/guide/email/domains.md +1 -0
- package/docs/guide/email/receiving.md +3 -2
- package/docs/guide/email/sending.md +3 -2
- package/docs/guide/email.md +1 -0
- package/docs/guide/env-vars.md +4 -0
- package/docs/guide/index.md +1 -0
- package/docs/guide/jobs.md +1 -0
- package/docs/guide/kv.md +1 -0
- package/docs/guide/live.md +3 -0
- package/docs/guide/pages-routing/actions-and-forms.md +51 -28
- package/docs/guide/pages-routing/errors.md +101 -0
- package/docs/guide/pages-routing/head.md +4 -1
- package/docs/guide/pages-routing/islands.md +2 -1
- package/docs/guide/pages-routing/layouts.md +3 -0
- package/docs/guide/pages-routing/loaders.md +3 -0
- package/docs/guide/pages-routing/markdown.md +3 -3
- package/docs/guide/pages-routing/overview.md +142 -10
- package/docs/guide/pages-routing/view-transitions.md +1 -0
- package/docs/guide/platform/administration/access.md +1 -0
- package/docs/guide/platform/administration/connected-apps.md +4 -0
- package/docs/guide/platform/administration/email.md +1 -0
- package/docs/guide/platform/administration/operations.md +1 -0
- package/docs/guide/platform/administration/plans.md +1 -0
- package/docs/guide/platform/administration/projects.md +11 -0
- package/docs/guide/platform/administration/zero-trust.md +1 -0
- package/docs/guide/platform/development/local.md +1 -0
- package/docs/guide/platform/development/runtime.md +1 -0
- package/docs/guide/platform/development/schema-ci.md +1 -0
- package/docs/guide/platform/installation/ci.md +1 -0
- package/docs/guide/platform/installation/credentials.md +1 -0
- package/docs/guide/platform/installation/domains.md +1 -0
- package/docs/guide/platform/installation/first-deployment.md +1 -0
- package/docs/guide/platform/installation/maintenance.md +1 -0
- package/docs/guide/platform/installation/prerequisites.md +1 -0
- package/docs/guide/platform/installation/setup.md +1 -0
- package/docs/guide/platform/installation/uninstall.md +1 -0
- package/docs/guide/platform-administration.md +1 -0
- package/docs/guide/platform-development.md +1 -0
- package/docs/guide/project-collaboration.md +1 -0
- package/docs/guide/queues.md +3 -0
- package/docs/guide/quickstart.md +4 -2
- package/docs/guide/remote-dev.md +1 -0
- package/docs/guide/sandboxes.md +1 -0
- package/docs/guide/self-hosted-platform.md +1 -0
- package/docs/guide/server-routing.md +1 -0
- package/docs/guide/sse.md +3 -0
- package/docs/guide/ssg.md +24 -2
- package/docs/guide/ssr.md +1 -0
- package/docs/guide/storage.md +7 -2
- package/docs/guide/testing.md +62 -0
- package/docs/guide/type-safety.md +308 -26
- package/docs/guide/typed-fetch.md +8 -3
- package/docs/guide/websockets.md +6 -5
- package/docs/index.md +1 -0
- package/docs/integrations/agents.md +1 -0
- package/docs/integrations/cloudflare.md +11 -10
- package/docs/integrations/frameworks/analog.md +1 -0
- package/docs/integrations/frameworks/astro.md +1 -0
- package/docs/integrations/frameworks/nuxt.md +3 -0
- package/docs/integrations/frameworks/overview.md +3 -0
- package/docs/integrations/frameworks/react-router.md +1 -0
- package/docs/integrations/frameworks/sveltekit.md +1 -0
- package/docs/integrations/frameworks/tanstack-start.md +1 -0
- package/docs/integrations/hono.md +1 -0
- package/docs/integrations/nodejs-bun-deno.md +66 -0
- package/docs/reference/api/auth.md +20 -0
- package/docs/reference/api/client.md +7 -4
- package/docs/reference/api/database.md +24 -1
- package/docs/reference/api/deploy.md +4 -0
- package/docs/reference/api/durable.md +1 -0
- package/docs/reference/api/env.md +1 -0
- package/docs/reference/api/handlers.md +4 -1
- package/docs/reference/api/pages.md +30 -12
- package/docs/reference/api/plugin.md +1 -0
- package/docs/reference/api/resources.md +4 -1
- package/docs/reference/api/rewrites.md +18 -5
- package/docs/reference/api/types.md +10 -2
- package/docs/reference/api.md +1 -0
- package/docs/reference/cli/auth.md +1 -0
- package/docs/reference/cli/database.md +3 -0
- package/docs/reference/cli/deploy.md +18 -11
- package/docs/reference/cli/domains.md +1 -0
- package/docs/reference/cli/email.md +1 -0
- package/docs/reference/cli/generate.md +1 -0
- package/docs/reference/cli/github.md +1 -0
- package/docs/reference/cli/platform-config.md +1 -0
- package/docs/reference/cli/platform-email.md +1 -0
- package/docs/reference/cli/platform-installation.md +1 -0
- package/docs/reference/cli/platform-operations.md +1 -0
- package/docs/reference/cli/platform-users.md +23 -0
- package/docs/reference/cli/platform-zero-trust.md +1 -0
- package/docs/reference/cli/platform.md +1 -0
- package/docs/reference/cli/project.md +1 -0
- package/docs/reference/cli/secrets.md +1 -0
- package/docs/reference/cli/setup.md +1 -0
- package/docs/reference/cli.md +6 -0
- package/docs/reference/config.md +25 -2
- package/docs/reference/resource-inference.md +1 -0
- package/docs/reference/structure.md +1 -0
- package/package.json +27 -25
- package/schema.json +4 -0
- package/skills/void/SKILL.md +7 -0
- package/dist/action-key-XtKKbbsi.mjs +0 -25
- package/dist/cf-build-output-CmDOcA7K.mjs +0 -1
- package/dist/client-CEtr5UOR.mjs +0 -1
- package/dist/deploy-DMhOyebt.mjs +0 -2
- package/dist/gen-BbT1Ku1P.mjs +0 -1
- package/dist/help-Ba8Dq5-r.mjs +0 -1
- package/dist/login-BX2gzHUt.mjs +0 -1
- package/dist/migrate-CUGMGaIM.mjs +0 -1
- package/dist/operator-cmd-oTT2MA9G.mjs +0 -1
- package/dist/output-E6gecbbV.mjs +0 -1
- package/dist/platform-args-C7XUw9mw.mjs +0 -1
- package/dist/prepare-CZRVGNld.mjs +0 -1
- package/dist/resolve-project-CgfjtOwz.mjs +0 -1
- package/dist/serialize-DUuYuaY3.mjs +0 -29
- package/dist/serialize-I4EmS-Wf.d.mts +0 -16
- package/dist/validator-CTfmzZYb.mjs +0 -69
- package/dist/wrangler-CQ5c-MtJ.mjs +0 -1
- package/dist/{cf-access-BmBT2h8_.mjs → cf-access-Dnyw8KFY.mjs} +1 -1
- package/dist/{config-s6TkpSat.mjs → config-eeDzKBS9.mjs} +1 -1
- package/dist/{env-types-Bd8DkQhl.mjs → env-types-Dz9qkiOn.mjs} +1 -1
- package/dist/{inbound-CdO-qY0w.mjs → inbound-C2H6Dzz1.mjs} +2 -2
- package/dist/{runner-5MCSimKx.mjs → runner-CMZb7jNU.mjs} +1 -1
- package/dist/{runner-mysql-Bdmsp_x4.mjs → runner-mysql-BXfcQQj3.mjs} +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
+
description: 'Build an app, provision its resources, apply migrations, and publish it.'
|
|
2
3
|
outline: deep
|
|
3
4
|
---
|
|
4
5
|
|
|
@@ -7,7 +8,7 @@ outline: deep
|
|
|
7
8
|
## `void deploy` {#void-deploy}
|
|
8
9
|
|
|
9
10
|
```
|
|
10
|
-
void deploy [--project <name>] [--dir <path>] [--spa] [--skip-build] [--debug]
|
|
11
|
+
void deploy [--project <name>] [--dir <path>] [--spa] [--skip-build] [--skip-migrations] [--debug]
|
|
11
12
|
void deploy [--platform <cloudflare|void>] [--require-email]
|
|
12
13
|
void deploy --platform cloudflare --atomic
|
|
13
14
|
void deploy --platform cloudflare --provision
|
|
@@ -34,6 +35,7 @@ For Drizzle projects, deploy performs a read-only schema drift check. If a new m
|
|
|
34
35
|
| `--dir <path>` | Deploy a pre-built static directory (skips build) |
|
|
35
36
|
| `--spa` | Use SPA mode instead of SSG for static deploys |
|
|
36
37
|
| `--skip-build` | Skip the build step; on Cloudflare this is supported for static/SPA/SSG deploys only |
|
|
38
|
+
| `--skip-migrations` | Deploy without applying application or authentication SQL migrations; supported on Cloudflare and Void platforms |
|
|
37
39
|
| `--require-email` | Fail when email cannot be set up instead of deploying without it; requires `--platform cloudflare` |
|
|
38
40
|
| `--provision` | Run resource provisioning again even when every resource exists, for example to enable D1 read replication on an existing database; requires `--platform cloudflare` |
|
|
39
41
|
| `--atomic` | Publish an existing Durable Object Worker directly; readiness is checked after traffic changes |
|
|
@@ -41,6 +43,8 @@ For Drizzle projects, deploy performs a read-only schema drift check. If a new m
|
|
|
41
43
|
|
|
42
44
|
`--atomic` applies to one deployment. For an existing Durable Object Worker that consistently cannot stage, set `deploy: { cloudflare: { mode: 'atomic' } }` in `void.config.ts` so plain `void deploy` uses atomic publication. The default is `staged`.
|
|
43
45
|
|
|
46
|
+
Use `--skip-migrations` when migrations run in a separate release step or when a preview shares an existing database. Ensure the deployed code works with that database's current schema. The flag applies only to this invocation: normal deploys still apply pending migrations. Migration files and schema validation remain required, and Cloudflare Durable Object class migrations still run as part of publishing code. A Void platform must support this option; upgrade the platform if the CLI reports that it does not.
|
|
47
|
+
|
|
44
48
|
Every deploy writes a JSONL log to `~/.void/logs/`. Failures print the log path and relevant details. Use `--debug` or `VOID_DEPLOY_DEBUG=1` to mirror it to stderr.
|
|
45
49
|
|
|
46
50
|
Keep credentials out of build commands and register them as CI secrets so your CI provider can mask them in logs.
|
|
@@ -86,16 +90,19 @@ void deploy --platform cloudflare --require-email # fail instead of deploying
|
|
|
86
90
|
|
|
87
91
|
Void signs you in through your browser when needed and saves the selected account. In CI, set `CLOUDFLARE_API_TOKEN` and, if the token can access several accounts, `CLOUDFLARE_ACCOUNT_ID`.
|
|
88
92
|
|
|
89
|
-
| Option or setting | Cloudflare behavior
|
|
90
|
-
| ------------------------------ |
|
|
91
|
-
| `--dir`, `--spa` | Deploy static output through a small Worker and Workers Assets
|
|
92
|
-
| `--skip-build` | Reuse existing static, SPA, or SSG output; unavailable for Worker apps
|
|
93
|
-
| `--
|
|
94
|
-
|
|
|
95
|
-
|
|
|
96
|
-
| `
|
|
97
|
-
|
|
|
98
|
-
| `
|
|
93
|
+
| Option or setting | Cloudflare behavior |
|
|
94
|
+
| ------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
95
|
+
| `--dir`, `--spa` | Deploy static output through a small Worker and Workers Assets |
|
|
96
|
+
| `--skip-build` | Reuse existing static, SPA, or SSG output; unavailable for Worker apps |
|
|
97
|
+
| `--skip-migrations` | Skip database migrations; existing PostgreSQL/MySQL Hyperdrive bindings do not require `DATABASE_URL` just to skip SQL |
|
|
98
|
+
| `--project` | Unavailable; the Worker and account come from `void.config.ts` and `void.lock.json` |
|
|
99
|
+
| Named environments | Unavailable; use the top-level `cloudflare` config |
|
|
100
|
+
| `CLOUDFLARE_WORKERS_SUBDOMAIN` | Needed in fresh CI when a workers.dev Worker has no preview URL; cached locally after a deploy. It does not apply when `workers_dev` is false |
|
|
101
|
+
| `CF_ACCESS_READINESS_ORIGIN` | Lets Access credentials reach the readiness check on a route or Custom Domain, for example `https://app.example.com` |
|
|
102
|
+
| `--require-email` | Fail instead of deploying without email when the email step cannot run, as in CI |
|
|
103
|
+
| `DATABASE_URL` | Required in the deploy environment for PostgreSQL or MySQL provisioning and migrations |
|
|
104
|
+
|
|
105
|
+
After `--skip-migrations`, native deployment history shows the applied migration state as unknown. Rollback retains its warning that database changes are not reversed.
|
|
99
106
|
|
|
100
107
|
The token needs Workers Scripts: Edit, read access to bound resources, and edit access to products Void provisions. Commit `void.lock.json` after the first deploy before using other machines or CI.
|
|
101
108
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
+
description: 'Manage platform users, their projects, and the plans assigned to their accounts.'
|
|
2
3
|
outline: deep
|
|
3
4
|
---
|
|
4
5
|
|
|
@@ -39,6 +40,7 @@ void platform project show <id>
|
|
|
39
40
|
void platform project normalize <id> [--plan | --yes]
|
|
40
41
|
void platform project delete <id>
|
|
41
42
|
void platform project owner <project-id> <user-id>
|
|
43
|
+
void platform project ai-logging <project-id> <inherit|off|metadata|full> [--plan | --yes]
|
|
42
44
|
```
|
|
43
45
|
|
|
44
46
|
Search matches a project's slug, ID, or owner's login. `show` includes resources, domains, the latest 10 deployments, and the latest 20 builds. `delete` removes the project and its resources.
|
|
@@ -47,6 +49,27 @@ If deployment reports that a project requires normalization, an operator can pre
|
|
|
47
49
|
|
|
48
50
|
`owner` transfers a project to another registered user. Preview it with `--plan`; apply it interactively or with `--yes`. The preview reports active-work blockers and the account plan that will apply. The former owner becomes a project administrator, existing project-scoped CI deploy credentials are revoked, and usage already incurred remains with the former owner.
|
|
49
51
|
|
|
52
|
+
### AI Gateway Logging
|
|
53
|
+
|
|
54
|
+
Administrators can choose how AI Gateway logs a project's requests:
|
|
55
|
+
|
|
56
|
+
| Mode | Behavior |
|
|
57
|
+
| ---------- | --------------------------------------------------------------- |
|
|
58
|
+
| `inherit` | Use the installation gateway's settings. This is the default. |
|
|
59
|
+
| `off` | Disable gateway log collection for this project's requests. |
|
|
60
|
+
| `metadata` | Collect gateway logs without storing prompt or response bodies. |
|
|
61
|
+
| `full` | Collect gateway logs, including prompt and response bodies. |
|
|
62
|
+
|
|
63
|
+
```sh
|
|
64
|
+
void platform project ai-logging <project-id> metadata --plan
|
|
65
|
+
void platform project ai-logging <project-id> metadata --yes
|
|
66
|
+
void platform project show <project-id> --json
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
`show` includes the saved `aiLogging.mode`. The setting applies to Workers AI inference, Markdown conversion, and provider calls through the platform. App-supplied logging options cannot override it. Changes apply to new requests without redeploying the app. If the platform cannot verify the saved policy, it refuses the AI request.
|
|
70
|
+
|
|
71
|
+
The policy does not disable AI usage limits. `metadata` retains request metadata, including data used for metering; it suppresses bodies. Cloudflare can retain billing details for unified billing even in `off` mode. These controls do not change exports through separately configured Logpush. See [Cloudflare logging controls](https://developers.cloudflare.com/ai-gateway/observability/logging/).
|
|
72
|
+
|
|
50
73
|
## Signup Access {#operator-signup}
|
|
51
74
|
|
|
52
75
|
Inspect signup restrictions, open signup to everyone, or require an allowlist match:
|
package/docs/reference/cli.md
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
+
description: 'Commands for creating a project, deploying it, and managing databases, secrets, domains, and a platform.'
|
|
2
3
|
outline: deep
|
|
3
4
|
---
|
|
4
5
|
|
|
@@ -33,9 +34,12 @@ Use this page as a command reference. If you are setting up a project for the fi
|
|
|
33
34
|
|
|
34
35
|
## Cheat Sheet {#cheat-sheet}
|
|
35
36
|
|
|
37
|
+
Platform administrators can also [choose AI Gateway logging per project](./cli/platform-users.md#ai-gateway-logging) with `void platform project ai-logging`.
|
|
38
|
+
|
|
36
39
|
| Command | Purpose |
|
|
37
40
|
| --------------------------------- | ----------------------------------------------------------------------------- |
|
|
38
41
|
| `void deploy` | Build and deploy to the configured platform |
|
|
42
|
+
| `void deploy --skip-migrations` | Deploy code without applying application or authentication SQL migrations |
|
|
39
43
|
| `void prepare` | Generate `.void` artifacts without starting Vite |
|
|
40
44
|
| `void info [--json]` | Inspect persistent resource names before moving their code |
|
|
41
45
|
| `void gen model <name> [cols...]` | Scaffold a Drizzle table and API routes |
|
|
@@ -82,6 +86,8 @@ Use this page as a command reference. If you are setting up a project for the fi
|
|
|
82
86
|
|
|
83
87
|
The docs use `void` for brevity. Outside package scripts, run it with your package manager: `npx void`, `pnpm void`, `yarn void`, `bunx void`, or `vpx void`.
|
|
84
88
|
|
|
89
|
+
The CLI needs Node.js 24.22+ or 26.12+. `npx`, `bunx` and package scripts use the `node` on your `PATH`; `vpx` uses the version in `.node-version`.
|
|
90
|
+
|
|
85
91
|
Alternatively, you can add `./node_modules/.bin` to your `PATH` so that you can invoke `void` directly when you are in the root directory of your app.
|
|
86
92
|
|
|
87
93
|
:::warning ⚠️ Prefer local install
|
package/docs/reference/config.md
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
+
description: 'Configure routing, inference, output, and the deployment target in void.config.ts.'
|
|
2
3
|
outline: deep
|
|
3
4
|
---
|
|
4
5
|
|
|
@@ -220,7 +221,7 @@ Output mode. Controls the default rendering strategy for pages.
|
|
|
220
221
|
| `"server"` (default) | `false` | `export const prerender = true` | Deploy-time (platform ISR) |
|
|
221
222
|
| `"static"` | `true` | `export const prerender = false` | Build or deploy post-build |
|
|
222
223
|
|
|
223
|
-
When set to `"static"`, pages are prerendered to HTML in `dist/client/`. Individual pages can opt out with `export const prerender = false`. Dynamic pages need `getPrerenderPaths()` to be prerendered.
|
|
224
|
+
When set to `"static"`, pages are prerendered to HTML in `dist/client/`. Individual pages can opt out with `export const prerender = false`. Dynamic pages need [`getPrerenderPaths()`](../guide/ssg.md#per-page-overrides) to be prerendered. Annotate its return type with [`PageParams`](./api/types.md#route-types) so TypeScript checks the param names.
|
|
224
225
|
|
|
225
226
|
When omitted or set to `"server"`, pages are server-rendered on request. Individual pages can opt into deploy-time prerendering with `export const prerender = true`, or opt out of server-rendered component HTML with `export const ssr = false`.
|
|
226
227
|
|
|
@@ -349,6 +350,8 @@ cloudflare: {
|
|
|
349
350
|
|
|
350
351
|
Void writes a generated Cloudflare config for its tooling and records provisioned resource IDs and append-only migration history in `void.lock.json`. Commit the lock when it changes. Root `wrangler.jsonc` and `wrangler.json` are migrated on `void init` or `void deploy`; Void keeps backup copies under `.void/config-migration/`.
|
|
351
352
|
|
|
353
|
+
Bindings declared here are typed on `c.env` after `void prepare` or starting a dev server or build. See [Custom Binding Types](../guide/type-safety.md#custom-binding-types) for an example and RPC type overrides.
|
|
354
|
+
|
|
352
355
|
If you need to remove a value that Void previously generated, remove it from the `resolved` object in `void.lock.json`. Void refreshes the generated Cloudflare file on the next command. Put ongoing custom settings in `cloudflare` in `void.config.ts`.
|
|
353
356
|
|
|
354
357
|
### `deploy.cloudflare.mode`
|
|
@@ -376,9 +379,21 @@ routing: {
|
|
|
376
379
|
}
|
|
377
380
|
```
|
|
378
381
|
|
|
382
|
+
#### `routing.trailingSlash`
|
|
383
|
+
|
|
384
|
+
Use trailing-slash Void Pages URLs. Prerendered pages use directory indexes (`posts/index.html` for `/posts/`), and URLs without the slash redirect to the trailing-slash URL. Omitted or `false` preserves the default URLs and `posts.html` output. API routes are unaffected. Third-party frameworks use their own routing settings.
|
|
385
|
+
|
|
386
|
+
```ts
|
|
387
|
+
routing: {
|
|
388
|
+
trailingSlash: true,
|
|
389
|
+
}
|
|
390
|
+
```
|
|
391
|
+
|
|
392
|
+
See [Static Site Generation](../guide/ssg.md#trailing-slashes-and-directory-indexes) for hosting details.
|
|
393
|
+
|
|
379
394
|
#### `routing.typedRoutes`
|
|
380
395
|
|
|
381
|
-
Type-check URL strings against your app's routes in `Link`'s `href`, `router.visit()`, `router.prefetch()`, `router.flush()`,
|
|
396
|
+
Type-check URL strings against your app's routes in `Link`'s `href`, `router.visit()`, `router.prefetch()`, `router.flush()`, `c.rewrite()`, `c.redirect()`, `useIslandForm()`, `revalidate({ paths })`, `connectEventStream()`, and `connectLiveStream()`. Omitted or `false` means off; `void init` turns it on for new apps. It changes types only, not navigation at runtime. Link and router strings may also be same-page queries or hashes, or `http://`, `https://`, `mailto:`, and `tel:` URLs. `useIslandForm()` and `revalidate({ paths })` take route URLs; `connectEventStream()` and `connectLiveStream()` also take `http://` and `https://` URLs. `c.redirect()` accepts those strings, a `URL`, or a destination object. An external `https://` literal needs no cast; cast a string TypeScript cannot check with `as Href`. `routing.prerender` takes plain strings unless you annotate them. See [Checked URL strings](../guide/type-safety#checked-url-strings).
|
|
382
397
|
|
|
383
398
|
```ts
|
|
384
399
|
routing: {
|
|
@@ -505,6 +520,14 @@ Paths to prerender as static HTML at deploy time. Each path must start with `/`.
|
|
|
505
520
|
}
|
|
506
521
|
```
|
|
507
522
|
|
|
523
|
+
In `void.config.ts`, annotate the array with [`RouteUrl`](./api/types.md#route-types) so TypeScript checks the paths when [`routing.typedRoutes`](#routing-typedroutes) is on:
|
|
524
|
+
|
|
525
|
+
```ts
|
|
526
|
+
import type { RouteUrl } from 'void/routes';
|
|
527
|
+
|
|
528
|
+
prerender: ['/', '/about', '/pricing'] satisfies RouteUrl[],
|
|
529
|
+
```
|
|
530
|
+
|
|
508
531
|
#### `routing.notFound`
|
|
509
532
|
|
|
510
533
|
Override how the asset layer answers a request that matched no asset and no worker route. One of `"single-page-application"`, `"404-page"`, or `"none"`. If omitted, Void infers it — see [Static Assets](../guide/edge/static-assets.md#navigation-and-middleware).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "void",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "Full-stack framework and deployment CLI for Cloudflare Workers, powered by Vite.",
|
|
5
5
|
"homepage": "https://void.cloud",
|
|
6
6
|
"bugs": {
|
|
@@ -343,24 +343,25 @@
|
|
|
343
343
|
}
|
|
344
344
|
},
|
|
345
345
|
"dependencies": {
|
|
346
|
-
"@cloudflare/build-output-utils": "^0.9.
|
|
347
|
-
"@cloudflare/codemods": "^0.7.
|
|
348
|
-
"@cloudflare/config": "^0.
|
|
346
|
+
"@cloudflare/build-output-utils": "^0.9.13",
|
|
347
|
+
"@cloudflare/codemods": "^0.7.7",
|
|
348
|
+
"@cloudflare/config": "^0.32.0",
|
|
349
349
|
"@cloudflare/sandbox": "^1.0.3",
|
|
350
|
-
"@cloudflare/vite-plugin": "^2.0.0-beta.v.
|
|
351
|
-
"@cloudflare/workers-auth": "^0.
|
|
352
|
-
"@cloudflare/workers-types": "^5.
|
|
353
|
-
"@cloudflare/workers-utils": "^0.
|
|
350
|
+
"@cloudflare/vite-plugin": "^2.0.0-beta.v.15",
|
|
351
|
+
"@cloudflare/workers-auth": "^0.18.1",
|
|
352
|
+
"@cloudflare/workers-types": "^5.20261110.1",
|
|
353
|
+
"@cloudflare/workers-utils": "^0.53.1",
|
|
354
354
|
"@napi-rs/keyring": "^2.1.2",
|
|
355
|
-
"@void/deploy-cloudflare": "1.
|
|
356
|
-
"@void/deploy-core": "1.
|
|
357
|
-
"@void/edge": "1.
|
|
358
|
-
"@void/isr": "1.
|
|
359
|
-
"@void/platform": "1.
|
|
360
|
-
"better-auth": "^1.7.
|
|
355
|
+
"@void/deploy-cloudflare": "1.8.0",
|
|
356
|
+
"@void/deploy-core": "1.8.0",
|
|
357
|
+
"@void/edge": "1.8.0",
|
|
358
|
+
"@void/isr": "1.8.0",
|
|
359
|
+
"@void/platform": "1.8.0",
|
|
360
|
+
"better-auth": "^1.7.20",
|
|
361
361
|
"better-sqlite3": "^13.0.3",
|
|
362
362
|
"blake3-jit": "^1.1.0",
|
|
363
|
-
"cf": "^1.0.0-beta.
|
|
363
|
+
"cf": "^1.0.0-beta.30",
|
|
364
|
+
"devalue": "^6.0.3",
|
|
364
365
|
"drizzle-arktype": "^0.1.3",
|
|
365
366
|
"drizzle-kit": "^0.31.11",
|
|
366
367
|
"drizzle-orm": "^0.45.4",
|
|
@@ -368,33 +369,34 @@
|
|
|
368
369
|
"drizzle-zod": "^0.8.3",
|
|
369
370
|
"email-validator": "^2.0.4",
|
|
370
371
|
"gray-matter": "^4.0.3",
|
|
371
|
-
"hono": "^4.13.
|
|
372
|
+
"hono": "^4.13.18",
|
|
372
373
|
"ignore": "^7.0.14",
|
|
373
374
|
"jiti": "^2.7.0",
|
|
374
375
|
"jsonc-parser": "^3.3.1",
|
|
375
376
|
"mime": "^4.1.2",
|
|
376
|
-
"miniflare": "^5.
|
|
377
|
-
"minimatch": "^11.0.
|
|
377
|
+
"miniflare": "^5.20261110.1-beta",
|
|
378
|
+
"minimatch": "^11.0.7",
|
|
378
379
|
"mysql2": "^3.24.6",
|
|
379
380
|
"pg": "^8.23.1",
|
|
380
|
-
"postal-mime": "^4.2.
|
|
381
|
+
"postal-mime": "^4.2.1",
|
|
381
382
|
"proper-lockfile": "^4.1.2",
|
|
382
383
|
"smol-toml": "^1.9.1",
|
|
383
384
|
"terminal-link": "^5.0.0",
|
|
384
385
|
"yaml": "^2.9.1"
|
|
385
386
|
},
|
|
386
387
|
"devDependencies": {
|
|
387
|
-
"@electric-sql/pglite": "0.5.
|
|
388
|
+
"@electric-sql/pglite": "0.5.16",
|
|
388
389
|
"@types/better-sqlite3": "^9.6.0",
|
|
389
390
|
"@types/node": "^26.6.6",
|
|
390
391
|
"@types/pg": "^8.23.1",
|
|
391
392
|
"@types/proper-lockfile": "^4.1.4",
|
|
392
|
-
"@voidzero-dev/vite-plus-prompts": "1.
|
|
393
|
+
"@voidzero-dev/vite-plus-prompts": "1.6.0",
|
|
393
394
|
"arktype": "^2.2.9",
|
|
394
|
-
"ci-info": "^4.
|
|
395
|
+
"ci-info": "^4.5.0",
|
|
395
396
|
"estree-walker": "^3.0.3",
|
|
396
397
|
"fast-wrap-ansi": "^0.2.2",
|
|
397
398
|
"magic-string": "^1.4.5",
|
|
399
|
+
"nitro": "^3.0.261103-rc",
|
|
398
400
|
"ofetch": "2.0.0-alpha.3",
|
|
399
401
|
"pathslash": "^0.1.0",
|
|
400
402
|
"pglite-server": "0.1.5",
|
|
@@ -402,12 +404,12 @@
|
|
|
402
404
|
"tinyglobby": "^0.2.17",
|
|
403
405
|
"typescript": "7.0.2",
|
|
404
406
|
"valibot": "^1.5.0",
|
|
405
|
-
"vite": "npm:@voidzero-dev/vite-plus-core@1.
|
|
406
|
-
"vite-plus": "1.
|
|
407
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@1.6.0",
|
|
408
|
+
"vite-plus": "1.6.0",
|
|
407
409
|
"zod": "^4.6.7"
|
|
408
410
|
},
|
|
409
411
|
"peerDependencies": {
|
|
410
|
-
"@void/md": "1.
|
|
412
|
+
"@void/md": "1.8.0",
|
|
411
413
|
"arktype": ">=2.0.0",
|
|
412
414
|
"valibot": ">=1.0.0-beta.7",
|
|
413
415
|
"vite": "^8.0.0",
|
package/schema.json
CHANGED
|
@@ -148,6 +148,10 @@
|
|
|
148
148
|
"type": "boolean",
|
|
149
149
|
"description": "Redirect HTTP requests to HTTPS with a permanent 308 redirect. Omitted or false means off. Requires the Cloudflare target; localhost stays on HTTP."
|
|
150
150
|
},
|
|
151
|
+
"trailingSlash": {
|
|
152
|
+
"type": "boolean",
|
|
153
|
+
"description": "Use trailing-slash Pages URLs and directory indexes for prerendered HTML. Omitted or false preserves URLs without trailing slashes."
|
|
154
|
+
},
|
|
151
155
|
"isr": {
|
|
152
156
|
"type": "boolean",
|
|
153
157
|
"description": "Enable inferred ISR caching. Set false to disable ISR and edge prerendering, including per-page prerender and revalidate policies. Does not disable output: static build-time prerendering."
|
package/skills/void/SKILL.md
CHANGED
|
@@ -22,6 +22,9 @@ Use `void` and `@void/*` in imports, examples, and package manifests. Follow the
|
|
|
22
22
|
project's existing framework and deployment destination. Deploying to a Void
|
|
23
23
|
platform requires an explicit `void connect <url>` first; never infer a platform
|
|
24
24
|
from old examples, tokens, or project IDs.
|
|
25
|
+
|
|
26
|
+
Use bracket route patterns such as `/users/[id]` and `/docs/[...slug]` with
|
|
27
|
+
`routeUrl()`, typed `fetch()`, `useParams()`, page actions, and WebSocket `connect()`.
|
|
25
28
|
Platform hostnames passed to `void connect` default to HTTPS. Loopback hosts
|
|
26
29
|
(`localhost`, `127.0.0.1`, and `[::1]`) default to HTTP: `void connect localhost:8787`.
|
|
27
30
|
An explicit scheme overrides the default.
|
|
@@ -29,6 +32,8 @@ For a one-time deployment elsewhere, connect to that platform, then set
|
|
|
29
32
|
`VOID_API_URL` for the deploy command and pass `--project <slug>`. This preserves
|
|
30
33
|
the app's existing saved destination, including when the target project is new.
|
|
31
34
|
|
|
35
|
+
Use `void deploy --skip-migrations` when database migrations run separately; it skips application and authentication SQL for that invocation. Ensure the code supports the current database schema and follow `docs/guide/deployment.md` for the release workflow.
|
|
36
|
+
|
|
32
37
|
## Task Routing
|
|
33
38
|
|
|
34
39
|
| User intent | Docs file(s) |
|
|
@@ -43,6 +48,7 @@ the app's existing saved destination, including when the target project is new.
|
|
|
43
48
|
| Authentication | `docs/guide/auth.md`, `docs/guide/env-vars.md` |
|
|
44
49
|
| Cloudflare runtime bindings and config | `docs/integrations/cloudflare.md`, `docs/reference/config.md`, `docs/guide/env-vars.md` |
|
|
45
50
|
| AI inference (Workers AI, providers) | `docs/guide/ai.md` |
|
|
51
|
+
| Platform AI logging policy | `docs/reference/cli/platform-users.md#ai-gateway-logging` |
|
|
46
52
|
| Durable State and WebSockets | `docs/guide/durable-state.md`, `docs/guide/websockets.md` |
|
|
47
53
|
| Server-sent events and live streams | `docs/guide/sse.md`, `docs/guide/live.md` |
|
|
48
54
|
| Sandboxes | `docs/guide/sandboxes.md` |
|
|
@@ -51,6 +57,7 @@ the app's existing saved destination, including when the target project is new.
|
|
|
51
57
|
| SSR and caching | `docs/guide/ssr.md`, `docs/guide/edge/*.md` |
|
|
52
58
|
| HTTPS, rewrites, redirects, fallbacks | `docs/guide/edge/rewrites.md`, `docs/guide/edge/redirects.md`, `docs/reference/config.md` |
|
|
53
59
|
| Static site generation | `docs/guide/ssg.md` |
|
|
60
|
+
| Testing an app with Vitest (`vp test`) | `docs/guide/testing.md` |
|
|
54
61
|
| Connected apps and artifact preparation | `docs/guide/platform/administration/connected-apps.md`, `docs/reference/api/deploy.md` |
|
|
55
62
|
| Deployment and CI | `docs/guide/deployment.md`, `docs/reference/cli/deploy.md` |
|
|
56
63
|
| Install or maintain a company platform | `docs/guide/self-hosted-platform.md`, `docs/reference/cli/platform-installation.md` |
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
// src/pages/action-key.ts
|
|
2
|
-
const actionKeyRequests = /* @__PURE__ */ new WeakSet();
|
|
3
|
-
function markActionKey(request) {
|
|
4
|
-
actionKeyRequests.add(request);
|
|
5
|
-
}
|
|
6
|
-
function hasActionKey(request) {
|
|
7
|
-
return actionKeyRequests.has(request);
|
|
8
|
-
}
|
|
9
|
-
/** The first non-empty segment of `search` as sent: `delete` in `?delete&page=2`. */
|
|
10
|
-
function actionKeySegment(search) {
|
|
11
|
-
let start = 1;
|
|
12
|
-
while (search[start] === "&") start++;
|
|
13
|
-
const end = search.indexOf("&", start);
|
|
14
|
-
return search.slice(start, end === -1 ? search.length : end);
|
|
15
|
-
}
|
|
16
|
-
/** `search` without its first non-empty segment; the rest is kept as sent. */
|
|
17
|
-
function searchWithoutActionKey(search) {
|
|
18
|
-
let start = 1;
|
|
19
|
-
while (search[start] === "&") start++;
|
|
20
|
-
let rest = search.indexOf("&", start);
|
|
21
|
-
if (rest === -1) return "";
|
|
22
|
-
while (search[rest] === "&") rest++;
|
|
23
|
-
return rest < search.length ? "?" + search.slice(rest) : "";
|
|
24
|
-
}
|
|
25
|
-
export { searchWithoutActionKey as i, hasActionKey as n, markActionKey as r, actionKeySegment as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { t as prepareCfBuildOutput } from "./cf-build-output-B1C8U83u.mjs";
|
package/dist/client-CEtr5UOR.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { r as PlatformClient } from "./client-CoxPEhJq.mjs";
|
package/dist/deploy-DMhOyebt.mjs
DELETED
package/dist/gen-BbT1Ku1P.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { r as runGenCommand } from "./gen-DSkScMIz.mjs";
|
package/dist/help-Ba8Dq5-r.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { r as printHelpPage } from "./help-1OCFDsRr.mjs";
|
package/dist/login-BX2gzHUt.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { r as selectPlatformLoginMethod } from "./login-RIw7ffPe.mjs";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { n as runMigrateCommand } from "./migrate-DiI50Chz.mjs";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { a as runOperatorCommand } from "./operator-cmd-CEI5Aaza.mjs";
|
package/dist/output-E6gecbbV.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { m as printSuccess } from "./output-BCdLioKP.mjs";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { t as parsePlatformArgs } from "./platform-args-Cx1M-7bq.mjs";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { t as prepareProject } from "./prepare-D8L9AQbw.mjs";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { n as inferDefaultSlug } from "./resolve-project-D0YNnJfm.mjs";
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
// src/pages/script-json.ts
|
|
2
|
-
const UNSAFE_SCRIPT_CHARS = /[<>&\u2028\u2029]/g;
|
|
3
|
-
function escapeScriptJson(json) {
|
|
4
|
-
return json.replace(UNSAFE_SCRIPT_CHARS, (c) => {
|
|
5
|
-
return `\\u${c.charCodeAt(0).toString(16).padStart(4, "0")}`;
|
|
6
|
-
});
|
|
7
|
-
}
|
|
8
|
-
// src/pages/serialize.ts
|
|
9
|
-
/**
|
|
10
|
-
* Escape JSON for embedding inside an inline `<script type="application/json">`
|
|
11
|
-
* tag. Replaces `<`, `>`, `&`, U+2028, U+2029 with their `\uXXXX` JSON escape
|
|
12
|
-
* sequences so the script tag cannot be closed early and the payload survives
|
|
13
|
-
* `JSON.parse` on hydration.
|
|
14
|
-
*/
|
|
15
|
-
function serializePageData(pageObj) {
|
|
16
|
-
return escapeScriptJson(JSON.stringify(pageObj));
|
|
17
|
-
}
|
|
18
|
-
/** Element id of the Markdown page frontmatter that islands read when they hydrate. */
|
|
19
|
-
const ISLAND_FRONTMATTER_ID = "__void_frontmatter";
|
|
20
|
-
/**
|
|
21
|
-
* Script tag that carries a Markdown page's frontmatter to its islands, so
|
|
22
|
-
* `useFrontmatter()` returns the same value in the browser as on the server.
|
|
23
|
-
* Empty when the page has no frontmatter.
|
|
24
|
-
*/
|
|
25
|
-
function islandFrontmatterScript(frontmatter) {
|
|
26
|
-
if (!frontmatter || Object.keys(frontmatter).length === 0) return "";
|
|
27
|
-
return `<script type="application/json" id="${ISLAND_FRONTMATTER_ID}">${serializePageData(frontmatter)}<\/script>`;
|
|
28
|
-
}
|
|
29
|
-
export { escapeScriptJson as i, islandFrontmatterScript as n, serializePageData as r, ISLAND_FRONTMATTER_ID as t };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Escape JSON for embedding inside an inline `<script type="application/json">`
|
|
3
|
-
* tag. Replaces `<`, `>`, `&`, U+2028, U+2029 with their `\uXXXX` JSON escape
|
|
4
|
-
* sequences so the script tag cannot be closed early and the payload survives
|
|
5
|
-
* `JSON.parse` on hydration.
|
|
6
|
-
*/
|
|
7
|
-
declare function serializePageData(pageObj: unknown): string;
|
|
8
|
-
/** Element id of the Markdown page frontmatter that islands read when they hydrate. */
|
|
9
|
-
declare const ISLAND_FRONTMATTER_ID = "__void_frontmatter";
|
|
10
|
-
/**
|
|
11
|
-
* Script tag that carries a Markdown page's frontmatter to its islands, so
|
|
12
|
-
* `useFrontmatter()` returns the same value in the browser as on the server.
|
|
13
|
-
* Empty when the page has no frontmatter.
|
|
14
|
-
*/
|
|
15
|
-
declare function islandFrontmatterScript(frontmatter: Record<string, unknown> | undefined): string;
|
|
16
|
-
export { islandFrontmatterScript as n, serializePageData as r, ISLAND_FRONTMATTER_ID as t };
|