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
package/dist/pages/client.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as toUrlString, t as interpolateRouteParams } from "../route-url-CfCR4oMj.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { c as searchWithoutActionKey, n as isSameOrigin, r as PRESERVED_QUERY_HEADER, t as decodePagePath, u as withPageQuery } from "../url-DaehRGKR.mjs";
|
|
3
3
|
import { r as parseCacheFor, t as PrefetchCache } from "../prefetch-Dx2jIbtg.mjs";
|
|
4
|
+
import { t as fetchPages } from "../redirect-Dqb4fEc5.mjs";
|
|
4
5
|
import { a as serializePageData, n as decodePageData, r as deserializePageData, t as ISLAND_FRONTMATTER_ID } from "../serialize-Pf-CIQK_.mjs";
|
|
5
|
-
import { n as isSameOrigin, t as decodePagePath } from "../url-CuoEn0o3.mjs";
|
|
6
6
|
import { PAGES_PROTOCOL_VERSION, readUsageLimit } from "@void/edge";
|
|
7
7
|
// src/pages/action-result.ts
|
|
8
8
|
var VoidActionError = class extends Error {
|
|
@@ -71,6 +71,52 @@ async function createActionErrorFromResponse(response, url) {
|
|
|
71
71
|
url
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
|
+
// src/pages/boundary-client.ts
|
|
75
|
+
function pageBoundarySlots(manifest, component, components) {
|
|
76
|
+
if (!manifest) return [];
|
|
77
|
+
const current = manifest.plans[component];
|
|
78
|
+
const source = current?.source ?? component;
|
|
79
|
+
return (manifest.pages[source]?.catches ?? []).filter((c) => {
|
|
80
|
+
const plan = manifest.plans[c.plan];
|
|
81
|
+
return !current || (current.kind === "not-found" ? plan.directory.length <= current.directory.length : plan.directory.length < current.directory.length);
|
|
82
|
+
}).map((c) => ({
|
|
83
|
+
id: c.plan,
|
|
84
|
+
key: manifest.plans[c.plan].componentId,
|
|
85
|
+
depth: Math.min(c.depth, current?.layouts.length ?? Infinity),
|
|
86
|
+
load: components[c.plan]
|
|
87
|
+
}));
|
|
88
|
+
}
|
|
89
|
+
function clientPageError(error, dev = false) {
|
|
90
|
+
if (isVoidActionError(error)) return {
|
|
91
|
+
status: error.status,
|
|
92
|
+
message: error.message
|
|
93
|
+
};
|
|
94
|
+
return {
|
|
95
|
+
status: 500,
|
|
96
|
+
message: dev && error instanceof Error ? error.message : "Internal Server Error"
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
/** Terminal recovery cannot depend on the failed adapter, imports, or component tree. */
|
|
100
|
+
function showTerminalPageError(url = window.location.href) {
|
|
101
|
+
const target = new URL(url, window.location.href);
|
|
102
|
+
if (target.origin !== window.location.origin) throw new Error("Invalid error page destination");
|
|
103
|
+
try {
|
|
104
|
+
history.replaceState(history.state, "", target.href);
|
|
105
|
+
} catch {}
|
|
106
|
+
const main = document.createElement("main");
|
|
107
|
+
const heading = document.createElement("h1");
|
|
108
|
+
heading.textContent = "Something went wrong";
|
|
109
|
+
main.appendChild(heading);
|
|
110
|
+
for (const [label, href] of [["Try again", target.href], ["Go home", "/"]]) {
|
|
111
|
+
const link = document.createElement("a");
|
|
112
|
+
link.textContent = label;
|
|
113
|
+
link.href = href;
|
|
114
|
+
link.style.marginRight = "1rem";
|
|
115
|
+
main.appendChild(link);
|
|
116
|
+
}
|
|
117
|
+
main.style.cssText = "font-family:system-ui,sans-serif;padding:2rem";
|
|
118
|
+
document.body.replaceChildren(main);
|
|
119
|
+
}
|
|
74
120
|
// src/pages/head-client.ts
|
|
75
121
|
const ATTR = "data-void-head";
|
|
76
122
|
function elementDescriptorSignature(descriptor) {
|
|
@@ -324,7 +370,7 @@ function abortSignalPromise(signal) {
|
|
|
324
370
|
}
|
|
325
371
|
async function fetchPageResponse(fetchUrl, init) {
|
|
326
372
|
try {
|
|
327
|
-
return await
|
|
373
|
+
return await fetchPages(fetchUrl, init);
|
|
328
374
|
} catch (error) {
|
|
329
375
|
if (init.signal?.aborted || isAbortError(error)) throw abortError();
|
|
330
376
|
return null;
|
|
@@ -333,7 +379,9 @@ async function fetchPageResponse(fetchUrl, init) {
|
|
|
333
379
|
async function createPageNavigationEngine(config) {
|
|
334
380
|
const { adapter, components, layoutTree, routeMeta, staticPageData: STATIC_PAGE_DATA_ENABLED = false, staticPageDataFastPath: STATIC_PAGE_DATA_FAST_PATH = STATIC_PAGE_DATA_ENABLED, prefetchHoverDelay: PREFETCH_HOVER_DELAY, prefetchDefaultCacheFor: PREFETCH_DEFAULT_CACHE_FOR, prefetchDefaultStrategy: PREFETCH_DEFAULT_STRATEGY = false, cacheVisitedPageData: CACHE_VISITED_PAGE_DATA = false } = config;
|
|
335
381
|
const matchRoute = (url) => config.matchRoute(decodePagePath(new URL(url, "http://x").pathname));
|
|
382
|
+
const hasBoundaries = Object.keys(config.boundaryManifest?.plans ?? {}).length > 0;
|
|
336
383
|
const _prefetchCache = new PrefetchCache();
|
|
384
|
+
const uncachedPayloads = /* @__PURE__ */ new WeakSet();
|
|
337
385
|
let _nextNavigationId = 0;
|
|
338
386
|
let _urlNavigationId = 0;
|
|
339
387
|
let _pendingResource = null;
|
|
@@ -354,6 +402,28 @@ async function createPageNavigationEngine(config) {
|
|
|
354
402
|
const ids = layoutTree[componentId] || [];
|
|
355
403
|
return Promise.all(ids.map(async (id) => (await components[id]()).default));
|
|
356
404
|
}
|
|
405
|
+
async function recoverImportFailure(page, error) {
|
|
406
|
+
for (const boundary of pageBoundarySlots(config.boundaryManifest, page.component, components)) {
|
|
407
|
+
const pageData = {
|
|
408
|
+
...page,
|
|
409
|
+
component: boundary.id,
|
|
410
|
+
props: { error: clientPageError(error, config.dev) },
|
|
411
|
+
deferred: void 0,
|
|
412
|
+
deferredKeys: void 0,
|
|
413
|
+
deferredErrors: void 0,
|
|
414
|
+
errors: null
|
|
415
|
+
};
|
|
416
|
+
try {
|
|
417
|
+
const [component, layouts] = await Promise.all([resolveComponent(boundary.id), resolveLayouts(boundary.id)]);
|
|
418
|
+
return {
|
|
419
|
+
pageData,
|
|
420
|
+
component,
|
|
421
|
+
layouts
|
|
422
|
+
};
|
|
423
|
+
} catch {}
|
|
424
|
+
}
|
|
425
|
+
throw error;
|
|
426
|
+
}
|
|
357
427
|
function getStaticPageDataUrl(url) {
|
|
358
428
|
const { pathname } = new URL(url || "/", window.location.origin);
|
|
359
429
|
const filePath = pathname === "/" ? "index" : pathname.replace(/^\/+/, "");
|
|
@@ -530,10 +600,13 @@ async function createPageNavigationEngine(config) {
|
|
|
530
600
|
return fetchPageResponse(url, {
|
|
531
601
|
method: "GET",
|
|
532
602
|
headers
|
|
533
|
-
}).then(async (
|
|
534
|
-
|
|
603
|
+
}).then(async (result) => {
|
|
604
|
+
const r = result?.response;
|
|
605
|
+
if (!r || result?.redirectedTo) return null;
|
|
535
606
|
if (!r.headers.get("X-VoidPages")) return (await loadStaticPageData(url, r, void 0, !STATIC_PAGE_DATA_FAST_PATH))?.pageData ?? null;
|
|
536
|
-
|
|
607
|
+
const data = decodePageData(await r.json());
|
|
608
|
+
if (!r.ok || /no-store/i.test(r.headers.get("Cache-Control") ?? "")) uncachedPayloads.add(data);
|
|
609
|
+
return data;
|
|
537
610
|
});
|
|
538
611
|
});
|
|
539
612
|
}
|
|
@@ -577,6 +650,7 @@ async function createPageNavigationEngine(config) {
|
|
|
577
650
|
"X-VoidPages-Version": PAGES_PROTOCOL_VERSION,
|
|
578
651
|
Accept: "application/json"
|
|
579
652
|
};
|
|
653
|
+
if (options._preservedQuery && method !== "GET") headers[PRESERVED_QUERY_HEADER] = options._preservedQuery;
|
|
580
654
|
const fetchOptions = {
|
|
581
655
|
method,
|
|
582
656
|
headers,
|
|
@@ -590,6 +664,7 @@ async function createPageNavigationEngine(config) {
|
|
|
590
664
|
}
|
|
591
665
|
}
|
|
592
666
|
let pageData;
|
|
667
|
+
if (options._refresh) _prefetchCache.flush(fetchUrl, method);
|
|
593
668
|
const cacheEntry = method === "GET" ? _prefetchCache.get(fetchUrl, method) : null;
|
|
594
669
|
if (cacheEntry) {
|
|
595
670
|
const cachedPageData = await cacheEntry.response;
|
|
@@ -600,11 +675,12 @@ async function createPageNavigationEngine(config) {
|
|
|
600
675
|
}
|
|
601
676
|
pageData = clonePageData(cachedPageData);
|
|
602
677
|
deferredRegistry.setup(pageData, true);
|
|
603
|
-
if (!_prefetchCache.isFresh(cacheEntry)) {
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
678
|
+
if (!_prefetchCache.isFresh(cacheEntry)) fetchPrefetchPageData(fetchUrl).then((data) => {
|
|
679
|
+
if (data && typeof data === "object" && !uncachedPayloads.has(data) && _prefetchCache.get(fetchUrl, method) === cacheEntry) {
|
|
680
|
+
_prefetchCache.flush(fetchUrl, method);
|
|
681
|
+
_prefetchCache.set(fetchUrl, method, Promise.resolve(data), PREFETCH_DEFAULT_CACHE_FOR);
|
|
682
|
+
}
|
|
683
|
+
}).catch(() => {});
|
|
608
684
|
} else {
|
|
609
685
|
if (method === "GET" && STATIC_PAGE_DATA_ENABLED && STATIC_PAGE_DATA_FAST_PATH) {
|
|
610
686
|
const staticPageData = await loadStaticPageDataFile(fetchUrl, signal);
|
|
@@ -614,15 +690,16 @@ async function createPageNavigationEngine(config) {
|
|
|
614
690
|
deferredRegistry.setup(pageData, staticPageData.resolvedDeferred);
|
|
615
691
|
}
|
|
616
692
|
}
|
|
617
|
-
const
|
|
693
|
+
const fetched = pageData === void 0 ? method === "GET" ? await fetchPageResponse(url, fetchOptions) : await fetchPages(url, fetchOptions) : null;
|
|
694
|
+
const response = fetched?.response ?? null;
|
|
618
695
|
if (pageData === void 0 && !response) {
|
|
619
696
|
window.location.href = url;
|
|
620
697
|
return;
|
|
621
698
|
}
|
|
622
|
-
if (
|
|
623
|
-
const redirectUrl = new URL(
|
|
699
|
+
if (fetched?.redirectedTo) {
|
|
700
|
+
const redirectUrl = new URL(fetched.redirectedTo, window.location.origin);
|
|
624
701
|
if (!isSameOrigin(redirectUrl, window.location.origin)) {
|
|
625
|
-
window.location.href =
|
|
702
|
+
window.location.href = fetched.redirectedTo;
|
|
626
703
|
return;
|
|
627
704
|
}
|
|
628
705
|
method = "GET";
|
|
@@ -692,14 +769,33 @@ async function createPageNavigationEngine(config) {
|
|
|
692
769
|
pageData = decodePageData(await response.json());
|
|
693
770
|
deferredRegistry.setup(pageData);
|
|
694
771
|
}
|
|
695
|
-
if (CACHE_VISITED_PAGE_DATA && method === "GET" && response?.ok && response.headers.get("X-VoidPages") && pageData?.component === matchRoute(fetchUrl) && !pageData.deferredKeys) _prefetchCache.set(fetchUrl, method, Promise.resolve(clonePageData(pageData)), PREFETCH_DEFAULT_CACHE_FOR);
|
|
772
|
+
if (CACHE_VISITED_PAGE_DATA && method === "GET" && response?.ok && !/no-store/i.test(response.headers.get("Cache-Control") ?? "") && response.headers.get("X-VoidPages") && pageData?.component === matchRoute(fetchUrl) && !pageData.deferredKeys) _prefetchCache.set(fetchUrl, method, Promise.resolve(clonePageData(pageData)), PREFETCH_DEFAULT_CACHE_FOR);
|
|
696
773
|
}
|
|
697
774
|
if (!pageData) throw new Error("pages: Missing page payload.");
|
|
698
775
|
if (method !== "GET") {
|
|
699
776
|
deferredRegistry.preserveValuesFrom(_committedDeferredRegistry, pageData);
|
|
700
777
|
commitTarget.fetchUrl = withoutActionKey(fetchUrl, pageData.url);
|
|
701
778
|
}
|
|
702
|
-
|
|
779
|
+
if (!components[pageData.component]) {
|
|
780
|
+
window.location.href = url;
|
|
781
|
+
return;
|
|
782
|
+
}
|
|
783
|
+
let component;
|
|
784
|
+
let layouts;
|
|
785
|
+
try {
|
|
786
|
+
[component, layouts] = await Promise.race([matchedComponentId === pageData.component && preloadComponentPromise ? preloadComponentPromise : Promise.all([resolveComponent(pageData.component), resolveLayouts(pageData.component)]), abortSignalPromise(signal)]);
|
|
787
|
+
} catch (error) {
|
|
788
|
+
if (isAbortError(error) || signal.aborted || method !== "GET" || !hasBoundaries) throw error;
|
|
789
|
+
_prefetchCache.flush(fetchUrl);
|
|
790
|
+
try {
|
|
791
|
+
const recovered = await Promise.race([recoverImportFailure(pageData, error), abortSignalPromise(signal)]);
|
|
792
|
+
({pageData, component, layouts} = recovered);
|
|
793
|
+
deferredRegistry.setup(pageData);
|
|
794
|
+
} catch (failure) {
|
|
795
|
+
if (!signal.aborted && !isAbortError(failure)) showTerminalPageError(url);
|
|
796
|
+
throw failure;
|
|
797
|
+
}
|
|
798
|
+
}
|
|
703
799
|
if (id !== _nextNavigationId && signal.aborted) throw abortError();
|
|
704
800
|
return {
|
|
705
801
|
pageData,
|
|
@@ -755,8 +851,17 @@ async function createPageNavigationEngine(config) {
|
|
|
755
851
|
return true;
|
|
756
852
|
};
|
|
757
853
|
}
|
|
758
|
-
|
|
759
|
-
|
|
854
|
+
let initialPageData = readInitialPageData();
|
|
855
|
+
let initialComponent;
|
|
856
|
+
let initialLayouts;
|
|
857
|
+
try {
|
|
858
|
+
[initialComponent, initialLayouts] = await Promise.all([resolveComponent(initialPageData.component), resolveLayouts(initialPageData.component)]);
|
|
859
|
+
} catch (error) {
|
|
860
|
+
if (!hasBoundaries) throw error;
|
|
861
|
+
const recovered = await recoverImportFailure(initialPageData, error);
|
|
862
|
+
({pageData: initialPageData, component: initialComponent, layouts: initialLayouts} = recovered);
|
|
863
|
+
document.getElementById("app")?.setAttribute("data-void-ssr", "false");
|
|
864
|
+
}
|
|
760
865
|
if (CACHE_VISITED_PAGE_DATA && initialPageData.url === _currentFetchUrl && initialPageData.component === matchRoute(_currentFetchUrl) && initialPageData.errors === null && !initialPageData.deferredKeys) _prefetchCache.set(_currentFetchUrl, "GET", Promise.resolve(clonePageData(initialPageData)), PREFETCH_DEFAULT_CACHE_FOR);
|
|
761
866
|
const initialDeferredRegistry = new DeferredRegistry();
|
|
762
867
|
initialDeferredRegistry.setup(initialPageData);
|
|
@@ -822,6 +927,9 @@ async function createPageNavigationEngine(config) {
|
|
|
822
927
|
url,
|
|
823
928
|
fetchUrl: effectiveFetchUrl,
|
|
824
929
|
hash,
|
|
930
|
+
get resolvedUrl() {
|
|
931
|
+
return commitTarget.fetchUrl + commitTarget.hash;
|
|
932
|
+
},
|
|
825
933
|
method,
|
|
826
934
|
options,
|
|
827
935
|
immediate: false,
|
|
@@ -860,7 +968,10 @@ async function createPageNavigationEngine(config) {
|
|
|
860
968
|
const existing = _prefetchCache.get(prefetchUrl, method);
|
|
861
969
|
if (existing) return existing.response;
|
|
862
970
|
const ttl = options.cacheFor ? parseCacheFor(options.cacheFor) : PREFETCH_DEFAULT_CACHE_FOR;
|
|
863
|
-
const fetchPromise = fetchPrefetchPageData(prefetchUrl)
|
|
971
|
+
const fetchPromise = fetchPrefetchPageData(prefetchUrl).then((data) => {
|
|
972
|
+
if (data && typeof data === "object" && uncachedPayloads.has(data) && _prefetchCache.get(prefetchUrl, method)?.response === fetchPromise) _prefetchCache.flush(prefetchUrl, method);
|
|
973
|
+
return data;
|
|
974
|
+
});
|
|
864
975
|
_prefetchCache.set(prefetchUrl, method, fetchPromise, ttl);
|
|
865
976
|
return fetchPromise;
|
|
866
977
|
},
|
|
@@ -1096,14 +1207,14 @@ function observeLinkVisible(element, onVisible) {
|
|
|
1096
1207
|
}
|
|
1097
1208
|
// src/pages/island-action.ts
|
|
1098
1209
|
async function submitIslandAction(url, method, data) {
|
|
1099
|
-
const response = await
|
|
1210
|
+
const { response, redirectedTo } = await fetchPages(url, {
|
|
1100
1211
|
method,
|
|
1101
1212
|
headers: { "Content-Type": "application/json" },
|
|
1102
1213
|
body: JSON.stringify(data)
|
|
1103
|
-
});
|
|
1104
|
-
if (
|
|
1214
|
+
}, false);
|
|
1215
|
+
if (redirectedTo) return {
|
|
1105
1216
|
kind: "redirect",
|
|
1106
|
-
url:
|
|
1217
|
+
url: redirectedTo
|
|
1107
1218
|
};
|
|
1108
1219
|
if (response.ok) return { kind: "success" };
|
|
1109
1220
|
const error = await createActionErrorFromResponse(response, url);
|
|
@@ -1318,7 +1429,15 @@ function refreshPage(router, options = {}) {
|
|
|
1318
1429
|
_refresh: true
|
|
1319
1430
|
});
|
|
1320
1431
|
}
|
|
1321
|
-
async function submitAction(router, url, options) {
|
|
1432
|
+
async function submitAction(router, url, options, errorOptions) {
|
|
1433
|
+
const page = withPageQuery(url, window.location);
|
|
1434
|
+
if (page.preserved) {
|
|
1435
|
+
url = page.url;
|
|
1436
|
+
options = {
|
|
1437
|
+
...options,
|
|
1438
|
+
_preservedQuery: page.preserved
|
|
1439
|
+
};
|
|
1440
|
+
}
|
|
1322
1441
|
try {
|
|
1323
1442
|
const pageData = await router.visit(url, options);
|
|
1324
1443
|
if (typeof pageData === "object" && pageData !== null && "errors" in pageData && pageData.errors) return {
|
|
@@ -1335,7 +1454,7 @@ async function submitAction(router, url, options) {
|
|
|
1335
1454
|
pageData
|
|
1336
1455
|
};
|
|
1337
1456
|
} catch (error) {
|
|
1338
|
-
if (isCallSiteActionError(error)) return {
|
|
1457
|
+
if (isCallSiteActionError(error) || errorOptions?.throwOnError === false && isVoidActionError(error)) return {
|
|
1339
1458
|
ok: false,
|
|
1340
1459
|
error
|
|
1341
1460
|
};
|
|
@@ -1529,4 +1648,4 @@ function initIslands(islands, hydrateFn) {
|
|
|
1529
1648
|
if (loader) scheduleHydration(el, loader, props, strategy, hydrate);
|
|
1530
1649
|
});
|
|
1531
1650
|
}
|
|
1532
|
-
export { VoidActionError, categorizeActionError, cloneFormValue, createActionClient, createPageNavigationEngine, createRouterFacade, createSsrRouter, createVoidRouter, formErrorMessage, formRetryMessage, formSubmissionBlocked, getValidationErrors, handleLinkClick, hasFiles, idleNavigationState, initIslands, interpolateRouteParams, isAbortError, isCallSiteActionError, isEqualFormValue, isFile, isFormResetOptions, isModifiedEvent, isVoidActionError, linkActiveAttributes, linkPendingAttributes, linkPrefetchStrategies, mergeDataIntoHref, objectToFormData, observeLinkVisible, parseFormResetArgs, prefetchLink, refreshPage, resolveLink, scheduleFormRetry, scheduleHydration, ssrProxy, submitAction, submitIslandAction, toUrlString };
|
|
1651
|
+
export { VoidActionError, categorizeActionError, clientPageError, cloneFormValue, createActionClient, createPageNavigationEngine, createRouterFacade, createSsrRouter, createVoidRouter, formErrorMessage, formRetryMessage, formSubmissionBlocked, getValidationErrors, handleLinkClick, hasFiles, idleNavigationState, initIslands, interpolateRouteParams, isAbortError, isCallSiteActionError, isEqualFormValue, isFile, isFormResetOptions, isModifiedEvent, isVoidActionError, linkActiveAttributes, linkPendingAttributes, linkPrefetchStrategies, mergeDataIntoHref, objectToFormData, observeLinkVisible, pageBoundarySlots, parseFormResetArgs, prefetchLink, refreshPage, resolveLink, scheduleFormRetry, scheduleHydration, showTerminalPageError, ssrProxy, submitAction, submitIslandAction, toUrlString };
|
package/dist/pages/head.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { HeadConfig, HeadDescriptor, renderBodyAttrs, renderHeadToString, renderHtmlAttrs, resolveHead };
|
|
1
|
+
import { a as renderHeadToString, i as renderBodyAttrs, n as HeadDescriptor, o as renderHtmlAttrs, r as absolutizeHead, s as resolveHead, t as HeadConfig } from "../head-CVO92KEx.mjs";
|
|
2
|
+
export { HeadConfig, HeadDescriptor, absolutizeHead, renderBodyAttrs, renderHeadToString, renderHtmlAttrs, resolveHead };
|
package/dist/pages/head.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as
|
|
1
|
+
export { t as absolutizeHead, n as renderBodyAttrs, r as renderHeadToString, i as renderHtmlAttrs, a as resolveHead } from "../head-CWJhfUwV.mjs";
|
package/dist/pages/index.d.mts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import "../config-
|
|
2
|
-
import {
|
|
3
|
-
import { a as
|
|
1
|
+
import "../config-CCWVY7DY.mjs";
|
|
2
|
+
import { a as PageDefinition, c as PageScanResult, i as NamedLayoutDefinition, l as RouteEnvironment, n as ErrorPageProps, o as PageError, r as LayoutDefinition } from "../types-IPut3_Yx.mjs";
|
|
3
|
+
import { a as renderHeadToString, i as renderBodyAttrs, n as HeadDescriptor, o as renderHtmlAttrs, s as resolveHead, t as HeadConfig } from "../head-CVO92KEx.mjs";
|
|
4
4
|
import { a as LinkPrefetchValue, n as CacheForInput } from "../prefetch-NdNeubbH.mjs";
|
|
5
5
|
import { a as serializePageData } from "../serialize-DN-envGQ.mjs";
|
|
6
|
+
import { t as BoundaryManifest } from "../boundary-plans-CRmWH68v.mjs";
|
|
6
7
|
import { Plugin, UserConfig } from "vite";
|
|
7
8
|
type ProjectPaths = {
|
|
8
9
|
root: string;
|
|
@@ -101,4 +102,4 @@ type CreatePagesPluginOptions = {
|
|
|
101
102
|
};
|
|
102
103
|
/** Shared Vite lifecycle; adapters own their generated code and environment configuration. */
|
|
103
104
|
export declare function createPagesPlugin(pagesDir: string, options: CreatePagesPluginOptions): Plugin;
|
|
104
|
-
export { type HeadConfig, type HeadDescriptor, type LayoutDefinition, type NamedLayoutDefinition, type PageDefinition, type PageScanResult, type PagesPluginOptions, type PrefetchConfig, type StaticPageDataBuildOptions, renderBodyAttrs, renderHeadToString, renderHtmlAttrs, resolveHead, serializePageData };
|
|
105
|
+
export { type BoundaryManifest, type ErrorPageProps, type HeadConfig, type HeadDescriptor, type LayoutDefinition, type NamedLayoutDefinition, type PageDefinition, type PageError, type PageScanResult, type PagesPluginOptions, type PrefetchConfig, type StaticPageDataBuildOptions, renderBodyAttrs, renderHeadToString, renderHtmlAttrs, resolveHead, serializePageData };
|
package/dist/pages/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { l as resolveNamedLayout, n as scanPages, o as resolveEffectiveLayoutChain, r as generateComponentManifest, s as resolveLayoutChain, t as pageFileEnvironment } from "../scan-4YOxDaw2.mjs";
|
|
2
|
+
import { a as resolveHead, i as renderHtmlAttrs, n as renderBodyAttrs, r as renderHeadToString } from "../head-CWJhfUwV.mjs";
|
|
3
3
|
import { a as join, n as dirname } from "../dist-DMYe8CZJ.mjs";
|
|
4
4
|
import { n as assertLinkPrefetchValue } from "../prefetch-Dx2jIbtg.mjs";
|
|
5
|
-
import { r as parseRedirectsFile } from "../headers-
|
|
6
|
-
import { p as readConfig } from "../config-
|
|
5
|
+
import { r as parseRedirectsFile } from "../headers-Q0kZDpk8.mjs";
|
|
6
|
+
import { p as readConfig } from "../config-CzFdJYNA.mjs";
|
|
7
7
|
import { a as serializePageData } from "../serialize-Pf-CIQK_.mjs";
|
|
8
|
-
import { r as resolvePagesDir } from "../project-paths-
|
|
8
|
+
import { r as resolvePagesDir } from "../project-paths-CUhCPMpK.mjs";
|
|
9
9
|
import { existsSync } from "node:fs";
|
|
10
10
|
import { normalizePath } from "vite";
|
|
11
11
|
// src/pages/static-data.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as PageScanResult } from "../types-IPut3_Yx.mjs";
|
|
2
2
|
import { Plugin, ResolvedConfig, UserConfig, ViteDevServer } from "vite";
|
|
3
3
|
//#region src/SourceMap.d.ts
|
|
4
4
|
interface SourceMapOptions {
|
|
@@ -401,7 +401,11 @@ export type IslandClientEntryOptions = {
|
|
|
401
401
|
hydrateIsland: string;
|
|
402
402
|
};
|
|
403
403
|
export declare function generateIslandClientEntry(options: IslandClientEntryOptions): string;
|
|
404
|
-
/**
|
|
404
|
+
/**
|
|
405
|
+
* Extract CSS import statements from a file and return them as @import rules.
|
|
406
|
+
* @deprecated Void generates island entry imports with generateIslandClientEntry.
|
|
407
|
+
* Use findStaticCssImports to inspect authored imports. Removed in the next major version.
|
|
408
|
+
*/
|
|
405
409
|
export declare function extractCssImports(filePath: string): string;
|
|
406
410
|
/** Compute which island pages need client-side JavaScript. */
|
|
407
411
|
export declare function computePagesNeedingClientJS(pageScan: PageScanResult, pagesDir: string, resolvedConfig: ResolvedConfig | null): Set<string>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as resolve, n as dirname, s as relative } from "../dist-DMYe8CZJ.mjs";
|
|
2
|
-
import { a as
|
|
2
|
+
import { a as createBoundaryManifest, d as editIslandSource, f as findIslandImports, n as scanPages, o as resolveEffectiveLayoutChain, p as findStaticCssImports, u as toLayoutId } from "../scan-4YOxDaw2.mjs";
|
|
3
3
|
import { existsSync, readFileSync } from "node:fs";
|
|
4
4
|
import { isCSSRequest, normalizePath } from "vite";
|
|
5
5
|
// src/pages/islands-plugin.ts
|
|
@@ -73,6 +73,7 @@ function islandCssFiles(pageScan, pagesDir, componentPattern) {
|
|
|
73
73
|
if (componentPattern.test(page.componentPath)) files.add(normalizePath(resolve(pagesDir, page.componentPath)));
|
|
74
74
|
for (const layout of resolveEffectiveLayoutChain(page, pageScan.layouts, pageScan.namedLayouts)) files.add(normalizePath(resolve(pagesDir, layout.filePath)));
|
|
75
75
|
}
|
|
76
|
+
for (const boundary of pageScan.boundaries ?? []) if (componentPattern.test(boundary.filePath)) files.add(normalizePath(resolve(pagesDir, boundary.filePath)));
|
|
76
77
|
return files;
|
|
77
78
|
}
|
|
78
79
|
/**
|
|
@@ -111,7 +112,11 @@ function islandStyleRoots(pageScan, pagesDir) {
|
|
|
111
112
|
for (const layout of resolveEffectiveLayoutChain(page, pageScan.layouts, pageScan.namedLayouts)) layouts.add(normalizePath(resolve(pagesDir, layout.filePath)));
|
|
112
113
|
pages.push(normalizePath(resolve(pagesDir, page.componentPath)));
|
|
113
114
|
}
|
|
114
|
-
return [
|
|
115
|
+
return [
|
|
116
|
+
...layouts,
|
|
117
|
+
...pages,
|
|
118
|
+
...(pageScan.boundaries ?? []).map((boundary) => normalizePath(resolve(pagesDir, boundary.filePath)))
|
|
119
|
+
];
|
|
115
120
|
}
|
|
116
121
|
/** A stylesheet that a page links, not one imported as a string or a URL. */
|
|
117
122
|
function isLinkedStylesheet(id) {
|
|
@@ -218,7 +223,11 @@ function generateIslandClientEntry(options) {
|
|
|
218
223
|
lines.push("initIslands(islands, hydrateIsland);");
|
|
219
224
|
return lines.join("\n");
|
|
220
225
|
}
|
|
221
|
-
/**
|
|
226
|
+
/**
|
|
227
|
+
* Extract CSS import statements from a file and return them as @import rules.
|
|
228
|
+
* @deprecated Void generates island entry imports with generateIslandClientEntry.
|
|
229
|
+
* Use findStaticCssImports to inspect authored imports. Removed in the next major version.
|
|
230
|
+
*/
|
|
222
231
|
function extractCssImports(filePath) {
|
|
223
232
|
const code = readFileSync(filePath, "utf-8");
|
|
224
233
|
return findStaticCssImports(code, filePath).map(({ specifier }) => `@import ${JSON.stringify(specifier)};`).join("\n");
|
|
@@ -250,6 +259,12 @@ function computePagesNeedingClientJS(pageScan, pagesDir, resolvedConfig) {
|
|
|
250
259
|
break;
|
|
251
260
|
}
|
|
252
261
|
}
|
|
262
|
+
const pageIds = new Set(pageScan.pages.map((page) => page.componentId));
|
|
263
|
+
const interactiveLayouts = new Set([...pageScan.layouts, ...pageScan.namedLayouts].filter((layout) => layout.island && hasIslandImports(readFileSync(resolve(pagesDir, layout.filePath), "utf8"), layout.filePath)).map((layout) => {
|
|
264
|
+
const id = toLayoutId(layout);
|
|
265
|
+
return pageIds.has(id) ? id.replace(/(^|\/)([^/]+)$/, "$1_$2") : id;
|
|
266
|
+
}));
|
|
267
|
+
for (const plan of Object.values(createBoundaryManifest(pageScan).plans)) if (plan.layouts.some((id) => interactiveLayouts.has(id))) result.add(plan.id);
|
|
253
268
|
return result;
|
|
254
269
|
}
|
|
255
270
|
/**
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { w as ValidationError } from "../handler-
|
|
2
|
-
import { a as handlePageMutation, i as handlePageGet, n as PageRenderResult, o as safeJsonStringify, r as flattenValidationErrors, t as PageObject } from "../protocol-
|
|
1
|
+
import { w as ValidationError } from "../handler-6fzr_ikp.mjs";
|
|
2
|
+
import { a as handlePageMutation, i as handlePageGet, n as PageRenderResult, o as safeJsonStringify, r as flattenValidationErrors, t as PageObject } from "../protocol-YS3tbxWE.mjs";
|
|
3
3
|
export { PageObject, PageRenderResult, ValidationError, flattenValidationErrors, handlePageGet, handlePageMutation, safeJsonStringify };
|
package/dist/pages/protocol.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as ValidationError } from "../validation-error-uAAjlsiW.mjs";
|
|
2
|
-
import { i as safeJsonStringify, n as handlePageGet, r as handlePageMutation, t as flattenValidationErrors } from "../protocol-
|
|
2
|
+
import { i as safeJsonStringify, n as handlePageGet, r as handlePageMutation, t as flattenValidationErrors } from "../protocol-IPSWHolJ.mjs";
|
|
3
3
|
export { ValidationError, flattenValidationErrors, handlePageGet, handlePageMutation, safeJsonStringify };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as parsePlatformArgs } from "./platform-args-DtpHS_75.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as operatorGroups, r as parseOperatorArgs } from "./operator-args-
|
|
1
|
+
import { n as operatorGroups, r as parseOperatorArgs } from "./operator-args-BCCohcz3.mjs";
|
|
2
2
|
import { PLATFORM_LOGIN_KINDS, normalizePlatformDashboardUrl, parsePlatformLoginId } from "@void/platform";
|
|
3
3
|
import { parsePlatformPlanId } from "@void/platform/plans";
|
|
4
4
|
// src/cli/platform-config-args.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { A as confirm, K as select, U as password, X as text, z as multiselect } from "./dist-
|
|
1
|
+
import { A as confirm, K as select, U as password, X as text, z as multiselect } from "./dist-STQXl8ck.mjs";
|
|
2
2
|
import { u as openBrowser } from "./auth-CCk9Seol.mjs";
|
|
3
3
|
import { a as resolveOperatorOrigin, r as readOperatorToken } from "./operator-auth-CD3pap65.mjs";
|
|
4
4
|
import { n as OperatorClient } from "./operator-client-XvXTkea6.mjs";
|
|
5
|
-
import { i as humanLines } from "./operator-cmd-
|
|
6
|
-
import { l as formatUrl, m as printSuccess } from "./output-
|
|
7
|
-
import { o as platformPromptAnswer } from "./platform-setup-
|
|
5
|
+
import { i as humanLines } from "./operator-cmd-CQOQrUiO.mjs";
|
|
6
|
+
import { l as formatUrl, m as printSuccess } from "./output-DNVILSz2.mjs";
|
|
7
|
+
import { o as platformPromptAnswer } from "./platform-setup-Casiffqj.mjs";
|
|
8
8
|
import { parsePlatformAdmissionPolicy, parsePlatformLoginConfiguration } from "@void/platform";
|
|
9
9
|
import { stripVTControlCharacters } from "node:util";
|
|
10
10
|
import { readFile } from "node:fs/promises";
|
|
@@ -142,11 +142,11 @@ async function configurationInput(args, existing) {
|
|
|
142
142
|
}
|
|
143
143
|
async function runPlatformAuthConfig(args) {
|
|
144
144
|
if (args.action === "recover") {
|
|
145
|
-
const { runPlatformAuthRecovery } = await import("./platform-auth-recovery-
|
|
145
|
+
const { runPlatformAuthRecovery } = await import("./platform-auth-recovery-DPK2Mvmo.mjs");
|
|
146
146
|
return runPlatformAuthRecovery(args);
|
|
147
147
|
}
|
|
148
148
|
if (args.action === "protection") {
|
|
149
|
-
const { runPlatformProtectionConfig } = await import("./platform-auth-protection-
|
|
149
|
+
const { runPlatformProtectionConfig } = await import("./platform-auth-protection-BTRI_YwD.mjs");
|
|
150
150
|
return runPlatformProtectionConfig(args);
|
|
151
151
|
}
|
|
152
152
|
const origin = resolveOperatorOrigin(args.connection);
|
package/dist/{platform-auth-protection-Dv208eyL.mjs → platform-auth-protection-BTRI_YwD.mjs}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { A as confirm, tt as isCancel } from "./dist-
|
|
1
|
+
import { A as confirm, tt as isCancel } from "./dist-STQXl8ck.mjs";
|
|
2
2
|
import { t as cfAccessHeaders } from "./cf-access-pejlJmuy.mjs";
|
|
3
3
|
import { t as ensurePlatformAccessToken } from "./cf-access-Dnyw8KFY.mjs";
|
|
4
4
|
import { a as resolveOperatorOrigin, r as readOperatorToken } from "./operator-auth-CD3pap65.mjs";
|
|
5
5
|
import { n as OperatorClient } from "./operator-client-XvXTkea6.mjs";
|
|
6
|
-
import { m as printSuccess } from "./output-
|
|
7
|
-
import {
|
|
8
|
-
import { d as verifyPlatformInstallationOwnership, l as selectAuthoritativePlatformManifest } from "./platform-management-
|
|
6
|
+
import { m as printSuccess } from "./output-DNVILSz2.mjs";
|
|
7
|
+
import { J as parsePlatformAccessSetupSpec, W as resolvePlatformCloudflareCredential, Y as preparePlatformAccessSetup, Z as PlatformCloudflareClient, g as acquirePlatformDatabaseLifecycleLock, n as resolvePlatformInstallDatabaseUrl, q as checkpointPlatformAccessResources } from "./platform-lifecycle-D2RS7DE0.mjs";
|
|
8
|
+
import { d as verifyPlatformInstallationOwnership, l as selectAuthoritativePlatformManifest } from "./platform-management-d3ETv3Dw.mjs";
|
|
9
9
|
import { S as writePendingInstallationSecrets, c as normalizePlatformApiUrl, m as readInstallationRecoverySecrets, p as promoteInstallationSecrets, t as acquirePlatformLifecycleLock, v as resolveInstallationManifest, x as writeInstallationManifest } from "./platform-registry-DZ_2Xuqd.mjs";
|
|
10
10
|
import { parsePlatformAccessProtection, platformProtectionProofMessage } from "@void/platform";
|
|
11
11
|
import { createHmac } from "node:crypto";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as confirm, tt as isCancel } from "./dist-
|
|
1
|
+
import { A as confirm, tt as isCancel } from "./dist-STQXl8ck.mjs";
|
|
2
2
|
import { u as openBrowser } from "./auth-CCk9Seol.mjs";
|
|
3
3
|
import { a as resolveOperatorOrigin } from "./operator-auth-CD3pap65.mjs";
|
|
4
|
-
import { l as formatUrl, m as printSuccess } from "./output-
|
|
5
|
-
import {
|
|
6
|
-
import { d as verifyPlatformInstallationOwnership, l as selectAuthoritativePlatformManifest } from "./platform-management-
|
|
4
|
+
import { l as formatUrl, m as printSuccess } from "./output-DNVILSz2.mjs";
|
|
5
|
+
import { W as resolvePlatformCloudflareCredential, Z as PlatformCloudflareClient, _ as acquirePlatformDatabaseLifecycleLockConnection, n as resolvePlatformInstallDatabaseUrl, v as platformDatabaseClientUrl } from "./platform-lifecycle-D2RS7DE0.mjs";
|
|
6
|
+
import { d as verifyPlatformInstallationOwnership, l as selectAuthoritativePlatformManifest } from "./platform-management-d3ETv3Dw.mjs";
|
|
7
7
|
import { m as readInstallationRecoverySecrets, t as acquirePlatformLifecycleLock, v as resolveInstallationManifest } from "./platform-registry-DZ_2Xuqd.mjs";
|
|
8
8
|
import { parsePlatformAccessProtection, parsePlatformAdmissionPolicy, parsePlatformLoginConfiguration, platformAuthenticationRecoveryMessage, validatePlatformAdmissionPolicy } from "@void/platform";
|
|
9
9
|
import { createCipheriv, createDecipheriv, createHash, createHmac, hkdfSync, randomBytes, randomUUID } from "node:crypto";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as discoverPlatform, r as runPlatformCommand } from "./platform-cmd-
|
|
1
|
+
export { t as discoverPlatform, r as runPlatformCommand } from "./platform-cmd-HS_FSthn.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { K as select, L as log, X as text, tt as isCancel } from "./dist-
|
|
1
|
+
import { K as select, L as log, X as text, tt as isCancel } from "./dist-STQXl8ck.mjs";
|
|
2
2
|
import { t as cfAccessHeaders } from "./cf-access-pejlJmuy.mjs";
|
|
3
3
|
import { r as isCloudflareAccessChallenge, t as ensurePlatformAccessToken } from "./cf-access-Dnyw8KFY.mjs";
|
|
4
|
-
import { f as import_picocolors, l as formatUrl, m as printSuccess } from "./output-
|
|
4
|
+
import { f as import_picocolors, l as formatUrl, m as printSuccess } from "./output-DNVILSz2.mjs";
|
|
5
5
|
import { n as readPlatformDiscoveryResponse, t as PlatformDisabledError } from "./platform-discovery-B0eZjZ3B.mjs";
|
|
6
6
|
import { b as selectPlatformConnection, c as normalizePlatformApiUrl, i as getActivePlatformConnection, l as platformConnectionSlug, o as listInstallationManifests, s as listPlatformConnections, y as savePlatformConnection } from "./platform-registry-DZ_2Xuqd.mjs";
|
|
7
7
|
// src/cli/platform-cmd.ts
|
|
@@ -96,19 +96,19 @@ async function runPlatformCommand(_root, args) {
|
|
|
96
96
|
}]
|
|
97
97
|
});
|
|
98
98
|
if (isCancel(group)) return;
|
|
99
|
-
const { parsePlatformArgs } = await import("./platform-args-
|
|
99
|
+
const { parsePlatformArgs } = await import("./platform-args-DSi4_M8n.mjs");
|
|
100
100
|
return runPlatformCommand(_root, parsePlatformArgs(["config", group]));
|
|
101
101
|
}
|
|
102
|
-
const { runPlatformPlansConfig } = await import("./platform-plans-config-
|
|
102
|
+
const { runPlatformPlansConfig } = await import("./platform-plans-config-B7yJQKf7.mjs");
|
|
103
103
|
await runPlatformPlansConfig(args);
|
|
104
104
|
return;
|
|
105
105
|
}
|
|
106
|
-
const { runPlatformAuthConfig } = await import("./platform-auth-config-
|
|
106
|
+
const { runPlatformAuthConfig } = await import("./platform-auth-config-fLwIS5VG.mjs");
|
|
107
107
|
await runPlatformAuthConfig(args);
|
|
108
108
|
return;
|
|
109
109
|
}
|
|
110
110
|
if (args.subcommand === "operator") {
|
|
111
|
-
const { runOperatorCommand } = await import("./operator-cmd-
|
|
111
|
+
const { runOperatorCommand } = await import("./operator-cmd-xCACDtT1.mjs");
|
|
112
112
|
await runOperatorCommand(args);
|
|
113
113
|
return;
|
|
114
114
|
}
|
|
@@ -176,7 +176,7 @@ async function runPlatformCommand(_root, args) {
|
|
|
176
176
|
console.log(`Capabilities: ${Object.entries(discovery.capabilities).filter(([, enabled]) => enabled).map(([name]) => name).join(", ")}`);
|
|
177
177
|
return;
|
|
178
178
|
}
|
|
179
|
-
const { runPlatformLifecycleCommand } = await import("./platform-lifecycle-
|
|
179
|
+
const { runPlatformLifecycleCommand } = await import("./platform-lifecycle-B6LUBwjS.mjs");
|
|
180
180
|
await runPlatformLifecycleCommand(args);
|
|
181
181
|
}
|
|
182
182
|
function showSavedInstallationStatus(manifest) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as confirm, X as text, tt as isCancel } from "./dist-
|
|
1
|
+
import { A as confirm, X as text, tt as isCancel } from "./dist-STQXl8ck.mjs";
|
|
2
2
|
import { t as cfAccessHeaders } from "./cf-access-pejlJmuy.mjs";
|
|
3
|
-
import { m as printSuccess, p as note } from "./output-
|
|
4
|
-
import {
|
|
5
|
-
import { d as verifyPlatformInstallationOwnership, l as selectAuthoritativePlatformManifest, o as resolveInstalledPlatformManifest } from "./platform-management-
|
|
3
|
+
import { m as printSuccess, p as note } from "./output-DNVILSz2.mjs";
|
|
4
|
+
import { A as recordPlatformWorkerTraffic, O as recordResource, T as createPlatformHealthProbeToken, U as assertPlatformOperatorCredentialCanApplyPlan, W as resolvePlatformCloudflareCredential, Z as PlatformCloudflareClient, g as acquirePlatformDatabaseLifecycleLock, j as createPlatformInstallPlan, n as resolvePlatformInstallDatabaseUrl, t as assertNoninteractivePlatformMutationAcknowledged } from "./platform-lifecycle-D2RS7DE0.mjs";
|
|
5
|
+
import { d as verifyPlatformInstallationOwnership, l as selectAuthoritativePlatformManifest, o as resolveInstalledPlatformManifest } from "./platform-management-d3ETv3Dw.mjs";
|
|
6
6
|
import { m as readInstallationRecoverySecrets, t as acquirePlatformLifecycleLock, x as writeInstallationManifest, y as savePlatformConnection } from "./platform-registry-DZ_2Xuqd.mjs";
|
|
7
7
|
import { PLATFORM_HEALTH_HOSTNAME_LABEL, PLATFORM_REMOTE_INSTALLATION_MANIFEST_KEY, createApplicationRoutes, createPlatformDeploymentManifest, normalizeApplicationDomain } from "@void/platform";
|
|
8
8
|
// src/cli/platform-domain.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { r as runPlatformLifecycleCommand } from "./platform-lifecycle-
|
|
1
|
+
export { r as runPlatformLifecycleCommand } from "./platform-lifecycle-D2RS7DE0.mjs";
|