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,11 +1,11 @@
|
|
|
1
1
|
import { a as join } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import { t as analyzeApplication } from "./application-routing-
|
|
2
|
+
import { t as analyzeApplication } from "./application-routing-DrOFahHO.mjs";
|
|
3
3
|
import { a as projectAuthConfigImporter, i as loadVoidAuthConfig } from "./config-Do7gJI3T.mjs";
|
|
4
4
|
import { n as generateVoidAuthDrizzleSchema, t as generateVoidAuthDatabaseModule } from "./drizzle-DBSpPpU1.mjs";
|
|
5
|
-
import { c as getDatabaseCasing, p as readConfig } from "./config-
|
|
5
|
+
import { c as getDatabaseCasing, p as readConfig } from "./config-qgt863GH.mjs";
|
|
6
6
|
import { t as discoverSchema } from "./discover-Vd18lHsj.mjs";
|
|
7
7
|
import { c as loadLocalEnv } from "./env-UqS-21xi.mjs";
|
|
8
|
-
import { n as generateQueueTypes, o as generateBindingTypes, r as generateAuthTypes, t as generateRouteTypes } from "./route-types-
|
|
8
|
+
import { n as generateQueueTypes, o as generateBindingTypes, r as generateAuthTypes, t as generateRouteTypes } from "./route-types-CrODgORq.mjs";
|
|
9
9
|
import { n as generateDbDts } from "./db-types-BpPYAx0B.mjs";
|
|
10
10
|
import { n as findEnvFileForPaths, r as generateEnvTypes } from "./env-types-WEZw5D-r.mjs";
|
|
11
11
|
import { i as writeFileIfChanged, n as ensureProjectTsconfig } from "./project-tsconfig-MyRJgufB.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as prepareProject } from "./prepare-BrAkXTTB.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { L as log } from "./dist-STQXl8ck.mjs";
|
|
2
|
-
import { t as prepareProject } from "./prepare-
|
|
2
|
+
import { t as prepareProject } from "./prepare-BrAkXTTB.mjs";
|
|
3
3
|
import { m as printSuccess, p as note } from "./output-DNVILSz2.mjs";
|
|
4
4
|
// src/cli/prepare.ts
|
|
5
5
|
async function runPrepareCommand(root) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as readDeploymentPlatform } from "./project-CLwxcEdq.mjs";
|
|
2
2
|
import { H as outro, L as log } from "./dist-STQXl8ck.mjs";
|
|
3
3
|
import { c as getToken, s as getSiteDomain } from "./auth-CCk9Seol.mjs";
|
|
4
|
-
import { r as PlatformClient } from "./client-
|
|
4
|
+
import { r as PlatformClient } from "./client-aIv5UQf3.mjs";
|
|
5
5
|
import { _ as tablePrefix, f as import_picocolors, i as dim, l as formatUrl, o as formatCount } from "./output-DNVILSz2.mjs";
|
|
6
6
|
// src/cli/projects.ts
|
|
7
7
|
async function runProjectsCommand(root) {
|
|
@@ -37,77 +37,77 @@ async function runProjectsCommand(root) {
|
|
|
37
37
|
async function runProjectCommand(root, args) {
|
|
38
38
|
const cloudflare = readDeploymentPlatform(root) === "cloudflare";
|
|
39
39
|
if (args.subcommand === "status") {
|
|
40
|
-
const { runListCommand } = await import("./list-
|
|
40
|
+
const { runListCommand } = await import("./list-DmppHjVc.mjs");
|
|
41
41
|
return runListCommand(root, args.name || void 0);
|
|
42
42
|
}
|
|
43
43
|
if (args.subcommand === "link") {
|
|
44
44
|
if (cloudflare) throw new Error("project: Direct Cloudflare apps are identified by cloudflare.name in void.config.ts and do not need linking.");
|
|
45
|
-
const { runLink } = await import("./link-
|
|
45
|
+
const { runLink } = await import("./link-BbzyrCBD.mjs");
|
|
46
46
|
return runLink(root, args.name || void 0);
|
|
47
47
|
}
|
|
48
48
|
if (args.subcommand === "list") {
|
|
49
49
|
if (cloudflare) {
|
|
50
|
-
const { runListCommand } = await import("./list-
|
|
50
|
+
const { runListCommand } = await import("./list-DmppHjVc.mjs");
|
|
51
51
|
return runListCommand(root);
|
|
52
52
|
}
|
|
53
53
|
return runProjectsCommand(root);
|
|
54
54
|
}
|
|
55
55
|
if (args.subcommand === "token") {
|
|
56
56
|
if (cloudflare) throw new Error("project: CI deploy credentials are available only for Void platform projects.");
|
|
57
|
-
const { runProjectTokenCommand } = await import("./project-token-
|
|
57
|
+
const { runProjectTokenCommand } = await import("./project-token-C3TxkWeC.mjs");
|
|
58
58
|
return runProjectTokenCommand(root, args);
|
|
59
59
|
}
|
|
60
60
|
if (args.subcommand === "team") {
|
|
61
61
|
if (args.action === "") {
|
|
62
|
-
const { printHelpPage } = await import("./help-
|
|
62
|
+
const { printHelpPage } = await import("./help-Ld6XFol7.mjs");
|
|
63
63
|
printHelpPage(["project", "team"]);
|
|
64
64
|
return;
|
|
65
65
|
}
|
|
66
66
|
const accountInvitationAction = args.action === "pending" || args.action === "accept" || args.action === "decline";
|
|
67
67
|
if (cloudflare && !accountInvitationAction) throw new Error("project: Teams are available only for projects hosted on a Void platform, not direct Cloudflare deployments.");
|
|
68
|
-
const { runProjectTeamCommand } = await import("./project-team-
|
|
68
|
+
const { runProjectTeamCommand } = await import("./project-team-CZFvPIJ-.mjs");
|
|
69
69
|
return runProjectTeamCommand(root, args);
|
|
70
70
|
}
|
|
71
71
|
if (args.subcommand === "zero-trust") {
|
|
72
72
|
if (cloudflare) throw new Error("project: Zero Trust overrides are available only for projects hosted on a Void platform.");
|
|
73
73
|
if (args.action === "") {
|
|
74
|
-
const { printHelpPage } = await import("./help-
|
|
74
|
+
const { printHelpPage } = await import("./help-Ld6XFol7.mjs");
|
|
75
75
|
printHelpPage(["project", "zero-trust"]);
|
|
76
76
|
return;
|
|
77
77
|
}
|
|
78
78
|
const action = args.action;
|
|
79
|
-
const { runProjectZeroTrustCommand } = await import("./project-zero-trust-
|
|
79
|
+
const { runProjectZeroTrustCommand } = await import("./project-zero-trust-DrRyAHW1.mjs");
|
|
80
80
|
return runProjectZeroTrustCommand(root, {
|
|
81
81
|
...args,
|
|
82
82
|
action
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
if (args.subcommand === "logs") {
|
|
86
|
-
const { runLogsCommand } = await import("./logs-
|
|
86
|
+
const { runLogsCommand } = await import("./logs-BCgLeLNd.mjs");
|
|
87
87
|
return runLogsCommand(root, args.filter, args.range, args.deployment || void 0, args.level || void 0);
|
|
88
88
|
}
|
|
89
89
|
if (args.subcommand === "requests") {
|
|
90
90
|
if (cloudflare) throw new Error("project: Historical request analytics require the Void platform. Use `void project logs` for a live Cloudflare tail.");
|
|
91
|
-
const { runRequestsCommand } = await import("./requests-
|
|
91
|
+
const { runRequestsCommand } = await import("./requests-FaA9M3RX.mjs");
|
|
92
92
|
return runRequestsCommand(root, args.range, args.status || void 0);
|
|
93
93
|
}
|
|
94
94
|
if (args.subcommand === "rollback") {
|
|
95
|
-
const { runRollbackCommand } = await import("./rollback-
|
|
95
|
+
const { runRollbackCommand } = await import("./rollback-DM6pZ23Y.mjs");
|
|
96
96
|
return runRollbackCommand(root, args.deployId || void 0, args.platform);
|
|
97
97
|
}
|
|
98
98
|
if (args.subcommand === "cancel") {
|
|
99
99
|
if (cloudflare) throw new Error("project: Direct Cloudflare deploys activate only after readiness succeeds, so there is no remote build to cancel.");
|
|
100
|
-
const { runCancelDeployCommand } = await import("./cancel-deploy-
|
|
100
|
+
const { runCancelDeployCommand } = await import("./cancel-deploy-BHGZo6KC.mjs");
|
|
101
101
|
return runCancelDeployCommand(root, args.deployId || void 0);
|
|
102
102
|
}
|
|
103
103
|
if (args.subcommand === "delete") {
|
|
104
104
|
if (cloudflare) throw new Error("project: Refusing to delete Cloudflare resources through this command. Direct deployments are additive and existing resources may be shared.");
|
|
105
|
-
const { runDeleteCommand } = await import("./delete-
|
|
105
|
+
const { runDeleteCommand } = await import("./delete-BtVnPGO2.mjs");
|
|
106
106
|
return runDeleteCommand(root, args.name || void 0, { force: args.force });
|
|
107
107
|
}
|
|
108
108
|
if (args.subcommand === "purge-cache") {
|
|
109
109
|
if (cloudflare) throw new Error("project: `void project purge-cache` is available only for projects hosted on a Void platform. For a direct Cloudflare deploy, redeploy or purge the configured ISR KV namespace.");
|
|
110
|
-
const { runPurgeCacheCommand } = await import("./cache-
|
|
110
|
+
const { runPurgeCacheCommand } = await import("./cache-CUulshOu.mjs");
|
|
111
111
|
return runPurgeCacheCommand(root, args.projectSlug || void 0);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { H as outro, L as log } from "./dist-STQXl8ck.mjs";
|
|
2
2
|
import { c as getToken, i as getAccountCredential } from "./auth-CCk9Seol.mjs";
|
|
3
|
-
import { c as parsePlatformErrorBody, l as platformErrorMessage, n as PlatformApiError, r as PlatformClient } from "./client-
|
|
3
|
+
import { c as parsePlatformErrorBody, l as platformErrorMessage, n as PlatformApiError, r as PlatformClient } from "./client-aIv5UQf3.mjs";
|
|
4
4
|
import { h as sanitizeTerminalText, l as formatUrl, m as printSuccess, o as formatCount, p as note } from "./output-DNVILSz2.mjs";
|
|
5
5
|
import { r as readProjectConfig } from "./project-CLwxcEdq.mjs";
|
|
6
6
|
import { r as requireProjectBySlug, t as getRequestedProjectSlug } 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, i as dim, m as printSuccess } from "./output-DNVILSz2.mjs";
|
|
5
5
|
import { r as readProjectConfig } from "./project-CLwxcEdq.mjs";
|
|
6
6
|
import { r as requireProjectBySlug } 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 { h as sanitizeTerminalText, m as printSuccess, p as note } from "./output-DNVILSz2.mjs";
|
|
5
5
|
import { r as readProjectConfig } from "./project-CLwxcEdq.mjs";
|
|
6
6
|
import { r as requireProjectBySlug, t as getRequestedProjectSlug } from "./resolve-project-Da3OgCU1.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as CloudBindings, r as CloudContext } from "./
|
|
1
|
+
import { n as CloudBindings, r as CloudContext } from "./index-BXdP39qx.mjs";
|
|
2
2
|
import { n as HeadDescriptor, t as HeadConfig } from "./head-CVO92KEx.mjs";
|
|
3
|
-
import { s as PageRenderMode, t as DevCssAsset } from "./types-
|
|
3
|
+
import { s as PageRenderMode, t as DevCssAsset } from "./types-FDH6NuY1.mjs";
|
|
4
4
|
import { Context } from "hono";
|
|
5
5
|
/** Escape characters that are unsafe inside inline <script> tags to prevent XSS. */
|
|
6
6
|
declare function safeJsonStringify(value: unknown): string;
|
|
@@ -42,10 +42,12 @@ type AssetTags = {
|
|
|
42
42
|
};
|
|
43
43
|
type RenderPage = (pageObj: PageObject, assetTags: AssetTags, requestUrl: string) => Promise<PageRenderResult>;
|
|
44
44
|
type GetAssetTags = (req: Request, env: CloudBindings, componentId: string) => Promise<AssetTags>;
|
|
45
|
+
/** Recover HTTP failures outside the loader leaf without executing application code again. */
|
|
46
|
+
declare function recoverPageHttpException(error: unknown, c: PageRequestContext, renderFn: RenderPage, getAssetTags: GetAssetTags, configHead?: HeadConfig, options?: PageRenderOptions): Promise<Response | undefined>;
|
|
45
47
|
/** Flatten withValidator's { issues: [{ slot, issues: [{ message, path }] }] } into { field: message } */
|
|
46
48
|
declare function flattenValidationErrors(body: unknown): Record<string, string>;
|
|
47
49
|
/** Handle GET page request — run handler, return page object or SSR HTML */
|
|
48
50
|
declare function handlePageGet(handler: PageHandler, headFn: PageHeadHandler, c: PageRequestContext, componentId: string, renderFn: RenderPage, getAssetTags: GetAssetTags, configHead?: HeadConfig, options?: PageRenderOptions): Promise<Response>;
|
|
49
51
|
/** Handle POST/PUT/PATCH/DELETE page request — run mutation, then re-run GET or redirect */
|
|
50
52
|
declare function handlePageMutation(mutationHandler: PageHandler, getHandler: PageHandler, headFn: PageHeadHandler, c: PageRequestContext, componentId: string, renderFn: RenderPage, getAssetTags: GetAssetTags, configHead?: HeadConfig, options?: PageRenderOptions): Promise<Response>;
|
|
51
|
-
export { handlePageMutation as a, handlePageGet as i, PageRenderResult as n,
|
|
53
|
+
export { handlePageMutation as a, handlePageGet as i, PageRenderResult as n, recoverPageHttpException as o, flattenValidationErrors as r, safeJsonStringify as s, PageObject as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EMAIL_PROTOCOL_VERSION, encodeEmailActions, readEmailEnvelope } from "@void/platform/email-protocol";
|
|
2
|
-
// src/runtime/email
|
|
2
|
+
// src/runtime/email/protocol.ts
|
|
3
3
|
const RECEIPT_VERIFICATION_DEADLINE_MS = 5e3;
|
|
4
4
|
const MAX_RECEIPT_VERIFICATION_BYTES = 2048;
|
|
5
5
|
const decoder = new TextDecoder("utf-8", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as executeComposedHandler, i as separateDeferred, n as DEFERRED, o as getHandlerComposition, t as ValidationError } from "./validation-error-
|
|
2
|
-
import { n as isConvertedResponse } from "./response-
|
|
1
|
+
import { a as executeComposedHandler, i as separateDeferred, n as DEFERRED, o as getHandlerComposition, t as ValidationError } from "./validation-error-CtcAvyI7.mjs";
|
|
2
|
+
import { n as isConvertedResponse } from "./response-CyXsGfOy.mjs";
|
|
3
3
|
import { a as hasActionKey, c as searchWithoutActionKey, t as decodePagePath } from "./url-DaehRGKR.mjs";
|
|
4
4
|
import { a as resolveHead, i as renderHtmlAttrs, n as renderBodyAttrs, r as renderHeadToString, t as absolutizeHead } from "./head-0o0QoREY.mjs";
|
|
5
5
|
import { a as serializePageData, o as escapeScriptJson } from "./serialize-Pf-CIQK_.mjs";
|
|
@@ -56,6 +56,7 @@ function needsPageReload(c) {
|
|
|
56
56
|
}
|
|
57
57
|
/** Old clients reload a successful non-Pages response; form errors stay readable. */
|
|
58
58
|
function legacyPageResponse(c, errors = null) {
|
|
59
|
+
c.header("Cache-Control", "no-store");
|
|
59
60
|
const headers = pageResponseHeaders(c, {
|
|
60
61
|
"Content-Type": errors ? "application/json" : "text/plain; charset=utf-8",
|
|
61
62
|
"Cache-Control": "no-store",
|
|
@@ -172,13 +173,16 @@ async function renderPageHtml(c, pageObj, componentId, renderMode, renderFn, get
|
|
|
172
173
|
};
|
|
173
174
|
}
|
|
174
175
|
function pageJsonResponse(c, pageObj) {
|
|
175
|
-
return new Response(serializePageData(pageObj), {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
176
|
+
return new Response(serializePageData(pageObj), {
|
|
177
|
+
status: c.newResponse(null).status,
|
|
178
|
+
headers: pageResponseHeaders(c, {
|
|
179
|
+
"X-VoidPages": "true",
|
|
180
|
+
"X-VoidPages-Version": PAGES_PROTOCOL_VERSION,
|
|
181
|
+
"Content-Type": "application/json",
|
|
182
|
+
Vary: "X-VoidPages, X-VoidPages-Version",
|
|
183
|
+
...POWERED_BY
|
|
184
|
+
})
|
|
185
|
+
});
|
|
182
186
|
}
|
|
183
187
|
/**
|
|
184
188
|
* The URL in the address bar, which a rewrite keeps while it serves another
|
|
@@ -242,19 +246,32 @@ async function runLoader(handler, c, render, recover, ownsNotFoundBoundary = fal
|
|
|
242
246
|
return render(props);
|
|
243
247
|
});
|
|
244
248
|
}
|
|
249
|
+
function isRecoverableHttpException(error) {
|
|
250
|
+
const exception = error;
|
|
251
|
+
return !!exception && typeof exception.getResponse === "function" && !exception.res && typeof exception.status === "number" && exception.status >= 400 && exception.status < 600;
|
|
252
|
+
}
|
|
253
|
+
/** Recover HTTP failures outside the loader leaf without executing application code again. */
|
|
254
|
+
async function recoverPageHttpException(error, c, renderFn, getAssetTags, configHead, options) {
|
|
255
|
+
if (!isRecoverableHttpException(error) || c.finalized) return;
|
|
256
|
+
const context = asCloudContext(c);
|
|
257
|
+
if (options?.renderMode !== "island" && needsPageReload(context)) return legacyPageResponse(context);
|
|
258
|
+
return renderPageFailure(context, error, void 0, renderFn, getAssetTags, configHead, options);
|
|
259
|
+
}
|
|
245
260
|
/** Recover one completed GET operation without replaying its middleware or loader. */
|
|
246
261
|
async function renderPageFailure(c, error, original, renderFn, getAssetTags, configHead, options) {
|
|
247
262
|
const httpError = error && typeof error === "object" && "getResponse" in error && typeof error.getResponse === "function";
|
|
248
263
|
const explicit = httpError ? error.getResponse() : original;
|
|
249
|
-
|
|
264
|
+
const recoverHttpError = isRecoverableHttpException(error);
|
|
265
|
+
if (explicit && (!recoverHttpError && explicit.status !== 404 || explicit.headers.has("Content-Disposition"))) return;
|
|
250
266
|
const notFound = explicit?.status === 404;
|
|
251
267
|
const candidates = notFound ? [options?.boundaries?.notFound, ...options?.boundaries?.notFoundErrors ?? options?.boundaries?.errors ?? []] : options?.boundaries?.errors;
|
|
252
268
|
if (!candidates?.[0]) return;
|
|
269
|
+
c.header("Cache-Control", "no-store");
|
|
253
270
|
if (options?.renderMode !== "island") varyPagesResponse(c);
|
|
254
|
-
let status = notFound ? 404 : 500;
|
|
255
|
-
let message = notFound ? httpError && error instanceof Error ? error.message || "Not Found" : "Not Found" : "Internal Server Error";
|
|
256
|
-
if (!notFound && options?.dev && error instanceof Error) message = error.message;
|
|
257
|
-
if (error && !notFound) console.error(error);
|
|
271
|
+
let status = recoverHttpError ? error.status : notFound ? 404 : 500;
|
|
272
|
+
let message = notFound ? httpError && error instanceof Error ? error.message || "Not Found" : "Not Found" : recoverHttpError ? error.message || explicit?.statusText || "HTTP Error" : "Internal Server Error";
|
|
273
|
+
if (!notFound && !recoverHttpError && options?.dev && error instanceof Error) message = error.message;
|
|
274
|
+
if (error && !notFound && !recoverHttpError) console.error(error);
|
|
258
275
|
const shared = c.get("shared") ?? {};
|
|
259
276
|
const middlewareHead = c.get("headDefaults");
|
|
260
277
|
let head;
|
|
@@ -283,7 +300,7 @@ async function renderPageFailure(c, error, original, renderFn, getAssetTags, con
|
|
|
283
300
|
errors: null,
|
|
284
301
|
head: {
|
|
285
302
|
...head,
|
|
286
|
-
title: head?.title ?? resolveHead(configHead, middlewareHead, { title: status === 404 ? "Not Found" : "Internal Server Error" })?.title
|
|
303
|
+
title: head?.title ?? resolveHead(configHead, middlewareHead, { title: status === 404 ? "Not Found" : recoverHttpError && status !== 500 ? message : "Internal Server Error" })?.title
|
|
287
304
|
}
|
|
288
305
|
};
|
|
289
306
|
try {
|
|
@@ -362,10 +379,13 @@ async function writeRenderResult(writer, encoder, result) {
|
|
|
362
379
|
}
|
|
363
380
|
}
|
|
364
381
|
function renderedResponse(c, result, contentType, assetTags) {
|
|
365
|
-
return new Response(result, {
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
382
|
+
return new Response(result, {
|
|
383
|
+
status: c.newResponse(null).status,
|
|
384
|
+
headers: adjustDevCssCsp(pageResponseHeaders(c, {
|
|
385
|
+
"content-type": contentType,
|
|
386
|
+
...POWERED_BY
|
|
387
|
+
}), assetTags?.devCssNonce)
|
|
388
|
+
});
|
|
369
389
|
}
|
|
370
390
|
/**
|
|
371
391
|
* Message sent to the browser for a rejected deferred prop. HTTPException
|
|
@@ -572,4 +592,4 @@ async function runPageMutation(mutationHandler, getHandler, headFn, c, component
|
|
|
572
592
|
throw e;
|
|
573
593
|
}
|
|
574
594
|
}
|
|
575
|
-
export {
|
|
595
|
+
export { safeJsonStringify as a, recoverPageHttpException as i, handlePageGet as n, handlesPageLoaderNotFound as o, handlePageMutation as r, ownsLoaderNotFoundBoundary as s, flattenValidationErrors as t };
|
|
@@ -2,7 +2,7 @@ import { a as join, c as resolve$2, n as dirname, o as normalize, t as basename
|
|
|
2
2
|
import { i as voidWarn, r as voidLog } from "./log-D9hwSySP.mjs";
|
|
3
3
|
import { n as scanWranglerDotenvKeys } from "./dotenv-CEI8hapP.mjs";
|
|
4
4
|
import { l as resolveCloudflareOperationArgv, n as decodeCloudflareOperationResult, r as encodeCloudflareOperation } from "./cloudflare-process-wcnaQ5JG.mjs";
|
|
5
|
-
import { M as writeProvisionedWranglerConfig, _ as persistMaterializedWranglerConfig, s as assertNoDuplicateMembers, y as readProvisionedBindingEntry } from "./wrangler-
|
|
5
|
+
import { M as writeProvisionedWranglerConfig, _ as persistMaterializedWranglerConfig, s as assertNoDuplicateMembers, y as readProvisionedBindingEntry } from "./wrangler-D1zq1rXr.mjs";
|
|
6
6
|
import { createRequire } from "node:module";
|
|
7
7
|
import { closeSync, existsSync, fsyncSync, lstatSync, openSync, readFileSync, readlinkSync, realpathSync, renameSync, unlinkSync, writeSync } from "node:fs";
|
|
8
8
|
import { isRecord } from "@void/deploy-core";
|
|
@@ -677,6 +677,7 @@ function createDefaultRunWrangler(root, options) {
|
|
|
677
677
|
child.stdin?.on("error", handleProcessError);
|
|
678
678
|
child.on("close", (code, signal) => {
|
|
679
679
|
closed = true;
|
|
680
|
+
if (code === 0 && child.stdin && !child.stdin.writableFinished) handleProcessError(/* @__PURE__ */ new Error("the Cloudflare operation process closed stdin before all input was written"));
|
|
680
681
|
if (timedOut || postSpawnError !== void 0) {
|
|
681
682
|
nudgeConfirmPolls();
|
|
682
683
|
return;
|
|
@@ -825,7 +826,6 @@ function selectHyperdriveMatch(configs, name, configPath) {
|
|
|
825
826
|
if (named.length > 1) throw new Error(`provision: cannot adopt Hyperdrive config ${JSON.stringify(name)} — ${named.length} configs in this account share that name (ids: ${named.map((c) => c.id).join(", ")}). Hyperdrive names are not account-unique; remove the duplicates or pin the id in "${configPath}", then retry.`);
|
|
826
827
|
return named[0];
|
|
827
828
|
}
|
|
828
|
-
/** The quarantine sidecar path for a lock target. */
|
|
829
829
|
function quarantineSidecarPath(lockTarget) {
|
|
830
830
|
return `${lockTarget}.quarantine.json`;
|
|
831
831
|
}
|
|
@@ -1594,6 +1594,7 @@ async function reconcileR2(desired, configPath, runWrangler, write, persistCreat
|
|
|
1594
1594
|
} else if (isConfirmedAbsent(info, "r2")) {
|
|
1595
1595
|
const created = await runWrangler({
|
|
1596
1596
|
type: "r2.bucket.create",
|
|
1597
|
+
...desired.r2.locationHint ? { locationHint: desired.r2.locationHint } : {},
|
|
1597
1598
|
name: bucketName,
|
|
1598
1599
|
binding,
|
|
1599
1600
|
configPath
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { f as isRealD1Id, p as isRealHyperdriveId } from "./provision-
|
|
1
|
+
export { f as isRealD1Id, p as isRealHyperdriveId } from "./provision-CknEbPuw.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as VoidPlatformSandbox } from "./
|
|
1
|
+
import { l as VoidPlatformSandbox } from "./index-BESZTC1z.mjs";
|
|
2
2
|
import { t as StandardSchemaV1 } from "./standard-schema-CuDawHOC.mjs";
|
|
3
3
|
type AnyValidator = StandardSchemaV1<unknown, unknown>;
|
|
4
4
|
type AnySchema = Record<string, AnyValidator>;
|
|
@@ -33,6 +33,14 @@ declare function defineEnv<S extends AnySchema>(schema: S): InferEnv<S>;
|
|
|
33
33
|
* other env that holds the same raw values.
|
|
34
34
|
*/
|
|
35
35
|
declare function _validateEnvOnce(envValues: unknown): Promise<void>;
|
|
36
|
+
/**
|
|
37
|
+
* Internal: validate every schema key against a framework Worker's env, from its generated
|
|
38
|
+
* entry, so that synchronous `env.X` reads serve defaults, converted values and async
|
|
39
|
+
* validators' results. Unlike `_validateEnvOnce`, this never rejects: a read of a key that
|
|
40
|
+
* failed throws that key's error, so a request that does not read it still runs, and so does a
|
|
41
|
+
* build-time prerender without production secrets. Validations are reused the same way.
|
|
42
|
+
*/
|
|
43
|
+
declare function _prepareEnv(envValues: unknown): Promise<void>;
|
|
36
44
|
/** Internal: framework-only access to the registered schema (for plugin/CLI). */
|
|
37
45
|
declare function _getRegisteredSchema(): AnySchema | null;
|
|
38
46
|
/**
|
|
@@ -63,7 +71,7 @@ declare class EnvValidationError extends Error {
|
|
|
63
71
|
/**
|
|
64
72
|
* Typed env proxy. Reads from the runtime env, validating declared keys
|
|
65
73
|
* on first access and passing through bindings / unknown keys unchanged.
|
|
66
|
-
* Async validators must be resolved first by `_validateEnvOnce()`.
|
|
74
|
+
* Async validators must be resolved first by `_validateEnvOnce()` or `_prepareEnv()`.
|
|
67
75
|
*/
|
|
68
76
|
declare const env: ValidatedEnv;
|
|
69
77
|
/** Aggregate report from validating an entire env object against the schema. */
|
|
@@ -74,16 +82,13 @@ type EnvValidationReport = {
|
|
|
74
82
|
key: string;
|
|
75
83
|
messages: Array<string>;
|
|
76
84
|
}>;
|
|
77
|
-
/**
|
|
78
|
-
* Resolved values for keys that validated successfully. After async
|
|
79
|
-
* pre-validation they serve sync `env.X` reads.
|
|
80
|
-
*/
|
|
85
|
+
/** Resolved values for keys that validated successfully. */
|
|
81
86
|
values: Map<string, unknown>;
|
|
82
87
|
};
|
|
83
88
|
/**
|
|
84
89
|
* Validate an env record (local dotenv, build inputs, or runtime bindings) against
|
|
85
|
-
* the registered schema. Used by the dev plugin (warnings)
|
|
86
|
-
* (hard error)
|
|
90
|
+
* the registered schema. Used by the dev plugin (warnings) and the deploy CLI
|
|
91
|
+
* (hard error).
|
|
87
92
|
*
|
|
88
93
|
* Async: awaits any validators that return a `Promise` (zod async refines,
|
|
89
94
|
* arktype narrows, etc.). Callers already run in async contexts.
|
|
@@ -116,4 +121,4 @@ declare global {
|
|
|
116
121
|
}
|
|
117
122
|
}
|
|
118
123
|
}
|
|
119
|
-
export { _getSchemaDefaults as a,
|
|
124
|
+
export { _getSchemaDefaults as a, _validateEnvOnce as c, validateAllEnv as d, _getRegisteredSchema as i, defineEnv as l, EnvValidationReport as n, _hasRegisteredSchema as o, ValidatedEnv as r, _prepareEnv as s, EnvValidationError as t, env as u };
|
|
@@ -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 { f as import_picocolors, i as dim } from "./output-DNVILSz2.mjs";
|
|
5
5
|
import { r as readProjectConfig } from "./project-CLwxcEdq.mjs";
|
|
6
6
|
// src/cli/requests.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A as confirm, H as outro, K as select, L as log, O as cancel, 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 { c as formatRelativeTime, i as dim, m as printSuccess, o as formatCount, r as createSpinner } from "./output-DNVILSz2.mjs";
|
|
5
5
|
import { n as readDeploymentPlatform, r as readProjectConfig } from "./project-CLwxcEdq.mjs";
|
|
6
6
|
// src/cli/rollback.ts
|
|
@@ -74,7 +74,7 @@ async function runRollbackCommand(root, deployId, explicitPlatform) {
|
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
async function runCloudflareRollback(root, deployId, restorePlatformFlag) {
|
|
77
|
-
const { activateCloudflareExistingVersion, readCloudflareWorkerStatus, resolveCloudflareOperationContext } = await import("./cloudflare-operations-
|
|
77
|
+
const { activateCloudflareExistingVersion, readCloudflareWorkerStatus, resolveCloudflareOperationContext } = await import("./cloudflare-operations-C5RTQNnh.mjs");
|
|
78
78
|
const context = resolveCloudflareOperationContext(root);
|
|
79
79
|
const status = await readCloudflareWorkerStatus(context);
|
|
80
80
|
const deployedVersionIds = new Set(status.deployedVersionIds);
|
|
@@ -338,14 +338,28 @@ function generateRouteTypes(scan, routesDir, outDir, pagesDir, options = {}) {
|
|
|
338
338
|
lines.push(" >[\"output\"];");
|
|
339
339
|
lines.push("}");
|
|
340
340
|
lines.push("");
|
|
341
|
+
lines.push("type JsonOmitted = undefined | Function | symbol;");
|
|
342
|
+
lines.push("type SerializeArrayElement<T> = T extends JsonOmitted ? null : Serialize<T>;");
|
|
343
|
+
lines.push("type SerializeArray<T extends readonly unknown[]> =");
|
|
344
|
+
lines.push(" { [K in keyof T]: SerializeArrayElement<T[K]> } extends infer A");
|
|
345
|
+
lines.push(" ? A extends readonly unknown[] ? A");
|
|
346
|
+
lines.push(" : T extends unknown[] ? Array<SerializeArrayElement<T[number]>>");
|
|
347
|
+
lines.push(" : ReadonlyArray<SerializeArrayElement<T[number]>>");
|
|
348
|
+
lines.push(" : never;");
|
|
349
|
+
lines.push("type JsonOptionalKeys<T> = {");
|
|
350
|
+
lines.push(" [K in keyof T]-?: Extract<T[K], JsonOmitted> extends never ? never : K;");
|
|
351
|
+
lines.push("}[keyof T];");
|
|
352
|
+
lines.push("type SerializeObject<T> = {");
|
|
353
|
+
lines.push(" [K in keyof T as K extends symbol ? never : T[K] extends JsonOmitted ? never : K]: Serialize<T[K]>;");
|
|
354
|
+
lines.push("};");
|
|
355
|
+
lines.push("");
|
|
341
356
|
lines.push("type Serialize<T> =");
|
|
342
357
|
lines.push(" T extends Response ? never :");
|
|
343
358
|
lines.push(" T extends Date ? string :");
|
|
344
359
|
lines.push(" T extends bigint ? never :");
|
|
345
|
-
lines.push(" T extends
|
|
346
|
-
lines.push(" T extends
|
|
347
|
-
lines.push(" T extends
|
|
348
|
-
lines.push(" T extends object ? { [K in keyof T as T[K] extends Function ? never : K]: Serialize<T[K]> } :");
|
|
360
|
+
lines.push(" T extends JsonOmitted ? never :");
|
|
361
|
+
lines.push(" T extends readonly unknown[] ? SerializeArray<T> :");
|
|
362
|
+
lines.push(" T extends object ? SerializeObject<Omit<T, JsonOptionalKeys<T>> & Partial<Pick<T, JsonOptionalKeys<T>>>> :");
|
|
349
363
|
lines.push(" T;");
|
|
350
364
|
lines.push("");
|
|
351
365
|
lines.push("type ExtractInput<V> = {");
|
|
@@ -377,6 +391,13 @@ function generateRouteTypes(scan, routesDir, outDir, pagesDir, options = {}) {
|
|
|
377
391
|
lines.push(" ? { pathname: P } & RouteOptions<P>");
|
|
378
392
|
lines.push(" : never;");
|
|
379
393
|
lines.push(" type RouteUrlSegment<S extends string> = S extends `:${string}` | `[${string}]` | \"*\" ? string : S;");
|
|
394
|
+
lines.push(" type CheckedRoutePath<P extends string> = P extends `/${infer Segment}/${infer Rest}`");
|
|
395
|
+
lines.push(" ? Rest extends \"\"");
|
|
396
|
+
lines.push(" ? string extends RouteUrlSegment<Segment> ? never : P");
|
|
397
|
+
lines.push(" : P");
|
|
398
|
+
lines.push(" : P extends `/${infer Segment}`");
|
|
399
|
+
lines.push(" ? string extends RouteUrlSegment<Segment> ? never : P");
|
|
400
|
+
lines.push(" : P;");
|
|
380
401
|
lines.push(" type RouteSegmentsUrl<P extends string> = P extends `${infer Segment}/${infer Rest}`");
|
|
381
402
|
lines.push(" ? `${RouteUrlSegment<Segment>}/${RouteSegmentsUrl<Rest>}`");
|
|
382
403
|
lines.push(" : RouteUrlSegment<P>;");
|
|
@@ -386,10 +407,11 @@ function generateRouteTypes(scan, routesDir, outDir, pagesDir, options = {}) {
|
|
|
386
407
|
lines.push(" ? (Prefix extends \"\" ? \"/\" : RouteSegmentsUrl<Prefix>) | `${RouteSegmentsUrl<Prefix>}/${string}`");
|
|
387
408
|
lines.push(" : RouteSegmentsUrl<P>;");
|
|
388
409
|
lines.push(" type EncodedRoutePath = EncodedRoutePathMap[keyof EncodedRoutePathMap] & string;");
|
|
389
|
-
lines.push(" type RoutePathUrl = RoutePatternUrl<RoutePath | EncodedRoutePath
|
|
410
|
+
lines.push(" type RoutePathUrl = RoutePatternUrl<CheckedRoutePath<RoutePath | EncodedRoutePath>>;");
|
|
411
|
+
lines.push(" type BuiltRouteUrl = string & { readonly __voidRouteUrl: true };");
|
|
390
412
|
lines.push(" type TypedRoutes = RouteTypesConfig extends { typedRoutes: true } ? true : false;");
|
|
391
413
|
lines.push(" export type RouteUrl = TypedRoutes extends true");
|
|
392
|
-
lines.push(" ? RoutePathUrl | `${RoutePathUrl}${\"?\" | \"#\"}${string}`");
|
|
414
|
+
lines.push(" ? BuiltRouteUrl | RoutePathUrl | `${RoutePathUrl}${\"?\" | \"#\"}${string}`");
|
|
393
415
|
lines.push(" : string;");
|
|
394
416
|
lines.push(" export type Href = TypedRoutes extends true");
|
|
395
417
|
lines.push(" ? RouteUrl | `${\"?\" | \"#\"}${string}` | `${\"http://\" | \"https://\" | \"mailto:\" | \"tel:\"}${string}`");
|
|
@@ -576,6 +598,14 @@ function generateRouteTypes(scan, routesDir, outDir, pagesDir, options = {}) {
|
|
|
576
598
|
lines.push(` params: RouteParams<${JSON.stringify(sources[0].params)}>;`);
|
|
577
599
|
lines.push(` client: ${imports.map((source) => `ExtractInput<${source}["client"]>`).join(" & ")};`);
|
|
578
600
|
lines.push(` server: ${imports.map((source) => `ExtractOutput<${source}["server"]>`).join(" | ")};`);
|
|
601
|
+
const roomSources = sources.filter((route) => route.mode === "room");
|
|
602
|
+
if (roomSources.length > 0) {
|
|
603
|
+
const actions = roomSources.map((route) => {
|
|
604
|
+
const importPath = relative(outDir, `${routesDir}/${route.filePath}`);
|
|
605
|
+
return `NonNullable<(typeof import(${JSON.stringify(importPath)}))["default"]["actions"]>`;
|
|
606
|
+
});
|
|
607
|
+
lines.push(` actions: ${actions.join(" | ")};`);
|
|
608
|
+
}
|
|
579
609
|
lines.push(" };");
|
|
580
610
|
legacyRouteAlias(lines, "WebSocketRouteMap", pattern);
|
|
581
611
|
}
|
|
@@ -4,16 +4,20 @@ declare function interpolateRouteParams(path: string, params?: Record<string, st
|
|
|
4
4
|
/** Known page, HTTP and WebSocket route patterns. */
|
|
5
5
|
type RoutePath = keyof RoutePathMap & string;
|
|
6
6
|
type RouteUrlSegment<S extends string> = S extends `:${string}` | `[${string}]` | "*" ? string : S;
|
|
7
|
+
type CheckedRoutePath<P extends string> = P extends `/${infer Segment}/${infer Rest}` ? Rest extends "" ? string extends RouteUrlSegment<Segment> ? never : P : P : P extends `/${infer Segment}` ? string extends RouteUrlSegment<Segment> ? never : P : P;
|
|
7
8
|
type RouteSegmentsUrl<P extends string> = P extends `${infer Segment}/${infer Rest}` ? `${RouteUrlSegment<Segment>}/${RouteSegmentsUrl<Rest>}` : RouteUrlSegment<P>;
|
|
8
9
|
type RoutePatternUrl<P extends string> = P extends `${infer Prefix}/${"*" | "[...]"}/` ? `${RouteSegmentsUrl<Prefix>}/` | `${RouteSegmentsUrl<Prefix>}/${string}/` : P extends `${infer Prefix}/${"*" | "[...]"}` ? (Prefix extends "" ? "/" : RouteSegmentsUrl<Prefix>) | `${RouteSegmentsUrl<Prefix>}/${string}` : RouteSegmentsUrl<P>;
|
|
9
10
|
type EncodedRoutePath = EncodedRoutePathMap[keyof EncodedRoutePathMap] & string;
|
|
10
|
-
type RoutePathUrl = RoutePatternUrl<RoutePath | EncodedRoutePath
|
|
11
|
+
type RoutePathUrl = RoutePatternUrl<CheckedRoutePath<RoutePath | EncodedRoutePath>>;
|
|
12
|
+
type BuiltRouteUrl = string & {
|
|
13
|
+
readonly __voidRouteUrl: true;
|
|
14
|
+
};
|
|
11
15
|
/** Whether `routing.typedRoutes` is on in the generated route types. */
|
|
12
16
|
type TypedRoutes = RouteTypesConfig extends {
|
|
13
17
|
typedRoutes: true;
|
|
14
18
|
} ? true : false;
|
|
15
19
|
/** The URL of one of the app's routes. A plain string unless `routing.typedRoutes` is on. */
|
|
16
|
-
type RouteUrl$1 = TypedRoutes extends true ? RoutePathUrl | `${RoutePathUrl}${"?" | "#"}${string}` : string;
|
|
20
|
+
type RouteUrl$1 = TypedRoutes extends true ? BuiltRouteUrl | RoutePathUrl | `${RoutePathUrl}${"?" | "#"}${string}` : string;
|
|
17
21
|
/** Anything a link can point to: a route URL, a same-page query or hash, or an external URL. */
|
|
18
22
|
type Href$1 = TypedRoutes extends true ? RouteUrl$1 | `${"?" | "#"}${string}` | `${"http://" | "https://" | "mailto:" | "tel:"}${string}` : string;
|
|
19
23
|
/**
|
package/dist/routes-stub.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as RoutePath, c as RouteUrl, f as routeUrl, i as RouteOptions, l as RouteUrlInput, o as RouteQuery, r as RouteDestination, s as RouteQueryValue, t as Href } from "./route-url-
|
|
1
|
+
import { a as RoutePath, c as RouteUrl, f as routeUrl, i as RouteOptions, l as RouteUrlInput, o as RouteQuery, r as RouteDestination, s as RouteQueryValue, t as Href } from "./route-url-Di1kB8D_.mjs";
|
|
2
2
|
/** Known URL patterns and their parameter names, augmented by .void/routes.d.ts. */
|
|
3
3
|
export interface RoutePathMap {}
|
|
4
4
|
/** Page URL patterns and their parameter names, augmented by .void/routes.d.ts. */
|
|
@@ -52,11 +52,9 @@ type PageNamedActionBody<P, K> = P extends {
|
|
|
52
52
|
body: infer B;
|
|
53
53
|
} ? B : Record<string, unknown> : never : never;
|
|
54
54
|
export type ResolveActionBody<U extends string> = ParseActionUrl<U>["base"] extends keyof PageActionMap ? ParseActionUrl<U>["action"] extends never ? PageActionBody<PageActionMap[ParseActionUrl<U>["base"]]> : PageNamedActionBody<PageActionMap[ParseActionUrl<U>["base"]], ParseActionUrl<U>["action"]> : Record<string, unknown>;
|
|
55
|
-
/** Resolve params type */
|
|
56
55
|
export type ResolveActionParams<U extends string> = ParseActionUrl<U>["base"] extends keyof PageActionMap ? PageActionMap[ParseActionUrl<U>["base"]] extends {
|
|
57
56
|
params: infer P;
|
|
58
57
|
} ? P : never : never;
|
|
59
|
-
/** Has params check */
|
|
60
58
|
export type HasActionParams<U extends string> = [ResolveActionParams<U>] extends [never] ? false : ResolveActionParams<U> extends Record<string, string> ? true : false;
|
|
61
59
|
type ActionFormBaseOptions = {
|
|
62
60
|
resetOnSuccess?: boolean;
|
package/dist/routes-stub.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as routeUrl } from "./route-url-
|
|
1
|
+
export { n as routeUrl } from "./route-url-BBdkU7rb.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as mySqlMigrationLockError, o as mySqlMigrationLockName, s as readMySqlMigrationLease, t as splitMySqlMigrationSql } from "./mysql-
|
|
1
|
+
import { a as mySqlMigrationLockError, o as mySqlMigrationLockName, s as readMySqlMigrationLease, t as splitMySqlMigrationSql } from "./mysql-sql-SlpS6OMg.mjs";
|
|
2
2
|
import { t as collectMigrations } from "./collect-C6Blu9yw.mjs";
|
|
3
3
|
// src/migrations/runner-mysql.ts
|
|
4
4
|
async function readMySqlAppliedMigrations(client) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as applyMySqlMigrations, n as applyPendingMySqlMigrations, r as getMySqlAppliedMigrations, i as readMySqlAppliedMigrations, a as runMySqlMigrations, o as toMySqlClient, s as withMySqlMigrationLock, c as withMySqlMigrationLockAt } from "./runner-mysql-
|
|
1
|
+
export { t as applyMySqlMigrations, n as applyPendingMySqlMigrations, r as getMySqlAppliedMigrations, i as readMySqlAppliedMigrations, a as runMySqlMigrations, o as toMySqlClient, s as withMySqlMigrationLock, c as withMySqlMigrationLockAt } from "./runner-mysql-CJ-HyqxV.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { a as getRawRuntimeEnv } from "
|
|
4
|
-
import { r as limitFromResponse, t as UsageLimit } from "
|
|
5
|
-
// src/runtime/ai
|
|
1
|
+
import { n as bytesToBase64 } from "../../base64-DwTR12ej.mjs";
|
|
2
|
+
import { t as cfAccessHeaders } from "../../cf-access-pejlJmuy.mjs";
|
|
3
|
+
import { a as getRawRuntimeEnv } from "../../raw-7pQirZpQ.mjs";
|
|
4
|
+
import { r as limitFromResponse, t as UsageLimit } from "../../limits-BCoQLpn3.mjs";
|
|
5
|
+
// src/runtime/ai/types.ts
|
|
6
6
|
/** Maps provider prefix to expected env var name for the API key */
|
|
7
7
|
const PROVIDER_KEY_MAP = {
|
|
8
8
|
openai: "OPENAI_API_KEY",
|
|
@@ -26,7 +26,7 @@ const PROVIDER_KEY_MAP = {
|
|
|
26
26
|
ideogram: "IDEOGRAM_API_KEY",
|
|
27
27
|
parallel: "PARALLEL_API_KEY"
|
|
28
28
|
};
|
|
29
|
-
// src/runtime/ai.ts
|
|
29
|
+
// src/runtime/ai/index.ts
|
|
30
30
|
const VOID_FILE_MARKER = "__voidFile";
|
|
31
31
|
const PROVIDER_AUTH_DEFAULTS = {
|
|
32
32
|
"google-ai-studio": {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as VoidAuthRuntimeApi } from "
|
|
1
|
+
import { n as VoidAuthRuntimeApi } from "../../better-auth-shared-BqsMzU14.mjs";
|
|
2
2
|
export declare const resolveVoidAuthOptions: VoidAuthRuntimeApi["resolveVoidAuthOptions"];
|
|
3
3
|
export declare const resolveVoidAuthState: VoidAuthRuntimeApi["resolveVoidAuthState"];
|
|
4
4
|
export declare const runVoidAuthMiddleware: VoidAuthRuntimeApi["runVoidAuthMiddleware"];
|