void 1.9.1 → 1.10.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-BEMOdwtl.mjs → account-cmd-CZhbDfp4.mjs} +3 -3
- package/dist/{application-analysis-3VVsflWZ.mjs → application-analysis-Do1WaGAY.mjs} +81 -7
- package/dist/{application-routing-CJRlXCc2.mjs → application-routing-DrOFahHO.mjs} +1 -1
- package/dist/{routing-assets-DJIVOrCh.mjs → assets-DZBd7yqh.mjs} +1 -1
- package/dist/{auth-aMuFOZeI.mjs → auth-YtP6K4J3.mjs} +1 -1
- package/dist/{auth-link-B1IynRW5.mjs → auth-link-DFQTA1jN.mjs} +3 -3
- package/dist/{auth-router-DVaWJdRB.mjs → auth-router-BOiaDmcQ.mjs} +2 -2
- package/dist/{base64-ikl9yBy3.mjs → base64-DwTR12ej.mjs} +1 -1
- package/dist/{better-auth-shared-ajs3LNrY.d.mts → better-auth-shared-BqsMzU14.d.mts} +1 -1
- package/dist/{better-auth-shared-C7LHvF4L.mjs → better-auth-shared-DRHo5FoG.mjs} +116 -20
- package/dist/{build-cmd-Dq8tdqQG.mjs → build-cmd-BCiXgjn9.mjs} +1 -1
- package/dist/{cache-DGMnskX7.mjs → cache-CUulshOu.mjs} +1 -1
- package/dist/{cancel-deploy-96S5hD1E.mjs → cancel-deploy-BHGZo6KC.mjs} +1 -1
- package/dist/cf-build-output-D3_x71H6.mjs +1 -0
- package/dist/{cf-build-output-CWNOH-KA.mjs → cf-build-output-bBx1gDll.mjs} +27 -16
- package/dist/{cf-config-migrate-Bb-EdAQq.mjs → cf-config-migrate-CHtnM3_C.mjs} +21 -3
- package/dist/cli/cli.mjs +1 -1
- package/dist/cli/cloudflare-operation-process.mjs +3 -2
- package/dist/cli/env-schema-probe.d.mts +1 -1
- package/dist/cli/env-schema-probe.mjs +2 -2
- package/dist/{cli-main-CQRLxZAu.mjs → cli-main-hM7rhIbB.mjs} +27 -27
- package/dist/{client-66c0RLDM.mjs → client-BEYbgqZw.mjs} +1 -1
- package/dist/{auth-client-DwCdwKbw.mjs → client-Ypa4Immo.mjs} +1 -1
- package/dist/{client-D6w5x7hM.mjs → client-aIv5UQf3.mjs} +3 -3
- package/dist/{auth-client-react-CJdeErvM.mjs → client-react-B-ZqH8Ao.mjs} +1 -1
- package/dist/{auth-client-solid-BRvgvp6h.mjs → client-solid-D2PSeKLm.mjs} +1 -1
- package/dist/{auth-client-svelte-BSqUCEed.mjs → client-svelte-DbJbN7Ey.mjs} +1 -1
- package/dist/{auth-client-vue-CPkbRtOO.mjs → client-vue-PBawsrwk.mjs} +1 -1
- package/dist/{cloudflare-cmd-BuuHUM4z.mjs → cloudflare-cmd-DLcgInCa.mjs} +1 -1
- package/dist/{cloudflare-config-PxbinLLE.mjs → cloudflare-config-BfEfIEuY.mjs} +1 -1
- package/dist/{cloudflare-connect-D1QOosLd.mjs → cloudflare-connect-CMcKtA02.mjs} +1 -1
- package/dist/{cloudflare-operations-I4t3mt4R.mjs → cloudflare-operations-C5RTQNnh.mjs} +1 -1
- package/dist/{cloudflare-operations-G5AObYzF.mjs → cloudflare-operations-DLhn_Bom.mjs} +4 -4
- package/dist/{config-DlWQ_hIJ.mjs → config-CbKmMpHK.mjs} +1 -1
- package/dist/{config-C1DPf8EK.mjs → config-CtkCfPpv.mjs} +1 -1
- package/dist/{config-CCWVY7DY.d.mts → config-DuiDZbq7.d.mts} +3 -2
- package/dist/config-entry.d.mts +1 -1
- package/dist/{config-CzFdJYNA.mjs → config-qgt863GH.mjs} +7 -2
- package/dist/{connect-4uImOwut.mjs → connect-DM3yCNPG.mjs} +4 -4
- package/dist/{sandbox-container-BuxhwCgt.mjs → container-CR_tqFtd.mjs} +1 -1
- package/dist/{sandbox-container-CZFZdMso.d.mts → container-D584jUxY.d.mts} +1 -1
- package/dist/{create-project-BaUzZnLZ.mjs → create-project-BkVGXGNt.mjs} +1 -1
- package/dist/{create-project-CQMyzTvK.mjs → create-project-C-hNdYvD.mjs} +1 -1
- package/dist/{migration-handler-DCehTlWs.mjs → d1-handler-C1LH2K2s.mjs} +1 -1
- package/dist/{db-DEpDeDsi.mjs → db-DQAi7Ckr.mjs} +23 -23
- package/dist/{delete-BVD2kI82.mjs → delete-BtVnPGO2.mjs} +1 -1
- package/dist/{deploy-Dyeo5soA.mjs → deploy-Cs93Af-d.mjs} +32 -31
- package/dist/{deploy-managed-static-Kn73R83A.mjs → deploy-managed-static-CZIx3cc1.mjs} +20 -11
- package/dist/deploy-rUunHBNJ.mjs +2 -0
- package/dist/{deploy-transport-BpKBs_KR.mjs → deploy-transport-DT-ALuDj.mjs} +2 -2
- package/dist/deploy.mjs +7 -6
- package/dist/{dev-inbox-CUUS6iUg.mjs → dev-inbox-BiamQEAa.mjs} +2 -2
- package/dist/{dispatch-BBfb519j.mjs → dispatch-DPEuEblR.mjs} +1 -1
- package/dist/{domain-BTIdyUVk.mjs → domain-cOhYYiHU.mjs} +2 -2
- package/dist/{email-DvrS-I0U.mjs → email-CnnDqvXV.mjs} +7 -7
- package/dist/{email-cloudflare-DAGpgzY1.mjs → email-cloudflare-CCIoQueP.mjs} +4 -4
- package/dist/email-pattern-BYr-EFq5.mjs +91 -0
- package/dist/{env-D7vORwpn.mjs → env-5bphL5mV.mjs} +3 -3
- package/dist/env-registry-BbCdIOXP.mjs +10 -0
- package/dist/{env-validation-DeYNRp1d.mjs → env-validation-DfJ9Fzfa.mjs} +2 -2
- package/dist/{env-validation-DKDcpxbt.mjs → env-validation-ly_Q9Kgd.mjs} +1 -1
- package/dist/{error-pages-COVBnzK7.mjs → error-pages-QNeBXiRR.mjs} +6 -6
- package/dist/{fetch-CAIVkLvW.mjs → fetch-DdK9eGin.mjs} +3 -3
- package/dist/{fetch-error-DmlRM6e4.mjs → fetch-error-EXhBRoxI.mjs} +1 -1
- package/dist/{fetch-stream-6Op0qlLd.mjs → fetch-stream-DQAavFdm.mjs} +4 -4
- package/dist/gen-BQ7itmK7.mjs +1 -0
- package/dist/{gen-DimkGNve.mjs → gen-CjcH6DJS.mjs} +4 -3
- package/dist/{github-cmd-D-zs6VQr.mjs → github-cmd-CVDLb51-.mjs} +1 -1
- package/dist/{handler-C9SnmeW1.mjs → handler-w_FAiIRu.mjs} +5 -5
- package/dist/{headers-Q0kZDpk8.mjs → headers-Cyr87J6Z.mjs} +1 -1
- package/dist/{help-Cgdcd-SG.mjs → help-B1cH8518.mjs} +8 -1
- package/dist/help-Ld6XFol7.mjs +1 -0
- package/dist/{env-helpers-Dj_SIwPu.mjs → helpers-_OdpnjkJ.mjs} +1 -1
- package/dist/{inbound-C2H6Dzz1.mjs → inbound--OF7zkwX.mjs} +4 -4
- package/dist/{sandbox-DE1WsxuB.d.mts → index-BESZTC1z.d.mts} +2 -2
- package/dist/{ws-C2zy0QBf.d.mts → index-BTmhCDbw.d.mts} +36 -7
- package/dist/{handler-6fzr_ikp.d.mts → index-BXdP39qx.d.mts} +4 -6
- package/dist/{live-DBybyDt0.d.mts → index-CmqHYj2R.d.mts} +2 -2
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +62 -48
- package/dist/{info-BbxQ34kk.mjs → info-BE3snw2_.mjs} +4 -4
- package/dist/{init-zyRj3QRw.mjs → init-BrS5MAiJ.mjs} +67 -42
- package/dist/{limits-CrHLm5Tk.mjs → limits-BCoQLpn3.mjs} +1 -1
- package/dist/{link-DAFXuIER.mjs → link-BbzyrCBD.mjs} +2 -2
- package/dist/{list-BTIcC3W9.mjs → list-DmppHjVc.mjs} +2 -2
- package/dist/{live-Dw7NF1t2.mjs → live-DvtxTUhW.mjs} +5 -5
- package/dist/{load-user-env-ztmIyiLx.mjs → load-user-env-BltIJLtl.mjs} +1 -1
- package/dist/{local-d1-BnVb7Fem.mjs → local-d1-DLxsKmkw.mjs} +1 -1
- package/dist/login-C-n1rA0s.mjs +1 -0
- package/dist/{login-DOE-MkeK.mjs → login-Cihxnu7m.mjs} +2 -2
- package/dist/{logs-CUsjihc3.mjs → logs-BCgLeLNd.mjs} +2 -2
- package/dist/migrate-CKn30rmw.mjs +1 -0
- package/dist/{migrate-DtoKdGas.mjs → migrate-DOK67gE-.mjs} +3 -3
- package/dist/{auth-migrations-DDeifS3v.mjs → migrations-ByS7r3HV.mjs} +1 -1
- package/dist/{mime-CtP6-qAF.mjs → mime-BGoZ8ZLL.mjs} +1 -1
- package/dist/{mysql-migration-sql-CI9VTwjt.mjs → mysql-sql-SlpS6OMg.mjs} +3 -3
- package/dist/nitro.mjs +3 -3
- package/dist/{node-D9dPyUr0.mjs → node-qXD3FbIU.mjs} +2 -2
- package/dist/{operator-ai-logging-DFTEp81Z.mjs → operator-ai-logging-CNuX5uKg.mjs} +1 -1
- package/dist/operator-cmd-BnLoIO2A.mjs +1 -0
- package/dist/{operator-cmd-CQOQrUiO.mjs → operator-cmd-D0vSUVle.mjs} +4 -4
- package/dist/pages/client.d.mts +4 -4
- package/dist/pages/client.mjs +4 -4
- package/dist/pages/index.d.mts +3 -3
- package/dist/pages/index.mjs +4 -4
- package/dist/pages/islands-plugin.d.mts +1 -1
- package/dist/pages/islands-plugin.mjs +1 -1
- package/dist/pages/prefetch.d.mts +1 -1
- package/dist/pages/prefetch.mjs +1 -1
- package/dist/pages/protocol.d.mts +3 -3
- package/dist/pages/protocol.mjs +3 -3
- package/dist/{pg-DoyPxa_X.mjs → pgpass-CEtnBOZO.mjs} +1 -1
- package/dist/{platform-args-DtpHS_75.mjs → platform-args-DQSMW4EP.mjs} +24 -5
- package/dist/platform-args-Rgp86xa7.mjs +1 -0
- package/dist/{platform-auth-config-fLwIS5VG.mjs → platform-auth-config-V2ifSLQ-.mjs} +4 -4
- package/dist/{platform-auth-protection-BTRI_YwD.mjs → platform-auth-protection-BybVCUzi.mjs} +2 -2
- package/dist/{platform-auth-recovery-DPK2Mvmo.mjs → platform-auth-recovery-kH1-h8Ch.mjs} +2 -2
- package/dist/{platform-cmd-BLy5uCa-.mjs → platform-cmd-B1jtqXnu.mjs} +1 -1
- package/dist/{platform-cmd-HS_FSthn.mjs → platform-cmd-BHWdh1Hx.mjs} +5 -5
- package/dist/{platform-domain-CHpcq_qg.mjs → platform-domain-DB_KpVhg.mjs} +2 -2
- package/dist/{platform-lifecycle-B6LUBwjS.mjs → platform-lifecycle-BoOTmH6H.mjs} +1 -1
- package/dist/{platform-lifecycle-D2RS7DE0.mjs → platform-lifecycle-C6fUuj4y.mjs} +146 -71
- package/dist/{platform-management-C-T0ch4y.mjs → platform-management-7Bf_OgS5.mjs} +1 -1
- package/dist/{platform-management-d3ETv3Dw.mjs → platform-management-B8-pOxoJ.mjs} +9 -2
- package/dist/{platform-plans-config-B7yJQKf7.mjs → platform-plans-config-iczSDkQK.mjs} +1 -1
- package/dist/{platform-recovery-DS5CAsly.mjs → platform-recovery-ZAXin6WK.mjs} +2 -2
- package/dist/{platform-setup-Casiffqj.mjs → platform-setup-CpcHLI-0.mjs} +1 -0
- package/dist/{plugin-inference-DZHmVe1f.mjs → plugin-inference-BGamcCqB.mjs} +1 -2
- package/dist/{prefetch-Dx2jIbtg.mjs → prefetch-C_OUvg5g.mjs} +4 -0
- package/dist/{prefetch-NdNeubbH.d.mts → prefetch-UINRrqL4.d.mts} +1 -0
- package/dist/{prepare-AVM4Hj3T.mjs → prepare-BrAkXTTB.mjs} +3 -3
- package/dist/prepare-CI7_C9Xf.mjs +1 -0
- package/dist/{prepare-DMk8NAO-.mjs → prepare-Cjt6EM0d.mjs} +1 -1
- package/dist/{project-cmd-TQKAOTMV.mjs → project-cmd-wtCuc8Ln.mjs} +15 -15
- package/dist/{project-team-B1OKeb-T.mjs → project-team-CZFvPIJ-.mjs} +1 -1
- package/dist/{project-token-RW_wpmN-.mjs → project-token-C3TxkWeC.mjs} +1 -1
- package/dist/{project-zero-trust-TNc66p0_.mjs → project-zero-trust-DrRyAHW1.mjs} +1 -1
- package/dist/{protocol-YS3tbxWE.d.mts → protocol-BlAiF-hc.d.mts} +5 -3
- package/dist/{email-protocol-DTs_TjCS.mjs → protocol-ChF3kDjf.mjs} +1 -1
- package/dist/{protocol-a3ZUQq5W.mjs → protocol-W5EQcIzN.mjs} +40 -20
- package/dist/{provision-bgQTi5QZ.mjs → provision-CknEbPuw.mjs} +3 -2
- package/dist/{provision-BLdkpFT4.mjs → provision-DdWqRmmr.mjs} +1 -1
- package/dist/{env-public-DtJL_hZq.d.mts → public-B80SwOFp.d.mts} +14 -9
- package/dist/{env-raw-e8qgqAzQ.mjs → raw-7pQirZpQ.mjs} +1 -1
- package/dist/raw-CtfNvKyY.d.mts +3 -0
- package/dist/{requests-Cj15-yrI.mjs → requests-FaA9M3RX.mjs} +1 -1
- package/dist/{response-HmNjB30w.mjs → response-CyXsGfOy.mjs} +1 -1
- package/dist/{rollback-CYnkng7B.mjs → rollback-DM6pZ23Y.mjs} +2 -2
- package/dist/{route-types-C6eAOmOj.mjs → route-types-CrODgORq.mjs} +36 -6
- package/dist/{route-url-CfCR4oMj.mjs → route-url-BBdkU7rb.mjs} +1 -1
- package/dist/{route-url-C3JwYrER.d.mts → route-url-Di1kB8D_.d.mts} +6 -2
- package/dist/routes-stub.d.mts +1 -3
- package/dist/routes-stub.mjs +1 -1
- package/dist/{runner-mysql-BXfcQQj3.mjs → runner-mysql-CJ-HyqxV.mjs} +1 -1
- package/dist/{runner-mysql-CHvEg_sy.mjs → runner-mysql-C_PrAUTm.mjs} +1 -1
- package/dist/runtime/{ai.mjs → ai/index.mjs} +6 -6
- package/dist/runtime/{better-auth.d.mts → auth/better-auth-d1.d.mts} +1 -1
- package/dist/runtime/{better-auth.mjs → auth/better-auth-d1.mjs} +3 -3
- package/dist/runtime/{better-auth-mysql.d.mts → auth/better-auth-mysql.d.mts} +1 -1
- package/dist/runtime/{better-auth-mysql.mjs → auth/better-auth-mysql.mjs} +3 -3
- package/dist/runtime/{better-auth-pg.d.mts → auth/better-auth-postgres.d.mts} +1 -1
- package/dist/runtime/{better-auth-pg.mjs → auth/better-auth-postgres.mjs} +4 -4
- package/dist/runtime/auth/client-react.d.mts +2 -0
- package/dist/runtime/auth/client-react.mjs +1 -0
- package/dist/runtime/auth/client-solid.d.mts +2 -0
- package/dist/runtime/auth/client-solid.mjs +1 -0
- package/dist/runtime/auth/client-svelte.d.mts +2 -0
- package/dist/runtime/auth/client-svelte.mjs +1 -0
- package/dist/runtime/auth/client-vue.d.mts +2 -0
- package/dist/runtime/auth/client-vue.mjs +1 -0
- package/dist/runtime/auth/client.d.mts +2 -0
- package/dist/runtime/auth/client.mjs +1 -0
- package/dist/runtime/{auth.d.mts → auth/index.d.mts} +1 -1
- package/dist/runtime/auth/index.mjs +1 -0
- package/dist/runtime/{fetch-server.d.mts → client/fetch-server.d.mts} +1 -1
- package/dist/runtime/{fetch-server.mjs → client/fetch-server.mjs} +3 -3
- package/dist/runtime/client/fetch-stream.d.mts +3 -0
- package/dist/runtime/client/fetch-stream.mjs +3 -0
- package/dist/runtime/{fetch.d.mts → client/fetch.d.mts} +1 -1
- package/dist/runtime/client/fetch.mjs +3 -0
- package/dist/runtime/client/index.d.mts +5 -0
- package/dist/runtime/client/index.mjs +5 -0
- package/dist/runtime/client/react.d.mts +5 -0
- package/dist/runtime/client/react.mjs +5 -0
- package/dist/runtime/client/solid.d.mts +5 -0
- package/dist/runtime/client/solid.mjs +5 -0
- package/dist/runtime/client/svelte.d.mts +5 -0
- package/dist/runtime/client/svelte.mjs +5 -0
- package/dist/runtime/client/vue.d.mts +5 -0
- package/dist/runtime/client/vue.mjs +5 -0
- package/dist/runtime/{db.mjs → db/index.mjs} +2 -2
- package/dist/runtime/{migration-handler.d.mts → db/migrations/d1-handler.d.mts} +1 -1
- package/dist/runtime/{migration-handler.mjs → db/migrations/d1-handler.mjs} +1 -1
- package/dist/runtime/{migration-handler-mysql.d.mts → db/migrations/mysql-handler.d.mts} +1 -1
- package/dist/runtime/{migration-handler-mysql.mjs → db/migrations/mysql-handler.mjs} +2 -2
- package/dist/runtime/{migration-handler-pg.d.mts → db/migrations/postgres-handler.d.mts} +1 -1
- package/dist/runtime/{migration-handler-pg.mjs → db/migrations/postgres-handler.mjs} +2 -2
- package/dist/runtime/{seed.mjs → db/seed.mjs} +1 -1
- package/dist/runtime/{durable.mjs → durable/index.mjs} +3 -3
- package/dist/runtime/{email.d.mts → email/index.d.mts} +1 -1
- package/dist/runtime/{email.mjs → email/index.mjs} +6 -6
- package/dist/runtime/{email-protocol.mjs → email/protocol.mjs} +1 -1
- package/dist/runtime/email/testing.mjs +4 -4
- package/dist/runtime/{env-public-client.d.mts → env/public-client.d.mts} +1 -1
- package/dist/runtime/{env-public-client.mjs → env/public-client.mjs} +2 -2
- package/dist/runtime/env/public.d.mts +4 -0
- package/dist/runtime/{env-public.mjs → env/public.mjs} +144 -75
- package/dist/runtime/{env.d.mts → env/runtime.d.mts} +1 -2
- package/dist/runtime/{env.mjs → env/runtime.mjs} +1 -1
- package/dist/runtime/{handler.d.mts → handler/index.d.mts} +1 -1
- package/dist/runtime/{handler.mjs → handler/index.mjs} +2 -2
- package/dist/runtime/{response.mjs → handler/response.mjs} +1 -1
- package/dist/runtime/handler/validator.d.mts +2 -0
- package/dist/runtime/handler/validator.mjs +1 -0
- package/dist/runtime/{isr.mjs → isr/index.mjs} +2 -2
- package/dist/runtime/{kv.mjs → kv/index.mjs} +2 -2
- package/dist/runtime/{limits.d.mts → limits/index.d.mts} +1 -1
- package/dist/runtime/{limits.mjs → limits/index.mjs} +1 -1
- package/dist/runtime/{live-client.d.mts → live/client.d.mts} +2 -2
- package/dist/runtime/{live-client.mjs → live/client.mjs} +1 -1
- package/dist/runtime/{live.d.mts → live/index.d.mts} +1 -1
- package/dist/runtime/live/index.mjs +1 -0
- package/dist/runtime/{live-server.mjs → live/server.mjs} +3 -3
- package/dist/runtime/{log.mjs → log/index.mjs} +1 -1
- package/dist/runtime/queues/index.d.mts +2 -0
- package/dist/runtime/{queues.mjs → queues/index.mjs} +2 -2
- package/dist/runtime/remote/binding-handler.mjs +1 -1
- package/dist/runtime/remote/index.mjs +1 -1
- package/dist/runtime/{routing.d.mts → routing/index.d.mts} +7 -2
- package/dist/runtime/{routing.mjs → routing/index.mjs} +51 -17
- package/dist/runtime/{route-url.d.mts → routing/route-url.d.mts} +1 -1
- package/dist/runtime/{route-url.mjs → routing/route-url.mjs} +1 -1
- package/dist/runtime/{sandbox-container.d.mts → sandbox/container.d.mts} +1 -1
- package/dist/runtime/{sandbox-container.mjs → sandbox/container.mjs} +1 -1
- package/dist/runtime/{sandbox.d.mts → sandbox/index.d.mts} +2 -2
- package/dist/runtime/{sandbox.mjs → sandbox/index.mjs} +5 -5
- package/dist/runtime/{sse-client.d.mts → sse/client.d.mts} +1 -1
- package/dist/runtime/{sse-client.mjs → sse/client.mjs} +1 -1
- package/dist/runtime/sse/index.mjs +1 -0
- package/dist/runtime/{storage.mjs → storage/index.mjs} +2 -2
- package/dist/runtime/ws/index.d.mts +2 -0
- package/dist/runtime/{ws.mjs → ws/index.mjs} +3 -3
- package/dist/runtime/ws/room.d.mts +30 -0
- package/dist/runtime/ws/room.mjs +37 -0
- package/dist/runtime/{ws-server.d.mts → ws/server.d.mts} +18 -3
- package/dist/runtime/ws/server.mjs +1 -0
- package/dist/{env-DtKg5G26.mjs → runtime-zDDinDI5.mjs} +2 -2
- package/dist/{dist-BWNkVq50.mjs → scan-tDExXbA1.mjs} +978 -11
- package/dist/{secret-BSf7dgg_.mjs → secret-DDNLIQOT.mjs} +3 -3
- package/dist/{runtime/ws-server.mjs → server-CfUbeOjx.mjs} +60 -19
- package/dist/{sse-CxR30yMF.mjs → sse-BXnTfcf3.mjs} +1 -1
- package/dist/{static-asset-marker-DsQKz6lt.mjs → static-asset-marker-lxYeKvFP.mjs} +2 -2
- package/dist/{types-IPut3_Yx.d.mts → types-FDH6NuY1.d.mts} +0 -5
- package/dist/{validation-error-uAAjlsiW.mjs → validation-error-CtcAvyI7.mjs} +1 -1
- package/dist/{validator-8-NZs2Xr.mjs → validator-Duafcnh7.mjs} +1 -1
- package/dist/{version-metadata-CeftH0fQ.mjs → version-metadata-DEmItNdS.mjs} +1 -1
- package/dist/{wrangler-B1gkT_wC.mjs → wrangler-D1zq1rXr.mjs} +20 -3
- package/dist/wrangler-DM3GOqck.mjs +1 -0
- package/dist/{wrapper-xJ4LP5A7.mjs → wrapper-C2gMY432.mjs} +11 -6
- package/docs/guide/ai.md +3 -2
- package/docs/guide/auth.md +19 -14
- package/docs/guide/database.md +0 -7
- package/docs/guide/email/sending.md +0 -1
- package/docs/guide/pages-routing/errors.md +23 -1
- package/docs/guide/pages-routing/head.md +15 -10
- package/docs/guide/pages-routing/loaders.md +19 -0
- package/docs/guide/pages-routing/markdown.md +14 -10
- package/docs/guide/pages-routing/view-transitions.md +0 -16
- package/docs/guide/platform/administration/plans.md +13 -13
- package/docs/guide/platform/administration/projects.md +14 -4
- package/docs/guide/platform/installation/ci.md +5 -2
- package/docs/guide/platform/installation/maintenance.md +5 -2
- package/docs/guide/platform/installation/prerequisites.md +1 -1
- package/docs/guide/platform/installation/setup.md +12 -0
- package/docs/guide/queues.md +9 -5
- package/docs/guide/storage.md +0 -4
- package/docs/guide/type-safety.md +18 -12
- package/docs/guide/websockets.md +72 -1
- package/docs/integrations/frameworks/overview.md +7 -0
- package/docs/integrations/hono.md +4 -3
- package/docs/reference/api/auth.md +8 -8
- package/docs/reference/api/deploy.md +1 -1
- package/docs/reference/api/pages.md +2 -0
- package/docs/reference/api.md +2 -1
- package/docs/reference/cli/platform-config.md +33 -7
- package/docs/reference/cli/platform-installation.md +4 -1
- package/docs/reference/cli/platform-users.md +48 -35
- package/docs/reference/cli.md +2 -2
- package/docs/reference/config.md +13 -1
- package/package.json +165 -160
- package/schema.json +12 -1
- package/dist/cf-build-output-DUZnAeZ1.mjs +0 -1
- package/dist/deploy-Dr_Qamzw.mjs +0 -2
- package/dist/email-BHY72ixO.mjs +0 -165
- package/dist/gen-DmEeVEs4.mjs +0 -1
- package/dist/help-Cp3K5m1w.mjs +0 -1
- package/dist/login-DBs8JuSl.mjs +0 -1
- package/dist/migrate-BYhoIK9R.mjs +0 -1
- package/dist/operator-cmd-xCACDtT1.mjs +0 -1
- package/dist/platform-args-DSi4_M8n.mjs +0 -1
- package/dist/prepare-BSXKz6m8.mjs +0 -1
- package/dist/runtime/auth-client-react.d.mts +0 -2
- package/dist/runtime/auth-client-react.mjs +0 -1
- package/dist/runtime/auth-client-solid.d.mts +0 -2
- package/dist/runtime/auth-client-solid.mjs +0 -1
- package/dist/runtime/auth-client-svelte.d.mts +0 -2
- package/dist/runtime/auth-client-svelte.mjs +0 -1
- package/dist/runtime/auth-client-vue.d.mts +0 -2
- package/dist/runtime/auth-client-vue.mjs +0 -1
- package/dist/runtime/auth-client.d.mts +0 -2
- package/dist/runtime/auth-client.mjs +0 -1
- package/dist/runtime/auth.mjs +0 -1
- package/dist/runtime/client-react.d.mts +0 -5
- package/dist/runtime/client-react.mjs +0 -5
- package/dist/runtime/client-solid.d.mts +0 -5
- package/dist/runtime/client-solid.mjs +0 -5
- package/dist/runtime/client-svelte.d.mts +0 -5
- package/dist/runtime/client-svelte.mjs +0 -5
- package/dist/runtime/client-vue.d.mts +0 -5
- package/dist/runtime/client-vue.mjs +0 -5
- package/dist/runtime/client.d.mts +0 -5
- package/dist/runtime/client.mjs +0 -5
- package/dist/runtime/env-public.d.mts +0 -4
- package/dist/runtime/fetch-stream.d.mts +0 -3
- package/dist/runtime/fetch-stream.mjs +0 -3
- package/dist/runtime/fetch.mjs +0 -3
- package/dist/runtime/live.mjs +0 -1
- package/dist/runtime/queues.d.mts +0 -2
- package/dist/runtime/sse.mjs +0 -1
- package/dist/runtime/validator.d.mts +0 -2
- package/dist/runtime/validator.mjs +0 -1
- package/dist/runtime/ws.d.mts +0 -2
- package/dist/scan-4YOxDaw2.mjs +0 -970
- package/dist/wrangler-fNGvPTlO.mjs +0 -1
- /package/dist/{auth-client-6-Ft9i9T.d.mts → client-6-Ft9i9T.d.mts} +0 -0
- /package/dist/{auth-client-react-DvQLe5Zb.d.mts → client-react-DvQLe5Zb.d.mts} +0 -0
- /package/dist/{auth-client-solid-P9pEtKGp.d.mts → client-solid-P9pEtKGp.d.mts} +0 -0
- /package/dist/{auth-client-svelte-B5j8irT6.d.mts → client-svelte-B5j8irT6.d.mts} +0 -0
- /package/dist/{auth-client-vue-BEiAfavk.d.mts → client-vue-BEiAfavk.d.mts} +0 -0
- /package/dist/{migration-handler-D8mDx3Ew.d.mts → d1-handler-D8mDx3Ew.d.mts} +0 -0
- /package/dist/{env-helpers-U56xuFgL.d.mts → helpers-U56xuFgL.d.mts} +0 -0
- /package/dist/{auth-CV9kXHKe.d.mts → index-CV9kXHKe.d.mts} +0 -0
- /package/dist/{queues-DdM42xXW.d.mts → index-DdM42xXW.d.mts} +0 -0
- /package/dist/{limits-_xIf5z_P.d.mts → index-_xIf5z_P.d.mts} +0 -0
- /package/dist/runtime/{ai.d.mts → ai/index.d.mts} +0 -0
- /package/dist/runtime/{db.d.mts → db/index.d.mts} +0 -0
- /package/dist/runtime/{db-mysql.d.mts → db/mysql.d.mts} +0 -0
- /package/dist/runtime/{db-mysql.mjs → db/mysql.mjs} +0 -0
- /package/dist/runtime/{db-pg.d.mts → db/postgres.d.mts} +0 -0
- /package/dist/runtime/{db-pg.mjs → db/postgres.mjs} +0 -0
- /package/dist/runtime/{schema-d1.d.mts → db/schema/d1.d.mts} +0 -0
- /package/dist/runtime/{schema-d1.mjs → db/schema/d1.mjs} +0 -0
- /package/dist/runtime/{schema-mysql.d.mts → db/schema/mysql.d.mts} +0 -0
- /package/dist/runtime/{schema-mysql.mjs → db/schema/mysql.mjs} +0 -0
- /package/dist/runtime/{schema-pg.d.mts → db/schema/postgres.d.mts} +0 -0
- /package/dist/runtime/{schema-pg.mjs → db/schema/postgres.mjs} +0 -0
- /package/dist/runtime/{seed.d.mts → db/seed.d.mts} +0 -0
- /package/dist/runtime/{drizzle-arktype.d.mts → db/validators/drizzle-arktype.d.mts} +0 -0
- /package/dist/runtime/{drizzle-arktype.mjs → db/validators/drizzle-arktype.mjs} +0 -0
- /package/dist/runtime/{drizzle-valibot.d.mts → db/validators/drizzle-valibot.d.mts} +0 -0
- /package/dist/runtime/{drizzle-valibot.mjs → db/validators/drizzle-valibot.mjs} +0 -0
- /package/dist/runtime/{drizzle-zod.d.mts → db/validators/drizzle-zod.d.mts} +0 -0
- /package/dist/runtime/{drizzle-zod.mjs → db/validators/drizzle-zod.mjs} +0 -0
- /package/dist/runtime/{durable.d.mts → durable/index.d.mts} +0 -0
- /package/dist/runtime/{email-protocol.d.mts → email/protocol.d.mts} +0 -0
- /package/dist/runtime/{response.d.mts → handler/response.d.mts} +0 -0
- /package/dist/runtime/{isr.d.mts → isr/index.d.mts} +0 -0
- /package/dist/runtime/{kv.d.mts → kv/index.d.mts} +0 -0
- /package/dist/runtime/{live-server.d.mts → live/server.d.mts} +0 -0
- /package/dist/runtime/{log.d.mts → log/index.d.mts} +0 -0
- /package/dist/runtime/{sse.d.mts → sse/index.d.mts} +0 -0
- /package/dist/runtime/{storage.d.mts → storage/index.d.mts} +0 -0
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { A as confirm, K as select, L as log, O as cancel, X as text, tt as isCancel } from "./dist-STQXl8ck.mjs";
|
|
2
2
|
import { a as join, c as resolve, i as isAbsolute, n as dirname, s as relative, t as basename } from "./dist-DMYe8CZJ.mjs";
|
|
3
|
-
import { i as materializeCloudflareConfig, l as ensureGitignoreLines } from "./cloudflare-config-
|
|
3
|
+
import { i as materializeCloudflareConfig, l as ensureGitignoreLines } from "./cloudflare-config-BfEfIEuY.mjs";
|
|
4
4
|
import { n as ensureProjectTsconfig, t as createProjectTsconfig } from "./project-tsconfig-MyRJgufB.mjs";
|
|
5
5
|
import { n as readProjectPaths, o as TYPED_CONFIG_FILE } from "./project-paths-CUhCPMpK.mjs";
|
|
6
|
-
import { F as canRewriteVoidProjectConfig, I as renderVoidConfig, L as writeVoidProjectConfig, M as writeProvisionedWranglerConfig, i as LATEST_KNOWN_COMPAT_DATE } from "./wrangler-
|
|
7
|
-
import { c as getDatabaseCasing, l as getDatabaseDialect, p as readConfig, s as databaseConfigValue } from "./config-
|
|
8
|
-
import { r as writeDrizzleConfig, t as PLACEHOLDER_DB_URL } from "./config-
|
|
6
|
+
import { F as canRewriteVoidProjectConfig, I as renderVoidConfig, L as writeVoidProjectConfig, M as writeProvisionedWranglerConfig, i as LATEST_KNOWN_COMPAT_DATE } from "./wrangler-D1zq1rXr.mjs";
|
|
7
|
+
import { c as getDatabaseCasing, l as getDatabaseDialect, p as readConfig, s as databaseConfigValue } from "./config-qgt863GH.mjs";
|
|
8
|
+
import { r as writeDrizzleConfig, t as PLACEHOLDER_DB_URL } from "./config-CbKmMpHK.mjs";
|
|
9
9
|
import { n as snapshotDrizzleOutputs } from "./generate-CWb8aOsm.mjs";
|
|
10
|
-
import { r as detectFramework } from "./plugin-inference-
|
|
10
|
+
import { r as detectFramework } from "./plugin-inference-BGamcCqB.mjs";
|
|
11
11
|
import { i as readPackageJson, n as hasPackageDependency } from "./package-json-DvS6IFRv.mjs";
|
|
12
12
|
import { n as getOwnVersion, r as getPackageDir, t as detectAgents } from "./agents-DRo8gzni.mjs";
|
|
13
|
-
import { t as connectCloudflare } from "./cloudflare-connect-
|
|
13
|
+
import { t as connectCloudflare } from "./cloudflare-connect-CMcKtA02.mjs";
|
|
14
14
|
import { c as getToken } from "./auth-CCk9Seol.mjs";
|
|
15
|
-
import { r as PlatformClient } from "./client-
|
|
16
|
-
import { a as promptProjectSelection, r as promptAndCreateProject } from "./create-project-
|
|
17
|
-
import { t as promptForLoginToken } from "./login-
|
|
15
|
+
import { r as PlatformClient } from "./client-aIv5UQf3.mjs";
|
|
16
|
+
import { a as promptProjectSelection, r as promptAndCreateProject } from "./create-project-BkVGXGNt.mjs";
|
|
17
|
+
import { t as promptForLoginToken } from "./login-Cihxnu7m.mjs";
|
|
18
18
|
import { c as writeDeploymentPlatform, n as readDeploymentPlatform, r as readProjectConfig, t as attachSelectedPlatform, u as writeProjectConfig } from "./project-CLwxcEdq.mjs";
|
|
19
19
|
import { t as parseDotenvFile } from "./dotenv-CEI8hapP.mjs";
|
|
20
|
-
import { i as migrateFrameworkAdapterPaths, t as migrateLegacyVoidConfig } from "./migrate-
|
|
20
|
+
import { i as migrateFrameworkAdapterPaths, t as migrateLegacyVoidConfig } from "./migrate-DOK67gE-.mjs";
|
|
21
21
|
import { l as formatUrl, m as printSuccess, p as note } from "./output-DNVILSz2.mjs";
|
|
22
|
-
import { i as saveDiscoveredPlatform, t as discoverPlatform } from "./platform-cmd-
|
|
22
|
+
import { i as saveDiscoveredPlatform, t as discoverPlatform } from "./platform-cmd-BHWdh1Hx.mjs";
|
|
23
23
|
import { s as formatProjectCommand } from "./cloudflare-process-wcnaQ5JG.mjs";
|
|
24
24
|
import { t as MagicString } from "./dist-B6eN80gc.mjs";
|
|
25
25
|
import { i as hasLocalLockfile, n as drizzleKitBin, r as findInstalledYarnPnpRuntime, t as buildDrizzleKitSpawnEnv } from "./yarn-pnp-DgWbE7z5.mjs";
|
|
@@ -163,6 +163,27 @@ function maybeScaffoldEnvTs(root) {
|
|
|
163
163
|
entries
|
|
164
164
|
};
|
|
165
165
|
}
|
|
166
|
+
// src/cli/init-shell.ts
|
|
167
|
+
/**
|
|
168
|
+
* The directory of the user's shell. Printed commands start there, which is
|
|
169
|
+
* not the project root when init creates a subfolder.
|
|
170
|
+
*/
|
|
171
|
+
function shellDirectory() {
|
|
172
|
+
return resolve(process.cwd());
|
|
173
|
+
}
|
|
174
|
+
/** Quote a path for the user's shell, including names containing quotes, $ or backticks. */
|
|
175
|
+
function quoteShellPath(path) {
|
|
176
|
+
if (/^[A-Za-z0-9_@./:-]+$/.test(path)) return path;
|
|
177
|
+
return process.platform === "win32" ? `"${path}"` : `'${path.replaceAll("'", "'\\''")}'`;
|
|
178
|
+
}
|
|
179
|
+
/** Prefix `command` with a `cd` from the user's shell into `root` when they differ. */
|
|
180
|
+
function commandInProject(root, command) {
|
|
181
|
+
const shell = shellDirectory();
|
|
182
|
+
const directory = resolve(root);
|
|
183
|
+
if (directory === shell) return command;
|
|
184
|
+
const path = relative(shell, directory);
|
|
185
|
+
return `cd ${quoteShellPath(path.startsWith("-") ? `./${path}` : path)} && ${command}`;
|
|
186
|
+
}
|
|
166
187
|
// src/cli/init-git.ts
|
|
167
188
|
async function setupGit(root, git) {
|
|
168
189
|
if (git === false) return false;
|
|
@@ -204,8 +225,7 @@ async function setupGit(root, git) {
|
|
|
204
225
|
}
|
|
205
226
|
function initialCommitCommand(root) {
|
|
206
227
|
const directory = resolve(root);
|
|
207
|
-
const
|
|
208
|
-
const git = directory === resolve(process.cwd()) ? "git" : `git -C ${argument}`;
|
|
228
|
+
const git = directory === shellDirectory() ? "git" : `git -C ${quoteShellPath(directory)}`;
|
|
209
229
|
return `${git} add -A && ${git} commit -m "chore: initial commit"`;
|
|
210
230
|
}
|
|
211
231
|
// src/cli/starter-ui.css?raw
|
|
@@ -1645,14 +1665,14 @@ function writeDatabaseDialect(root, config, dialect) {
|
|
|
1645
1665
|
else next.database = database;
|
|
1646
1666
|
writeVoidProjectConfig(root, next);
|
|
1647
1667
|
}
|
|
1648
|
-
function clearConfiguredDatabase(root, messages) {
|
|
1668
|
+
function clearConfiguredDatabase(root, messages, options) {
|
|
1649
1669
|
const config = readConfig(root);
|
|
1650
1670
|
if (getDatabaseDialect(config) === "sqlite") {
|
|
1651
|
-
log.info(messages.unchanged);
|
|
1671
|
+
if (!options.quiet) log.info(messages.unchanged);
|
|
1652
1672
|
return;
|
|
1653
1673
|
}
|
|
1654
1674
|
writeDatabaseDialect(root, config, "sqlite");
|
|
1655
|
-
log.step(messages.updated);
|
|
1675
|
+
if (!options.quiet) log.step(messages.updated);
|
|
1656
1676
|
}
|
|
1657
1677
|
/** Remove `database` entirely: its casing alone still makes Void serve `void/db`. */
|
|
1658
1678
|
function removeDatabaseConfig(root) {
|
|
@@ -1666,30 +1686,30 @@ function removeDatabaseConfig(root) {
|
|
|
1666
1686
|
writeVoidProjectConfig(root, next);
|
|
1667
1687
|
log.step("Removed database config from void.config.ts");
|
|
1668
1688
|
}
|
|
1669
|
-
function applyDatabaseDialect(root, dialect) {
|
|
1689
|
+
function applyDatabaseDialect(root, dialect, options = {}) {
|
|
1670
1690
|
const config = readConfig(root);
|
|
1671
1691
|
if (dialect === "postgresql") {
|
|
1672
1692
|
if (getDatabaseDialect(config) === "postgresql") {
|
|
1673
|
-
log.info("PostgreSQL already configured in void.config.ts");
|
|
1693
|
+
if (!options.quiet) log.info("PostgreSQL already configured in void.config.ts");
|
|
1674
1694
|
return;
|
|
1675
1695
|
}
|
|
1676
1696
|
writeDatabaseDialect(root, config, "postgresql");
|
|
1677
|
-
log.step("Configured PostgreSQL in void.config.ts");
|
|
1697
|
+
if (!options.quiet) log.step("Configured PostgreSQL in void.config.ts");
|
|
1678
1698
|
return;
|
|
1679
1699
|
}
|
|
1680
1700
|
if (dialect === "mysql") {
|
|
1681
1701
|
if (getDatabaseDialect(config) === "mysql") {
|
|
1682
|
-
log.info("MySQL already configured in void.config.ts");
|
|
1702
|
+
if (!options.quiet) log.info("MySQL already configured in void.config.ts");
|
|
1683
1703
|
return;
|
|
1684
1704
|
}
|
|
1685
1705
|
writeDatabaseDialect(root, config, "mysql");
|
|
1686
|
-
log.step("Configured MySQL in void.config.ts");
|
|
1706
|
+
if (!options.quiet) log.step("Configured MySQL in void.config.ts");
|
|
1687
1707
|
return;
|
|
1688
1708
|
}
|
|
1689
1709
|
clearConfiguredDatabase(root, {
|
|
1690
1710
|
unchanged: "Using default D1 (SQLite) configuration",
|
|
1691
1711
|
updated: "Updated void.config.ts to use the default D1 (SQLite) configuration"
|
|
1692
|
-
});
|
|
1712
|
+
}, options);
|
|
1693
1713
|
}
|
|
1694
1714
|
function detectDatabaseSetup(root) {
|
|
1695
1715
|
const dialect = getDatabaseDialect(readConfig(root));
|
|
@@ -1806,11 +1826,9 @@ async function promptDatabaseSetup(root) {
|
|
|
1806
1826
|
}
|
|
1807
1827
|
return choice;
|
|
1808
1828
|
}
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
return deploy;
|
|
1813
|
-
}
|
|
1829
|
+
/** Ask where the project deploys, unless `deploy` answers it. The caller saves the answer. */
|
|
1830
|
+
async function askDeploymentPlatform(root, deploy) {
|
|
1831
|
+
if (deploy) return deploy;
|
|
1814
1832
|
assertInteractive("deploy", DEPLOYMENT_PLATFORMS);
|
|
1815
1833
|
const current = readDeploymentPlatform(root);
|
|
1816
1834
|
const choice = await select({
|
|
@@ -1838,9 +1856,7 @@ async function promptDeploymentPlatform(root, deploy) {
|
|
|
1838
1856
|
cancel("Setup cancelled.");
|
|
1839
1857
|
process.exit(0);
|
|
1840
1858
|
}
|
|
1841
|
-
|
|
1842
|
-
writeDeploymentPlatform(root, platform);
|
|
1843
|
-
return platform;
|
|
1859
|
+
return choice;
|
|
1844
1860
|
}
|
|
1845
1861
|
async function ensureVoidPlatformConnection(root) {
|
|
1846
1862
|
let selectedApiUrl = null;
|
|
@@ -1877,7 +1893,6 @@ async function setupCloudflareDeployment(root) {
|
|
|
1877
1893
|
note("Run `void connect --platform cloudflare` when you want to finish Cloudflare setup.", "Cloudflare deployment");
|
|
1878
1894
|
}
|
|
1879
1895
|
}
|
|
1880
|
-
/** Get the dev command for a detected framework. */
|
|
1881
1896
|
function getDevCommand(root, framework) {
|
|
1882
1897
|
if (!framework) return formatProjectCommand(root, "vite dev");
|
|
1883
1898
|
switch (framework.name) {
|
|
@@ -2251,7 +2266,7 @@ function scaffoldPagesApp(root, packageManager, framework, starterMode, toolchai
|
|
|
2251
2266
|
log.step("Updated package.json with starter scripts and dependencies");
|
|
2252
2267
|
for (const [filePath, content] of Object.entries(template.files)) writeFileIfMissing(root, filePath, content);
|
|
2253
2268
|
ensureGitignore(root);
|
|
2254
|
-
if (starterMode !== "static") applyDatabaseDialect(root, starterMode);
|
|
2269
|
+
if (starterMode !== "static") applyDatabaseDialect(root, starterMode, { quiet: true });
|
|
2255
2270
|
if (starterMode === "postgresql") {
|
|
2256
2271
|
const devCommand = getDevCommand(root);
|
|
2257
2272
|
note(`Add DATABASE_URL to .env before running \`${devCommand}\`.\nVoid uses that direct connection for local PostgreSQL development.`, "PostgreSQL local dev");
|
|
@@ -2378,7 +2393,6 @@ function ensureExistingProjectViteConfig(root, framework) {
|
|
|
2378
2393
|
}
|
|
2379
2394
|
/** Returns whether a dependency was added. */
|
|
2380
2395
|
function setupExistingProject(root, framework) {
|
|
2381
|
-
log.info("Existing project detected. Configuring Void...");
|
|
2382
2396
|
const dependencyAdded = ensureExistingProjectPackage(root, { plainViteSetup: framework?.class !== "c" });
|
|
2383
2397
|
ensureExistingProjectViteConfig(root, framework);
|
|
2384
2398
|
return dependencyAdded;
|
|
@@ -2517,25 +2531,28 @@ async function runInitCommand(root, initArgs) {
|
|
|
2517
2531
|
if (migrateLegacyVoidConfig(root)) log.step("Migrated project configuration to void.config.ts. Commit void.config.ts and void.lock.json.");
|
|
2518
2532
|
const workspaceSubpackage = isInsideWorkspaceSubpackage(root);
|
|
2519
2533
|
if (workspaceSubpackage && initArgs?.git !== void 0) throw new Error("init: The --git/--no-git options are not available when adding a package to an existing monorepo.");
|
|
2520
|
-
const gitInitialized = !workspaceSubpackage && (!targeted || initArgs?.git !== void 0) ? await setupGit(root, initArgs?.git) : false;
|
|
2521
2534
|
const framework = detectFramework(root);
|
|
2535
|
+
const scaffoldStarter = !targeted && !framework && isScaffoldableEmptyProject(root);
|
|
2536
|
+
if (framework) log.info(`Detected ${framework.name} framework`);
|
|
2537
|
+
else if (scaffoldStarter) log.info("Empty project detected. Creating a Pages starter.");
|
|
2538
|
+
else if (!targeted) log.info("Existing project detected. Configuring Void.");
|
|
2539
|
+
const gitInitialized = !workspaceSubpackage && (!targeted || initArgs?.git !== void 0) ? await setupGit(root, initArgs?.git) : false;
|
|
2522
2540
|
const preScaffoldState = detectProjectState(root);
|
|
2523
2541
|
const detectedPagesFramework = detectPagesFramework(root);
|
|
2524
2542
|
let scaffoldedPagesFramework;
|
|
2525
2543
|
let scaffoldedStarterMode;
|
|
2544
|
+
let starterDeploymentPlatform;
|
|
2526
2545
|
let didScaffoldStarter = false;
|
|
2527
2546
|
let scaffoldAddedDependencies = false;
|
|
2528
2547
|
let workspaceSubpackageSkip = false;
|
|
2529
|
-
if (
|
|
2530
|
-
if (!targeted && !framework && isScaffoldableEmptyProject(root)) {
|
|
2531
|
-
log.info("Empty project detected. Scaffolding a Pages starter...");
|
|
2548
|
+
if (scaffoldStarter) {
|
|
2532
2549
|
const scaffoldToolchain = await promptScaffoldToolchain(initArgs?.toolchain);
|
|
2533
2550
|
if (detectedPagesFramework) {
|
|
2534
2551
|
scaffoldedPagesFramework = detectedPagesFramework;
|
|
2535
2552
|
log.info(`Detected ${SCAFFOLD_FRAMEWORKS[detectedPagesFramework].label} adapter in package.json`);
|
|
2536
2553
|
} else scaffoldedPagesFramework = await promptScaffoldFramework(initArgs?.framework);
|
|
2537
2554
|
const starterMode = await promptStarterMode(initArgs?.starter);
|
|
2538
|
-
|
|
2555
|
+
starterDeploymentPlatform = await askDeploymentPlatform(root, initArgs?.deploy);
|
|
2539
2556
|
const existingPackageJson = readPackageJson(root);
|
|
2540
2557
|
const hasPackageManager = hasLocalLockfile(root) || existsSync(join(root, "pnpm-workspace.yaml")) || parsePackageManagerField(existingPackageJson) !== void 0 || resolveWorkspaceDeferral(root, existingPackageJson) !== void 0;
|
|
2541
2558
|
const scaffoldPackageManager = scaffoldToolchain === "vite-plus" && !hasPackageManager ? "pnpm" : preScaffoldState.packageManager;
|
|
@@ -2584,9 +2601,9 @@ async function runInitCommand(root, initArgs) {
|
|
|
2584
2601
|
const { linkSkillsForSpecificAgents } = await import("./skills-CoBB9_Ao.mjs");
|
|
2585
2602
|
linkSkillsForSpecificAgents(root, agents);
|
|
2586
2603
|
} else log.info("Bundled Void docs: node_modules/void/docs/");
|
|
2587
|
-
if (!targeted && !framework) {
|
|
2604
|
+
if (!targeted && !framework && !didScaffoldStarter) {
|
|
2588
2605
|
const existingDemoFiles = Object.values(demoFiles(root)).filter((file) => existsSync(file));
|
|
2589
|
-
if (
|
|
2606
|
+
if (state.hasRoutes || state.hasMigrations || state.hasPages) log.info("Project already has pages, routes, or migrations, skipping demo");
|
|
2590
2607
|
else if (hasDrizzleSchema(root)) log.info("Project already has a database schema, skipping demo");
|
|
2591
2608
|
else if (existingDemoFiles.length > 0) {
|
|
2592
2609
|
const names = existingDemoFiles.map((file) => relative(root, file)).join(", ");
|
|
@@ -2610,7 +2627,12 @@ async function runInitCommand(root, initArgs) {
|
|
|
2610
2627
|
}
|
|
2611
2628
|
}
|
|
2612
2629
|
}
|
|
2613
|
-
|
|
2630
|
+
let deploymentPlatform;
|
|
2631
|
+
if (targeted) deploymentPlatform = readDeploymentPlatform(root);
|
|
2632
|
+
else {
|
|
2633
|
+
deploymentPlatform = starterDeploymentPlatform ?? await askDeploymentPlatform(root, initArgs?.deploy);
|
|
2634
|
+
writeDeploymentPlatform(root, deploymentPlatform);
|
|
2635
|
+
}
|
|
2614
2636
|
let voidPlatformDiscovery = null;
|
|
2615
2637
|
if (!targeted && deploymentPlatform === "cloudflare") await setupCloudflareDeployment(root);
|
|
2616
2638
|
if (!targeted && deploymentPlatform === "void") voidPlatformDiscovery = await ensureVoidPlatformConnection(root);
|
|
@@ -2656,6 +2678,9 @@ async function runInitCommand(root, initArgs) {
|
|
|
2656
2678
|
if (workspaceSubpackageSkip) {
|
|
2657
2679
|
if (scaffoldedStarterMode) printSuccess("Project initialized. Run your workspace install, then `void db generate` to finish setup.");
|
|
2658
2680
|
else printSuccess("Project initialized. Run your workspace install to finish setup.");
|
|
2659
|
-
} else
|
|
2681
|
+
} else {
|
|
2682
|
+
const devCommand = commandInProject(root, getDevCommand(root, framework));
|
|
2683
|
+
printSuccess(`Project initialized. Run \`${devCommand}\` to start developing.`);
|
|
2684
|
+
}
|
|
2660
2685
|
}
|
|
2661
2686
|
export { parseInitArgs, runInitCommand };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { H as outro, L as log, O as cancel } from "./dist-STQXl8ck.mjs";
|
|
2
2
|
import { c as getToken, s as getSiteDomain } from "./auth-CCk9Seol.mjs";
|
|
3
|
-
import { r as PlatformClient } from "./client-
|
|
4
|
-
import { a as promptProjectSelection, r as promptAndCreateProject } from "./create-project-
|
|
3
|
+
import { r as PlatformClient } from "./client-aIv5UQf3.mjs";
|
|
4
|
+
import { a as promptProjectSelection, r as promptAndCreateProject } from "./create-project-BkVGXGNt.mjs";
|
|
5
5
|
import { f as import_picocolors, m as printSuccess } from "./output-DNVILSz2.mjs";
|
|
6
6
|
import { r as readProjectConfig, t as attachSelectedPlatform, u as writeProjectConfig } from "./project-CLwxcEdq.mjs";
|
|
7
7
|
import { a as resolveProjectBySlug } from "./resolve-project-Da3OgCU1.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { H as outro, L as log } from "./dist-STQXl8ck.mjs";
|
|
2
2
|
import { c as getToken } from "./auth-CCk9Seol.mjs";
|
|
3
|
-
import { r as PlatformClient } from "./client-
|
|
3
|
+
import { r as PlatformClient } from "./client-aIv5UQf3.mjs";
|
|
4
4
|
import { _ as tablePrefix, c as formatRelativeTime, f as import_picocolors, h as sanitizeTerminalText, i as dim, o as formatCount } from "./output-DNVILSz2.mjs";
|
|
5
5
|
import { n as readDeploymentPlatform, r as readProjectConfig } from "./project-CLwxcEdq.mjs";
|
|
6
6
|
import { a as resolveProjectBySlug } from "./resolve-project-Da3OgCU1.mjs";
|
|
@@ -42,7 +42,7 @@ async function runListCommand(root, slug) {
|
|
|
42
42
|
}
|
|
43
43
|
async function showCloudflareDeployments(root, slug) {
|
|
44
44
|
if (slug) throw new Error("project: A project name selects a Void platform project and is not used for direct Cloudflare apps.");
|
|
45
|
-
const { readCloudflareWorkerStatus, resolveCloudflareOperationContext } = await import("./cloudflare-operations-
|
|
45
|
+
const { readCloudflareWorkerStatus, resolveCloudflareOperationContext } = await import("./cloudflare-operations-C5RTQNnh.mjs");
|
|
46
46
|
const status = await readCloudflareWorkerStatus(resolveCloudflareOperationContext(root));
|
|
47
47
|
if (status.versions.length === 0) {
|
|
48
48
|
outro(`No deployments for ${status.workerName}.`);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as getUser } from "./auth-
|
|
2
|
-
import { a as getRawRuntimeEnv } from "./
|
|
3
|
-
import { n as bytesToBase64 } from "./base64-
|
|
4
|
-
// src/runtime/live
|
|
1
|
+
import { a as getUser } from "./auth-YtP6K4J3.mjs";
|
|
2
|
+
import { a as getRawRuntimeEnv } from "./raw-7pQirZpQ.mjs";
|
|
3
|
+
import { n as bytesToBase64 } from "./base64-DwTR12ej.mjs";
|
|
4
|
+
// src/runtime/live/names.ts
|
|
5
5
|
async function topicDigest(streamId, topic) {
|
|
6
6
|
const bytes = new TextEncoder().encode(`${streamId}\u0000${topic}`);
|
|
7
7
|
const digest = await crypto.subtle.digest("SHA-256", bytes);
|
|
@@ -16,7 +16,7 @@ function topicInstanceName(streamId, topicKey) {
|
|
|
16
16
|
function internalUrl(path) {
|
|
17
17
|
return `https://void.live${path}`;
|
|
18
18
|
}
|
|
19
|
-
// src/runtime/live.ts
|
|
19
|
+
// src/runtime/live/index.ts
|
|
20
20
|
let liveBindingName = "VOID_LIVE";
|
|
21
21
|
let liveDev = false;
|
|
22
22
|
const registeredStreamIds = /* @__PURE__ */ new Set();
|
|
@@ -12,7 +12,7 @@ import { pathToFileURL } from "node:url";
|
|
|
12
12
|
*
|
|
13
13
|
* Side-effect contract: loading the file evaluates the user's `defineEnv`
|
|
14
14
|
* call, which registers the schema in the singleton state in
|
|
15
|
-
* `runtime/env
|
|
15
|
+
* `runtime/env/public.ts`. Callers read the result from there.
|
|
16
16
|
*
|
|
17
17
|
* Node-only (lives under `host/`). Must not be imported from anything
|
|
18
18
|
* that ships in worker bundles.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as join, c as resolve, i as isAbsolute } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import { b as readRootWranglerConfig } from "./wrangler-
|
|
2
|
+
import { b as readRootWranglerConfig } from "./wrangler-D1zq1rXr.mjs";
|
|
3
3
|
import { r as getMiniflareDatabasePath } from "./runner-CMZb7jNU.mjs";
|
|
4
4
|
import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { r as selectPlatformLoginMethod } from "./login-Cihxnu7m.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { H as outro, K as select, L as log, O as cancel, tt as isCancel } from "./dist-STQXl8ck.mjs";
|
|
2
2
|
import { a as getApiUrl, c as getToken, f as removeToken, l as getTokenSource, m as savePlatformToken, p as runPlatformLogin } from "./auth-CCk9Seol.mjs";
|
|
3
|
-
import { a as isExpiredTokenError, r as PlatformClient } from "./client-
|
|
3
|
+
import { a as isExpiredTokenError, r as PlatformClient } from "./client-aIv5UQf3.mjs";
|
|
4
4
|
import { f as import_picocolors, l as formatUrl, m as printSuccess, r as createSpinner } from "./output-DNVILSz2.mjs";
|
|
5
5
|
// src/cli/login.ts
|
|
6
6
|
async function selectPlatformLoginMethod(platform, requestedId) {
|
|
@@ -30,7 +30,7 @@ async function selectPlatformLoginMethod(platform, requestedId) {
|
|
|
30
30
|
}
|
|
31
31
|
async function promptForLoginToken(root = process.cwd(), platform) {
|
|
32
32
|
const apiUrl = platform?.apiUrl ?? getApiUrl(root);
|
|
33
|
-
const { id: provider, label: providerName } = await selectPlatformLoginMethod(platform ?? await (await import("./platform-cmd-
|
|
33
|
+
const { id: provider, label: providerName } = await selectPlatformLoginMethod(platform ?? await (await import("./platform-cmd-B1jtqXnu.mjs")).discoverPlatform(apiUrl));
|
|
34
34
|
const s = createSpinner();
|
|
35
35
|
s.start(`Opening browser for ${providerName} login...`);
|
|
36
36
|
try {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { $ as wrapTextWithPrefix, H as outro, L as log } from "./dist-STQXl8ck.mjs";
|
|
2
2
|
import { c as getToken } from "./auth-CCk9Seol.mjs";
|
|
3
|
-
import { r as PlatformClient } from "./client-
|
|
3
|
+
import { r as PlatformClient } from "./client-aIv5UQf3.mjs";
|
|
4
4
|
import { a as errorStackFrames, f as import_picocolors, i as dim, o as formatCount } from "./output-DNVILSz2.mjs";
|
|
5
5
|
import { t as MINIMAL_RUNTIME_LOGS_NOTE } from "./platform-runtime-logs-CdJGnk3f.mjs";
|
|
6
6
|
import { n as readDeploymentPlatform, r as readProjectConfig } from "./project-CLwxcEdq.mjs";
|
|
@@ -10,7 +10,7 @@ async function runLogsCommand(root, filter, range, deployment, level) {
|
|
|
10
10
|
console.log();
|
|
11
11
|
const platform = readDeploymentPlatform(root);
|
|
12
12
|
if (platform === "cloudflare") {
|
|
13
|
-
const { resolveCloudflareOperationContext, tailCloudflareWorker } = await import("./cloudflare-operations-
|
|
13
|
+
const { resolveCloudflareOperationContext, tailCloudflareWorker } = await import("./cloudflare-operations-C5RTQNnh.mjs");
|
|
14
14
|
if (range !== "1h") log.warn("Cloudflare tail streams live logs; --range does not select historical entries.");
|
|
15
15
|
if (level && level !== "all" && level !== "error") log.warn("Cloudflare tail cannot filter individual console levels; showing all invocation logs.");
|
|
16
16
|
await tailCloudflareWorker(resolveCloudflareOperationContext(root), {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { n as runMigrateCommand } from "./migrate-DOK67gE-.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { L as log } from "./dist-STQXl8ck.mjs";
|
|
2
2
|
import { a as join, n as dirname } from "./dist-DMYe8CZJ.mjs";
|
|
3
|
-
import { c as stashCloudflareDeployPointer, l as ensureGitignoreLines, n as VOID_LOCK_FILE, r as ignoreMaterializedCloudflareConfig, s as seedCloudflareConfig } from "./cloudflare-config-
|
|
3
|
+
import { c as stashCloudflareDeployPointer, l as ensureGitignoreLines, n as VOID_LOCK_FILE, r as ignoreMaterializedCloudflareConfig, s as seedCloudflareConfig } from "./cloudflare-config-BfEfIEuY.mjs";
|
|
4
4
|
import { o as TYPED_CONFIG_FILE, s as loadTypedVoidConfigFile } from "./project-paths-CUhCPMpK.mjs";
|
|
5
|
-
import { I as renderVoidConfig, P as GENERATED_MARKERS } from "./wrangler-
|
|
6
|
-
import { h as validateConfig } from "./config-
|
|
5
|
+
import { I as renderVoidConfig, P as GENERATED_MARKERS } from "./wrangler-D1zq1rXr.mjs";
|
|
6
|
+
import { h as validateConfig } from "./config-qgt863GH.mjs";
|
|
7
7
|
import { t as parseJsoncObject } from "./generated-wrangler-config-CoDaaFsA.mjs";
|
|
8
8
|
import { m as printSuccess } from "./output-DNVILSz2.mjs";
|
|
9
9
|
import { existsSync, mkdirSync, readFileSync, renameSync, rmSync, unlinkSync, writeFileSync } from "node:fs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as splitMigrationSql } from "./
|
|
1
|
+
import { n as splitMigrationSql } from "./d1-handler-C1LH2K2s.mjs";
|
|
2
2
|
import { createHash, randomUUID } from "node:crypto";
|
|
3
|
-
// src/runtime/
|
|
3
|
+
// src/runtime/db/migrations/mysql-lock.ts
|
|
4
4
|
/**
|
|
5
5
|
* Migration runs on one MySQL database exclude each other with two kinds of lock, and each run
|
|
6
6
|
* checks for the other kind after it takes its own:
|
|
@@ -120,7 +120,7 @@ function isMissingTable(error) {
|
|
|
120
120
|
function errnoOf(error) {
|
|
121
121
|
return typeof error === "object" && error !== null ? error.errno : void 0;
|
|
122
122
|
}
|
|
123
|
-
// src/runtime/mysql-
|
|
123
|
+
// src/runtime/db/migrations/mysql-sql.ts
|
|
124
124
|
/**
|
|
125
125
|
* Splits a MySQL migration file into the statements Void runs one query at a time. Hyperdrive
|
|
126
126
|
* does not accept several statements in one query, and a file that runs statement by statement
|
package/dist/nitro.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as join, n as dirname } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import { n as bundleWorkerSqlDriver } from "./wrapper-
|
|
3
|
-
import { l as getDatabaseDialect, p as readConfig } from "./config-
|
|
4
|
-
import { c as voidDbBundlerPlugin } from "./dispatch-
|
|
2
|
+
import { n as bundleWorkerSqlDriver } from "./wrapper-C2gMY432.mjs";
|
|
3
|
+
import { l as getDatabaseDialect, p as readConfig } from "./config-qgt863GH.mjs";
|
|
4
|
+
import { c as voidDbBundlerPlugin } from "./dispatch-DPEuEblR.mjs";
|
|
5
5
|
import { normalizePath } from "vite";
|
|
6
6
|
import { fileURLToPath } from "node:url";
|
|
7
7
|
import { resolve } from "node:path/win32";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as dirname } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import { p as readConfig } from "./config-
|
|
2
|
+
import { p as readConfig } from "./config-qgt863GH.mjs";
|
|
3
3
|
import { r as getMiniflareDatabasePath } from "./runner-CMZb7jNU.mjs";
|
|
4
|
-
import { a as pgMigrationRunner, i as mysqlMigrationRunner, n as applyPgAuthMigrations, r as applySqliteAuthMigrations, t as applyMySqlAuthMigrations } from "./
|
|
4
|
+
import { a as pgMigrationRunner, i as mysqlMigrationRunner, n as applyPgAuthMigrations, r as applySqliteAuthMigrations, t as applyMySqlAuthMigrations } from "./migrations-ByS7r3HV.mjs";
|
|
5
5
|
import { c as loadLocalEnv } from "./env-UqS-21xi.mjs";
|
|
6
6
|
import { a as projectAuthConfigImporter, i as loadVoidAuthConfig, r as findVoidAuthConfig } from "./config-Do7gJI3T.mjs";
|
|
7
7
|
import { r as resolveVoidAuthMigrationSchema } from "./drizzle-DBSpPpU1.mjs";
|
|
@@ -113,7 +113,7 @@ async function assertAiLoggingPlatform(origin) {
|
|
|
113
113
|
const probe = await probePlatformVersion(origin);
|
|
114
114
|
if (probe.kind === "unknown") return;
|
|
115
115
|
if (probe.kind === "version") {
|
|
116
|
-
const { isOlderPlatformVersion } = await import("./client-
|
|
116
|
+
const { isOlderPlatformVersion } = await import("./client-BEYbgqZw.mjs");
|
|
117
117
|
if (isOlderPlatformVersion(probe.version, "1.8.0") !== true) return;
|
|
118
118
|
}
|
|
119
119
|
throw new OperatorClientError("This platform does not support AI logging policies. Run `void platform upgrade`.", "unsupported");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { a as runOperatorCommand } from "./operator-cmd-D0vSUVle.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as assertAiLoggingPlatform, n as aiLoggingPreviewLines, r as aiLoggingStatusLine, t as aiLoggingChangeLines } from "./operator-ai-logging-
|
|
1
|
+
import { i as assertAiLoggingPlatform, n as aiLoggingPreviewLines, r as aiLoggingStatusLine, t as aiLoggingChangeLines } from "./operator-ai-logging-CNuX5uKg.mjs";
|
|
2
2
|
import { a as resolveOperatorOrigin, i as removeOperatorToken, n as readOperatorApiTokenStdin, o as saveOperatorToken, r as readOperatorToken, t as exchangeOperatorSession } from "./operator-auth-CD3pap65.mjs";
|
|
3
3
|
import { n as OperatorClient, r as OperatorClientError } from "./operator-client-XvXTkea6.mjs";
|
|
4
4
|
import { h as sanitizeTerminalText, i as dim, m as printSuccess } from "./output-DNVILSz2.mjs";
|
|
@@ -181,8 +181,8 @@ async function runAuth(origin, args) {
|
|
|
181
181
|
if (args.action === "login" || args.action === "token" && args.tokenStdin) {
|
|
182
182
|
if (!args.tokenStdin && !process.stdin.isTTY) throw new OperatorClientError("Browser login requires an interactive terminal. Use --token-stdin to exchange an API session.", "interactive_login_required");
|
|
183
183
|
const apiToken = args.tokenStdin ? await readOperatorApiTokenStdin() : await (async () => {
|
|
184
|
-
const { discoverPlatform } = await import("./platform-cmd-
|
|
185
|
-
const { selectPlatformLoginMethod } = await import("./login-
|
|
184
|
+
const { discoverPlatform } = await import("./platform-cmd-B1jtqXnu.mjs");
|
|
185
|
+
const { selectPlatformLoginMethod } = await import("./login-C-n1rA0s.mjs");
|
|
186
186
|
const { runPlatformLogin } = await import("./auth-BN0NU9dz.mjs");
|
|
187
187
|
return runPlatformLogin(origin, (await selectPlatformLoginMethod(await discoverPlatform(origin), args.provider)).id, (url) => process.stderr.write(`Sign in at ${url}\n`));
|
|
188
188
|
})();
|
|
@@ -367,7 +367,7 @@ function aiLoggingProjectId(args) {
|
|
|
367
367
|
}
|
|
368
368
|
async function runOperatorCommand(args) {
|
|
369
369
|
if (!args.action) {
|
|
370
|
-
const { printHelpPage } = await import("./help-
|
|
370
|
+
const { printHelpPage } = await import("./help-Ld6XFol7.mjs");
|
|
371
371
|
printHelpPage(["platform", args.group]);
|
|
372
372
|
return;
|
|
373
373
|
}
|
package/dist/pages/client.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as interpolateRouteParams, p as toUrlString } from "../route-url-
|
|
2
|
-
import { t as PageObject } from "../protocol-
|
|
1
|
+
import { d as interpolateRouteParams, p as toUrlString } from "../route-url-Di1kB8D_.mjs";
|
|
2
|
+
import { t as PageObject } from "../protocol-BlAiF-hc.mjs";
|
|
3
3
|
import { t as BoundaryManifest } from "../boundary-plans-CRmWH68v.mjs";
|
|
4
|
-
import { a as LinkPrefetchValue, i as LinkPrefetchStrategy, n as CacheForInput, r as CacheForResult } from "../prefetch-
|
|
5
|
-
import { n as ErrorPageProps, o as PageError } from "../types-
|
|
4
|
+
import { a as LinkPrefetchValue, i as LinkPrefetchStrategy, n as CacheForInput, r as CacheForResult } from "../prefetch-UINRrqL4.mjs";
|
|
5
|
+
import { n as ErrorPageProps, o as PageError } from "../types-FDH6NuY1.mjs";
|
|
6
6
|
import { UsageLimitData } from "@void/edge";
|
|
7
7
|
import { ActionUrl, Href, ResolveActionBody, ResolveActionParams, RouteUrl, RouteUrlInput } from "void/routes";
|
|
8
8
|
type ActionErrorHandlingScope = "callSite" | "boundary";
|
package/dist/pages/client.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as toUrlString, t as interpolateRouteParams } from "../route-url-
|
|
1
|
+
import { r as toUrlString, t as interpolateRouteParams } from "../route-url-BBdkU7rb.mjs";
|
|
2
2
|
import { c as searchWithoutActionKey, n as isSameOrigin, r as PRESERVED_QUERY_HEADER, t as decodePagePath, u as withPageQuery } from "../url-DaehRGKR.mjs";
|
|
3
|
-
import { r as parseCacheFor, t as PrefetchCache } from "../prefetch-
|
|
3
|
+
import { r as parseCacheFor, t as PrefetchCache } from "../prefetch-C_OUvg5g.mjs";
|
|
4
4
|
import { t as fetchPages } from "../redirect-Dqb4fEc5.mjs";
|
|
5
5
|
import { a as serializePageData, n as decodePageData, r as deserializePageData, t as ISLAND_FRONTMATTER_ID } from "../serialize-Pf-CIQK_.mjs";
|
|
6
6
|
import { PAGES_PROTOCOL_VERSION, readUsageLimit } from "@void/edge";
|
|
@@ -203,7 +203,7 @@ function applyClientHead(head) {
|
|
|
203
203
|
if (el !== cursor) document.head.insertBefore(el, cursor);
|
|
204
204
|
cursor = el.nextSibling;
|
|
205
205
|
}
|
|
206
|
-
|
|
206
|
+
document.title = head?.title ?? "";
|
|
207
207
|
}
|
|
208
208
|
// src/pages/scroll-restoration.ts
|
|
209
209
|
const STORAGE_PREFIX = "void:scroll:";
|
|
@@ -666,7 +666,7 @@ async function createPageNavigationEngine(config) {
|
|
|
666
666
|
let pageData;
|
|
667
667
|
if (options._refresh) _prefetchCache.flush(fetchUrl, method);
|
|
668
668
|
const cacheEntry = method === "GET" ? _prefetchCache.get(fetchUrl, method) : null;
|
|
669
|
-
if (cacheEntry) {
|
|
669
|
+
if (cacheEntry && !cacheEntry.pending) {
|
|
670
670
|
const cachedPageData = await cacheEntry.response;
|
|
671
671
|
_prefetchCache.consume(fetchUrl, method);
|
|
672
672
|
if (cachedPageData === null) {
|
package/dist/pages/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "../config-
|
|
2
|
-
import { a as PageDefinition, c as PageScanResult, i as NamedLayoutDefinition, l as RouteEnvironment, n as ErrorPageProps, o as PageError, r as LayoutDefinition } from "../types-
|
|
1
|
+
import "../config-DuiDZbq7.mjs";
|
|
2
|
+
import { a as PageDefinition, c as PageScanResult, i as NamedLayoutDefinition, l as RouteEnvironment, n as ErrorPageProps, o as PageError, r as LayoutDefinition } from "../types-FDH6NuY1.mjs";
|
|
3
3
|
import { a as renderHeadToString, i as renderBodyAttrs, n as HeadDescriptor, o as renderHtmlAttrs, s as resolveHead, t as HeadConfig } from "../head-CVO92KEx.mjs";
|
|
4
|
-
import { a as LinkPrefetchValue, n as CacheForInput } from "../prefetch-
|
|
4
|
+
import { a as LinkPrefetchValue, n as CacheForInput } from "../prefetch-UINRrqL4.mjs";
|
|
5
5
|
import { a as serializePageData } from "../serialize-DN-envGQ.mjs";
|
|
6
6
|
import { t as BoundaryManifest } from "../boundary-plans-CRmWH68v.mjs";
|
|
7
7
|
import { Plugin, UserConfig } from "vite";
|
package/dist/pages/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { l as resolveNamedLayout, n as scanPages, o as resolveEffectiveLayoutChain, r as generateComponentManifest, s as resolveLayoutChain, t as pageFileEnvironment } from "../scan-
|
|
1
|
+
import { l as resolveNamedLayout, n as scanPages, o as resolveEffectiveLayoutChain, r as generateComponentManifest, s as resolveLayoutChain, t as pageFileEnvironment } from "../scan-tDExXbA1.mjs";
|
|
2
2
|
import { a as resolveHead, i as renderHtmlAttrs, n as renderBodyAttrs, r as renderHeadToString } from "../head-0o0QoREY.mjs";
|
|
3
3
|
import { a as join, n as dirname } from "../dist-DMYe8CZJ.mjs";
|
|
4
|
-
import { n as assertLinkPrefetchValue } from "../prefetch-
|
|
5
|
-
import { r as parseRedirectsFile } from "../headers-
|
|
6
|
-
import { p as readConfig } from "../config-
|
|
4
|
+
import { n as assertLinkPrefetchValue } from "../prefetch-C_OUvg5g.mjs";
|
|
5
|
+
import { r as parseRedirectsFile } from "../headers-Cyr87J6Z.mjs";
|
|
6
|
+
import { p as readConfig } from "../config-qgt863GH.mjs";
|
|
7
7
|
import { a as serializePageData } from "../serialize-Pf-CIQK_.mjs";
|
|
8
8
|
import { r as resolvePagesDir } from "../project-paths-CUhCPMpK.mjs";
|
|
9
9
|
import { existsSync } from "node:fs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as resolve, n as dirname, s as relative } from "../dist-DMYe8CZJ.mjs";
|
|
2
|
-
import { a as createBoundaryManifest, d as editIslandSource, f as findIslandImports, n as scanPages, o as resolveEffectiveLayoutChain, p as findStaticCssImports, u as toLayoutId } from "../scan-
|
|
2
|
+
import { a as createBoundaryManifest, d as editIslandSource, f as findIslandImports, n as scanPages, o as resolveEffectiveLayoutChain, p as findStaticCssImports, u as toLayoutId } from "../scan-tDExXbA1.mjs";
|
|
3
3
|
import { existsSync, readFileSync } from "node:fs";
|
|
4
4
|
import { isCSSRequest, normalizePath } from "vite";
|
|
5
5
|
// src/pages/islands-plugin.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as LinkPrefetchValue, c as parseCacheFor, i as LinkPrefetchStrategy, n as CacheForInput, o as PrefetchCache, r as CacheForResult, s as assertLinkPrefetchValue, t as CacheEntry } from "../prefetch-
|
|
1
|
+
import { a as LinkPrefetchValue, c as parseCacheFor, i as LinkPrefetchStrategy, n as CacheForInput, o as PrefetchCache, r as CacheForResult, s as assertLinkPrefetchValue, t as CacheEntry } from "../prefetch-UINRrqL4.mjs";
|
|
2
2
|
export { CacheEntry, CacheForInput, CacheForResult, LinkPrefetchStrategy, LinkPrefetchValue, PrefetchCache, assertLinkPrefetchValue, parseCacheFor };
|
package/dist/pages/prefetch.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as PrefetchCache, n as assertLinkPrefetchValue, r as parseCacheFor } from "../prefetch-
|
|
1
|
+
export { t as PrefetchCache, n as assertLinkPrefetchValue, r as parseCacheFor } from "../prefetch-C_OUvg5g.mjs";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { w as ValidationError } from "../
|
|
2
|
-
import { a as handlePageMutation, i as handlePageGet, n as PageRenderResult, o as
|
|
3
|
-
export { PageObject, PageRenderResult, ValidationError, flattenValidationErrors, handlePageGet, handlePageMutation, safeJsonStringify };
|
|
1
|
+
import { w as ValidationError } from "../index-BXdP39qx.mjs";
|
|
2
|
+
import { a as handlePageMutation, i as handlePageGet, n as PageRenderResult, o as recoverPageHttpException, r as flattenValidationErrors, s as safeJsonStringify, t as PageObject } from "../protocol-BlAiF-hc.mjs";
|
|
3
|
+
export { PageObject, PageRenderResult, ValidationError, flattenValidationErrors, handlePageGet, handlePageMutation, recoverPageHttpException, safeJsonStringify };
|
package/dist/pages/protocol.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as ValidationError } from "../validation-error-
|
|
2
|
-
import {
|
|
3
|
-
export { ValidationError, flattenValidationErrors, handlePageGet, handlePageMutation, safeJsonStringify };
|
|
1
|
+
import { t as ValidationError } from "../validation-error-CtcAvyI7.mjs";
|
|
2
|
+
import { a as safeJsonStringify, i as recoverPageHttpException, n as handlePageGet, r as handlePageMutation, t as flattenValidationErrors } from "../protocol-W5EQcIzN.mjs";
|
|
3
|
+
export { ValidationError, flattenValidationErrors, handlePageGet, handlePageMutation, recoverPageHttpException, safeJsonStringify };
|