void 1.9.0 → 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/{head-CWJhfUwV.mjs → head-0o0QoREY.mjs} +1 -1
- 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 +68 -49
- 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/head.mjs +1 -1
- package/dist/pages/index.d.mts +3 -3
- package/dist/pages/index.mjs +5 -5
- 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-IPSWHolJ.mjs → protocol-W5EQcIzN.mjs} +43 -22
- 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 +20 -13
- 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
|
@@ -109,7 +109,7 @@ function emitResult(result) {
|
|
|
109
109
|
writeSync(RESULT_FD, JSON.stringify(result));
|
|
110
110
|
}
|
|
111
111
|
async function runFactsChild(root) {
|
|
112
|
-
const { deriveSelfHostSchemaFacts, SelfHostSchemaError } = await import("../env-validation-
|
|
112
|
+
const { deriveSelfHostSchemaFacts, SelfHostSchemaError } = await import("../env-validation-ly_Q9Kgd.mjs");
|
|
113
113
|
try {
|
|
114
114
|
emitResult({
|
|
115
115
|
kind: "ok",
|
|
@@ -128,7 +128,7 @@ async function runFactsChild(root) {
|
|
|
128
128
|
}
|
|
129
129
|
/** The parent already found the emitted config, so a read failure here fails closed. */
|
|
130
130
|
async function runValidateEmittedChild(root) {
|
|
131
|
-
const { computeInvalidEmittedKeys, readEmittedWorkerVars, SelfHostSchemaError } = await import("../env-validation-
|
|
131
|
+
const { computeInvalidEmittedKeys, readEmittedWorkerVars, SelfHostSchemaError } = await import("../env-validation-ly_Q9Kgd.mjs");
|
|
132
132
|
const emitted = readEmittedWorkerVars(root);
|
|
133
133
|
if (!emitted.ok) {
|
|
134
134
|
emitResult({
|
|
@@ -2,11 +2,11 @@ import { L as log } from "./dist-STQXl8ck.mjs";
|
|
|
2
2
|
import { n as getOwnVersion } from "./agents-DRo8gzni.mjs";
|
|
3
3
|
import { t as formatCloudflareUserMessage } from "./cloudflare-user-output-zEwuGrEJ.mjs";
|
|
4
4
|
import { n as isD1Bookmark } from "./cf-command-values-Ccl-zRhl.mjs";
|
|
5
|
-
import { i as printVoidHeader, n as printGlobalHelp, r as printHelpPage, t as getHelpPath } from "./help-
|
|
5
|
+
import { i as printVoidHeader, n as printGlobalHelp, r as printHelpPage, t as getHelpPath } from "./help-B1cH8518.mjs";
|
|
6
6
|
import { n as operatorGroups } from "./operator-args-BCCohcz3.mjs";
|
|
7
7
|
import { r as OperatorClientError } from "./operator-client-XvXTkea6.mjs";
|
|
8
8
|
import { f as import_picocolors, l as formatUrl } from "./output-DNVILSz2.mjs";
|
|
9
|
-
import { n as platformSubcommands, t as parsePlatformArgs } from "./platform-args-
|
|
9
|
+
import { n as platformSubcommands, t as parsePlatformArgs } from "./platform-args-DQSMW4EP.mjs";
|
|
10
10
|
import { parseArgs } from "node:util";
|
|
11
11
|
// src/cli/account-args.ts
|
|
12
12
|
const accountSubcommands = [
|
|
@@ -1633,19 +1633,19 @@ const args = process.argv.slice(2);
|
|
|
1633
1633
|
const command = args[0];
|
|
1634
1634
|
const helpPath = getHelpPath(args);
|
|
1635
1635
|
const subcommandGroups = {
|
|
1636
|
-
auth: () => runSubcommandGroup("auth", authSubcommands, parseAuthArgs, (root, parsed) => import("./auth-router-
|
|
1637
|
-
account: () => runSubcommandGroup("account", accountSubcommands, parseAccountArgs, (root, parsed) => import("./account-cmd-
|
|
1638
|
-
platform: () => runSubcommandGroup("platform", platformSubcommands, parsePlatformArgs, (root, parsed) => import("./platform-cmd-
|
|
1639
|
-
cloudflare: () => runSubcommandGroup("cloudflare", cloudflareSubcommands, parseCloudflareArgs, (root, parsed) => import("./cloudflare-cmd-
|
|
1640
|
-
project: () => runSubcommandGroup("project", projectSubcommands, parseProjectArgs, (root, parsed) => import("./project-cmd-
|
|
1641
|
-
secret: () => runSubcommandGroup("secret", secretSubcommands, parseSecretArgs, (root, parsed) => import("./secret-
|
|
1642
|
-
domain: () => runSubcommandGroup("domain", domainSubcommands, parseDomainArgs, (root, parsed) => import("./domain-
|
|
1643
|
-
email: () => runSubcommandGroup("email", emailSubcommands, parseEmailArgs, (root, parsed) => import("./email-
|
|
1644
|
-
db: () => runSubcommandGroup("db", dbSubcommands, parseDbArgs, (root, parsed) => import("./db-
|
|
1645
|
-
env: () => runSubcommandGroup("env", envSubcommands, parseEnvArgs, (root, parsed) => import("./env-
|
|
1646
|
-
gen: () => runSubcommandGroup("gen", genSubcommands, parseGenArgs, (root, parsed) => import("./gen-
|
|
1647
|
-
github: () => runSubcommandGroup("github", githubSubcommands, parseGithubArgs, (root, parsed) => import("./github-cmd-
|
|
1648
|
-
build: () => runSubcommandGroup("build", buildSubcommands, parseBuildArgs, (root, parsed) => import("./build-cmd-
|
|
1636
|
+
auth: () => runSubcommandGroup("auth", authSubcommands, parseAuthArgs, (root, parsed) => import("./auth-router-BOiaDmcQ.mjs").then(({ runAuthRouter }) => runAuthRouter(root, parsed))),
|
|
1637
|
+
account: () => runSubcommandGroup("account", accountSubcommands, parseAccountArgs, (root, parsed) => import("./account-cmd-CZhbDfp4.mjs").then(({ runAccountCommand }) => runAccountCommand(root, parsed))),
|
|
1638
|
+
platform: () => runSubcommandGroup("platform", platformSubcommands, parsePlatformArgs, (root, parsed) => import("./platform-cmd-B1jtqXnu.mjs").then(({ runPlatformCommand }) => runPlatformCommand(root, parsed))),
|
|
1639
|
+
cloudflare: () => runSubcommandGroup("cloudflare", cloudflareSubcommands, parseCloudflareArgs, (root, parsed) => import("./cloudflare-cmd-DLcgInCa.mjs").then(({ runCloudflareCommand }) => runCloudflareCommand(root, parsed))),
|
|
1640
|
+
project: () => runSubcommandGroup("project", projectSubcommands, parseProjectArgs, (root, parsed) => import("./project-cmd-wtCuc8Ln.mjs").then(({ runProjectCommand }) => runProjectCommand(root, parsed))),
|
|
1641
|
+
secret: () => runSubcommandGroup("secret", secretSubcommands, parseSecretArgs, (root, parsed) => import("./secret-DDNLIQOT.mjs").then(({ runSecretCommand }) => runSecretCommand(root, parsed))),
|
|
1642
|
+
domain: () => runSubcommandGroup("domain", domainSubcommands, parseDomainArgs, (root, parsed) => import("./domain-cOhYYiHU.mjs").then(({ runDomainCommand }) => runDomainCommand(root, parsed))),
|
|
1643
|
+
email: () => runSubcommandGroup("email", emailSubcommands, parseEmailArgs, (root, parsed) => import("./email-CnnDqvXV.mjs").then(({ runEmailCommand }) => runEmailCommand(root, parsed))),
|
|
1644
|
+
db: () => runSubcommandGroup("db", dbSubcommands, parseDbArgs, (root, parsed) => import("./db-DQAi7Ckr.mjs").then(({ runDbCommand }) => runDbCommand(root, parsed))),
|
|
1645
|
+
env: () => runSubcommandGroup("env", envSubcommands, parseEnvArgs, (root, parsed) => import("./env-5bphL5mV.mjs").then(({ runEnvCommand }) => runEnvCommand(root, parsed))),
|
|
1646
|
+
gen: () => runSubcommandGroup("gen", genSubcommands, parseGenArgs, (root, parsed) => import("./gen-BQ7itmK7.mjs").then(({ runGenCommand }) => runGenCommand(root, parsed))),
|
|
1647
|
+
github: () => runSubcommandGroup("github", githubSubcommands, parseGithubArgs, (root, parsed) => import("./github-cmd-CVDLb51-.mjs").then(({ runGithubCommand }) => runGithubCommand(root, parsed))),
|
|
1648
|
+
build: () => runSubcommandGroup("build", buildSubcommands, parseBuildArgs, (root, parsed) => import("./build-cmd-BCiXgjn9.mjs").then(({ runBuildCommand }) => runBuildCommand(root, parsed)))
|
|
1649
1649
|
};
|
|
1650
1650
|
if (helpPath) {
|
|
1651
1651
|
if (helpPath.length === 0) printGlobalHelp();
|
|
@@ -1664,7 +1664,7 @@ if (helpPath) {
|
|
|
1664
1664
|
log.error(formatCloudflareUserMessage(err instanceof Error ? err.message : String(err)));
|
|
1665
1665
|
process.exit(1);
|
|
1666
1666
|
}
|
|
1667
|
-
import("./deploy-
|
|
1667
|
+
import("./deploy-rUunHBNJ.mjs").then(({ runDeploy }) => {
|
|
1668
1668
|
runDeploy(root, deployArgs).catch((err) => {
|
|
1669
1669
|
log.error(formatCloudflareUserMessage(err.message ?? String(err)));
|
|
1670
1670
|
process.exit(1);
|
|
@@ -1672,14 +1672,14 @@ if (helpPath) {
|
|
|
1672
1672
|
});
|
|
1673
1673
|
} else if (command === "connect") (async () => {
|
|
1674
1674
|
const parsed = parseConnectArgs(args.slice(1));
|
|
1675
|
-
const { runConnectCommand } = await import("./connect-
|
|
1675
|
+
const { runConnectCommand } = await import("./connect-DM3yCNPG.mjs");
|
|
1676
1676
|
await runConnectCommand(process.cwd(), parsed);
|
|
1677
1677
|
})().catch((err) => {
|
|
1678
1678
|
log.error(formatCloudflareUserMessage(err instanceof Error ? err.message : String(err)));
|
|
1679
1679
|
process.exit(1);
|
|
1680
1680
|
});
|
|
1681
1681
|
else if (command && Object.hasOwn(subcommandGroups, command)) subcommandGroups[command]();
|
|
1682
|
-
else if (command === "info") import("./info-
|
|
1682
|
+
else if (command === "info") import("./info-BE3snw2_.mjs").then(async ({ runInfoCommand }) => {
|
|
1683
1683
|
try {
|
|
1684
1684
|
await runInfoCommand(process.cwd(), parseInfoArgs(args.slice(1)));
|
|
1685
1685
|
} catch (err) {
|
|
@@ -1700,7 +1700,7 @@ else if (command === "prepare") {
|
|
|
1700
1700
|
log.error(formatCloudflareUserMessage(err instanceof Error ? err.message : String(err)));
|
|
1701
1701
|
process.exit(1);
|
|
1702
1702
|
}
|
|
1703
|
-
import("./prepare-
|
|
1703
|
+
import("./prepare-Cjt6EM0d.mjs").then(({ runPrepareCommand }) => {
|
|
1704
1704
|
runPrepareCommand(root).catch((err) => {
|
|
1705
1705
|
log.error(formatCloudflareUserMessage(err.message ?? String(err)));
|
|
1706
1706
|
process.exit(1);
|
|
@@ -1708,7 +1708,7 @@ else if (command === "prepare") {
|
|
|
1708
1708
|
});
|
|
1709
1709
|
} else if (command === "init") {
|
|
1710
1710
|
const root = process.cwd();
|
|
1711
|
-
import("./init-
|
|
1711
|
+
import("./init-BrS5MAiJ.mjs").then(({ runInitCommand, parseInitArgs }) => {
|
|
1712
1712
|
let initArgs;
|
|
1713
1713
|
try {
|
|
1714
1714
|
initArgs = parseInitArgs(args.slice(1));
|
|
@@ -1726,7 +1726,7 @@ else if (command === "prepare") {
|
|
|
1726
1726
|
log.error("migrate: This command takes no arguments.");
|
|
1727
1727
|
process.exit(1);
|
|
1728
1728
|
}
|
|
1729
|
-
import("./migrate-
|
|
1729
|
+
import("./migrate-CKn30rmw.mjs").then(({ runMigrateCommand }) => {
|
|
1730
1730
|
runMigrateCommand(process.cwd()).catch((err) => {
|
|
1731
1731
|
log.error(formatCloudflareUserMessage(err instanceof Error ? err.message : String(err)));
|
|
1732
1732
|
process.exit(1);
|
|
@@ -1848,32 +1848,32 @@ else if (command) {
|
|
|
1848
1848
|
if (Object.hasOwn(subcommandGroups, cmd)) return subcommandGroups[cmd]();
|
|
1849
1849
|
switch (cmd) {
|
|
1850
1850
|
case "connect": {
|
|
1851
|
-
const { runConnectCommand } = await import("./connect-
|
|
1851
|
+
const { runConnectCommand } = await import("./connect-DM3yCNPG.mjs");
|
|
1852
1852
|
await runConnectCommand(root, parseConnectArgs([]));
|
|
1853
1853
|
return;
|
|
1854
1854
|
}
|
|
1855
1855
|
case "init": {
|
|
1856
|
-
const { runInitCommand, parseInitArgs } = await import("./init-
|
|
1856
|
+
const { runInitCommand, parseInitArgs } = await import("./init-BrS5MAiJ.mjs");
|
|
1857
1857
|
await runInitCommand(root, parseInitArgs([]));
|
|
1858
1858
|
return;
|
|
1859
1859
|
}
|
|
1860
1860
|
case "migrate": {
|
|
1861
|
-
const { runMigrateCommand } = await import("./migrate-
|
|
1861
|
+
const { runMigrateCommand } = await import("./migrate-CKn30rmw.mjs");
|
|
1862
1862
|
await runMigrateCommand(root);
|
|
1863
1863
|
return;
|
|
1864
1864
|
}
|
|
1865
1865
|
case "deploy": {
|
|
1866
|
-
const { runDeploy } = await import("./deploy-
|
|
1866
|
+
const { runDeploy } = await import("./deploy-rUunHBNJ.mjs");
|
|
1867
1867
|
await runDeploy(root);
|
|
1868
1868
|
return;
|
|
1869
1869
|
}
|
|
1870
1870
|
case "info": {
|
|
1871
|
-
const { runInfoCommand } = await import("./info-
|
|
1871
|
+
const { runInfoCommand } = await import("./info-BE3snw2_.mjs");
|
|
1872
1872
|
await runInfoCommand(root, parseInfoArgs([]));
|
|
1873
1873
|
return;
|
|
1874
1874
|
}
|
|
1875
1875
|
case "prepare": {
|
|
1876
|
-
const { runPrepareCommand } = await import("./prepare-
|
|
1876
|
+
const { runPrepareCommand } = await import("./prepare-Cjt6EM0d.mjs");
|
|
1877
1877
|
await runPrepareCommand(root);
|
|
1878
1878
|
return;
|
|
1879
1879
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { r as PlatformClient, s as isOlderPlatformVersion } from "./client-
|
|
1
|
+
export { r as PlatformClient, s as isOlderPlatformVersion } from "./client-aIv5UQf3.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createAuthClient } from "better-auth/client";
|
|
2
|
-
// src/runtime/auth
|
|
2
|
+
// src/runtime/auth/client.ts
|
|
3
3
|
const createAuthClient$1 = createAuthClient;
|
|
4
4
|
const auth = createAuthClient({ basePath: "/api/auth" });
|
|
5
5
|
export { createAuthClient$1 as n, auth as t };
|
|
@@ -93,8 +93,8 @@ function readCliVersion() {
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
const VOID_CLI_VERSION = readCliVersion();
|
|
96
|
-
/** The oldest Void platform release this CLI supports. */
|
|
97
|
-
const MIN_PLATFORM_VERSION = "1.
|
|
96
|
+
/** The oldest Void platform release this CLI supports, including queue concurrency caps. */
|
|
97
|
+
const MIN_PLATFORM_VERSION = "1.10.0";
|
|
98
98
|
const RELEASE_VERSION = /^(\d+)\.(\d+)\.(\d+)(-[0-9A-Za-z.-]+)?(\+[0-9A-Za-z.-]+)?$/;
|
|
99
99
|
/**
|
|
100
100
|
* Discovery probes keyed by platform base URL. Every outcome (pass,
|
|
@@ -125,7 +125,7 @@ function assertSupportedPlatform(apiUrl, probe) {
|
|
|
125
125
|
if (probe.kind === "unknown") return;
|
|
126
126
|
if (probe.kind === "missing") throw new Error(`The Void platform at ${apiUrl} does not report its version, but this CLI requires ${MIN_PLATFORM_VERSION} or later. ${UPGRADE_PLATFORM_ACTION}`);
|
|
127
127
|
const { version } = probe;
|
|
128
|
-
if (version === "hosted" || isOlderPlatformVersion(version, "1.
|
|
128
|
+
if (version === "hosted" || isOlderPlatformVersion(version, "1.10.0") !== true) return;
|
|
129
129
|
throw new Error(`The Void platform at ${apiUrl} runs version ${version}, but this CLI requires ${MIN_PLATFORM_VERSION} or later. ${UPGRADE_PLATFORM_ACTION}`);
|
|
130
130
|
}
|
|
131
131
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createAuthClient } from "better-auth/react";
|
|
2
|
-
// src/runtime/auth
|
|
2
|
+
// src/runtime/auth/client-react.ts
|
|
3
3
|
const createAuthClient$1 = createAuthClient;
|
|
4
4
|
const auth = createAuthClient({ basePath: "/api/auth" });
|
|
5
5
|
export { createAuthClient$1 as n, auth as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createAuthClient } from "better-auth/solid";
|
|
2
|
-
// src/runtime/auth
|
|
2
|
+
// src/runtime/auth/client-solid.ts
|
|
3
3
|
const createAuthClient$1 = createAuthClient;
|
|
4
4
|
const auth = createAuthClient({ basePath: "/api/auth" });
|
|
5
5
|
export { createAuthClient$1 as n, auth as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createAuthClient } from "better-auth/svelte";
|
|
2
|
-
// src/runtime/auth
|
|
2
|
+
// src/runtime/auth/client-svelte.ts
|
|
3
3
|
const createAuthClient$1 = createAuthClient;
|
|
4
4
|
const auth = createAuthClient({ basePath: "/api/auth" });
|
|
5
5
|
export { createAuthClient$1 as n, auth as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createAuthClient } from "better-auth/vue";
|
|
2
|
-
// src/runtime/auth
|
|
2
|
+
// src/runtime/auth/client-vue.ts
|
|
3
3
|
const createAuthClient$1 = createAuthClient;
|
|
4
4
|
const auth = createAuthClient({ basePath: "/api/auth" });
|
|
5
5
|
export { createAuthClient$1 as n, auth as t };
|
|
@@ -3,7 +3,7 @@ import { t as basename } from "./dist-DMYe8CZJ.mjs";
|
|
|
3
3
|
import { a as parseCloudflareAuthSession, i as ensureCloudflareAuthentication, n as cloudflareCredentialOverrides, r as createBundledCloudflareAuthRunner } from "./cloudflare-auth-pNvmT6kL.mjs";
|
|
4
4
|
import { i as isCleanCloudflareExit } from "./cloudflare-process-wcnaQ5JG.mjs";
|
|
5
5
|
import { m as printSuccess } from "./output-DNVILSz2.mjs";
|
|
6
|
-
import { b as readRootWranglerConfig } from "./wrangler-
|
|
6
|
+
import { b as readRootWranglerConfig } from "./wrangler-D1zq1rXr.mjs";
|
|
7
7
|
// src/cli/cloudflare-cmd.ts
|
|
8
8
|
async function runCloudflareCommand(root, args) {
|
|
9
9
|
const runWrangler = createBundledCloudflareAuthRunner(root);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as join } from "./dist-DMYe8CZJ.mjs";
|
|
2
2
|
import { t as parseJsoncObject } from "./generated-wrangler-config-CoDaaFsA.mjs";
|
|
3
3
|
import "./project-paths-CUhCPMpK.mjs";
|
|
4
|
-
import { p as readConfig } from "./config-
|
|
4
|
+
import { p as readConfig } from "./config-qgt863GH.mjs";
|
|
5
5
|
import { t as writeFileAtomic } from "./atomic-write-DA6eD1Kp.mjs";
|
|
6
6
|
import { appendFileSync, existsSync, mkdirSync, readFileSync, rmSync } from "node:fs";
|
|
7
7
|
import { isRecord } from "@void/deploy-core";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { K as select, L as log, tt as isCancel } from "./dist-STQXl8ck.mjs";
|
|
2
2
|
import { a as join, t as basename } from "./dist-DMYe8CZJ.mjs";
|
|
3
3
|
import { i as ensureCloudflareAuthentication, r as createBundledCloudflareAuthRunner } from "./cloudflare-auth-pNvmT6kL.mjs";
|
|
4
|
-
import { M as writeProvisionedWranglerConfig, b as readRootWranglerConfig, i as LATEST_KNOWN_COMPAT_DATE } from "./wrangler-
|
|
4
|
+
import { M as writeProvisionedWranglerConfig, b as readRootWranglerConfig, i as LATEST_KNOWN_COMPAT_DATE } from "./wrangler-D1zq1rXr.mjs";
|
|
5
5
|
import { existsSync } from "node:fs";
|
|
6
6
|
// src/cli/cloudflare-connect.ts
|
|
7
7
|
async function connectCloudflare(root, interactive = Boolean(process.stdin.isTTY)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as activateCloudflareExistingVersion, n as applyCloudflareD1Migrations, r as changeCloudflareDomain, o as deleteCloudflareSecret, s as executeCloudflareD1Sql, c as listCloudflareDomains, l as listCloudflareSecrets, m as putCloudflareSecret, h as readCloudflareD1Migrations, g as readCloudflareWorkerStatus, _ as resolveCloudflareD1Context, v as resolveCloudflareOperationContext, y as restoreCloudflareD1Database, b as syncCloudflareSecrets, x as tailCloudflareWorker } from "./cloudflare-operations-
|
|
1
|
+
export { t as activateCloudflareExistingVersion, n as applyCloudflareD1Migrations, r as changeCloudflareDomain, o as deleteCloudflareSecret, s as executeCloudflareD1Sql, c as listCloudflareDomains, l as listCloudflareSecrets, m as putCloudflareSecret, h as readCloudflareD1Migrations, g as readCloudflareWorkerStatus, _ as resolveCloudflareD1Context, v as resolveCloudflareOperationContext, y as restoreCloudflareD1Database, b as syncCloudflareSecrets, x as tailCloudflareWorker } from "./cloudflare-operations-DLhn_Bom.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as join } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import { a as persistCloudflareConfig, i as materializeCloudflareConfig } from "./cloudflare-config-
|
|
2
|
+
import { a as persistCloudflareConfig, i as materializeCloudflareConfig } from "./cloudflare-config-BfEfIEuY.mjs";
|
|
3
3
|
import { t as createCloudflareProcessRunner } from "./cloudflare-process-wcnaQ5JG.mjs";
|
|
4
|
-
import { a as findWranglerCiOverrideDotenvFile, i as findAmbientConfigOverride } from "./deploy-transport-
|
|
4
|
+
import { a as findWranglerCiOverrideDotenvFile, i as findAmbientConfigOverride } from "./deploy-transport-DT-ALuDj.mjs";
|
|
5
5
|
import { u as getErrorMessage } from "./output-DNVILSz2.mjs";
|
|
6
|
-
import { _ as provisionEnv, r as assertNoTransportRedirectInProjectDotenv, s as deleteEnvVarCaseAware, v as resolvePinnedApiBaseUrl } from "./provision-
|
|
7
|
-
import { N as writeWranglerPublishedTrafficSnapshot, S as readWranglerCustomDomains, j as updateWranglerCustomDomain, w as readWranglerPublishedTrafficSnapshot } from "./wrangler-
|
|
6
|
+
import { _ as provisionEnv, r as assertNoTransportRedirectInProjectDotenv, s as deleteEnvVarCaseAware, v as resolvePinnedApiBaseUrl } from "./provision-CknEbPuw.mjs";
|
|
7
|
+
import { N as writeWranglerPublishedTrafficSnapshot, S as readWranglerCustomDomains, j as updateWranglerCustomDomain, w as readWranglerPublishedTrafficSnapshot } from "./wrangler-D1zq1rXr.mjs";
|
|
8
8
|
import { existsSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
9
9
|
import { tmpdir } from "node:os";
|
|
10
10
|
import { deployCloudflareVersionTraffic, encodeCloudflareVersionMessage, parseCloudflareVersionMessage, parseRootWranglerConfig, readBindingFieldPresence, readCloudflareTriggerConfig, readWranglerTopLevelString, resolveD1MigrateTarget, stabilizeCloudflareVersionTriggers } from "@void/deploy-cloudflare";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as join, s as relative } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import { c as getDatabaseCasing, p as readConfig } from "./config-
|
|
2
|
+
import { c as getDatabaseCasing, p as readConfig } from "./config-qgt863GH.mjs";
|
|
3
3
|
import { i as resolveProjectPaths } from "./project-paths-CUhCPMpK.mjs";
|
|
4
4
|
import { n as schemaSpecifier, t as discoverSchema } from "./discover-Vd18lHsj.mjs";
|
|
5
5
|
import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as PLACEHOLDER_DB_URL, n as withPrivateDrizzleConfig, r as writeDrizzleConfig } from "./config-
|
|
1
|
+
export { t as PLACEHOLDER_DB_URL, n as withPrivateDrizzleConfig, r as writeDrizzleConfig } from "./config-CbKmMpHK.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as VoidAuthProvider } from "./providers-D5P8j_8D.mjs";
|
|
2
2
|
import "./types-CKWnYgfy.mjs";
|
|
3
3
|
import { t as HeadConfig } from "./head-CVO92KEx.mjs";
|
|
4
|
-
import { AssetConfig } from "@void/deploy-core";
|
|
4
|
+
import { AssetConfig, StorageConfig } from "@void/deploy-core";
|
|
5
5
|
import { RewriteDestination } from "void/routes";
|
|
6
|
-
type SandboxInstanceType = "lite" | "standard-1" | "standard-2" | "standard-3" | "standard-4";
|
|
6
|
+
type SandboxInstanceType = "lite" | "basic" | "standard-1" | "standard-2" | "standard-3" | "standard-4";
|
|
7
7
|
type SandboxConfig = {
|
|
8
8
|
binding?: string;
|
|
9
9
|
className?: string;
|
|
@@ -185,6 +185,7 @@ type CloudflareConfig = Record<string, unknown> & {
|
|
|
185
185
|
};
|
|
186
186
|
/** Shape of the Void project config. All fields optional. */
|
|
187
187
|
type VoidConfig = {
|
|
188
|
+
storage?: StorageConfig;
|
|
188
189
|
sourceDir?: string;
|
|
189
190
|
target?: "cloudflare" | "node" | "bun" | "deno";
|
|
190
191
|
output?: "server" | "static";
|
package/dist/config-entry.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as VoidConfig } from "./config-
|
|
1
|
+
import { t as VoidConfig } from "./config-DuiDZbq7.mjs";
|
|
2
2
|
/** Define a typed Void project configuration without loading the Vite plugin. */
|
|
3
3
|
export declare function defineConfig<const T extends VoidConfig>(config: T): T;
|
|
4
4
|
export type { VoidConfig };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as isVoidAuthProvider, t as VOID_AUTH_PROVIDERS } from "./providers-ZARwX2cL.mjs";
|
|
2
2
|
import { a as validateSourceDir, c as loadVoidConfig } from "./project-paths-CUhCPMpK.mjs";
|
|
3
|
-
import { n as MimeError, o as parseAddress } from "./mime-
|
|
4
|
-
import { isRecord } from "@void/deploy-core";
|
|
3
|
+
import { n as MimeError, o as parseAddress } from "./mime-BGoZ8ZLL.mjs";
|
|
4
|
+
import { R2_LOCATION_HINTS, isR2LocationHint, isRecord } from "@void/deploy-core";
|
|
5
5
|
// src/config.ts
|
|
6
6
|
const CONFIG_FILE = "void.json";
|
|
7
7
|
const VALID_TARGETS = /* @__PURE__ */ new Set([
|
|
@@ -50,6 +50,7 @@ const VALID_DATABASE_CASINGS = /* @__PURE__ */ new Set(["snake_case", "camelCase
|
|
|
50
50
|
const MAX_WORKER_CPU_MS = 3e5;
|
|
51
51
|
const VALID_SANDBOX_INSTANCE_TYPES = /* @__PURE__ */ new Set([
|
|
52
52
|
"lite",
|
|
53
|
+
"basic",
|
|
53
54
|
"standard-1",
|
|
54
55
|
"standard-2",
|
|
55
56
|
"standard-3",
|
|
@@ -198,6 +199,10 @@ function validateConfigObject(obj) {
|
|
|
198
199
|
if (obj.output !== void 0) {
|
|
199
200
|
if (typeof obj.output !== "string" || !VALID_OUTPUTS.has(obj.output)) throw new Error(`config: "output" in ${CONFIG_FILE} must be one of: server, static.`);
|
|
200
201
|
}
|
|
202
|
+
if (obj.storage !== void 0) {
|
|
203
|
+
if (!isRecord(obj.storage) || Object.keys(obj.storage).some((key) => key !== "locationHint") || obj.storage.locationHint !== void 0 && !isR2LocationHint(obj.storage.locationHint)) throw new Error(`config: "storage.locationHint" in ${CONFIG_FILE} must be one of: ${R2_LOCATION_HINTS.join(", ")}.`);
|
|
204
|
+
if (obj.storage.locationHint !== void 0 && isNodeTarget(obj.target)) throw new Error(`config: "storage.locationHint" in ${CONFIG_FILE} requires target: "cloudflare".`);
|
|
205
|
+
}
|
|
201
206
|
if (obj.auth !== void 0) {
|
|
202
207
|
if (!isRecord(obj.auth)) throw new Error(`config: "auth" in ${CONFIG_FILE} must be an object.`);
|
|
203
208
|
const auth = obj.auth;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { K as select, L as log, tt as isCancel } from "./dist-STQXl8ck.mjs";
|
|
2
2
|
import { d as readPlatformToken } from "./auth-CCk9Seol.mjs";
|
|
3
|
-
import { a as isExpiredTokenError, r as PlatformClient } from "./client-
|
|
4
|
-
import { t as connectCloudflare } from "./cloudflare-connect-
|
|
5
|
-
import { t as promptForLoginToken } from "./login-
|
|
3
|
+
import { a as isExpiredTokenError, r as PlatformClient } from "./client-aIv5UQf3.mjs";
|
|
4
|
+
import { t as connectCloudflare } from "./cloudflare-connect-CMcKtA02.mjs";
|
|
5
|
+
import { t as promptForLoginToken } from "./login-Cihxnu7m.mjs";
|
|
6
6
|
import { m as printSuccess } from "./output-DNVILSz2.mjs";
|
|
7
|
-
import { i as saveDiscoveredPlatform, n as promptPlatformUrl, t as discoverPlatform } from "./platform-cmd-
|
|
7
|
+
import { i as saveDiscoveredPlatform, n as promptPlatformUrl, t as discoverPlatform } from "./platform-cmd-BHWdh1Hx.mjs";
|
|
8
8
|
import { c as normalizePlatformApiUrl, s as listPlatformConnections } from "./platform-registry-DZ_2Xuqd.mjs";
|
|
9
9
|
import { c as writeDeploymentPlatform, l as writePlatformSelection, n as readDeploymentPlatform } from "./project-CLwxcEdq.mjs";
|
|
10
10
|
// src/cli/connect.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DurableObject, RpcTarget } from "cloudflare:workers";
|
|
2
2
|
import { Files } from "@cloudflare/sandbox";
|
|
3
|
-
// src/runtime/sandbox
|
|
3
|
+
// src/runtime/sandbox/container.ts
|
|
4
4
|
const SANDBOX_PORT_HEADER = "x-void-sandbox-port";
|
|
5
5
|
const OPTIONS = /* @__PURE__ */ new Set([
|
|
6
6
|
"inactivityTimeoutMs",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DurableObject } from "cloudflare:workers";
|
|
2
|
-
type SandboxInstance = "lite" | "standard-1" | "standard-2" | "standard-3" | "standard-4";
|
|
2
|
+
type SandboxInstance = "lite" | "basic" | "standard-1" | "standard-2" | "standard-3" | "standard-4";
|
|
3
3
|
type SandboxOptions = {
|
|
4
4
|
inactivityTimeoutMs?: number;
|
|
5
5
|
enableInternet?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
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
|
-
import { n as PlatformApiError } from "./client-
|
|
2
|
+
import { n as PlatformApiError } from "./client-aIv5UQf3.mjs";
|
|
3
3
|
import { f as import_picocolors, h as sanitizeTerminalText } from "./output-DNVILSz2.mjs";
|
|
4
4
|
import { t as attachSelectedPlatform, u as writeProjectConfig } from "./project-CLwxcEdq.mjs";
|
|
5
5
|
import { s as getSiteDomain } from "./auth-CCk9Seol.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as createProjectWithSlugRetry } from "./create-project-
|
|
1
|
+
export { t as createProjectWithSlugRetry } from "./create-project-BkVGXGNt.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { canonicalJson, canonicalSql, getMigrationPlanHashInput, isSingleStatement, splitSqlStatements } from "@void/deploy-core";
|
|
2
|
-
// src/runtime/
|
|
2
|
+
// src/runtime/db/migrations/d1-handler.ts
|
|
3
3
|
const SUPPORTED_CLASSIFIER_VERSION = 1;
|
|
4
4
|
function createMigrationHandler(env, migrations, runAuthMigrations, planBundle) {
|
|
5
5
|
return async (request) => {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { A as confirm, H as outro, L as log, X as text, tt as isCancel } from "./dist-STQXl8ck.mjs";
|
|
2
2
|
import { a as join, c as resolve, n as dirname, r as extname, s as relative, t as basename } from "./dist-DMYe8CZJ.mjs";
|
|
3
|
-
import { c as getDatabaseCasing, l as getDatabaseDialect, m as resolveBindingNames, p as readConfig } from "./config-
|
|
4
|
-
import { t as resolveLocalD1Target } from "./local-d1-
|
|
3
|
+
import { c as getDatabaseCasing, l as getDatabaseDialect, m as resolveBindingNames, p as readConfig } from "./config-qgt863GH.mjs";
|
|
4
|
+
import { t as resolveLocalD1Target } from "./local-d1-DLxsKmkw.mjs";
|
|
5
5
|
import { i as writeJournal, n as readJournal, r as stripSqlExt, t as collectMigrations } from "./collect-C6Blu9yw.mjs";
|
|
6
6
|
import { i as validateMigrations, t as assertJournalCoherence } from "./validate-Ddzl-IwT.mjs";
|
|
7
|
-
import { r as detectFramework } from "./plugin-inference-
|
|
7
|
+
import { r as detectFramework } from "./plugin-inference-BGamcCqB.mjs";
|
|
8
8
|
import { n as readProjectPaths } from "./project-paths-CUhCPMpK.mjs";
|
|
9
9
|
import { t as cfAccessHeaders } from "./cf-access-pejlJmuy.mjs";
|
|
10
10
|
import { c as loadLocalEnv } from "./env-UqS-21xi.mjs";
|
|
11
11
|
import { c as getToken, o as getProxyUrl } from "./auth-CCk9Seol.mjs";
|
|
12
12
|
import { n as ensurePlatformProxyAccess, r as isCloudflareAccessChallenge, t as ensurePlatformAccessToken } from "./cf-access-Dnyw8KFY.mjs";
|
|
13
|
-
import { n as PlatformApiError, r as PlatformClient } from "./client-
|
|
14
|
-
import { n as formatTimestamp } from "./gen-
|
|
13
|
+
import { n as PlatformApiError, r as PlatformClient } from "./client-aIv5UQf3.mjs";
|
|
14
|
+
import { n as formatTimestamp } from "./gen-CjcH6DJS.mjs";
|
|
15
15
|
import { f as import_picocolors, i as dim, l as formatUrl, m as printSuccess, o as formatCount, u as getErrorMessage } from "./output-DNVILSz2.mjs";
|
|
16
16
|
import { n as readDeploymentPlatform, r as readProjectConfig } from "./project-CLwxcEdq.mjs";
|
|
17
17
|
import { n as drizzleKitBin } from "./yarn-pnp-DgWbE7z5.mjs";
|
|
@@ -155,7 +155,7 @@ function runDrizzleKit(root, args) {
|
|
|
155
155
|
* already printed its own error.
|
|
156
156
|
*/
|
|
157
157
|
async function runDrizzleKitWithDatabaseUrl(root, url, dialect, command) {
|
|
158
|
-
const { withPrivateDrizzleConfig } = await import("./config-
|
|
158
|
+
const { withPrivateDrizzleConfig } = await import("./config-CtkCfPpv.mjs");
|
|
159
159
|
if (!withPrivateDrizzleConfig(root, url, dialect, (configPath) => {
|
|
160
160
|
try {
|
|
161
161
|
runDrizzleKit(root, [
|
|
@@ -186,7 +186,7 @@ async function withPgClient(root, fn) {
|
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
async function withMySqlClient(root, fn, options = {}) {
|
|
189
|
-
const { toMySqlClient } = await import("./runner-mysql-
|
|
189
|
+
const { toMySqlClient } = await import("./runner-mysql-C_PrAUTm.mjs");
|
|
190
190
|
const { createConnection } = await import("mysql2/promise");
|
|
191
191
|
const connection = await createConnection({
|
|
192
192
|
uri: getLocalDatabaseUrl(root, "mysql"),
|
|
@@ -311,7 +311,7 @@ async function runPush(root, dialect) {
|
|
|
311
311
|
printSuccess("Database schema pushed.");
|
|
312
312
|
return;
|
|
313
313
|
}
|
|
314
|
-
const { writeDrizzleConfig } = await import("./config-
|
|
314
|
+
const { writeDrizzleConfig } = await import("./config-CtkCfPpv.mjs");
|
|
315
315
|
const { databasePath: dbPath } = getLocalD1Target(root);
|
|
316
316
|
mkdirSync(dirname(dbPath), { recursive: true });
|
|
317
317
|
const configPath = writeDrizzleConfig(root, dbPath);
|
|
@@ -327,8 +327,8 @@ async function runPush(root, dialect) {
|
|
|
327
327
|
printSuccess("Database schema pushed.");
|
|
328
328
|
}
|
|
329
329
|
async function runGenerate(root, dialect) {
|
|
330
|
-
const { prepareProject } = await import("./prepare-
|
|
331
|
-
const { PLACEHOLDER_DB_URL, writeDrizzleConfig } = await import("./config-
|
|
330
|
+
const { prepareProject } = await import("./prepare-CI7_C9Xf.mjs");
|
|
331
|
+
const { PLACEHOLDER_DB_URL, writeDrizzleConfig } = await import("./config-CtkCfPpv.mjs");
|
|
332
332
|
await prepareProject(root);
|
|
333
333
|
const authSchemaPath = join(root, ".void", "better-auth-schema.ts");
|
|
334
334
|
const additionalSchemas = existsSync(authSchemaPath) ? [authSchemaPath] : void 0;
|
|
@@ -377,7 +377,7 @@ async function runStatus(root, dialect) {
|
|
|
377
377
|
localError = error;
|
|
378
378
|
}
|
|
379
379
|
else if (dialect === "mysql") try {
|
|
380
|
-
const { readMySqlAppliedMigrations } = await import("./runner-mysql-
|
|
380
|
+
const { readMySqlAppliedMigrations } = await import("./runner-mysql-C_PrAUTm.mjs");
|
|
381
381
|
localApplied = await withMySqlClient(root, readMySqlAppliedMigrations);
|
|
382
382
|
} catch (error) {
|
|
383
383
|
localError = error;
|
|
@@ -393,12 +393,12 @@ async function runStatus(root, dialect) {
|
|
|
393
393
|
if (dialect !== "sqlite") {
|
|
394
394
|
const databaseUrl = process.env.DATABASE_URL;
|
|
395
395
|
if (!databaseUrl) throw new Error("DATABASE_URL is not available.");
|
|
396
|
-
remoteApplied = (dialect === "postgresql" ? await (await import("./runner-pg-2pjltt0t.mjs")).getPgAppliedMigrations(databaseUrl) : await (await import("./runner-mysql-
|
|
396
|
+
remoteApplied = (dialect === "postgresql" ? await (await import("./runner-pg-2pjltt0t.mjs")).getPgAppliedMigrations(databaseUrl) : await (await import("./runner-mysql-C_PrAUTm.mjs")).getMySqlAppliedMigrations(databaseUrl)).map((name) => ({
|
|
397
397
|
name,
|
|
398
398
|
applied_at: ""
|
|
399
399
|
}));
|
|
400
400
|
} else {
|
|
401
|
-
const { readCloudflareD1Migrations, resolveCloudflareD1Context } = await import("./cloudflare-operations-
|
|
401
|
+
const { readCloudflareD1Migrations, resolveCloudflareD1Context } = await import("./cloudflare-operations-C5RTQNnh.mjs");
|
|
402
402
|
remoteApplied = (await readCloudflareD1Migrations(resolveCloudflareD1Context(root, configuredD1Binding(root)))).map((name) => ({
|
|
403
403
|
name,
|
|
404
404
|
applied_at: ""
|
|
@@ -566,7 +566,7 @@ async function resetDatabase(root, dialect, yes) {
|
|
|
566
566
|
return migrations.length;
|
|
567
567
|
}
|
|
568
568
|
if (dialect === "mysql") {
|
|
569
|
-
const { applyPendingMySqlMigrations, withMySqlMigrationLock } = await import("./runner-mysql-
|
|
569
|
+
const { applyPendingMySqlMigrations, withMySqlMigrationLock } = await import("./runner-mysql-C_PrAUTm.mjs");
|
|
570
570
|
await withMySqlClient(root, (client) => withMySqlMigrationLock(client, async () => {
|
|
571
571
|
const tables = await client.query("SELECT table_name AS table_name, table_type AS table_type FROM information_schema.tables WHERE table_schema = DATABASE() AND table_type IN ('BASE TABLE', 'VIEW')");
|
|
572
572
|
await client.query("SET FOREIGN_KEY_CHECKS = 0");
|
|
@@ -710,7 +710,7 @@ async function runExecute(root, command, file, dialect, remote) {
|
|
|
710
710
|
process.exit(0);
|
|
711
711
|
}
|
|
712
712
|
if (dialect === "sqlite") {
|
|
713
|
-
const { executeCloudflareD1Sql, resolveCloudflareD1Context } = await import("./cloudflare-operations-
|
|
713
|
+
const { executeCloudflareD1Sql, resolveCloudflareD1Context } = await import("./cloudflare-operations-C5RTQNnh.mjs");
|
|
714
714
|
const rows = await executeCloudflareD1Sql(resolveCloudflareD1Context(root, configuredD1Binding(root)), sql);
|
|
715
715
|
if (rows.length > 0) printTable(rows);
|
|
716
716
|
} else {
|
|
@@ -879,7 +879,7 @@ async function runMigrate(root, dialect, remote) {
|
|
|
879
879
|
appliedNames = await getPgAppliedMigrations(databaseUrl);
|
|
880
880
|
applyMigrations = () => runPgMigrations(migrationsDir, databaseUrl);
|
|
881
881
|
} else {
|
|
882
|
-
const { getMySqlAppliedMigrations, runMySqlMigrations } = await import("./runner-mysql-
|
|
882
|
+
const { getMySqlAppliedMigrations, runMySqlMigrations } = await import("./runner-mysql-C_PrAUTm.mjs");
|
|
883
883
|
appliedNames = await getMySqlAppliedMigrations(databaseUrl);
|
|
884
884
|
applyMigrations = () => runMySqlMigrations(migrationsDir, databaseUrl);
|
|
885
885
|
}
|
|
@@ -904,7 +904,7 @@ async function runMigrate(root, dialect, remote) {
|
|
|
904
904
|
log.info(`No migration files found in ${paths.sourceRelative("db/migrations")}/`);
|
|
905
905
|
return;
|
|
906
906
|
}
|
|
907
|
-
const { applyCloudflareD1Migrations, readCloudflareD1Migrations, resolveCloudflareD1Context } = await import("./cloudflare-operations-
|
|
907
|
+
const { applyCloudflareD1Migrations, readCloudflareD1Migrations, resolveCloudflareD1Context } = await import("./cloudflare-operations-C5RTQNnh.mjs");
|
|
908
908
|
const binding = configuredD1Binding(root);
|
|
909
909
|
const context = resolveCloudflareD1Context(root, binding);
|
|
910
910
|
const remoteBefore = new Set(await readCloudflareD1Migrations(context));
|
|
@@ -924,7 +924,7 @@ async function runMigrate(root, dialect, remote) {
|
|
|
924
924
|
log.error(`db: D1 binding ${binding} has no "migrations_dir", so Cloudflare would apply ./migrations instead of ${dir}/. Add "migrations_dir": "./${dir}" to that D1 binding in your Cloudflare config, then run the command again.`);
|
|
925
925
|
process.exit(1);
|
|
926
926
|
}
|
|
927
|
-
const { checkWranglerMigrationApplySet, parseRootWranglerConfig } = await import("./deploy-
|
|
927
|
+
const { checkWranglerMigrationApplySet, parseRootWranglerConfig } = await import("./deploy-rUunHBNJ.mjs");
|
|
928
928
|
const applySet = await checkWranglerMigrationApplySet(context.operation.configPath, parseRootWranglerConfig(context.operation.configPath), binding, context.migrationsDir, rawMigrations, paths.sourceRelative("db/migrations"));
|
|
929
929
|
if (!applySet.ok) {
|
|
930
930
|
log.error(applySet.reason);
|
|
@@ -1005,7 +1005,7 @@ async function runMigrate(root, dialect, remote) {
|
|
|
1005
1005
|
return;
|
|
1006
1006
|
}
|
|
1007
1007
|
if (dialect === "mysql") {
|
|
1008
|
-
const { applyMySqlMigrations, readMySqlAppliedMigrations } = await import("./runner-mysql-
|
|
1008
|
+
const { applyMySqlMigrations, readMySqlAppliedMigrations } = await import("./runner-mysql-C_PrAUTm.mjs");
|
|
1009
1009
|
const applied = await withMySqlClient(root, async (client) => {
|
|
1010
1010
|
const appliedNames = await readMySqlAppliedMigrations(client).catch(() => []);
|
|
1011
1011
|
try {
|
|
@@ -1051,7 +1051,7 @@ async function runRestore(root, dialect, { target, platform: explicitPlatform, y
|
|
|
1051
1051
|
log.error("db: `void db restore` restores the D1 database of a direct Cloudflare deploy. After a one-off `void deploy --platform cloudflare`, run it with `--platform cloudflare`.");
|
|
1052
1052
|
process.exit(1);
|
|
1053
1053
|
}
|
|
1054
|
-
const { readCloudflareD1Migrations, resolveCloudflareD1Context, restoreCloudflareD1Database } = await import("./cloudflare-operations-
|
|
1054
|
+
const { readCloudflareD1Migrations, resolveCloudflareD1Context, restoreCloudflareD1Database } = await import("./cloudflare-operations-C5RTQNnh.mjs");
|
|
1055
1055
|
const binding = configuredD1Binding(root);
|
|
1056
1056
|
const context = resolveCloudflareD1Context(root, binding);
|
|
1057
1057
|
const database = `D1 database ${context.migrateToken} (${binding})`;
|
|
@@ -1125,7 +1125,7 @@ async function runStudio(root, dialect, remote) {
|
|
|
1125
1125
|
await runDrizzleKitWithDatabaseUrl(root, url, dialect, "studio");
|
|
1126
1126
|
return;
|
|
1127
1127
|
}
|
|
1128
|
-
const { writeDrizzleConfig } = await import("./config-
|
|
1128
|
+
const { writeDrizzleConfig } = await import("./config-CtkCfPpv.mjs");
|
|
1129
1129
|
const { databasePath: dbPath } = getLocalD1Target(root);
|
|
1130
1130
|
if (!existsSync(dbPath)) {
|
|
1131
1131
|
log.error("No local database found. Start the dev server first.");
|
|
@@ -1145,8 +1145,8 @@ async function runStudio(root, dialect, remote) {
|
|
|
1145
1145
|
}
|
|
1146
1146
|
/** A direct Cloudflare deploy records its D1 or Hyperdrive id in the checked-in Cloudflare config. */
|
|
1147
1147
|
async function hasDeployedCloudflareDatabase(root) {
|
|
1148
|
-
const { readRootWranglerConfig } = await import("./wrangler-
|
|
1149
|
-
const { isRealD1Id, isRealHyperdriveId } = await import("./provision-
|
|
1148
|
+
const { readRootWranglerConfig } = await import("./wrangler-DM3GOqck.mjs");
|
|
1149
|
+
const { isRealD1Id, isRealHyperdriveId } = await import("./provision-DdWqRmmr.mjs");
|
|
1150
1150
|
const config = readRootWranglerConfig(root)?.config;
|
|
1151
1151
|
const entries = (key) => {
|
|
1152
1152
|
const value = config?.[key];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { L as log, O as cancel, X as text, tt as isCancel } 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 { m as printSuccess, p as note, r as createSpinner } from "./output-DNVILSz2.mjs";
|
|
5
5
|
import { o as removeProjectConfig, r as readProjectConfig } from "./project-CLwxcEdq.mjs";
|
|
6
6
|
import { a as resolveProjectBySlug } from "./resolve-project-Da3OgCU1.mjs";
|