void 1.7.0 → 1.9.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-BfkJ_1PC.mjs → account-cmd-BEMOdwtl.mjs} +5 -5
- package/dist/{application-analysis-OV0CBJ80.mjs → application-analysis-3VVsflWZ.mjs} +28 -8
- package/dist/{application-routing-QpyC5G8z.mjs → application-routing-CJRlXCc2.mjs} +1 -1
- package/dist/{auth-CZrthGxs.d.mts → auth-CV9kXHKe.d.mts} +4 -2
- package/dist/{auth-DyWp-fSo.mjs → auth-aMuFOZeI.mjs} +8 -2
- package/dist/{auth-link-CW1Zh6FM.mjs → auth-link-B1IynRW5.mjs} +5 -5
- package/dist/{auth-router-CNBKnEZi.mjs → auth-router-DVaWJdRB.mjs} +3 -3
- package/dist/{better-auth-shared-CdVyCUou.mjs → better-auth-shared-C7LHvF4L.mjs} +1 -1
- package/dist/{better-auth-shared-C-0uZg8-.d.mts → better-auth-shared-ajs3LNrY.d.mts} +2 -2
- package/dist/boundary-plans-CRmWH68v.d.mts +25 -0
- package/dist/{build-cmd-C9qOKW9W.mjs → build-cmd-Dq8tdqQG.mjs} +4 -4
- package/dist/{cache-DVBBbWQL.mjs → cache-DGMnskX7.mjs} +4 -4
- package/dist/{cancel-deploy-COavnjud.mjs → cancel-deploy-96S5hD1E.mjs} +3 -3
- package/dist/cli/cli.mjs +1 -1
- package/dist/cli/cloudflare-operation-process.mjs +92 -19
- package/dist/cli/env-schema-probe.d.mts +1 -1
- package/dist/cli/env-schema-probe.mjs +3 -3
- package/dist/{cli-main-DFteHrJI.mjs → cli-main-CQRLxZAu.mjs} +32 -32
- package/dist/client-66c0RLDM.mjs +1 -0
- package/dist/{client-BEZmTP6p.mjs → client-D6w5x7hM.mjs} +7 -7
- package/dist/{cloudflare-auth-DGIivpTb.mjs → cloudflare-auth-pNvmT6kL.mjs} +1 -1
- package/dist/{cloudflare-cmd-DJaxC-bc.mjs → cloudflare-cmd-BuuHUM4z.mjs} +5 -5
- package/dist/{cloudflare-config-DtOGAbeB.mjs → cloudflare-config-PxbinLLE.mjs} +2 -2
- package/dist/{cloudflare-connect-BjpWmglw.mjs → cloudflare-connect-D1QOosLd.mjs} +3 -3
- package/dist/{cloudflare-operations-k7wYUv56.mjs → cloudflare-operations-G5AObYzF.mjs} +6 -6
- package/dist/{cloudflare-operations-CZkjFrzH.mjs → cloudflare-operations-I4t3mt4R.mjs} +1 -1
- package/dist/{cloudflare-process-BcPvlMFd.mjs → cloudflare-process-wcnaQ5JG.mjs} +2 -2
- package/dist/{config-wo2EaH0X.mjs → config-C1DPf8EK.mjs} +1 -1
- package/dist/{config-CTlUaXWZ.d.mts → config-CCWVY7DY.d.mts} +1 -1
- package/dist/{config-5oSQhZNj.mjs → config-CzFdJYNA.mjs} +1 -1
- package/dist/{config-DcqUBGCb.mjs → config-DlWQ_hIJ.mjs} +3 -3
- package/dist/{config-eeDzKBS9.mjs → config-Do7gJI3T.mjs} +2 -2
- package/dist/config-entry.d.mts +1 -1
- package/dist/{connect-j1F1C_rW.mjs → connect-4uImOwut.mjs} +6 -6
- package/dist/{create-project-CE3jOmd5.mjs → create-project-BaUzZnLZ.mjs} +4 -4
- package/dist/{create-project-DZH3aYGQ.mjs → create-project-CQMyzTvK.mjs} +1 -1
- package/dist/{db-DyLzzxvM.mjs → db-DEpDeDsi.mjs} +22 -22
- package/dist/{db-types-DdHHUVPy.mjs → db-types-BpPYAx0B.mjs} +4 -2
- package/dist/{delete-Dey6YoMA.mjs → delete-BVD2kI82.mjs} +4 -4
- package/dist/deploy-Dr_Qamzw.mjs +2 -0
- package/dist/{deploy-Ccw2D2lw.mjs → deploy-Dyeo5soA.mjs} +40 -81
- package/dist/{deploy-managed-static-BBVtpuGv.mjs → deploy-managed-static-Kn73R83A.mjs} +22 -22
- package/dist/{deploy-transport-Dt0IvSVW.mjs → deploy-transport-BpKBs_KR.mjs} +3 -3
- package/dist/deploy.mjs +6 -6
- package/dist/discover-Diq0l6TZ.mjs +1 -0
- package/dist/{discover-CVFCWU7W.mjs → discover-Vd18lHsj.mjs} +1 -1
- package/dist/{dispatch-pYaww76u.mjs → dispatch-BBfb519j.mjs} +8 -8
- package/dist/{dist-DeTdhbZc.mjs → dist-Cp4b1_T9.mjs} +1 -1
- package/dist/{dist-BQdgCVQF.mjs → dist-STQXl8ck.mjs} +86 -138
- package/dist/{domain-Dh3mG8Vs.mjs → domain-BTIdyUVk.mjs} +5 -5
- package/dist/{drizzle-C8MPqt5m.mjs → drizzle-D4V_06-B.mjs} +1 -1
- package/dist/{drizzle-lFdzSEa9.mjs → drizzle-DBSpPpU1.mjs} +34 -8
- package/dist/{email-DKyMjOYM.mjs → email-DvrS-I0U.mjs} +10 -10
- package/dist/{email-cloudflare-CTt2n_W2.mjs → email-cloudflare-DAGpgzY1.mjs} +16 -11
- package/dist/{entry-Bw-G1VVx.mjs → entry-DMgR7XOf.mjs} +2 -2
- package/dist/{env-DkZzh_Dd.mjs → env-D7vORwpn.mjs} +6 -6
- package/dist/{env-CuzZZyjB.mjs → env-UqS-21xi.mjs} +8 -1
- package/dist/{env-public-CeNeO_AT.d.mts → env-public-DtJL_hZq.d.mts} +8 -7
- package/dist/{env-types-Dz9qkiOn.mjs → env-types-WEZw5D-r.mjs} +1 -1
- package/dist/{env-validation-C8NL3lEH.mjs → env-validation-DKDcpxbt.mjs} +1 -1
- package/dist/{env-validation-1snjKtDX.mjs → env-validation-DeYNRp1d.mjs} +5 -5
- package/dist/{gen-BZmFOGDQ.mjs → gen-DimkGNve.mjs} +6 -6
- package/dist/gen-DmEeVEs4.mjs +1 -0
- package/dist/{github-cmd-7Oky9qgH.mjs → github-cmd-D-zs6VQr.mjs} +4 -4
- package/dist/{handler-DjqciiDc.d.mts → handler-6fzr_ikp.d.mts} +5 -4
- package/dist/{head-MeF_5M_3.d.mts → head-CVO92KEx.d.mts} +14 -3
- package/dist/{head-5XPcnG-j.mjs → head-CWJhfUwV.mjs} +62 -3
- package/dist/{headers-CimYIfQI.mjs → headers-Q0kZDpk8.mjs} +11 -2
- package/dist/{help-CNuUb47C.mjs → help-Cgdcd-SG.mjs} +6 -6
- package/dist/help-Cp3K5m1w.mjs +1 -0
- package/dist/index.d.mts +5 -5
- package/dist/index.mjs +257 -188
- package/dist/{info-DwB8IWIx.mjs → info-BbxQ34kk.mjs} +4 -4
- package/dist/{init-CUGSmcED.mjs → init-zyRj3QRw.mjs} +19 -20
- package/dist/{link-BlRTGHan.mjs → link-DAFXuIER.mjs} +5 -5
- package/dist/{list-iCg7d5Pa.mjs → list-BTIcC3W9.mjs} +5 -5
- package/dist/{live-zKGbRT4h.d.mts → live-DBybyDt0.d.mts} +2 -2
- package/dist/{live-CYJ4KGoR.mjs → live-Dw7NF1t2.mjs} +1 -1
- package/dist/load-user-env-ztmIyiLx.mjs +34 -0
- package/dist/{local-d1-CFcH9Bx3.mjs → local-d1-BnVb7Fem.mjs} +1 -1
- package/dist/login-DBs8JuSl.mjs +1 -0
- package/dist/{login-TA51e5Fw.mjs → login-DOE-MkeK.mjs} +4 -4
- package/dist/{logs-BlyAxlvx.mjs → logs-CUsjihc3.mjs} +4 -4
- package/dist/migrate-BYhoIK9R.mjs +1 -0
- package/dist/{migrate-BH6LCr00.mjs → migrate-DtoKdGas.mjs} +6 -6
- package/dist/nitro.mjs +3 -3
- package/dist/{node-B0otYjDv.mjs → node-D9dPyUr0.mjs} +4 -4
- package/dist/operator-ai-logging-DFTEp81Z.mjs +121 -0
- package/dist/{operator-args-DuKAQ3Ks.mjs → operator-args-BCCohcz3.mjs} +10 -1
- package/dist/{operator-cmd-CoHlJjcT.mjs → operator-cmd-CQOQrUiO.mjs} +27 -7
- package/dist/operator-cmd-xCACDtT1.mjs +1 -0
- package/dist/output-BsdnNpxa.mjs +1 -0
- package/dist/{output-CXJTIAtF.mjs → output-DNVILSz2.mjs} +1 -1
- package/dist/pages/client.d.mts +28 -3
- package/dist/pages/client.mjs +146 -27
- package/dist/pages/head.d.mts +2 -2
- package/dist/pages/head.mjs +1 -1
- package/dist/pages/index.d.mts +5 -4
- package/dist/pages/index.mjs +5 -5
- package/dist/pages/islands-plugin.d.mts +6 -2
- package/dist/pages/islands-plugin.mjs +18 -3
- package/dist/pages/protocol.d.mts +2 -2
- package/dist/pages/protocol.mjs +1 -1
- package/dist/platform-args-DSi4_M8n.mjs +1 -0
- package/dist/{platform-args-DfT8yQBF.mjs → platform-args-DtpHS_75.mjs} +1 -1
- package/dist/{platform-auth-config-MO0VdVs9.mjs → platform-auth-config-fLwIS5VG.mjs} +6 -6
- package/dist/{platform-auth-protection-Dv208eyL.mjs → platform-auth-protection-BTRI_YwD.mjs} +4 -4
- package/dist/{platform-auth-recovery-DvAQ674F.mjs → platform-auth-recovery-DPK2Mvmo.mjs} +4 -4
- package/dist/{platform-cmd-BpUA19r_.mjs → platform-cmd-BLy5uCa-.mjs} +1 -1
- package/dist/{platform-cmd-dlSxrcQ7.mjs → platform-cmd-HS_FSthn.mjs} +7 -7
- package/dist/{platform-domain-DSO4eUEw.mjs → platform-domain-CHpcq_qg.mjs} +4 -4
- package/dist/{platform-lifecycle-CfcFygHb.mjs → platform-lifecycle-B6LUBwjS.mjs} +1 -1
- package/dist/{platform-lifecycle-BSvsyB_x.mjs → platform-lifecycle-D2RS7DE0.mjs} +239 -29
- package/dist/{platform-management-BMdyt667.mjs → platform-management-C-T0ch4y.mjs} +1 -1
- package/dist/{platform-management-CrP1XhVd.mjs → platform-management-d3ETv3Dw.mjs} +15 -15
- package/dist/{platform-plans-config-CgDiwflR.mjs → platform-plans-config-B7yJQKf7.mjs} +116 -32
- package/dist/{platform-recovery-CHWwXVZ6.mjs → platform-recovery-DS5CAsly.mjs} +2 -2
- package/dist/{platform-setup-BTQVbnTC.mjs → platform-setup-Casiffqj.mjs} +2 -2
- package/dist/{plugin-inference-g66Q1Mx9.mjs → plugin-inference-DZHmVe1f.mjs} +4 -4
- package/dist/{prepare-DXduEwQp.mjs → prepare-AVM4Hj3T.mjs} +10 -10
- package/dist/prepare-BSXKz6m8.mjs +1 -0
- package/dist/{prepare-DJYHjpzq.mjs → prepare-DMk8NAO-.mjs} +3 -3
- package/dist/{prerender-render-BN9Lmebs.mjs → prerender-render-BAdYhivW.mjs} +15 -2
- package/dist/prerender-render.d.mts +2 -0
- package/dist/prerender-render.mjs +1 -1
- package/dist/{project-cmd-Dfb1Sg8w.mjs → project-cmd-TQKAOTMV.mjs} +17 -17
- package/dist/{project-paths-G0yut6Zz.mjs → project-paths-CUhCPMpK.mjs} +33 -2
- package/dist/{project-team-BO2dyc7S.mjs → project-team-B1OKeb-T.mjs} +4 -4
- package/dist/{project-token-ByO2mEI2.mjs → project-token-RW_wpmN-.mjs} +4 -4
- package/dist/{project-tsconfig-nhnTWO_Y.mjs → project-tsconfig-MyRJgufB.mjs} +1 -1
- package/dist/{project-zero-trust-CoQfwRBR.mjs → project-zero-trust-TNc66p0_.mjs} +4 -4
- package/dist/{protocol-yxdHxFLN.mjs → protocol-IPSWHolJ.mjs} +233 -76
- package/dist/{protocol-xZMvWsrg.d.mts → protocol-YS3tbxWE.d.mts} +10 -3
- package/dist/{provision-CMH4-8ri.mjs → provision-BLdkpFT4.mjs} +1 -1
- package/dist/{provision-D5q-ptD3.mjs → provision-bgQTi5QZ.mjs} +2 -2
- package/dist/redirect-Dqb4fEc5.mjs +80 -0
- package/dist/{requests-CPOiDkjh.mjs → requests-Cj15-yrI.mjs} +3 -3
- package/dist/resolve-project-C5wC-Hoi.mjs +1 -0
- package/dist/{resolve-project-ClvLMTI9.mjs → resolve-project-Da3OgCU1.mjs} +1 -1
- package/dist/{rollback-BfCs2la4.mjs → rollback-CYnkng7B.mjs} +4 -4
- package/dist/{route-types-Cl3x0Q8B.mjs → route-types-C6eAOmOj.mjs} +4 -3
- package/dist/routes-stub.d.mts +4 -3
- package/dist/runtime/auth.d.mts +1 -1
- package/dist/runtime/auth.mjs +1 -1
- package/dist/runtime/better-auth-mysql.d.mts +1 -1
- package/dist/runtime/better-auth-mysql.mjs +1 -1
- package/dist/runtime/better-auth-pg.d.mts +1 -1
- package/dist/runtime/better-auth-pg.mjs +1 -1
- package/dist/runtime/better-auth.d.mts +1 -1
- package/dist/runtime/better-auth.mjs +1 -1
- package/dist/runtime/client-react.d.mts +1 -1
- package/dist/runtime/client-solid.d.mts +1 -1
- package/dist/runtime/client-svelte.d.mts +1 -1
- package/dist/runtime/client-vue.d.mts +1 -1
- package/dist/runtime/client.d.mts +1 -1
- package/dist/runtime/db.d.mts +6 -3
- package/dist/runtime/db.mjs +2 -2
- package/dist/runtime/env-public.d.mts +1 -1
- package/dist/runtime/env-public.mjs +53 -39
- package/dist/runtime/handler.d.mts +1 -1
- package/dist/runtime/live-client.d.mts +1 -1
- package/dist/runtime/live-server.mjs +1 -1
- package/dist/runtime/live.d.mts +1 -1
- package/dist/runtime/live.mjs +1 -1
- package/dist/runtime/routing.d.mts +8 -3
- package/dist/runtime/routing.mjs +164 -23
- package/dist/runtime/validator.d.mts +1 -1
- package/dist/runtime/ws-server.d.mts +3 -3
- package/dist/runtime/ws-server.mjs +1 -1
- package/dist/runtime/ws.d.mts +1 -1
- package/dist/{scan-L8OSv1f7.mjs → scan-4YOxDaw2.mjs} +230 -29
- package/dist/{secret-CuI6LTpD.mjs → secret-BSf7dgg_.mjs} +6 -6
- package/dist/{skills-BBO9wMjB.mjs → skills-CoBB9_Ao.mjs} +1 -1
- package/dist/{ast-bindings-BkivMJIo.mjs → static-exports-DFkzL-NX.mjs} +96 -33
- package/dist/{subcommand-prompt-BZMnCA8T.mjs → subcommand-prompt-0yIARXf2.mjs} +2 -2
- package/dist/{types-agfx0alu.d.mts → types-IPut3_Yx.d.mts} +15 -1
- package/dist/url-DaehRGKR.mjs +106 -0
- package/dist/{version-metadata-eUd6Ar_U.mjs → version-metadata-CeftH0fQ.mjs} +1 -1
- package/dist/{wrangler-k40T7XTQ.mjs → wrangler-B1gkT_wC.mjs} +3 -3
- package/dist/wrangler-fNGvPTlO.mjs +1 -0
- package/dist/{wrapper-BGsi_uHs.mjs → wrapper-xJ4LP5A7.mjs} +3 -3
- package/dist/{ws-DB8Feytg.d.mts → ws-C2zy0QBf.d.mts} +2 -2
- package/docs/guide/ai.md +2 -1
- package/docs/guide/app-types.md +1 -0
- package/docs/guide/auth.md +23 -27
- package/docs/guide/database/d1.md +18 -1
- package/docs/guide/database/mysql.md +1 -0
- package/docs/guide/database/postgresql.md +1 -0
- package/docs/guide/database.md +30 -27
- package/docs/guide/deployment.md +3 -2
- package/docs/guide/durable-state.md +1 -0
- package/docs/guide/edge/headers.md +4 -3
- package/docs/guide/edge/prerendering.md +6 -5
- package/docs/guide/edge/redirects.md +2 -1
- package/docs/guide/edge/revalidation.md +6 -1
- package/docs/guide/edge/rewrites.md +2 -1
- package/docs/guide/edge/static-assets.md +5 -0
- package/docs/guide/email/domains.md +1 -0
- package/docs/guide/email/receiving.md +3 -2
- package/docs/guide/email/sending.md +7 -4
- package/docs/guide/email.md +1 -0
- package/docs/guide/env-vars.md +4 -0
- package/docs/guide/index.md +1 -0
- package/docs/guide/jobs.md +1 -0
- package/docs/guide/kv.md +1 -0
- package/docs/guide/live.md +2 -1
- package/docs/guide/pages-routing/actions-and-forms.md +58 -22
- package/docs/guide/pages-routing/errors.md +109 -0
- package/docs/guide/pages-routing/head.md +45 -1
- package/docs/guide/pages-routing/islands.md +4 -1
- package/docs/guide/pages-routing/layouts.md +4 -1
- package/docs/guide/pages-routing/loaders.md +4 -1
- package/docs/guide/pages-routing/markdown.md +6 -4
- package/docs/guide/pages-routing/overview.md +16 -20
- package/docs/guide/pages-routing/view-transitions.md +1 -0
- package/docs/guide/platform/administration/access.md +1 -0
- package/docs/guide/platform/administration/connected-apps.md +13 -2
- package/docs/guide/platform/administration/email.md +1 -0
- package/docs/guide/platform/administration/operations.md +1 -0
- package/docs/guide/platform/administration/plans.md +35 -1
- package/docs/guide/platform/administration/projects.md +16 -1
- package/docs/guide/platform/administration/zero-trust.md +1 -0
- package/docs/guide/platform/development/local.md +1 -0
- package/docs/guide/platform/development/runtime.md +1 -0
- package/docs/guide/platform/development/schema-ci.md +1 -0
- package/docs/guide/platform/installation/ci.md +1 -0
- package/docs/guide/platform/installation/credentials.md +12 -9
- package/docs/guide/platform/installation/domains.md +1 -0
- package/docs/guide/platform/installation/first-deployment.md +1 -0
- package/docs/guide/platform/installation/maintenance.md +8 -1
- package/docs/guide/platform/installation/prerequisites.md +1 -0
- package/docs/guide/platform/installation/setup.md +9 -7
- package/docs/guide/platform/installation/uninstall.md +1 -0
- package/docs/guide/platform-administration.md +1 -0
- package/docs/guide/platform-development.md +1 -0
- package/docs/guide/project-collaboration.md +1 -0
- package/docs/guide/queues.md +3 -0
- package/docs/guide/quickstart.md +3 -2
- package/docs/guide/remote-dev.md +1 -0
- package/docs/guide/sandboxes.md +1 -0
- package/docs/guide/self-hosted-platform.md +1 -0
- package/docs/guide/server-routing.md +3 -2
- package/docs/guide/sse.md +2 -1
- package/docs/guide/ssg.md +18 -6
- package/docs/guide/ssr.md +1 -0
- package/docs/guide/storage.md +2 -1
- package/docs/guide/testing.md +64 -0
- package/docs/guide/type-safety.md +24 -21
- package/docs/guide/typed-fetch.md +1 -0
- package/docs/guide/websockets.md +1 -0
- package/docs/index.md +1 -0
- package/docs/integrations/agents.md +1 -0
- package/docs/integrations/cloudflare.md +7 -2
- package/docs/integrations/frameworks/analog.md +1 -0
- package/docs/integrations/frameworks/astro.md +1 -0
- package/docs/integrations/frameworks/nuxt.md +2 -1
- package/docs/integrations/frameworks/overview.md +1 -0
- package/docs/integrations/frameworks/react-router.md +1 -0
- package/docs/integrations/frameworks/sveltekit.md +1 -0
- package/docs/integrations/frameworks/tanstack-start.md +1 -0
- package/docs/integrations/hono.md +22 -0
- package/docs/integrations/nodejs-bun-deno.md +5 -4
- package/docs/reference/api/auth.md +23 -4
- package/docs/reference/api/client.md +1 -0
- package/docs/reference/api/database.md +24 -1
- package/docs/reference/api/deploy.md +4 -0
- package/docs/reference/api/durable.md +1 -0
- package/docs/reference/api/env.md +1 -0
- package/docs/reference/api/handlers.md +1 -0
- package/docs/reference/api/pages.md +38 -16
- package/docs/reference/api/plugin.md +1 -0
- package/docs/reference/api/resources.md +2 -1
- package/docs/reference/api/rewrites.md +9 -4
- package/docs/reference/api/types.md +1 -0
- package/docs/reference/api.md +2 -1
- package/docs/reference/cli/auth.md +1 -0
- package/docs/reference/cli/database.md +1 -0
- package/docs/reference/cli/deploy.md +5 -2
- package/docs/reference/cli/domains.md +1 -0
- package/docs/reference/cli/email.md +1 -0
- package/docs/reference/cli/generate.md +1 -0
- package/docs/reference/cli/github.md +1 -0
- package/docs/reference/cli/platform-config.md +4 -3
- package/docs/reference/cli/platform-email.md +1 -0
- package/docs/reference/cli/platform-installation.md +1 -0
- package/docs/reference/cli/platform-operations.md +1 -0
- package/docs/reference/cli/platform-users.md +71 -1
- package/docs/reference/cli/platform-zero-trust.md +1 -0
- package/docs/reference/cli/platform.md +1 -0
- package/docs/reference/cli/project.md +1 -0
- package/docs/reference/cli/secrets.md +1 -0
- package/docs/reference/cli/setup.md +1 -0
- package/docs/reference/cli.md +3 -0
- package/docs/reference/config.md +8 -3
- package/docs/reference/resource-inference.md +1 -0
- package/docs/reference/structure.md +1 -0
- package/package.json +25 -25
- package/skills/void/SKILL.md +3 -1
- package/dist/action-key-XtKKbbsi.mjs +0 -25
- package/dist/client-BAxLpSKv.mjs +0 -1
- package/dist/deploy-DEZkUS77.mjs +0 -2
- package/dist/discover-1DJD4YXD.mjs +0 -1
- package/dist/gen-C6iknRdI.mjs +0 -1
- package/dist/help-C_cqTByy.mjs +0 -1
- package/dist/load-user-env-CSwdofj0.mjs +0 -48
- package/dist/login-C4q1S-5b.mjs +0 -1
- package/dist/migrate-CVBsSFhC.mjs +0 -1
- package/dist/operator-cmd-DnaCnCSP.mjs +0 -1
- package/dist/output-CNsMDEd2.mjs +0 -1
- package/dist/platform-args-B7-wQ0_B.mjs +0 -1
- package/dist/prepare-Bx4a8cb1.mjs +0 -1
- package/dist/resolve-project-BALVa9q0.mjs +0 -1
- package/dist/url-CuoEn0o3.mjs +0 -43
- package/dist/wrangler-R3kMdJfw.mjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as VoidAuthRuntimeApi } from "../better-auth-shared-
|
|
1
|
+
import { n as VoidAuthRuntimeApi } from "../better-auth-shared-ajs3LNrY.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"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as applySqliteAuthMigrations } from "../auth-migrations-DDeifS3v.mjs";
|
|
2
|
-
import { t as createVoidAuthRuntime } from "../better-auth-shared-
|
|
2
|
+
import { t as createVoidAuthRuntime } from "../better-auth-shared-C7LHvF4L.mjs";
|
|
3
3
|
// src/runtime/better-auth.ts
|
|
4
4
|
async function applyMigrations(env, migrationSchema) {
|
|
5
5
|
const database = env.DB;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as FetchError, s as fetch } from "../fetch-CbI6lNnk.mjs";
|
|
2
2
|
import { t as fetchStream } from "../fetch-stream-DoED9atq.mjs";
|
|
3
3
|
import { n as createAuthClient, t as auth } from "../auth-client-react-DvQLe5Zb.mjs";
|
|
4
|
-
import { i as AuthUser, n as AuthSession, r as AuthState } from "../auth-
|
|
4
|
+
import { i as AuthUser, n as AuthSession, r as AuthState } from "../auth-CV9kXHKe.mjs";
|
|
5
5
|
export { type AuthSession, type AuthState, type AuthUser, FetchError, FetchError as StreamError, auth, createAuthClient, fetch, fetchStream };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as FetchError, s as fetch } from "../fetch-CbI6lNnk.mjs";
|
|
2
2
|
import { t as fetchStream } from "../fetch-stream-DoED9atq.mjs";
|
|
3
3
|
import { n as createAuthClient, t as auth } from "../auth-client-solid-P9pEtKGp.mjs";
|
|
4
|
-
import { i as AuthUser, n as AuthSession, r as AuthState } from "../auth-
|
|
4
|
+
import { i as AuthUser, n as AuthSession, r as AuthState } from "../auth-CV9kXHKe.mjs";
|
|
5
5
|
export { type AuthSession, type AuthState, type AuthUser, FetchError, FetchError as StreamError, auth, createAuthClient, fetch, fetchStream };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as FetchError, s as fetch } from "../fetch-CbI6lNnk.mjs";
|
|
2
2
|
import { t as fetchStream } from "../fetch-stream-DoED9atq.mjs";
|
|
3
3
|
import { n as createAuthClient, t as auth } from "../auth-client-svelte-B5j8irT6.mjs";
|
|
4
|
-
import { i as AuthUser, n as AuthSession, r as AuthState } from "../auth-
|
|
4
|
+
import { i as AuthUser, n as AuthSession, r as AuthState } from "../auth-CV9kXHKe.mjs";
|
|
5
5
|
export { type AuthSession, type AuthState, type AuthUser, FetchError, FetchError as StreamError, auth, createAuthClient, fetch, fetchStream };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as FetchError, s as fetch } from "../fetch-CbI6lNnk.mjs";
|
|
2
2
|
import { t as fetchStream } from "../fetch-stream-DoED9atq.mjs";
|
|
3
3
|
import { n as createAuthClient, t as auth } from "../auth-client-vue-BEiAfavk.mjs";
|
|
4
|
-
import { i as AuthUser, n as AuthSession, r as AuthState } from "../auth-
|
|
4
|
+
import { i as AuthUser, n as AuthSession, r as AuthState } from "../auth-CV9kXHKe.mjs";
|
|
5
5
|
export { type AuthSession, type AuthState, type AuthUser, FetchError, FetchError as StreamError, auth, createAuthClient, fetch, fetchStream };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as FetchError, s as fetch } from "../fetch-CbI6lNnk.mjs";
|
|
2
2
|
import { t as fetchStream } from "../fetch-stream-DoED9atq.mjs";
|
|
3
3
|
import { n as createAuthClient, t as auth } from "../auth-client-6-Ft9i9T.mjs";
|
|
4
|
-
import { i as AuthUser, n as AuthSession, r as AuthState } from "../auth-
|
|
4
|
+
import { i as AuthUser, n as AuthSession, r as AuthState } from "../auth-CV9kXHKe.mjs";
|
|
5
5
|
export { type AuthSession, type AuthState, type AuthUser, FetchError, FetchError as StreamError, auth, createAuthClient, fetch, fetchStream };
|
package/dist/runtime/db.d.mts
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { DrizzleD1Database, DrizzleD1Database as DrizzleD1Database$1 } from "drizzle-orm/d1";
|
|
2
|
-
import { and, asc, avg, between, count, desc, eq, exists, gt, gte, ilike, inArray, isNotNull, isNull, like, lt, lte, max, min, ne, not, notBetween, notExists, notInArray, notLike, or, sql, sum } from "drizzle-orm";
|
|
2
|
+
import { AnyColumn, SQL, SQLWrapper, and, asc, avg, between, count, desc, eq, exists, gt, gte, ilike, inArray, isNotNull, isNull, like, lt, lte, max, min, ne, not, notBetween, notExists, notInArray, notLike, or, sql, sum } from "drizzle-orm";
|
|
3
|
+
import { BatchItem } from "drizzle-orm/batch";
|
|
3
4
|
/**
|
|
4
5
|
* Create a Drizzle D1 instance from a custom D1 binding.
|
|
5
6
|
* Use this when you have multiple D1 databases or need a non-default binding.
|
|
6
7
|
*/
|
|
7
|
-
export declare function createDb(d1: D1Database
|
|
8
|
+
export declare function createDb(d1: D1Database, options?: {
|
|
9
|
+
session?: D1SessionConstraint;
|
|
10
|
+
}): DrizzleD1Database$1;
|
|
8
11
|
/**
|
|
9
12
|
* Default Drizzle D1 instance — resolves the `DB` binding from the runtime
|
|
10
13
|
* environment. When the Void plugin is active, this is replaced with a
|
|
11
14
|
* schema-aware instance via virtual module.
|
|
12
15
|
*/
|
|
13
16
|
export declare const db: DrizzleD1Database$1;
|
|
14
|
-
export { type DrizzleD1Database, and, asc, avg, between, count, desc, eq, exists, gt, gte, ilike, inArray, isNotNull, isNull, like, lt, lte, max, min, ne, not, notBetween, notExists, notInArray, notLike, or, sql, sum };
|
|
17
|
+
export { type AnyColumn, type BatchItem, type DrizzleD1Database, type SQL, type SQLWrapper, and, asc, avg, between, count, desc, eq, exists, gt, gte, ilike, inArray, isNotNull, isNull, like, lt, lte, max, min, ne, not, notBetween, notExists, notInArray, notLike, or, sql, sum };
|
package/dist/runtime/db.mjs
CHANGED
|
@@ -13,8 +13,8 @@ import { and, asc, avg, between, count, desc, eq, exists, gt, gte, ilike, inArra
|
|
|
13
13
|
* Create a Drizzle D1 instance from a custom D1 binding.
|
|
14
14
|
* Use this when you have multiple D1 databases or need a non-default binding.
|
|
15
15
|
*/
|
|
16
|
-
function createDb(d1) {
|
|
17
|
-
return drizzle(d1.withSession("first-unconstrained"));
|
|
16
|
+
function createDb(d1, options) {
|
|
17
|
+
return drizzle(d1.withSession(options?.session ?? "first-unconstrained"));
|
|
18
18
|
}
|
|
19
19
|
function createPrimaryDb(d1) {
|
|
20
20
|
return drizzle(d1.withSession("first-primary"));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="@cloudflare/workers-types" />
|
|
2
2
|
import { a as number, c as url, i as json, n as boolean, o as oneOf, r as email, s as string, t as EnvSchema } from "../env-helpers-U56xuFgL.mjs";
|
|
3
|
-
import { a as _getSchemaDefaults, c as defineEnv, i as _getRegisteredSchema, l as env, n as EnvValidationReport, o as _hasRegisteredSchema, r as ValidatedEnv, s as _validateEnvOnce, t as EnvValidationError, u as validateAllEnv } from "../env-public-
|
|
3
|
+
import { a as _getSchemaDefaults, c as defineEnv, i as _getRegisteredSchema, l as env, n as EnvValidationReport, o as _hasRegisteredSchema, r as ValidatedEnv, s as _validateEnvOnce, t as EnvValidationError, u as validateAllEnv } from "../env-public-DtJL_hZq.mjs";
|
|
4
4
|
export { type EnvSchema, EnvValidationError, EnvValidationReport, ValidatedEnv, _getRegisteredSchema, _getSchemaDefaults, _hasRegisteredSchema, _validateEnvOnce, boolean, defineEnv, email, env, json, number, oneOf, string, url, validateAllEnv };
|
|
@@ -35,17 +35,14 @@ const ENV_REGISTRY_SYMBOL = Symbol.for("void.env.registry");
|
|
|
35
35
|
const registryGlobal = globalThis;
|
|
36
36
|
const registry = registryGlobal[ENV_REGISTRY_SYMBOL] ??= {
|
|
37
37
|
schema: null,
|
|
38
|
-
hasDefineEnvBeenCalled: false
|
|
39
|
-
bootValidation: null
|
|
38
|
+
hasDefineEnvBeenCalled: false
|
|
40
39
|
};
|
|
41
|
-
|
|
42
|
-
const cacheList = [];
|
|
40
|
+
let validatedCache = /* @__PURE__ */ new WeakMap();
|
|
43
41
|
function getValidatedCache(rawEnv) {
|
|
44
42
|
let cache = validatedCache.get(rawEnv);
|
|
45
43
|
if (!cache) {
|
|
46
44
|
cache = /* @__PURE__ */ new Map();
|
|
47
45
|
validatedCache.set(rawEnv, cache);
|
|
48
|
-
cacheList.push(cache);
|
|
49
46
|
}
|
|
50
47
|
return cache;
|
|
51
48
|
}
|
|
@@ -68,51 +65,66 @@ function getClientEnvValues() {
|
|
|
68
65
|
function defineEnv(schema) {
|
|
69
66
|
registry.schema = schema;
|
|
70
67
|
registry.hasDefineEnvBeenCalled = true;
|
|
71
|
-
|
|
72
|
-
registry.
|
|
68
|
+
validatedCache = /* @__PURE__ */ new WeakMap();
|
|
69
|
+
registry.validation = null;
|
|
73
70
|
return env;
|
|
74
71
|
}
|
|
75
72
|
/**
|
|
76
|
-
* Internal: validate the whole schema against the worker env
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
*
|
|
73
|
+
* Internal: validate the whole schema against the worker env, from the generated
|
|
74
|
+
* worker entry. Catches remote-secret values the deploy CLI cannot see. A
|
|
75
|
+
* completed validation is reused for the same raw values; an env with other
|
|
76
|
+
* values is validated again. Async validators are awaited here, and their values
|
|
77
|
+
* serve later synchronous `env.X` reads of the env this call receives, and of any
|
|
78
|
+
* other env that holds the same raw values.
|
|
80
79
|
*/
|
|
81
80
|
async function _validateEnvOnce(envValues) {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
81
|
+
const schema = registry.schema;
|
|
82
|
+
if (!schema) return;
|
|
83
|
+
const inputs = readSchemaInputs(schema, envValues);
|
|
84
|
+
const last = registry.validation;
|
|
85
|
+
let state;
|
|
86
|
+
if (last && sameInputs(last.inputs, inputs)) state = last.state;
|
|
87
|
+
else {
|
|
88
|
+
state = await validateSchema(schema, inputs);
|
|
89
|
+
if (registry.schema !== schema) return _validateEnvOnce(envValues);
|
|
90
|
+
registry.validation = {
|
|
91
|
+
inputs,
|
|
92
|
+
state
|
|
93
|
+
};
|
|
89
94
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
95
|
+
if (!state.ok) throw state.error;
|
|
96
|
+
seedValidated(envValues, state.values);
|
|
97
|
+
}
|
|
98
|
+
/** The raw value of each schema key that `readKey` would validate for this env. */
|
|
99
|
+
function readSchemaInputs(schema, envValues) {
|
|
100
|
+
const values = typeof envValues === "object" && envValues !== null ? envValues : {};
|
|
101
|
+
const clientValues = getClientEnvValues();
|
|
102
|
+
return new Map(Object.keys(schema).map((key) => [key, Object.hasOwn(clientValues, key) ? clientValues[key] : values[key]]));
|
|
103
|
+
}
|
|
104
|
+
function sameInputs(a, b) {
|
|
105
|
+
if (a.size !== b.size) return false;
|
|
106
|
+
for (const [key, value] of a) if (!b.has(key) || !Object.is(b.get(key), value)) return false;
|
|
107
|
+
return true;
|
|
108
|
+
}
|
|
109
|
+
async function validateSchema(schema, inputs) {
|
|
110
|
+
const report = await validateAllEnvWithValues(schema, Object.fromEntries(inputs));
|
|
111
|
+
if (report.valid) return {
|
|
112
|
+
ok: true,
|
|
113
|
+
values: report.values
|
|
93
114
|
};
|
|
94
|
-
const report = await validateAllEnvWithValues(registry.schema, values);
|
|
95
|
-
if (report.valid) {
|
|
96
|
-
try {
|
|
97
|
-
const cacheKey = getRawRuntimeEnv();
|
|
98
|
-
const cache = getValidatedCache(cacheKey);
|
|
99
|
-
for (const [key, value] of report.values) {
|
|
100
|
-
if (isInternalBinding(key, cacheKey)) continue;
|
|
101
|
-
if (!cache.has(key)) cache.set(key, value);
|
|
102
|
-
}
|
|
103
|
-
} catch {}
|
|
104
|
-
registry.bootValidation = { ok: true };
|
|
105
|
-
return;
|
|
106
|
-
}
|
|
107
115
|
const lines = ["Env validation failed at worker boot:"];
|
|
108
116
|
for (const key of report.missing) lines.push(` • ${key} is required but missing`);
|
|
109
117
|
for (const { key, messages } of report.invalid) lines.push(` • ${key}: ${messages.join("; ")}`);
|
|
110
|
-
|
|
111
|
-
registry.bootValidation = {
|
|
118
|
+
return {
|
|
112
119
|
ok: false,
|
|
113
|
-
error
|
|
120
|
+
error: new EnvValidationError("__init__", [{ message: lines.join("\n") }])
|
|
114
121
|
};
|
|
115
|
-
|
|
122
|
+
}
|
|
123
|
+
/** Seed the per-key cache of `rawEnv`, where `readKey` looks first, with values validated for it. */
|
|
124
|
+
function seedValidated(rawEnv, values) {
|
|
125
|
+
if (typeof rawEnv !== "object" || rawEnv === null || values.size === 0) return;
|
|
126
|
+
const cache = getValidatedCache(rawEnv);
|
|
127
|
+
for (const [key, value] of values) if (!isInternalBinding(key, rawEnv) && !cache.has(key)) cache.set(key, value);
|
|
116
128
|
}
|
|
117
129
|
/** Internal: framework-only access to the registered schema (for plugin/CLI). */
|
|
118
130
|
function _getRegisteredSchema() {
|
|
@@ -178,6 +190,8 @@ function readKey(key) {
|
|
|
178
190
|
if (!validator) return rawValue;
|
|
179
191
|
const cache = getValidatedCache(rawEnv);
|
|
180
192
|
if (cache.has(key)) return cache.get(key);
|
|
193
|
+
const latest = registry.validation;
|
|
194
|
+
if (latest?.state.ok && latest.state.values.has(key) && Object.is(latest.inputs.get(key), rawValue)) return latest.state.values.get(key);
|
|
181
195
|
const result = validator["~standard"].validate(rawValue);
|
|
182
196
|
if (result instanceof Promise) throw new Error(`env: Async validator for '${key}' cannot be resolved synchronously. Proxy property access is synchronous, so async Standard Schema validators must be pre-resolved by calling \`_validateEnvOnce(env)\` at worker boot (Void splices this into the generated entry) or by awaiting \`validateAllEnv(env)\` before the first \`env.${key}\` read. Once pre-validated, the resolved value is cached and served synchronously here.`);
|
|
183
197
|
if (result.issues) {
|
|
@@ -235,7 +249,7 @@ async function validateAllEnv(envValues) {
|
|
|
235
249
|
}
|
|
236
250
|
/**
|
|
237
251
|
* Internal: shared core that validates a schema against values and also
|
|
238
|
-
* returns the resolved values (for
|
|
252
|
+
* returns the resolved values (for sync reads).
|
|
239
253
|
*/
|
|
240
254
|
async function validateAllEnvWithValues(schema, envValues) {
|
|
241
255
|
const report = {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="@cloudflare/workers-types" />
|
|
2
|
-
import { C as defer, E as ValidatorSlots, S as InferProps, T as HandlerInput, _ as defineQueue, a as CloudEnv, b as Deferred, c as QueueRetryOptions, d as TypedQueueHandler, f as VoidAssetRewriteError, g as defineMiddleware, h as defineHead, i as CloudContextVariables, l as RenderAssetTags, m as defineHandler, n as CloudBindings, o as QueueBatch, p as basicAuth, r as CloudContext, s as QueueMessage, t as BasicAuthOptions, u as TypedHandler, v as defineRender, w as ValidationError, y as defineScheduled } from "../handler-
|
|
2
|
+
import { C as defer, E as ValidatorSlots, S as InferProps, T as HandlerInput, _ as defineQueue, a as CloudEnv, b as Deferred, c as QueueRetryOptions, d as TypedQueueHandler, f as VoidAssetRewriteError, g as defineMiddleware, h as defineHead, i as CloudContextVariables, l as RenderAssetTags, m as defineHandler, n as CloudBindings, o as QueueBatch, p as basicAuth, r as CloudContext, s as QueueMessage, t as BasicAuthOptions, u as TypedHandler, v as defineRender, w as ValidationError, y as defineScheduled } from "../handler-6fzr_ikp.mjs";
|
|
3
3
|
export { BasicAuthOptions, CloudBindings, CloudContext, CloudContextVariables, CloudEnv, type Deferred, type HandlerInput, type InferProps, QueueBatch, QueueMessage, QueueRetryOptions, RenderAssetTags, TypedHandler, TypedQueueHandler, ValidationError, type ValidatorSlots, VoidAssetRewriteError, basicAuth, defer, defineHandler, defineHead, defineMiddleware, defineQueue, defineRender, defineScheduled };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as connectionInstanceName, c as topicInstanceName, o as internalUrl, s as topicDigest, t as __getLiveBindingName } from "../live-
|
|
1
|
+
import { a as connectionInstanceName, c as topicInstanceName, o as internalUrl, s as topicDigest, t as __getLiveBindingName } from "../live-Dw7NF1t2.mjs";
|
|
2
2
|
import { n as eventStream } from "../sse-CxR30yMF.mjs";
|
|
3
3
|
// src/runtime/live-server.ts
|
|
4
4
|
const GENERATION_KEY = "connection:generation";
|
package/dist/runtime/live.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="@cloudflare/workers-types" />
|
|
2
|
-
import { _ as __getLiveBindingName, a as LiveControlErrorCode, b as defineLiveStream, c as LiveControlOptions, d as LiveHookContext, f as LiveLimits, g as LiveSubscribeHookContext, h as LiveStreamOptions, i as LiveControlError, l as LiveControlRequest, m as LiveStream, n as LiveConnectHookContext, o as LiveControlOperation, p as LivePublishOptions, r as LiveConnectOptions, s as LiveControlOperationResult, t as LiveClientEvent, u as LiveControlResponse, v as __setLiveBindingName, y as __setLiveDev } from "../live-
|
|
2
|
+
import { _ as __getLiveBindingName, a as LiveControlErrorCode, b as defineLiveStream, c as LiveControlOptions, d as LiveHookContext, f as LiveLimits, g as LiveSubscribeHookContext, h as LiveStreamOptions, i as LiveControlError, l as LiveControlRequest, m as LiveStream, n as LiveConnectHookContext, o as LiveControlOperation, p as LivePublishOptions, r as LiveConnectOptions, s as LiveControlOperationResult, t as LiveClientEvent, u as LiveControlResponse, v as __setLiveBindingName, y as __setLiveDev } from "../live-DBybyDt0.mjs";
|
|
3
3
|
export { LiveClientEvent, LiveConnectHookContext, LiveConnectOptions, LiveControlError, LiveControlErrorCode, LiveControlOperation, LiveControlOperationResult, LiveControlOptions, LiveControlRequest, LiveControlResponse, LiveHookContext, LiveLimits, LivePublishOptions, LiveStream, LiveStreamOptions, LiveSubscribeHookContext, __getLiveBindingName, __setLiveBindingName, __setLiveDev, defineLiveStream };
|
package/dist/runtime/live.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as __getLiveBindingName, n as __setLiveBindingName, r as __setLiveDev, i as defineLiveStream } from "../live-
|
|
1
|
+
export { t as __getLiveBindingName, n as __setLiveBindingName, r as __setLiveDev, i as defineLiveStream } from "../live-Dw7NF1t2.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as filterInternalBindings, M as ClientAssetTags, N as createClientAssetTags, O as createAssetFallback, P as createManifestLoader, j as prerenderPathsResponse, k as createWorkerFetch, r as CloudContext } from "../handler-
|
|
2
|
-
import { a as handlePageMutation, i as handlePageGet } from "../protocol-
|
|
1
|
+
import { A as filterInternalBindings, M as ClientAssetTags, N as createClientAssetTags, O as createAssetFallback, P as createManifestLoader, j as prerenderPathsResponse, k as createWorkerFetch, r as CloudContext } from "../handler-6fzr_ikp.mjs";
|
|
2
|
+
import { a as handlePageMutation, i as handlePageGet } from "../protocol-YS3tbxWE.mjs";
|
|
3
3
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
4
|
-
import { Context, Hono, MiddlewareHandler, TypedResponse } from "hono";
|
|
4
|
+
import { Context, Hono, MiddlewareHandler, NotFoundHandler, TypedResponse } from "hono";
|
|
5
5
|
import { RouteDestination, RouteUrlInput } from "void/routes";
|
|
6
6
|
import { RedirectStatusCode } from "hono/utils/http-status";
|
|
7
7
|
type ErrorPageStatus = 404 | 500;
|
|
@@ -50,8 +50,11 @@ export declare function createNamedActionMarker(matchedRoutes: (c: Context) => A
|
|
|
50
50
|
handler: Function;
|
|
51
51
|
}>): MiddlewareHandler;
|
|
52
52
|
export declare function createPageGetHandler(options: PageRouteOptions): (c: Context) => Promise<Response>;
|
|
53
|
+
/** Build-only rendering bypasses application middleware and serializes no request data. */
|
|
54
|
+
export declare function createStaticNotFound(options: PageRouteOptions): (request: Request, env: Record<string, unknown>) => Promise<Response>;
|
|
53
55
|
export declare function createPageMutationHandler(options: PageRouteOptions): (c: Context) => Promise<Response>;
|
|
54
56
|
export declare function createPagesFallback(options: {
|
|
57
|
+
pageNotFound?: (c: Context) => Promise<Response>;
|
|
55
58
|
trailingSlash?: boolean;
|
|
56
59
|
pagePatterns?: Array<RegExp>;
|
|
57
60
|
routing: RoutingRuntime;
|
|
@@ -109,6 +112,8 @@ export type RoutingContext = Context & {
|
|
|
109
112
|
export type RoutingRuntime = {
|
|
110
113
|
requestContext: AsyncLocalStorage<RequestContextStore>;
|
|
111
114
|
contextMiddleware: MiddlewareHandler;
|
|
115
|
+
trackNotFound: (handler?: NotFoundHandler) => NotFoundHandler;
|
|
116
|
+
preserveNotFound: (response: Response) => Response;
|
|
112
117
|
requestMiddleware: MiddlewareHandler;
|
|
113
118
|
routingMiddleware: (rules: Array<RoutingRule>) => MiddlewareHandler;
|
|
114
119
|
headerMiddleware: (rules: Array<RoutingHeaderRule>, phase?: "auth-error") => MiddlewareHandler;
|
package/dist/runtime/routing.mjs
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as hasActionKey, c as searchWithoutActionKey, i as actionKeySegment, l as searchWithoutPreservedQuery, o as markActionKey, r as PRESERVED_QUERY_HEADER, s as queryKey, t as decodePagePath } from "../url-DaehRGKR.mjs";
|
|
2
|
+
import { n as pagesRedirectResponse } from "../redirect-Dqb4fEc5.mjs";
|
|
2
3
|
import { i as authDependentRequests, n as markStaticAsset, r as SHARED_CACHE_HEADERS, t as isUnchangedStaticAsset } from "../static-asset-marker-DsQKz6lt.mjs";
|
|
3
4
|
import { t as VoidAssetRewriteError } from "../handler-C9SnmeW1.mjs";
|
|
4
5
|
import { t as convertReturnValue } from "../response-HmNjB30w.mjs";
|
|
5
6
|
import { r as toUrlString, t as interpolateRouteParams } from "../route-url-CfCR4oMj.mjs";
|
|
6
7
|
import { n as createClientAssetTags, r as createManifestLoader, t as ASSET_EXTENSIONS } from "../routing-assets-DJIVOrCh.mjs";
|
|
7
|
-
import { n as handlePageGet, r as handlePageMutation } from "../protocol-
|
|
8
|
-
import { t as decodePagePath } from "../url-CuoEn0o3.mjs";
|
|
8
|
+
import { a as handlesPageLoaderNotFound, n as handlePageGet, o as ownsLoaderNotFoundBoundary, r as handlePageMutation } from "../protocol-IPSWHolJ.mjs";
|
|
9
9
|
import { t as renderDefaultErrorPage } from "../error-pages-COVBnzK7.mjs";
|
|
10
10
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
11
11
|
import { compilePattern, matchPattern, matchPatternCaptures, mergeQueryIntoLocation, redirectToHttps, substituteParams } from "@void/edge";
|
|
12
|
+
import { Context } from "hono";
|
|
12
13
|
// src/runtime/routing-worker.ts
|
|
14
|
+
const intentionalNotFoundRequests = /* @__PURE__ */ new WeakSet();
|
|
13
15
|
const ASSET_CONTENT_TYPES = {
|
|
14
16
|
".avif": "image/avif",
|
|
15
17
|
".css": "text/css; charset=utf-8",
|
|
@@ -69,7 +71,7 @@ function createAssetCachePolicy(assetsDir, loadManifest = createManifestLoader()
|
|
|
69
71
|
function createAssetFallback(options = {}) {
|
|
70
72
|
const cachePolicy = createAssetCachePolicy(options.assetsDir);
|
|
71
73
|
return async (request, env, response) => {
|
|
72
|
-
if (response.status !== 404 || !env.ASSETS || request.method !== "GET" && request.method !== "HEAD") return response;
|
|
74
|
+
if (response.status !== 404 || intentionalNotFoundRequests.has(request) || !env.ASSETS || request.method !== "GET" && request.method !== "HEAD") return response;
|
|
73
75
|
const asset = await env.ASSETS.fetch(new Request(request.url, {
|
|
74
76
|
method: request.method,
|
|
75
77
|
headers: request.headers
|
|
@@ -121,7 +123,8 @@ function createWorkerFetch(options) {
|
|
|
121
123
|
return async (request, originalEnv, ctx) => {
|
|
122
124
|
const url = new URL(request.url);
|
|
123
125
|
const discovery = request.method === "POST" && url.pathname === "/__void/prerender-paths" && originalEnv.__VOID_PRERENDER === "1";
|
|
124
|
-
|
|
126
|
+
const staticNotFound = request.method === "GET" && url.pathname === "/__void/static-not-found" && originalEnv.__VOID_PRERENDER === "1";
|
|
127
|
+
if (options.validateEnv && !discovery && !staticNotFound) await options.validateEnv(originalEnv);
|
|
125
128
|
const env = options.remoteEnv && originalEnv.__VOID_REMOTE === "1" ? options.remoteEnv(originalEnv) : originalEnv;
|
|
126
129
|
if (options.isr) {
|
|
127
130
|
env.__VOID_ISR_DEPLOYMENT_ID ??= options.isr.deploymentId;
|
|
@@ -136,6 +139,7 @@ function createWorkerFetch(options) {
|
|
|
136
139
|
...options.versionMetadataBinding ? { versionId: metadata?.id } : {}
|
|
137
140
|
}, options.versionMetadataBinding ? { headers: { "cache-control": "no-store" } } : void 0);
|
|
138
141
|
}
|
|
142
|
+
if (staticNotFound) return options.staticNotFound ? options.staticNotFound(request, env) : new Response(null, { status: 204 });
|
|
139
143
|
const internal = await options.internalRoute(request, env, ctx);
|
|
140
144
|
if (internal) return internal;
|
|
141
145
|
if (discovery) return prerenderPathsResponse(() => options.collectPrerenderPaths(request, env, ctx));
|
|
@@ -164,8 +168,9 @@ function preparePageRequest(c, options) {
|
|
|
164
168
|
}
|
|
165
169
|
return true;
|
|
166
170
|
}
|
|
167
|
-
function actionNameOf(
|
|
168
|
-
|
|
171
|
+
function actionNameOf(request) {
|
|
172
|
+
const search = searchWithoutPreservedQuery(new URL(request.url).search, request.headers.get(PRESERVED_QUERY_HEADER));
|
|
173
|
+
return new URLSearchParams(search).keys().next().value;
|
|
169
174
|
}
|
|
170
175
|
const routeHandlers = /* @__PURE__ */ new WeakSet();
|
|
171
176
|
const namedActionHandlers = /* @__PURE__ */ new WeakSet();
|
|
@@ -185,22 +190,48 @@ function markRouteHandler(handler) {
|
|
|
185
190
|
function createNamedActionMarker(matchedRoutes) {
|
|
186
191
|
return async (c, next) => {
|
|
187
192
|
const answer = matchedRoutes(c).slice(c.req.routeIndex + 1).find((route) => routeHandlers.has(route.handler));
|
|
188
|
-
if (answer && namedActionHandlers.has(answer.handler) && actionNameOf(c.req.
|
|
193
|
+
if (answer && namedActionHandlers.has(answer.handler) && actionNameOf(c.req.raw)) markActionKey(c.req.raw);
|
|
189
194
|
await next();
|
|
190
195
|
};
|
|
191
196
|
}
|
|
192
197
|
function createPageGetHandler(options) {
|
|
193
198
|
return markRouteHandler(async (context) => {
|
|
194
199
|
if (!preparePageRequest(context, options)) return context.notFound();
|
|
195
|
-
|
|
200
|
+
let mod;
|
|
201
|
+
try {
|
|
202
|
+
mod = options.load ? await options.load() : { head: options.head };
|
|
203
|
+
} catch (error) {
|
|
204
|
+
mod = { loader: () => {
|
|
205
|
+
throw error;
|
|
206
|
+
} };
|
|
207
|
+
}
|
|
196
208
|
return handlePageGet(mod.loader, mod.head, context, options.componentId, options.render, options.assets, options.headConfig ?? void 0, options.renderOptions);
|
|
197
209
|
});
|
|
198
210
|
}
|
|
211
|
+
/** Build-only rendering bypasses application middleware and serializes no request data. */
|
|
212
|
+
function createStaticNotFound(options) {
|
|
213
|
+
const handle = createPageGetHandler({
|
|
214
|
+
...options,
|
|
215
|
+
renderOptions: {
|
|
216
|
+
...options.renderOptions,
|
|
217
|
+
renderMode: "server"
|
|
218
|
+
},
|
|
219
|
+
render: (page, assets, url) => options.render({
|
|
220
|
+
...page,
|
|
221
|
+
documentOnly: true
|
|
222
|
+
}, {
|
|
223
|
+
...assets,
|
|
224
|
+
body: "",
|
|
225
|
+
preloads: ""
|
|
226
|
+
}, url)
|
|
227
|
+
});
|
|
228
|
+
return (request, env) => handle(new Context(new Request(new URL("/404", request.url)), { env }));
|
|
229
|
+
}
|
|
199
230
|
function createPageMutationHandler(options) {
|
|
200
231
|
const mutationHandler = async (context) => {
|
|
201
232
|
if (!preparePageRequest(context, options)) return context.notFound();
|
|
202
233
|
const mod = options.load ? await options.load() : {};
|
|
203
|
-
const actionName = options.namedActions ? actionNameOf(context.req.
|
|
234
|
+
const actionName = options.namedActions ? actionNameOf(context.req.raw) : void 0;
|
|
204
235
|
const name = actionName || "default";
|
|
205
236
|
const named = mod.actions;
|
|
206
237
|
const candidate = named && Object.hasOwn(named, name) ? named[name] : void 0;
|
|
@@ -215,10 +246,11 @@ function createPageMutationHandler(options) {
|
|
|
215
246
|
function createPagesFallback(options) {
|
|
216
247
|
const cachePolicy = createAssetCachePolicy(options.assetsDir);
|
|
217
248
|
return async (c) => {
|
|
249
|
+
if (ownsLoaderNotFoundBoundary(c)) return c.newResponse(null, 404);
|
|
218
250
|
const path = c.req.path;
|
|
219
251
|
if (path === "/api" || path.startsWith("/api/") || c.req.method !== "GET" && c.req.method !== "HEAD") return c.text("Not Found", 404);
|
|
220
252
|
const assets = c.env?.ASSETS;
|
|
221
|
-
const assetResponse = assets && typeof assets.fetch === "function" ? await assets.fetch(c.req.raw) : options.routing.markNoMatch(c.req.raw, new Response("Not Found", { status: 404 }));
|
|
253
|
+
const assetResponse = handlesPageLoaderNotFound(c) ? new Response("Not Found", { status: 404 }) : assets && typeof assets.fetch === "function" ? await assets.fetch(c.req.raw) : options.routing.markNoMatch(c.req.raw, new Response("Not Found", { status: 404 }));
|
|
222
254
|
const filePath = path.includes("/.") || path.substring(path.lastIndexOf("/") + 1).includes(".");
|
|
223
255
|
const pageNeedsSlash = options.trailingSlash && !path.endsWith("/") && options.pagePatterns?.some((pattern) => pattern.test(decodePagePath(`${path}/`)));
|
|
224
256
|
let directoryIndex = false;
|
|
@@ -249,7 +281,10 @@ function createPagesFallback(options) {
|
|
|
249
281
|
url.pathname = options.trailingSlash ? `${path}/` : path.slice(0, -1);
|
|
250
282
|
return Response.redirect(url.href, 301);
|
|
251
283
|
}
|
|
252
|
-
|
|
284
|
+
const destination = c.req.header("Sec-Fetch-Dest");
|
|
285
|
+
const accept = c.req.header("Accept");
|
|
286
|
+
const pageRequest = c.req.header("X-VoidPages") === "true" || (!destination || destination === "document" || destination === "empty") && (!accept || accept.includes("text/html") || accept.includes("*/*"));
|
|
287
|
+
return options.routing.markNoMatch(c.req.raw, await (options.pageNotFound && pageRequest ? options.pageNotFound(c) : options.errors.serveCustomPage(c, 404, "Not Found")));
|
|
253
288
|
};
|
|
254
289
|
}
|
|
255
290
|
function createSsrFallback(options) {
|
|
@@ -278,7 +313,7 @@ function createSsrFallback(options) {
|
|
|
278
313
|
const mod = await options.load();
|
|
279
314
|
const render = typeof mod.render === "function" ? mod.render : mod.default;
|
|
280
315
|
if (typeof render !== "function") throw new Error("ssr: Invalid entry. Export render(c, assetTags).");
|
|
281
|
-
return render(c, await options.assets(c.req.raw, c.env));
|
|
316
|
+
return options.routing.preserveNotFound(await render(c, await options.assets(c.req.raw, c.env)));
|
|
282
317
|
};
|
|
283
318
|
}
|
|
284
319
|
function createAssetNotFound(options) {
|
|
@@ -831,6 +866,79 @@ function createRoutingRuntime(app, options = {}) {
|
|
|
831
866
|
const fallbackHandled = /* @__PURE__ */ new WeakSet();
|
|
832
867
|
const fallbackServed = /* @__PURE__ */ new WeakSet();
|
|
833
868
|
const headerApplied = /* @__PURE__ */ new WeakSet();
|
|
869
|
+
const explicitNotFound = /* @__PURE__ */ new WeakSet();
|
|
870
|
+
let trackAssetMisses = false;
|
|
871
|
+
const intentionalResponses = /* @__PURE__ */ new WeakSet();
|
|
872
|
+
const routeMisses = /* @__PURE__ */ new WeakMap();
|
|
873
|
+
const missBodies = /* @__PURE__ */ new WeakMap();
|
|
874
|
+
const trackMissBody = (c, body) => {
|
|
875
|
+
if (!body) return;
|
|
876
|
+
let bodies = missBodies.get(c);
|
|
877
|
+
if (!bodies) {
|
|
878
|
+
bodies = /* @__PURE__ */ new WeakSet();
|
|
879
|
+
missBodies.set(c, bodies);
|
|
880
|
+
}
|
|
881
|
+
if (bodies.has(body)) return;
|
|
882
|
+
bodies.add(body);
|
|
883
|
+
if (Object.isExtensible(body)) {
|
|
884
|
+
const pipeThrough = body.pipeThrough;
|
|
885
|
+
Object.defineProperty(body, "pipeThrough", {
|
|
886
|
+
configurable: true,
|
|
887
|
+
writable: true,
|
|
888
|
+
value(...args) {
|
|
889
|
+
const transformed = pipeThrough.apply(this, args);
|
|
890
|
+
if (this === body) trackMissBody(c, transformed);
|
|
891
|
+
return transformed;
|
|
892
|
+
}
|
|
893
|
+
});
|
|
894
|
+
}
|
|
895
|
+
};
|
|
896
|
+
const recordMiss = (c, response) => {
|
|
897
|
+
const misses = routeMisses.get(c) ?? [];
|
|
898
|
+
if (misses.includes(response)) return;
|
|
899
|
+
misses.push(response);
|
|
900
|
+
routeMisses.set(c, misses);
|
|
901
|
+
trackMissBody(c, response.body);
|
|
902
|
+
trackResponseCopies(c);
|
|
903
|
+
if (Object.isExtensible(response)) {
|
|
904
|
+
const clone = response.clone;
|
|
905
|
+
Object.defineProperty(response, "clone", {
|
|
906
|
+
configurable: true,
|
|
907
|
+
writable: true,
|
|
908
|
+
value() {
|
|
909
|
+
const copy = clone.call(this);
|
|
910
|
+
if (this === response) {
|
|
911
|
+
trackMissBody(c, this.body);
|
|
912
|
+
recordMiss(c, copy);
|
|
913
|
+
}
|
|
914
|
+
return copy;
|
|
915
|
+
}
|
|
916
|
+
});
|
|
917
|
+
}
|
|
918
|
+
};
|
|
919
|
+
const isRouteMiss = (c, response) => routeMisses.get(c)?.some((miss) => miss === response || miss.body !== null && miss.body === response.body) === true || response.body !== null && missBodies.get(c)?.has(response.body) === true;
|
|
920
|
+
const tracksResponseCopies = /* @__PURE__ */ new WeakSet();
|
|
921
|
+
const trackResponseCopies = (c) => {
|
|
922
|
+
if (tracksResponseCopies.has(c)) return;
|
|
923
|
+
tracksResponseCopies.add(c);
|
|
924
|
+
const descriptor = Object.getOwnPropertyDescriptor(Object.getPrototypeOf(c), "res");
|
|
925
|
+
if (descriptor?.get && descriptor.set) {
|
|
926
|
+
const set = descriptor.set;
|
|
927
|
+
Object.defineProperty(c, "res", {
|
|
928
|
+
...descriptor,
|
|
929
|
+
set(response) {
|
|
930
|
+
set.call(c, response);
|
|
931
|
+
if (response && isRouteMiss(c, response) && c.res !== response) recordMiss(c, c.res);
|
|
932
|
+
}
|
|
933
|
+
});
|
|
934
|
+
}
|
|
935
|
+
const header = c.header.bind(c);
|
|
936
|
+
c.header = (...args) => {
|
|
937
|
+
const before = c.finalized ? c.res : void 0;
|
|
938
|
+
header(...args);
|
|
939
|
+
if (before && c.res !== before && isRouteMiss(c, before)) recordMiss(c, c.res);
|
|
940
|
+
};
|
|
941
|
+
};
|
|
834
942
|
const warnedPatterns = /* @__PURE__ */ new Set();
|
|
835
943
|
const requestContext = new AsyncLocalStorage();
|
|
836
944
|
const assetExtensions = options.blockedAssetExtensions ?? ASSET_EXTENSIONS;
|
|
@@ -848,6 +956,10 @@ function createRoutingRuntime(app, options = {}) {
|
|
|
848
956
|
const dispatch = async (request, c, trace) => {
|
|
849
957
|
const response = annotate(await (options.nodeTarget ? app.fetch(request, c.env) : app.fetch(request, c.env, c.executionCtx)), trace);
|
|
850
958
|
if (authDependentRequests.has(request)) authDependentRequests.add(c.req.raw);
|
|
959
|
+
if (trackAssetMisses && response.status === 404) {
|
|
960
|
+
if (intentionalNotFoundRequests.has(request)) intentionalResponses.add(response);
|
|
961
|
+
else recordMiss(c, response);
|
|
962
|
+
}
|
|
851
963
|
return response;
|
|
852
964
|
};
|
|
853
965
|
const rememberOriginal = (request, c) => {
|
|
@@ -880,7 +992,7 @@ function createRoutingRuntime(app, options = {}) {
|
|
|
880
992
|
if (search) rewriteUrl.search = search;
|
|
881
993
|
const request = new Request(rewriteUrl.toString(), c.req.raw);
|
|
882
994
|
rememberOriginal(request, c);
|
|
883
|
-
|
|
995
|
+
keepActionQuery(c.req.raw, request, search);
|
|
884
996
|
if (fallback) {
|
|
885
997
|
fallbackHandled.add(request);
|
|
886
998
|
fallbackServed.add(c.req.raw);
|
|
@@ -894,6 +1006,18 @@ function createRoutingRuntime(app, options = {}) {
|
|
|
894
1006
|
};
|
|
895
1007
|
const contextMiddleware = async (context, next) => {
|
|
896
1008
|
const c = context;
|
|
1009
|
+
if (trackAssetMisses) {
|
|
1010
|
+
intentionalNotFoundRequests.delete(c.req.raw);
|
|
1011
|
+
const notFound = c.notFound.bind(c);
|
|
1012
|
+
c.notFound = () => {
|
|
1013
|
+
explicitNotFound.add(c);
|
|
1014
|
+
try {
|
|
1015
|
+
return notFound();
|
|
1016
|
+
} finally {
|
|
1017
|
+
explicitNotFound.delete(c);
|
|
1018
|
+
}
|
|
1019
|
+
};
|
|
1020
|
+
}
|
|
897
1021
|
if (options.managedDispatch && !originalUrls.has(c.req.raw)) {
|
|
898
1022
|
const original = c.req.raw.headers.get("X-Void-Original-URL");
|
|
899
1023
|
if (original != null) try {
|
|
@@ -914,7 +1038,7 @@ function createRoutingRuntime(app, options = {}) {
|
|
|
914
1038
|
if (search) url.search = search;
|
|
915
1039
|
const request = new Request(url.toString(), c.req.raw);
|
|
916
1040
|
rememberOriginal(request, c);
|
|
917
|
-
|
|
1041
|
+
keepActionQuery(c.req.raw, request, search);
|
|
918
1042
|
return dispatch(request, c, `c.rewrite -> ${path} (middleware)`);
|
|
919
1043
|
};
|
|
920
1044
|
const redirect = context.redirect.bind(context);
|
|
@@ -926,10 +1050,29 @@ function createRoutingRuntime(app, options = {}) {
|
|
|
926
1050
|
c.originalUrl = () => originalUrls.get(c.req.raw) ?? null;
|
|
927
1051
|
c.isRewritten = () => originalUrls.has(c.req.raw);
|
|
928
1052
|
await next();
|
|
1053
|
+
c.res = pagesRedirectResponse(c.req.raw, c.res);
|
|
1054
|
+
if (!trackAssetMisses) return;
|
|
1055
|
+
if (c.res.status === 404 && !isRouteMiss(c, c.res)) intentionalNotFoundRequests.add(c.req.raw);
|
|
929
1056
|
};
|
|
930
1057
|
return {
|
|
931
1058
|
requestContext,
|
|
932
1059
|
contextMiddleware,
|
|
1060
|
+
trackNotFound: (handler = (c) => c.text("404 Not Found", 404)) => {
|
|
1061
|
+
trackAssetMisses = true;
|
|
1062
|
+
return (c) => {
|
|
1063
|
+
const explicit = explicitNotFound.has(c);
|
|
1064
|
+
const response = handler(c);
|
|
1065
|
+
if (explicit) return response;
|
|
1066
|
+
return Promise.resolve(response).then((miss) => {
|
|
1067
|
+
if (miss.status === 404 && !intentionalResponses.has(miss)) recordMiss(c, miss);
|
|
1068
|
+
return miss;
|
|
1069
|
+
});
|
|
1070
|
+
};
|
|
1071
|
+
},
|
|
1072
|
+
preserveNotFound: (response) => {
|
|
1073
|
+
if (trackAssetMisses && response.status === 404) intentionalResponses.add(response);
|
|
1074
|
+
return response;
|
|
1075
|
+
},
|
|
933
1076
|
requestMiddleware: async (c, next) => {
|
|
934
1077
|
await requestContext.run(options.nodeTarget ? { request: c.req.raw } : {
|
|
935
1078
|
request: c.req.raw,
|
|
@@ -986,7 +1129,7 @@ function createRoutingRuntime(app, options = {}) {
|
|
|
986
1129
|
}
|
|
987
1130
|
function redirectLocation(request, location, status) {
|
|
988
1131
|
const url = new URL(request.url);
|
|
989
|
-
const search = url.search;
|
|
1132
|
+
const search = searchWithoutPreservedQuery(url.search, request.headers.get(PRESERVED_QUERY_HEADER));
|
|
990
1133
|
if (!hasActionKey(request)) return mergeQueryIntoLocation(location, search);
|
|
991
1134
|
if (status === 303 || (status === void 0 || status === 301 || status === 302) && request.method === "POST") return mergeQueryIntoLocation(location, searchWithoutActionKey(search));
|
|
992
1135
|
const hash = location.indexOf("#");
|
|
@@ -1007,12 +1150,10 @@ function redirectLocation(request, location, status) {
|
|
|
1007
1150
|
const rest = segments.join("&");
|
|
1008
1151
|
return base.slice(0, q === -1 ? base.length : q) + "?" + first + (rest ? "&" + rest : "") + fragment;
|
|
1009
1152
|
}
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
function keepActionKey(from, to, destinationSearch) {
|
|
1015
|
-
if (!destinationSearch && hasActionKey(from)) markActionKey(to);
|
|
1153
|
+
/** Action metadata follows a rewrite only when it keeps the request query. */
|
|
1154
|
+
function keepActionQuery(from, to, destinationSearch) {
|
|
1155
|
+
if (destinationSearch) to.headers.delete(PRESERVED_QUERY_HEADER);
|
|
1156
|
+
else if (hasActionKey(from)) markActionKey(to);
|
|
1016
1157
|
}
|
|
1017
1158
|
function markNoMatch(request, response) {
|
|
1018
1159
|
const url = new URL(request.url);
|
|
@@ -1036,4 +1177,4 @@ function createModuleLoader(load, cache = true) {
|
|
|
1036
1177
|
return module;
|
|
1037
1178
|
};
|
|
1038
1179
|
}
|
|
1039
|
-
export { buildPrerenderPath, createAssetFallback, createAssetNotFound, createClientAssetTags, createErrorRenderer, createHttpRouteHandler, createManifestLoader, createModuleLoader, createNamedActionMarker, createPageGetHandler, createPageMutationHandler, createPagesFallback, createRoutingRuntime, createSsrFallback, createWorkerFetch, filterInternalBindings, markNoMatch, markRouteHandler, prerenderPathsResponse };
|
|
1180
|
+
export { buildPrerenderPath, createAssetFallback, createAssetNotFound, createClientAssetTags, createErrorRenderer, createHttpRouteHandler, createManifestLoader, createModuleLoader, createNamedActionMarker, createPageGetHandler, createPageMutationHandler, createPagesFallback, createRoutingRuntime, createSsrFallback, createStaticNotFound, createWorkerFetch, filterInternalBindings, markNoMatch, markRouteHandler, prerenderPathsResponse };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { D as runValidation, E as ValidatorSlots, T as HandlerInput } from "../handler-
|
|
1
|
+
import { D as runValidation, E as ValidatorSlots, T as HandlerInput } from "../handler-6fzr_ikp.mjs";
|
|
2
2
|
export { HandlerInput, ValidatorSlots, runValidation };
|