void 0.10.13 → 0.20.1
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/AGENTS_TEMPLATE.md +6 -0
- package/{skills/void/docs/node_modules/void/node_modules/pglite-server/LICENSE.md → LICENSE} +1 -1
- package/README.md +34 -8
- package/dist/{auth-qgMlYp7Z.d.mts → auth-DkcFflXV.d.mts} +10 -11
- package/dist/auth-W9WII-mN.mjs +630 -0
- package/dist/{auth-cmd-BqsdZJp5.mjs → auth-cmd-CAH62yDU.mjs} +4 -3
- package/dist/{auth-migrations-BTZ-ATvQ.mjs → auth-migrations-9vif1uj8.mjs} +53 -12
- package/dist/{better-auth-shared-BQooDxbw.mjs → better-auth-shared-CYw1T3k4.mjs} +7 -10
- package/dist/{better-auth-shared-DealXecJ.d.mts → better-auth-shared-DSCeohOK.d.mts} +10 -5
- package/dist/{build-cmd-Bujrv5q-.mjs → build-cmd-CJvZvPQO.mjs} +6 -4
- package/dist/{cache-C11V8Fxq.mjs → cache-BlNeQjuP.mjs} +9 -5
- package/dist/{cancel-deploy-fwFYF04b.mjs → cancel-deploy-CmlAZ9P6.mjs} +3 -2
- package/dist/cf-access-AJ1ehiFR.mjs +42 -0
- package/dist/cf-access-DsSsZUPr.mjs +67 -0
- package/dist/cli/cli.d.mts +1 -1
- package/dist/cli/cli.mjs +1735 -165
- package/dist/cli/env-schema-probe.d.mts +48 -61
- package/dist/cli/env-schema-probe.mjs +10 -58
- package/dist/{client-Gb71-XkG.mjs → client-Clirrol3.mjs} +120 -463
- package/dist/cloudflare-auth-B1QtTO1b.mjs +217 -0
- package/dist/cloudflare-cmd-B6_OZx2V.mjs +62 -0
- package/dist/cloudflare-connect-j5D4hhrG.mjs +56 -0
- package/dist/cloudflare-operations-CPTpRW6d.mjs +566 -0
- package/dist/{config-qHGgPuWT.mjs → config-BQFq7QvD.mjs} +75 -41
- package/dist/{config-CutEMNGJ.mjs → config-NOG_U1aK.mjs} +10 -15
- package/dist/connect-C04Wdy_h.mjs +79 -0
- package/dist/{create-project-DsYvl3TB.mjs → create-project-ChGZ1DFd.mjs} +26 -16
- package/dist/database-provider.d.mts +21 -0
- package/dist/database-provider.mjs +6 -0
- package/dist/{db-C0i0sYMS.mjs → db-D2d_mUsB.mjs} +612 -117
- package/dist/{delete-mh6p-zkQ.mjs → delete-D8GigDk8.mjs} +9 -6
- package/dist/{deploy-jBJT1fUT.mjs → deploy-iXZ3F0N6.mjs} +3252 -1995
- package/dist/dev-inbox-DkgRWLkW.mjs +307 -0
- package/dist/{discover-CJHyvYfR.mjs → discover-xvfrgJeo.mjs} +3 -3
- package/dist/{magic-string.es-ZQjdJFFn.mjs → dist-BR1quN_w.mjs} +570 -216
- package/dist/{dist-DaKKDf8D.mjs → dist-BrsS7cai.mjs} +17 -2
- package/dist/{dist-BuiRJkTd.mjs → dist-m40_XgNh.mjs} +48 -33
- package/dist/{domain-DiaNQbrl.mjs → domain-B1VmoSr0.mjs} +41 -4
- package/dist/dotenv-VQxupEUv.mjs +181 -0
- package/dist/edge.d.mts +2 -0
- package/dist/edge.mjs +2 -0
- package/dist/email-Ce6SQq-i.mjs +182 -0
- package/dist/email-uKyQYUVY.mjs +1016 -0
- package/dist/{entry-D7yy4xVH.mjs → entry-DU3oDoQ3.mjs} +2 -2
- package/dist/env-BcQzYgoG.mjs +73 -0
- package/dist/env-D4Emu-M_.mjs +95 -0
- package/dist/env-helpers-CyKtOBpj.d.mts +22 -0
- package/dist/env-public-D_6u46fX.d.mts +135 -0
- package/dist/{env-types-QBj-ndax.mjs → env-types-BNPhro-M.mjs} +2 -2
- package/dist/{env-validation-Dea3v3ej.mjs → env-validation-ENpMy6Ez.mjs} +68 -122
- package/dist/{gen-BzXf3Jh2.mjs → gen-DI2YwdBM.mjs} +70 -15
- package/dist/generate-RTK8_kK1.mjs +47 -0
- package/dist/{github-cmd-DKcGUNsj.mjs → github-cmd-xItS5Zwf.mjs} +39 -31
- package/dist/{handler-Cjh8uM3Y.d.mts → handler-D1hLsObx.d.mts} +124 -122
- package/dist/{head-nmvOgFjd.d.mts → head-Do8P4puT.d.mts} +9 -8
- package/dist/{headers-ChAADPQu.mjs → headers-D8QfRX9Y.mjs} +12 -10
- package/dist/inbound-2d0zi2yS.mjs +706 -0
- package/dist/inbound-afAcWeQ9.d.mts +363 -0
- package/dist/index.d.mts +61 -34
- package/dist/index.mjs +1012 -293
- package/dist/{init-7JCAcKNQ.mjs → init-BD-9THgn.mjs} +329 -271
- package/dist/link-RMdgjF1v.mjs +52 -0
- package/dist/{list-CPwFDZ_c.mjs → list-3F52R_yO.mjs} +37 -5
- package/dist/{runner-kapo9aPs.mjs → local-d1-D2I6Ox5F.mjs} +116 -6
- package/dist/{login-BT3H8PN3.mjs → login-pV69H-ZO.mjs} +17 -15
- package/dist/{logs-Bt313ax7.mjs → logs-DFHHD6wE.mjs} +16 -2
- package/dist/mime-BJD7d_qL.mjs +1216 -0
- package/dist/neon-DHwd2zvC.mjs +54 -0
- package/dist/{node-pRg81HqV.mjs → node-Dk3H2jmU.mjs} +29 -8
- package/dist/operator-cmd-DYWRbWUA.mjs +348 -0
- package/dist/{agents-CtgBYqld.mjs → output-tFQLLj26.mjs} +676 -211
- package/dist/{package-json-Cx1osYo6.mjs → package-json-CPoWX79C.mjs} +1 -1
- package/dist/pages/client.d.mts +43 -41
- package/dist/pages/client.mjs +40 -33
- package/dist/pages/head-client.d.mts +10 -12
- package/dist/pages/head.d.mts +1 -1
- package/dist/pages/index.d.mts +37 -14
- package/dist/pages/index.mjs +5 -5
- package/dist/pages/islands-plugin.d.mts +25 -27
- package/dist/pages/islands-plugin.mjs +6 -4
- package/dist/pages/prefetch.d.mts +6 -7
- package/dist/pages/protocol.d.mts +2 -2
- package/dist/pages/protocol.mjs +2 -1
- package/dist/pages/serialize.d.mts +7 -8
- package/dist/platform-cmd-DxJ2FRwR.mjs +123 -0
- package/dist/platform-domain-ChvbJkdy.mjs +228 -0
- package/dist/platform-lifecycle-DN4MzJF_.mjs +4450 -0
- package/dist/platform-management-Db2PXw0B.mjs +698 -0
- package/dist/platform-recovery-C_YO-tIs.mjs +99 -0
- package/dist/{plugin-inference-DMeavIJ6.mjs → plugin-inference-BDRfZngg.mjs} +35 -19
- package/dist/prepare-BfJvFUtJ.mjs +14 -0
- package/dist/{prepare-BvvgAz-3.mjs → prepare-CBetXvsN.mjs} +15 -24
- package/dist/{preset-BjyR3lzz.mjs → preset-lAy0B0BQ.mjs} +25 -212
- package/dist/{project-cmd-D_w-4w5B.mjs → project-cmd-Mo0V9yKS.mjs} +25 -12
- package/dist/{project-paths-BQd7OmIo.mjs → project-paths-SK8nMHPp.mjs} +3 -1
- package/dist/{project-tsconfig-B-QtXjLQ.mjs → project-tsconfig-Ql2XsSQp.mjs} +2 -2
- package/dist/{protocol-Bnb0LFp3.d.mts → protocol-C-pqYJjE.d.mts} +3 -4
- package/dist/{provision-CPx2ZxsH.mjs → provision-Blnstcm2.mjs} +78 -45
- package/dist/r2-conditions-D1Wk8i7b.mjs +30 -0
- package/dist/{requests-B8sZxaFM.mjs → requests-BcKOVpRg.mjs} +5 -3
- package/dist/{resolve-project-BBMtLLV9.mjs → resolve-project--Vxawf7z.mjs} +2 -2
- package/dist/rollback-Bx85-0xh.mjs +166 -0
- package/dist/{rolldown-runtime-DJK8HYOj.mjs → rolldown-runtime-rQ84J-ij.mjs} +1 -1
- package/dist/{route-types-z1jtHEi_.mjs → route-types-Da-DpyUp.mjs} +77 -25
- package/dist/routes-stub.d.mts +22 -23
- package/dist/runner-mysql-7BPUNGmL.mjs +61 -0
- package/dist/{runner-pg-CHM76xuC.mjs → runner-pg-BkEza-dX.mjs} +18 -6
- package/dist/runtime/ai.d.mts +21 -14
- package/dist/runtime/ai.mjs +5 -4
- package/dist/runtime/auth-client-react.d.mts +3 -5
- package/dist/runtime/auth-client-solid.d.mts +3 -5
- package/dist/runtime/auth-client-svelte.d.mts +3 -5
- package/dist/runtime/auth-client-vue.d.mts +3 -5
- package/dist/runtime/auth-client.d.mts +3 -5
- package/dist/runtime/auth.d.mts +1 -1
- package/dist/runtime/better-auth-mysql.d.mts +10 -0
- package/dist/runtime/better-auth-mysql.mjs +49 -0
- package/dist/runtime/better-auth-pg.d.mts +8 -9
- package/dist/runtime/better-auth-pg.mjs +2 -2
- package/dist/runtime/better-auth.d.mts +8 -9
- package/dist/runtime/better-auth.mjs +2 -2
- 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-mysql.d.mts +2 -0
- package/dist/runtime/db-mysql.mjs +1 -0
- package/dist/runtime/db.d.mts +10 -11
- package/dist/runtime/durable.d.mts +47 -0
- package/dist/runtime/durable.mjs +146 -0
- package/dist/runtime/email/testing.d.mts +112 -0
- package/dist/runtime/email/testing.mjs +283 -0
- package/dist/runtime/email.d.mts +30 -0
- package/dist/runtime/email.mjs +573 -0
- package/dist/runtime/env-helpers.d.mts +2 -2
- package/dist/runtime/env-helpers.mjs +5 -42
- package/dist/runtime/env-public-client.d.mts +10 -11
- package/dist/runtime/env-public-client.mjs +1 -1
- package/dist/runtime/env-public.d.mts +2 -2
- package/dist/runtime/env-public.mjs +104 -49
- package/dist/runtime/env.d.mts +19 -18
- package/dist/runtime/env.mjs +15 -2
- package/dist/runtime/fetch-stream.d.mts +20 -21
- package/dist/runtime/fetch.d.mts +15 -16
- package/dist/runtime/handler.d.mts +1 -1
- package/dist/runtime/isr.d.mts +21 -22
- package/dist/runtime/isr.mjs +26 -8
- package/dist/runtime/kv.d.mts +9 -10
- package/dist/runtime/live-client.d.mts +5 -7
- package/dist/runtime/live-client.mjs +9 -7
- package/dist/runtime/live-server.d.mts +4 -5
- package/dist/runtime/live.d.mts +22 -24
- package/dist/runtime/live.mjs +1 -1
- package/dist/runtime/log.d.mts +16 -17
- package/dist/runtime/migration-handler-mysql.d.mts +4 -0
- package/dist/runtime/migration-handler-mysql.mjs +81 -0
- package/dist/runtime/migration-handler-pg.d.mts +2 -4
- package/dist/runtime/migration-handler.d.mts +5 -6
- package/dist/runtime/migration-handler.mjs +4 -3
- package/dist/runtime/queues.d.mts +3 -4
- package/dist/runtime/queues.mjs +2 -1
- package/dist/runtime/remote/binding-handler.d.mts +10 -12
- package/dist/runtime/remote/binding-handler.mjs +24 -3
- package/dist/runtime/remote/index.d.mts +5 -6
- package/dist/runtime/remote/index.mjs +21 -18
- package/dist/runtime/response.d.mts +10 -11
- package/dist/runtime/sandbox.d.mts +56 -55
- package/dist/runtime/sandbox.mjs +57 -49
- package/dist/runtime/schema-mysql.d.mts +1 -0
- package/dist/runtime/schema-mysql.mjs +2 -0
- package/dist/runtime/seed.d.mts +14 -9
- package/dist/runtime/sse-client.d.mts +6 -7
- package/dist/runtime/sse.d.mts +11 -12
- package/dist/runtime/storage.d.mts +3 -4
- package/dist/runtime/validator.d.mts +1 -1
- package/dist/runtime/ws-server.d.mts +12 -12
- package/dist/runtime/ws-server.mjs +32 -4
- package/dist/runtime/ws.d.mts +19 -21
- package/dist/{scan-ChWt4pX1.mjs → scan-BMH4rzlv.mjs} +42 -19
- package/dist/{scan-NU4xKGci.mjs → scan-CpK-57ug.mjs} +5 -4
- package/dist/{secret-Dt32J6RI.mjs → secret-ByhJ9AMl.mjs} +62 -5
- package/dist/{skills-CLjN0uUO.mjs → skills-Q46GZMO-.mjs} +6 -4
- package/dist/sqlite-validation-BzKMWnO4.mjs +25 -0
- package/dist/{standard-schema-DJ0HW7QP.d.mts → standard-schema-Fo_vCAZh.d.mts} +6 -6
- package/dist/{subcommand-prompt-BzV8iQZo.mjs → subcommand-prompt-WfySCQ7S.mjs} +67 -48
- package/dist/sveltekit.d.mts +12 -11
- package/dist/sveltekit.mjs +1 -1
- package/dist/types-BAp5AEBU.d.mts +79 -0
- package/dist/types-CKWnYgfy.d.mts +1 -0
- package/dist/{validate-Cw_RLeTj.mjs → validate-tBBN_dXH.mjs} +4 -3
- package/dist/wrangler--imS8n0d.mjs +1796 -0
- package/dist/{yarn-pnp-DJn3SAHF.mjs → yarn-pnp-DxSInkzL.mjs} +1 -1
- package/package.json +79 -65
- package/schema.json +22 -3
- package/skills/void/SKILL.md +59 -2
- package/skills/void/docs/guide/ai.md +32 -14
- package/skills/void/docs/guide/app-types.md +6 -6
- package/skills/void/docs/guide/auth.md +14 -16
- package/skills/void/docs/guide/database/d1.md +6 -0
- package/skills/void/docs/guide/database/mysql.md +60 -0
- package/skills/void/docs/guide/database/postgresql.md +14 -9
- package/skills/void/docs/guide/database.md +39 -26
- package/skills/void/docs/guide/deployment.md +99 -25
- package/skills/void/docs/guide/durable-state.md +140 -0
- package/skills/void/docs/guide/edge/headers.md +5 -5
- package/skills/void/docs/guide/edge/prerendering.md +2 -0
- package/skills/void/docs/guide/edge/revalidation.md +21 -6
- package/skills/void/docs/guide/edge/rewrites.md +18 -14
- package/skills/void/docs/guide/edge/static-assets.md +12 -10
- package/skills/void/docs/guide/email.md +640 -0
- package/skills/void/docs/guide/env-migration.md +109 -0
- package/skills/void/docs/guide/env-vars.md +70 -248
- package/skills/void/docs/guide/index.md +15 -17
- package/skills/void/docs/guide/jobs.md +8 -5
- package/skills/void/docs/guide/live.md +7 -15
- package/skills/void/docs/guide/pages-routing/actions-and-forms.md +8 -4
- package/skills/void/docs/guide/pages-routing/islands.md +3 -3
- package/skills/void/docs/guide/pages-routing/loaders.md +6 -4
- package/skills/void/docs/guide/pages-routing/overview.md +7 -7
- package/skills/void/docs/guide/platform-administration.md +212 -0
- package/skills/void/docs/guide/platform-development.md +264 -0
- package/skills/void/docs/guide/queues.md +10 -10
- package/skills/void/docs/guide/quickstart.md +46 -67
- package/skills/void/docs/guide/remote-dev.md +8 -6
- package/skills/void/docs/guide/sandboxes.md +33 -16
- package/skills/void/docs/guide/self-hosted-platform.md +553 -0
- package/skills/void/docs/guide/server-routing.md +5 -5
- package/skills/void/docs/guide/sse.md +4 -4
- package/skills/void/docs/guide/ssg.md +5 -3
- package/skills/void/docs/guide/storage.md +2 -2
- package/skills/void/docs/guide/websockets.md +15 -7
- package/skills/void/docs/index.md +3 -3
- package/skills/void/docs/integrations/agents.md +6 -64
- package/skills/void/docs/integrations/cloudflare.md +165 -146
- package/skills/void/docs/integrations/frameworks/analog.md +4 -4
- package/skills/void/docs/integrations/frameworks/astro.md +5 -5
- package/skills/void/docs/integrations/frameworks/nuxt.md +5 -5
- package/skills/void/docs/integrations/frameworks/overview.md +3 -3
- package/skills/void/docs/integrations/frameworks/react-router.md +3 -3
- package/skills/void/docs/integrations/frameworks/sveltekit.md +3 -3
- package/skills/void/docs/integrations/frameworks/tanstack-start.md +2 -2
- package/skills/void/docs/integrations/nodejs-bun-deno.md +11 -4
- package/skills/void/docs/reference/api.md +42 -6
- package/skills/void/docs/reference/cli.md +665 -160
- package/skills/void/docs/reference/config.md +67 -27
- package/skills/void/docs/reference/resource-inference.md +13 -9
- package/skills/void/docs/reference/structure.md +9 -11
- package/AGENT_PROMPT.md +0 -19
- package/dist/cf-access-Bqw81xAf.mjs +0 -22
- package/dist/env-CZy5MorI.mjs +0 -299
- package/dist/env-helpers-z4stu8uc.d.mts +0 -52
- package/dist/env-mask-Dd47NbR6.mjs +0 -90
- package/dist/env-public-BfiLcMBk.d.mts +0 -140
- package/dist/link-CdGHSIy-.mjs +0 -45
- package/dist/mcp-DoM3_nhd.mjs +0 -377
- package/dist/project-paths-GpziKeQQ.d.mts +0 -25
- package/dist/providers-BNKRacMr.d.mts +0 -7
- package/dist/proxy-D-3_D-Gl.mjs +0 -5
- package/dist/rollback-CkvTFXx5.mjs +0 -90
- package/dist/runtime/isr-cache.d.mts +0 -207
- package/dist/runtime/isr-cache.mjs +0 -523
- package/dist/types-lLjNE9Qp.d.mts +0 -51
- package/getting-started-prompt.txt +0 -28
- package/skills/void/command/void.md +0 -7
- package/skills/void/docs/integrations/auth-providers.md +0 -0
- package/skills/void/docs/integrations/payment-processors.md +0 -0
- package/skills/void/docs/node_modules/@iconify/vue/README.md +0 -408
- package/skills/void/docs/node_modules/@iconify/vue/offline/readme.md +0 -5
- package/skills/void/docs/node_modules/@voidzero-dev/vitepress-theme/README.md +0 -103
- package/skills/void/docs/node_modules/oxc-minify/README.md +0 -78
- package/skills/void/docs/node_modules/reka-ui/README.md +0 -80
- package/skills/void/docs/node_modules/vitepress/README.md +0 -28
- package/skills/void/docs/node_modules/vitepress/template/api-examples.md +0 -49
- package/skills/void/docs/node_modules/vitepress/template/index.md +0 -28
- package/skills/void/docs/node_modules/vitepress/template/markdown-examples.md +0 -85
- package/skills/void/docs/node_modules/vitepress-plugin-group-icons/README.md +0 -101
- package/skills/void/docs/node_modules/void/AGENT_PROMPT.md +0 -19
- package/skills/void/docs/node_modules/void/CLAUDE.md +0 -221
- package/skills/void/docs/node_modules/void/README.md +0 -90
- package/skills/void/docs/node_modules/void/node_modules/@clack/prompts/CHANGELOG.md +0 -685
- package/skills/void/docs/node_modules/void/node_modules/@clack/prompts/README.md +0 -396
- package/skills/void/docs/node_modules/void/node_modules/@cloudflare/sandbox/README.md +0 -219
- package/skills/void/docs/node_modules/void/node_modules/@cloudflare/vite-plugin/README.md +0 -37
- package/skills/void/docs/node_modules/void/node_modules/@cloudflare/workers-types/README.md +0 -135
- package/skills/void/docs/node_modules/void/node_modules/@electric-sql/pglite/README.md +0 -189
- package/skills/void/docs/node_modules/void/node_modules/@hono/oauth-providers/CHANGELOG.md +0 -143
- package/skills/void/docs/node_modules/void/node_modules/@hono/oauth-providers/README.md +0 -1272
- package/skills/void/docs/node_modules/void/node_modules/@napi-rs/keyring/README.md +0 -19
- package/skills/void/docs/node_modules/void/node_modules/@types/better-sqlite3/README.md +0 -15
- package/skills/void/docs/node_modules/void/node_modules/@types/node/README.md +0 -15
- package/skills/void/docs/node_modules/void/node_modules/@types/pg/README.md +0 -15
- package/skills/void/docs/node_modules/void/node_modules/@types/proper-lockfile/README.md +0 -51
- package/skills/void/docs/node_modules/void/node_modules/@typescript/native-preview/README.md +0 -22
- package/skills/void/docs/node_modules/void/node_modules/@typescript/native-preview/vendor/vscode-jsonrpc/README.md +0 -69
- package/skills/void/docs/node_modules/void/node_modules/@void/md/README.md +0 -153
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/@shikijs/engine-javascript/README.md +0 -9
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/@shikijs/transformers/README.md +0 -9
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/@types/node/README.md +0 -15
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/gray-matter/CHANGELOG.md +0 -24
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/gray-matter/README.md +0 -565
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/markdown-exit/README.md +0 -127
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/markdown-it-anchor/README.md +0 -600
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/markdown-it-attrs/README.md +0 -386
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/markdown-it-container/README.md +0 -95
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/markdown-it-emoji/README.md +0 -101
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/markdown-it-footnote/README.md +0 -135
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/pathslash/README.md +0 -64
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/shiki/README.md +0 -15
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/tinyglobby/README.md +0 -25
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/AGENTS.md +0 -16
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/README.md +0 -220
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/build.md +0 -21
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/check.md +0 -35
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/create.md +0 -70
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/fmt.md +0 -20
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/index.md +0 -35
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/lint.md +0 -26
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/pack.md +0 -17
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/run.md +0 -364
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/staged.md +0 -15
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/test.md +0 -18
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/automatic-data-tracking.md +0 -145
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/build.md +0 -40
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/cache.md +0 -107
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/check.md +0 -60
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/ci.md +0 -62
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/commit-hooks.md +0 -60
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/create.md +0 -341
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/dev.md +0 -24
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/docker.md +0 -175
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/env.md +0 -167
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/fmt.md +0 -41
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/github-actions-cache.md +0 -165
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/ide-integration.md +0 -101
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/implode.md +0 -23
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/index.md +0 -134
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/install.md +0 -199
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/lint.md +0 -50
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/migrate-rules.md +0 -347
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/migrate.md +0 -197
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/monorepo.md +0 -176
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/pack.md +0 -69
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/run.md +0 -356
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/test.md +0 -35
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/troubleshooting.md +0 -108
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/upgrade.md +0 -101
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/vpx.md +0 -66
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/why.md +0 -39
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/index.md +0 -12
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/team.md +0 -35
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/templates/generator/README.md +0 -35
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/templates/monorepo/README.md +0 -29
- package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vue/README.md +0 -58
- package/skills/void/docs/node_modules/void/node_modules/arktype/README.md +0 -165
- package/skills/void/docs/node_modules/void/node_modules/better-auth/LICENSE.md +0 -20
- package/skills/void/docs/node_modules/void/node_modules/better-auth/README.md +0 -32
- package/skills/void/docs/node_modules/void/node_modules/better-sqlite3/README.md +0 -99
- package/skills/void/docs/node_modules/void/node_modules/blake3-jit/README.md +0 -108
- package/skills/void/docs/node_modules/void/node_modules/drizzle-arktype/README.md +0 -51
- package/skills/void/docs/node_modules/void/node_modules/drizzle-kit/README.md +0 -79
- package/skills/void/docs/node_modules/void/node_modules/drizzle-orm/README.md +0 -44
- package/skills/void/docs/node_modules/void/node_modules/drizzle-valibot/README.md +0 -51
- package/skills/void/docs/node_modules/void/node_modules/drizzle-zod/README.md +0 -65
- package/skills/void/docs/node_modules/void/node_modules/es-module-lexer/README.md +0 -403
- package/skills/void/docs/node_modules/void/node_modules/estree-walker/README.md +0 -48
- package/skills/void/docs/node_modules/void/node_modules/hono/README.md +0 -85
- package/skills/void/docs/node_modules/void/node_modules/ignore/README.md +0 -452
- package/skills/void/docs/node_modules/void/node_modules/jsonc-parser/CHANGELOG.md +0 -76
- package/skills/void/docs/node_modules/void/node_modules/jsonc-parser/LICENSE.md +0 -21
- package/skills/void/docs/node_modules/void/node_modules/jsonc-parser/README.md +0 -364
- package/skills/void/docs/node_modules/void/node_modules/jsonc-parser/SECURITY.md +0 -41
- package/skills/void/docs/node_modules/void/node_modules/magic-string/README.md +0 -325
- package/skills/void/docs/node_modules/void/node_modules/ofetch/README.md +0 -398
- package/skills/void/docs/node_modules/void/node_modules/pathslash/README.md +0 -64
- package/skills/void/docs/node_modules/void/node_modules/pg/README.md +0 -96
- package/skills/void/docs/node_modules/void/node_modules/pglite-server/README.md +0 -135
- package/skills/void/docs/node_modules/void/node_modules/picocolors/README.md +0 -21
- package/skills/void/docs/node_modules/void/node_modules/proper-lockfile/CHANGELOG.md +0 -108
- package/skills/void/docs/node_modules/void/node_modules/proper-lockfile/README.md +0 -183
- package/skills/void/docs/node_modules/void/node_modules/tinyglobby/README.md +0 -25
- package/skills/void/docs/node_modules/void/node_modules/valibot/LICENSE.md +0 -9
- package/skills/void/docs/node_modules/void/node_modules/valibot/README.md +0 -94
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/AGENTS.md +0 -16
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/README.md +0 -220
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/build.md +0 -21
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/check.md +0 -35
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/create.md +0 -70
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/fmt.md +0 -20
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/index.md +0 -35
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/lint.md +0 -26
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/pack.md +0 -17
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/run.md +0 -364
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/staged.md +0 -15
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/test.md +0 -18
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/automatic-data-tracking.md +0 -145
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/build.md +0 -40
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/cache.md +0 -107
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/check.md +0 -60
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/ci.md +0 -62
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/commit-hooks.md +0 -60
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/create.md +0 -341
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/dev.md +0 -24
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/docker.md +0 -175
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/env.md +0 -167
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/fmt.md +0 -41
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/github-actions-cache.md +0 -165
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/ide-integration.md +0 -101
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/implode.md +0 -23
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/index.md +0 -134
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/install.md +0 -199
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/lint.md +0 -50
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/migrate-rules.md +0 -347
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/migrate.md +0 -197
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/monorepo.md +0 -176
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/pack.md +0 -69
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/run.md +0 -356
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/test.md +0 -35
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/troubleshooting.md +0 -108
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/upgrade.md +0 -101
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/vpx.md +0 -66
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/why.md +0 -39
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/index.md +0 -12
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/team.md +0 -35
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/templates/generator/README.md +0 -35
- package/skills/void/docs/node_modules/void/node_modules/vite-plus/templates/monorepo/README.md +0 -29
- package/skills/void/docs/node_modules/void/node_modules/wrangler/README.md +0 -63
- package/skills/void/docs/node_modules/void/node_modules/zod/README.md +0 -191
- package/skills/void/docs/node_modules/void/skills/migrate-vite-cloudflare-to-void/SKILL.md +0 -175
- package/skills/void/docs/node_modules/void/skills/void/SKILL.md +0 -76
- package/skills/void/docs/node_modules/void/skills/void/command/void.md +0 -7
- package/skills/void/docs/node_modules/void/test/e2e/README.md +0 -85
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as dirname, o as join } from "./dist-BrsS7cai.mjs";
|
|
2
2
|
import { existsSync, readFileSync } from "node:fs";
|
|
3
3
|
//#region src/shared/package-json.ts
|
|
4
4
|
const DEFAULT_DEPENDENCY_FIELDS = ["dependencies", "devDependencies"];
|
package/dist/pages/client.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { t as PageObject } from "../protocol-
|
|
1
|
+
import { t as PageObject } from "../protocol-C-pqYJjE.mjs";
|
|
2
2
|
import { CacheForInput, CacheForResult } from "./prefetch.mjs";
|
|
3
|
-
|
|
4
3
|
//#region src/pages/action-result.d.ts
|
|
5
4
|
type ActionErrorHandlingScope = "callSite" | "boundary";
|
|
6
5
|
type ActionResult<T = PageObject | undefined> = {
|
|
@@ -10,26 +9,21 @@ type ActionResult<T = PageObject | undefined> = {
|
|
|
10
9
|
ok: false;
|
|
11
10
|
error: VoidActionError;
|
|
12
11
|
};
|
|
13
|
-
declare class VoidActionError extends Error {
|
|
12
|
+
export declare class VoidActionError extends Error {
|
|
14
13
|
readonly body: unknown;
|
|
15
14
|
readonly status: number;
|
|
16
15
|
readonly statusText: string;
|
|
17
16
|
readonly url: string;
|
|
18
|
-
constructor({
|
|
19
|
-
body,
|
|
20
|
-
status,
|
|
21
|
-
statusText,
|
|
22
|
-
url
|
|
23
|
-
}: {
|
|
17
|
+
constructor({ body, status, statusText, url }: {
|
|
24
18
|
body: unknown;
|
|
25
19
|
status: number;
|
|
26
20
|
statusText: string;
|
|
27
21
|
url: string;
|
|
28
22
|
});
|
|
29
23
|
}
|
|
30
|
-
declare function categorizeActionError(status: number): ActionErrorHandlingScope;
|
|
31
|
-
declare function isCallSiteActionError(error: unknown): error is VoidActionError;
|
|
32
|
-
declare function isAbortError(error: unknown): boolean;
|
|
24
|
+
export declare function categorizeActionError(status: number): ActionErrorHandlingScope;
|
|
25
|
+
export declare function isCallSiteActionError(error: unknown): error is VoidActionError;
|
|
26
|
+
export declare function isAbortError(error: unknown): boolean;
|
|
33
27
|
//#endregion
|
|
34
28
|
//#region src/pages/navigation-engine.d.ts
|
|
35
29
|
type PageComponentModule = {
|
|
@@ -42,12 +36,15 @@ type VisitOptions$1 = {
|
|
|
42
36
|
preserveScroll?: boolean;
|
|
43
37
|
preserveState?: boolean;
|
|
44
38
|
replace?: boolean;
|
|
45
|
-
viewTransition?: boolean;
|
|
46
|
-
|
|
39
|
+
viewTransition?: boolean;
|
|
40
|
+
/** @internal Used by React Actions to avoid waiting for a commit blocked by the action itself. */
|
|
41
|
+
_resolveOnShell?: boolean;
|
|
42
|
+
/** @internal Used by popstate handler to pass saved scroll position */
|
|
47
43
|
_scrollPosition?: {
|
|
48
44
|
x: number;
|
|
49
45
|
y: number;
|
|
50
|
-
} | null;
|
|
46
|
+
} | null;
|
|
47
|
+
/** @internal Used by popstate handler to avoid writing history while traversing */
|
|
51
48
|
_popstate?: boolean;
|
|
52
49
|
};
|
|
53
50
|
type PrefetchOptions$1 = {
|
|
@@ -105,38 +102,41 @@ type PageNavigationEngine = {
|
|
|
105
102
|
setPopStateHandler(handler: (url: string, options: VisitOptions$1) => void): void;
|
|
106
103
|
start(): void;
|
|
107
104
|
};
|
|
108
|
-
declare function createPageNavigationEngine(config: PageNavigationEngineConfig): Promise<PageNavigationEngine>;
|
|
105
|
+
export declare function createPageNavigationEngine(config: PageNavigationEngineConfig): Promise<PageNavigationEngine>;
|
|
109
106
|
//#endregion
|
|
110
107
|
//#region src/pages/form-value-equality.d.ts
|
|
111
|
-
declare function isEqualFormValue(a: unknown, b: unknown): boolean;
|
|
108
|
+
export declare function isEqualFormValue(a: unknown, b: unknown): boolean;
|
|
112
109
|
//#endregion
|
|
113
110
|
//#region src/pages/client.d.ts
|
|
114
|
-
type VisitOptions = {
|
|
111
|
+
export type VisitOptions = {
|
|
115
112
|
method?: string;
|
|
116
113
|
data?: unknown;
|
|
117
114
|
preserveScroll?: boolean;
|
|
118
115
|
preserveState?: boolean;
|
|
119
116
|
replace?: boolean;
|
|
120
|
-
viewTransition?: boolean;
|
|
121
|
-
|
|
117
|
+
viewTransition?: boolean;
|
|
118
|
+
/** @internal Used by React Actions to avoid waiting for a commit blocked by the action itself. */
|
|
119
|
+
_resolveOnShell?: boolean;
|
|
120
|
+
/** @internal Used by popstate handler to pass saved scroll position */
|
|
122
121
|
_scrollPosition?: {
|
|
123
122
|
x: number;
|
|
124
123
|
y: number;
|
|
125
|
-
} | null;
|
|
124
|
+
} | null;
|
|
125
|
+
/** @internal Used by popstate handler to avoid writing history while traversing */
|
|
126
126
|
_popstate?: boolean;
|
|
127
127
|
};
|
|
128
|
-
type PrefetchOptions = {
|
|
128
|
+
export type PrefetchOptions = {
|
|
129
129
|
method?: string;
|
|
130
130
|
cacheFor?: CacheForInput;
|
|
131
131
|
};
|
|
132
|
-
type NavigationStateType = "idle" | "loading" | "submitting";
|
|
133
|
-
type NavigationMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
134
|
-
type NavigationState = {
|
|
132
|
+
export type NavigationStateType = "idle" | "loading" | "submitting";
|
|
133
|
+
export type NavigationMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
134
|
+
export type NavigationState = {
|
|
135
135
|
state: NavigationStateType;
|
|
136
136
|
location: URL | null;
|
|
137
137
|
method: NavigationMethod | null;
|
|
138
138
|
};
|
|
139
|
-
type VoidRouter = {
|
|
139
|
+
export type VoidRouter = {
|
|
140
140
|
_hoverDelay: number;
|
|
141
141
|
readonly url: URL;
|
|
142
142
|
readonly path: string;
|
|
@@ -148,15 +148,17 @@ type VoidRouter = {
|
|
|
148
148
|
flush(url: string | URL, method?: string): void;
|
|
149
149
|
flushAll(): void;
|
|
150
150
|
};
|
|
151
|
-
type VoidRouterAdapter = {
|
|
151
|
+
export type VoidRouterAdapter = {
|
|
152
152
|
createDeferred(): unknown;
|
|
153
153
|
resolveDeferred(ref: unknown, value: unknown): unknown;
|
|
154
154
|
rejectDeferred(ref: unknown, error: string): unknown;
|
|
155
155
|
isLoading(ref: unknown): boolean;
|
|
156
|
-
applyUpdate(pageData: PageData, component: unknown, layouts: Array<unknown
|
|
156
|
+
applyUpdate(pageData: PageData, component: unknown, layouts: Array<unknown>, options: {
|
|
157
|
+
preserveState: boolean;
|
|
158
|
+
}): void | Promise<void>;
|
|
157
159
|
onDeferredUpdate?(props: Record<string, unknown>): void;
|
|
158
160
|
};
|
|
159
|
-
type VoidRouterConfig = {
|
|
161
|
+
export type VoidRouterConfig = {
|
|
160
162
|
adapter: VoidRouterAdapter;
|
|
161
163
|
components: Record<string, () => Promise<PageComponentModule>>;
|
|
162
164
|
layoutTree: Record<string, Array<string>>;
|
|
@@ -172,22 +174,22 @@ type VoidRouterConfig = {
|
|
|
172
174
|
onRouteChange?(url: string): void;
|
|
173
175
|
onNavigationChange?(navigation: NavigationState): void;
|
|
174
176
|
};
|
|
175
|
-
declare function idleNavigationState(): NavigationState;
|
|
176
|
-
declare function createRouterFacade(router: VoidRouter, getCurrentUrl: () => string, getCurrentParams?: () => Record<string, string>): VoidRouter;
|
|
177
|
-
declare function createSsrRouter(url?: string, params?: Record<string, string>): VoidRouter;
|
|
178
|
-
declare function isFile(value: unknown): boolean;
|
|
179
|
-
declare function hasFiles(data: unknown): boolean;
|
|
180
|
-
declare function objectToFormData(source: Record<string, unknown>, form?: FormData, parentKey?: string): FormData;
|
|
181
|
-
declare const ssrProxy: VoidRouter;
|
|
182
|
-
declare function submitAction(router: VoidRouter, url: string, options: VisitOptions): Promise<ActionResult>;
|
|
183
|
-
declare function createVoidRouter(config: VoidRouterConfig): Promise<{
|
|
177
|
+
export declare function idleNavigationState(): NavigationState;
|
|
178
|
+
export declare function createRouterFacade(router: VoidRouter, getCurrentUrl: () => string, getCurrentParams?: () => Record<string, string>): VoidRouter;
|
|
179
|
+
export declare function createSsrRouter(url?: string, params?: Record<string, string>): VoidRouter;
|
|
180
|
+
export declare function isFile(value: unknown): boolean;
|
|
181
|
+
export declare function hasFiles(data: unknown): boolean;
|
|
182
|
+
export declare function objectToFormData(source: Record<string, unknown>, form?: FormData, parentKey?: string): FormData;
|
|
183
|
+
export declare const ssrProxy: VoidRouter;
|
|
184
|
+
export declare function submitAction(router: VoidRouter, url: string, options: VisitOptions): Promise<ActionResult>;
|
|
185
|
+
export declare function createVoidRouter(config: VoidRouterConfig): Promise<{
|
|
184
186
|
router: VoidRouter;
|
|
185
187
|
initialPageData: PageData;
|
|
186
188
|
initialComponent: unknown;
|
|
187
189
|
initialLayouts: Array<unknown>;
|
|
188
190
|
start(): void;
|
|
189
191
|
}>;
|
|
190
|
-
declare function scheduleHydration(el: Element, loader: () => Promise<unknown>, props: Record<string, unknown>, strategy: string, hydrateFn: (el: Element, mod: unknown, props: Record<string, unknown>) => void | Promise<void>): void;
|
|
191
|
-
declare function initIslands(islands: Record<string, () => Promise<unknown>>, hydrateFn: (el: Element, mod: unknown, props: Record<string, unknown>) => void | Promise<void>): void;
|
|
192
|
+
export declare function scheduleHydration(el: Element, loader: () => Promise<unknown>, props: Record<string, unknown>, strategy: string, hydrateFn: (el: Element, mod: unknown, props: Record<string, unknown>) => void | Promise<void>): void;
|
|
193
|
+
export declare function initIslands(islands: Record<string, () => Promise<unknown>>, hydrateFn: (el: Element, mod: unknown, props: Record<string, unknown>) => void | Promise<void>): void;
|
|
192
194
|
//#endregion
|
|
193
|
-
export {
|
|
195
|
+
export type { ActionErrorHandlingScope, ActionResult, PageNavigationEngine, PageNavigationResource, PageNavigationResult };
|
package/dist/pages/client.mjs
CHANGED
|
@@ -208,15 +208,16 @@ async function createPageNavigationEngine(config) {
|
|
|
208
208
|
}
|
|
209
209
|
resolve(group, data, error) {
|
|
210
210
|
if (!this.active) return;
|
|
211
|
-
if (data !== void 0)
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
211
|
+
if (data !== void 0) {
|
|
212
|
+
if (typeof data === "object" && data !== null && !Array.isArray(data)) {
|
|
213
|
+
let resolvedAny = false;
|
|
214
|
+
for (const [key, value] of Object.entries(data)) if (this.keyRefs[key]) {
|
|
215
|
+
this.resolveKey(key, value);
|
|
216
|
+
resolvedAny = true;
|
|
217
|
+
}
|
|
218
|
+
if (!resolvedAny) this.resolveGroup(group, data);
|
|
219
|
+
} else this.resolveGroup(group, data);
|
|
220
|
+
} else if (error !== void 0) this.rejectGroup(group, typeof error === "string" ? error : String(error));
|
|
220
221
|
adapter.onDeferredUpdate?.(this.props);
|
|
221
222
|
}
|
|
222
223
|
rejectPending(error, notify = true) {
|
|
@@ -323,13 +324,15 @@ async function createPageNavigationEngine(config) {
|
|
|
323
324
|
deferredWindow.__rejectDeferred = (group, error) => _htmlDeferredRegistry?.resolve(group, void 0, error);
|
|
324
325
|
function commitHashNavigation(effectiveFetchUrl, hash, options, writeHistory) {
|
|
325
326
|
_currentFetchUrl = effectiveFetchUrl;
|
|
326
|
-
if (writeHistory)
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
327
|
+
if (writeHistory) {
|
|
328
|
+
if (options.replace) history.replaceState({}, "", effectiveFetchUrl + hash);
|
|
329
|
+
else {
|
|
330
|
+
history.replaceState({
|
|
331
|
+
scrollX: window.scrollX,
|
|
332
|
+
scrollY: window.scrollY
|
|
333
|
+
}, "");
|
|
334
|
+
history.pushState({}, "", effectiveFetchUrl + hash);
|
|
335
|
+
}
|
|
333
336
|
}
|
|
334
337
|
if (options._scrollPosition) {
|
|
335
338
|
window.scrollTo(options._scrollPosition.x, options._scrollPosition.y);
|
|
@@ -344,7 +347,7 @@ async function createPageNavigationEngine(config) {
|
|
|
344
347
|
}
|
|
345
348
|
window.scrollTo(0, 0);
|
|
346
349
|
}
|
|
347
|
-
async function loadNavigationShell(id, url, fetchUrl, method,
|
|
350
|
+
async function loadNavigationShell(id, url, fetchUrl, method, options, signal, commitTarget, deferredRegistry) {
|
|
348
351
|
if (method !== "GET") {
|
|
349
352
|
_prefetchCache.flushAll();
|
|
350
353
|
_staticPageDataCacheKeys.clear();
|
|
@@ -358,10 +361,12 @@ async function createPageNavigationEngine(config) {
|
|
|
358
361
|
headers,
|
|
359
362
|
signal
|
|
360
363
|
};
|
|
361
|
-
if (options.data && method !== "GET")
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
364
|
+
if (options.data && method !== "GET") {
|
|
365
|
+
if (hasFiles$1(options.data)) fetchOptions.body = objectToFormData$1(options.data);
|
|
366
|
+
else {
|
|
367
|
+
headers["Content-Type"] = "application/json";
|
|
368
|
+
fetchOptions.body = JSON.stringify(options.data);
|
|
369
|
+
}
|
|
365
370
|
}
|
|
366
371
|
let pageData;
|
|
367
372
|
const cacheEntry = method === "GET" ? _prefetchCache.get(fetchUrl, method) : null;
|
|
@@ -418,7 +423,7 @@ async function createPageNavigationEngine(config) {
|
|
|
418
423
|
}
|
|
419
424
|
commitTarget.fetchUrl = redirectUrl.pathname + redirectUrl.search;
|
|
420
425
|
commitTarget.hash = redirectUrl.hash;
|
|
421
|
-
return loadNavigationShell(id, redirectUrl.pathname + redirectUrl.search + redirectUrl.hash, redirectUrl.pathname + redirectUrl.search, "GET",
|
|
426
|
+
return loadNavigationShell(id, redirectUrl.pathname + redirectUrl.search + redirectUrl.hash, redirectUrl.pathname + redirectUrl.search, "GET", {
|
|
422
427
|
preserveScroll: options.preserveScroll,
|
|
423
428
|
preserveState: options.preserveState,
|
|
424
429
|
replace: options.replace,
|
|
@@ -426,19 +431,21 @@ async function createPageNavigationEngine(config) {
|
|
|
426
431
|
}, signal, commitTarget, deferredRegistry);
|
|
427
432
|
}
|
|
428
433
|
if (response && method !== "GET" && !response.ok) throw await createActionErrorFromResponse(response, fetchUrl);
|
|
429
|
-
if (response && !response.headers.get("X-VoidPages"))
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
434
|
+
if (response && !response.headers.get("X-VoidPages")) {
|
|
435
|
+
if (method === "GET") {
|
|
436
|
+
const staticPageData = await loadStaticPageData(fetchUrl, response, signal, !STATIC_PAGE_DATA_FAST_PATH);
|
|
437
|
+
if (staticPageData) {
|
|
438
|
+
pageData = staticPageData.pageData;
|
|
439
|
+
if (staticPageData.resolvedDeferred) deferredRegistry.setupResolved(pageData);
|
|
440
|
+
else deferredRegistry.setupPending(pageData);
|
|
441
|
+
} else {
|
|
442
|
+
window.location.href = url;
|
|
443
|
+
return;
|
|
444
|
+
}
|
|
435
445
|
} else {
|
|
436
446
|
window.location.href = url;
|
|
437
447
|
return;
|
|
438
448
|
}
|
|
439
|
-
} else {
|
|
440
|
-
window.location.href = url;
|
|
441
|
-
return;
|
|
442
449
|
}
|
|
443
450
|
const contentType = response?.headers.get("content-type") || "";
|
|
444
451
|
if (pageData !== void 0) {} else if (contentType.includes("application/x-ndjson")) {
|
|
@@ -588,7 +595,7 @@ async function createPageNavigationEngine(config) {
|
|
|
588
595
|
fetchUrl: effectiveFetchUrl,
|
|
589
596
|
hash
|
|
590
597
|
};
|
|
591
|
-
const shell = loadNavigationShell(id, url, effectiveFetchUrl, method,
|
|
598
|
+
const shell = loadNavigationShell(id, url, effectiveFetchUrl, method, options, controller.signal, commitTarget, deferredRegistry);
|
|
592
599
|
let commitResource = async () => {};
|
|
593
600
|
const resource = {
|
|
594
601
|
id,
|
|
@@ -895,7 +902,7 @@ async function createVoidRouter(config) {
|
|
|
895
902
|
const result = await resource.shell;
|
|
896
903
|
if (!result) return;
|
|
897
904
|
setRouteState(result.pageData.url || resource.fetchUrl + resource.hash, result.pageData.params ?? {});
|
|
898
|
-
const applyUpdate = () => config.adapter.applyUpdate(result.pageData, result.component, result.layouts);
|
|
905
|
+
const applyUpdate = () => config.adapter.applyUpdate(result.pageData, result.component, result.layouts, { preserveState: resource.options.preserveState ?? resource.method !== "GET" });
|
|
899
906
|
if ((resource.options.viewTransition ?? config.viewTransitions) && document.startViewTransition) await document.startViewTransition(() => applyUpdate()).updateCallbackDone;
|
|
900
907
|
else await applyUpdate();
|
|
901
908
|
await resource.commit();
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import { n as HeadDescriptor } from "../head-
|
|
2
|
-
|
|
1
|
+
import { n as HeadDescriptor } from "../head-Do8P4puT.mjs";
|
|
3
2
|
//#region src/pages/head-client.d.ts
|
|
4
3
|
/**
|
|
5
|
-
* Mark SSR-rendered head tags so they are cleaned up on the first SPA navigation.
|
|
6
|
-
* Call once after hydration with the initial page's head descriptor.
|
|
7
|
-
*/
|
|
8
|
-
declare function initClientHead(head: HeadDescriptor | undefined): void;
|
|
4
|
+
* Mark SSR-rendered head tags so they are cleaned up on the first SPA navigation.
|
|
5
|
+
* Call once after hydration with the initial page's head descriptor.
|
|
6
|
+
*/
|
|
7
|
+
export declare function initClientHead(head: HeadDescriptor | undefined): void;
|
|
9
8
|
/**
|
|
10
|
-
* Apply head changes on SPA navigation.
|
|
11
|
-
* Preserves existing managed tags when their final attributes are unchanged.
|
|
12
|
-
*/
|
|
13
|
-
declare function applyClientHead(head: HeadDescriptor | undefined): void;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { applyClientHead, initClientHead };
|
|
9
|
+
* Apply head changes on SPA navigation.
|
|
10
|
+
* Preserves existing managed tags when their final attributes are unchanged.
|
|
11
|
+
*/
|
|
12
|
+
export declare function applyClientHead(head: HeadDescriptor | undefined): void;
|
|
13
|
+
//#endregion
|
package/dist/pages/head.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as renderHtmlAttrs, i as renderHeadToString, n as HeadDescriptor, o as resolveHead, r as renderBodyAttrs, t as HeadConfig } from "../head-
|
|
1
|
+
import { a as renderHtmlAttrs, i as renderHeadToString, n as HeadDescriptor, o as resolveHead, r as renderBodyAttrs, t as HeadConfig } from "../head-Do8P4puT.mjs";
|
|
2
2
|
export { HeadConfig, HeadDescriptor, renderBodyAttrs, renderHeadToString, renderHtmlAttrs, resolveHead };
|
package/dist/pages/index.d.mts
CHANGED
|
@@ -1,15 +1,38 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { n as
|
|
3
|
-
import { i as PageDefinition, n as LayoutDefinition, o as PageScanResult, r as NamedLayoutDefinition } from "../types-
|
|
1
|
+
import "../types-CKWnYgfy.mjs";
|
|
2
|
+
import { a as renderHtmlAttrs, i as renderHeadToString, n as HeadDescriptor, o as resolveHead, r as renderBodyAttrs, t as HeadConfig } from "../head-Do8P4puT.mjs";
|
|
3
|
+
import { i as PageDefinition, n as LayoutDefinition, o as PageScanResult, r as NamedLayoutDefinition } from "../types-BAp5AEBU.mjs";
|
|
4
4
|
import { serializePageData } from "./serialize.mjs";
|
|
5
|
-
|
|
5
|
+
import { RewriteDestination } from "void/routes";
|
|
6
|
+
//#region src/project-paths.d.ts
|
|
7
|
+
type ProjectPaths = {
|
|
8
|
+
root: string;
|
|
9
|
+
sourceDir: string;
|
|
10
|
+
sourceRoot: string;
|
|
11
|
+
routesDir: string;
|
|
12
|
+
middlewareDir: string;
|
|
13
|
+
cronsDir: string;
|
|
14
|
+
queuesDir: string;
|
|
15
|
+
emailDir: string;
|
|
16
|
+
pagesDir: string;
|
|
17
|
+
dbDir: string;
|
|
18
|
+
migrationsDir: string;
|
|
19
|
+
schemaFile: string;
|
|
20
|
+
schemaDir: string;
|
|
21
|
+
srcDir: string;
|
|
22
|
+
ssrDir: string;
|
|
23
|
+
sourceRelative: (path: string) => string;
|
|
24
|
+
authConfigCandidates: ReadonlyArray<string>;
|
|
25
|
+
envFileCandidates: ReadonlyArray<string>;
|
|
26
|
+
};
|
|
27
|
+
export declare function resolvePagesDir(root?: string): string;
|
|
28
|
+
//#endregion
|
|
6
29
|
//#region src/pages/layout-resolution.d.ts
|
|
7
30
|
/** Resolve the layout chain for a component (innermost last) */
|
|
8
|
-
declare function resolveLayoutChain(componentId: string, layouts: Array<LayoutDefinition>, componentPath?: string): Array<LayoutDefinition>;
|
|
31
|
+
export declare function resolveLayoutChain(componentId: string, layouts: Array<LayoutDefinition>, componentPath?: string): Array<LayoutDefinition>;
|
|
9
32
|
/** Walk up directory tree to find closest _layouts/<name> */
|
|
10
|
-
declare function resolveNamedLayout(name: string, componentId: string, namedLayouts: Array<NamedLayoutDefinition>, componentPath?: string): NamedLayoutDefinition | null;
|
|
33
|
+
export declare function resolveNamedLayout(name: string, componentId: string, namedLayouts: Array<NamedLayoutDefinition>, componentPath?: string): NamedLayoutDefinition | null;
|
|
11
34
|
/** Resolve effective layout chain accounting for named layout selection */
|
|
12
|
-
declare function resolveEffectiveLayoutChain(page: {
|
|
35
|
+
export declare function resolveEffectiveLayoutChain(page: {
|
|
13
36
|
componentId: string;
|
|
14
37
|
componentPath?: string;
|
|
15
38
|
layout?: string | false;
|
|
@@ -21,14 +44,14 @@ type PageScanOptions = {
|
|
|
21
44
|
paths?: ProjectPaths;
|
|
22
45
|
pagesDir?: string;
|
|
23
46
|
};
|
|
24
|
-
declare function scanPages(root: string, options?: PageScanOptions): Promise<PageScanResult>;
|
|
47
|
+
export declare function scanPages(root: string, options?: PageScanOptions): Promise<PageScanResult>;
|
|
25
48
|
//#endregion
|
|
26
49
|
//#region src/pages/manifest.d.ts
|
|
27
50
|
/**
|
|
28
|
-
* Generates the component import map and layout tree as code strings.
|
|
29
|
-
* Used by both SSR renderer and client entry virtual modules.
|
|
30
|
-
*/
|
|
31
|
-
declare function generateComponentManifest(scan: PageScanResult, pagesDir: string): string;
|
|
51
|
+
* Generates the component import map and layout tree as code strings.
|
|
52
|
+
* Used by both SSR renderer and client entry virtual modules.
|
|
53
|
+
*/
|
|
54
|
+
export declare function generateComponentManifest(scan: PageScanResult, pagesDir: string): string;
|
|
32
55
|
//#endregion
|
|
33
56
|
//#region src/pages/static-data.d.ts
|
|
34
57
|
type StaticPageDataBuildOptions = {
|
|
@@ -38,6 +61,6 @@ type StaticPageDataBuildOptions = {
|
|
|
38
61
|
type ResolveStaticPageDataBuildOptionsInput = {
|
|
39
62
|
publicDir?: string | false;
|
|
40
63
|
};
|
|
41
|
-
declare function resolveStaticPageDataBuildOptions(root: string, options?: ResolveStaticPageDataBuildOptionsInput): StaticPageDataBuildOptions;
|
|
64
|
+
export declare function resolveStaticPageDataBuildOptions(root: string, options?: ResolveStaticPageDataBuildOptionsInput): StaticPageDataBuildOptions;
|
|
42
65
|
//#endregion
|
|
43
|
-
export { type HeadConfig, type HeadDescriptor, type LayoutDefinition, type NamedLayoutDefinition, type PageDefinition, type PageScanResult, type StaticPageDataBuildOptions,
|
|
66
|
+
export { type HeadConfig, type HeadDescriptor, type LayoutDefinition, type NamedLayoutDefinition, type PageDefinition, type PageScanResult, type StaticPageDataBuildOptions, renderBodyAttrs, renderHeadToString, renderHtmlAttrs, resolveHead, serializePageData };
|
package/dist/pages/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as resolvePagesDir } from "../project-paths-
|
|
3
|
-
import { f as readConfig } from "../config-
|
|
4
|
-
import {
|
|
5
|
-
import { i as
|
|
1
|
+
import { o as join } from "../dist-BrsS7cai.mjs";
|
|
2
|
+
import { r as resolvePagesDir } from "../project-paths-SK8nMHPp.mjs";
|
|
3
|
+
import { f as readConfig } from "../config-BQFq7QvD.mjs";
|
|
4
|
+
import { i as parseRedirectsFile } from "../headers-D8QfRX9Y.mjs";
|
|
5
|
+
import { a as resolveNamedLayout, i as resolveLayoutIds, n as resolveEffectiveLayoutChain, r as resolveLayoutChain, t as scanPages } from "../scan-CpK-57ug.mjs";
|
|
6
6
|
import { renderBodyAttrs, renderHeadToString, renderHtmlAttrs, resolveHead } from "./head.mjs";
|
|
7
7
|
import { serializePageData } from "./serialize.mjs";
|
|
8
8
|
//#region src/pages/manifest.ts
|
|
@@ -1,41 +1,39 @@
|
|
|
1
|
-
import { o as PageScanResult } from "../types-
|
|
1
|
+
import { o as PageScanResult } from "../types-BAp5AEBU.mjs";
|
|
2
2
|
import { ResolvedConfig, ViteDevServer } from "vite";
|
|
3
|
-
|
|
4
3
|
//#region src/pages/islands-plugin.d.ts
|
|
5
|
-
declare const ISLANDS_RENDERER_ID = "virtual:void-islands-renderer";
|
|
6
|
-
declare const ISLANDS_CLIENT_ENTRY_ID = "virtual:void-islands-client";
|
|
7
|
-
type IslandEntry = {
|
|
4
|
+
export declare const ISLANDS_RENDERER_ID = "virtual:void-islands-renderer";
|
|
5
|
+
export declare const ISLANDS_CLIENT_ENTRY_ID = "virtual:void-islands-client";
|
|
6
|
+
export type IslandEntry = {
|
|
8
7
|
componentPath: string;
|
|
9
8
|
islandId: string;
|
|
10
9
|
hydrate: string;
|
|
11
10
|
};
|
|
12
11
|
/** Resolve a relative import specifier to an absolute path by checking extensions. */
|
|
13
|
-
declare function resolveSpecifier(specifier: string, importerDir: string, extensions: Array<string>): string | null;
|
|
12
|
+
export declare function resolveSpecifier(specifier: string, importerDir: string, extensions: Array<string>): string | null;
|
|
14
13
|
/**
|
|
15
|
-
* Check whether the islands client bundle is needed by scanning file contents.
|
|
16
|
-
* Returns true if any island/layout file has island imports or CSS,
|
|
17
|
-
* or any .md file has a `<script>` block.
|
|
18
|
-
*/
|
|
19
|
-
declare function needsIslandClientBundle(dir: string, islandFilePattern: RegExp, checkStyleBlocks: boolean): boolean;
|
|
14
|
+
* Check whether the islands client bundle is needed by scanning file contents.
|
|
15
|
+
* Returns true if any island/layout file has island imports or CSS,
|
|
16
|
+
* or any .md file has a `<script>` block.
|
|
17
|
+
*/
|
|
18
|
+
export declare function needsIslandClientBundle(dir: string, islandFilePattern: RegExp, checkStyleBlocks: boolean): boolean;
|
|
20
19
|
/**
|
|
21
|
-
* Rewrite a matched CSS import line so relative specifiers resolve from the
|
|
22
|
-
* virtual module. Absolute and bare specifiers are kept as-is.
|
|
23
|
-
*/
|
|
24
|
-
declare function rewriteCssImportForVirtualModule(matchedLine: string, specifier: string, sourceFilePath: string): string;
|
|
20
|
+
* Rewrite a matched CSS import line so relative specifiers resolve from the
|
|
21
|
+
* virtual module. Absolute and bare specifiers are kept as-is.
|
|
22
|
+
*/
|
|
23
|
+
export declare function rewriteCssImportForVirtualModule(matchedLine: string, specifier: string, sourceFilePath: string): string;
|
|
25
24
|
/** Extract CSS import statements from a file and return them as @import rules. */
|
|
26
|
-
declare function extractCssImports(filePath: string): string;
|
|
25
|
+
export declare function extractCssImports(filePath: string): string;
|
|
27
26
|
/** Compute which island pages need client-side JavaScript. */
|
|
28
|
-
declare function computePagesNeedingClientJS(pageScan: PageScanResult, pagesDir: string, resolvedConfig: ResolvedConfig | null): Set<string>;
|
|
27
|
+
export declare function computePagesNeedingClientJS(pageScan: PageScanResult, pagesDir: string, resolvedConfig: ResolvedConfig | null): Set<string>;
|
|
29
28
|
/**
|
|
30
|
-
* Watch the pages directory for structural changes (add/remove) and .md content
|
|
31
|
-
* changes (frontmatter layout field) so that new layouts and named layouts are
|
|
32
|
-
* picked up without a dev server restart.
|
|
33
|
-
*
|
|
34
|
-
* Returns a `flush()` function that resolves when any pending rescan completes
|
|
35
|
-
* (useful for tests).
|
|
36
|
-
*/
|
|
37
|
-
declare function watchPagesForRescan(server: ViteDevServer, pagesDir: string, root: string, onRescan: (pageScan: PageScanResult) => void): {
|
|
29
|
+
* Watch the pages directory for structural changes (add/remove) and .md content
|
|
30
|
+
* changes (frontmatter layout field) so that new layouts and named layouts are
|
|
31
|
+
* picked up without a dev server restart.
|
|
32
|
+
*
|
|
33
|
+
* Returns a `flush()` function that resolves when any pending rescan completes
|
|
34
|
+
* (useful for tests).
|
|
35
|
+
*/
|
|
36
|
+
export declare function watchPagesForRescan(server: ViteDevServer, pagesDir: string, root: string, onRescan: (pageScan: PageScanResult) => void): {
|
|
38
37
|
flush: () => Promise<void>;
|
|
39
38
|
};
|
|
40
|
-
//#endregion
|
|
41
|
-
export { ISLANDS_CLIENT_ENTRY_ID, ISLANDS_RENDERER_ID, IslandEntry, computePagesNeedingClientJS, extractCssImports, needsIslandClientBundle, resolveSpecifier, rewriteCssImportForVirtualModule, watchPagesForRescan };
|
|
39
|
+
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as resolveEffectiveLayoutChain, t as scanPages } from "../scan-
|
|
1
|
+
import { l as resolve, n as dirname } from "../dist-BrsS7cai.mjs";
|
|
2
|
+
import { n as resolveEffectiveLayoutChain, t as scanPages } from "../scan-CpK-57ug.mjs";
|
|
3
3
|
import { existsSync, readFileSync, readdirSync } from "node:fs";
|
|
4
4
|
import { normalizePath } from "vite";
|
|
5
5
|
//#region src/pages/islands-plugin.ts
|
|
@@ -74,7 +74,8 @@ function computePagesNeedingClientJS(pageScan, pagesDir, resolvedConfig) {
|
|
|
74
74
|
const layoutDirsWithIslands = /* @__PURE__ */ new Set();
|
|
75
75
|
for (const layout of pageScan.layouts) {
|
|
76
76
|
if (!layout.island) continue;
|
|
77
|
-
|
|
77
|
+
const filePath = resolve(pagesDir, layout.filePath);
|
|
78
|
+
if (hasIslandImports(readFileSync(filePath, "utf-8"))) layoutDirsWithIslands.add(layout.directory);
|
|
78
79
|
}
|
|
79
80
|
const result = /* @__PURE__ */ new Set();
|
|
80
81
|
for (const page of pageScan.pages) {
|
|
@@ -83,7 +84,8 @@ function computePagesNeedingClientJS(pageScan, pagesDir, resolvedConfig) {
|
|
|
83
84
|
result.add(page.componentId);
|
|
84
85
|
continue;
|
|
85
86
|
}
|
|
86
|
-
|
|
87
|
+
const filePath = resolve(pagesDir, page.componentPath);
|
|
88
|
+
if (hasIslandImports(readFileSync(filePath, "utf-8"))) {
|
|
87
89
|
result.add(page.componentId);
|
|
88
90
|
continue;
|
|
89
91
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
//#region src/pages/prefetch.d.ts
|
|
2
|
-
type CacheForResult = {
|
|
2
|
+
export type CacheForResult = {
|
|
3
3
|
stale: number;
|
|
4
4
|
expires: number;
|
|
5
5
|
};
|
|
6
|
-
type CacheForInput = number | string | [string, string];
|
|
7
|
-
declare function parseCacheFor(value: CacheForInput): CacheForResult;
|
|
8
|
-
type CacheEntry = {
|
|
6
|
+
export type CacheForInput = number | string | [string, string];
|
|
7
|
+
export declare function parseCacheFor(value: CacheForInput): CacheForResult;
|
|
8
|
+
export type CacheEntry = {
|
|
9
9
|
url: string;
|
|
10
10
|
method: string;
|
|
11
11
|
response: Promise<unknown>;
|
|
@@ -14,7 +14,7 @@ type CacheEntry = {
|
|
|
14
14
|
singleUse: boolean;
|
|
15
15
|
timer: ReturnType<typeof setTimeout> | null;
|
|
16
16
|
};
|
|
17
|
-
declare class PrefetchCache {
|
|
17
|
+
export declare class PrefetchCache {
|
|
18
18
|
private readonly entries;
|
|
19
19
|
private key;
|
|
20
20
|
has(url: string, method?: string): boolean;
|
|
@@ -27,5 +27,4 @@ declare class PrefetchCache {
|
|
|
27
27
|
flush(url: string, method?: string): void;
|
|
28
28
|
flushAll(): void;
|
|
29
29
|
}
|
|
30
|
-
//#endregion
|
|
31
|
-
export { CacheEntry, CacheForInput, CacheForResult, PrefetchCache, parseCacheFor };
|
|
30
|
+
//#endregion
|
|
@@ -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-D1hLsObx.mjs";
|
|
2
|
+
import { a as handlePageMutation, i as handlePageGet, n as PageRenderResult, o as safeJsonStringify, r as flattenValidationErrors, t as PageObject } from "../protocol-C-pqYJjE.mjs";
|
|
3
3
|
export { PageObject, PageRenderResult, ValidationError, flattenValidationErrors, handlePageGet, handlePageMutation, safeJsonStringify };
|
package/dist/pages/protocol.mjs
CHANGED
|
@@ -199,7 +199,8 @@ async function handlePageGet(handler, headFn, c, componentId, renderFn, getAsset
|
|
|
199
199
|
props = await extractProps(result);
|
|
200
200
|
}
|
|
201
201
|
const pageHead = headFn ? headFn(c, props) : void 0;
|
|
202
|
-
const
|
|
202
|
+
const middlewareHead = c.get("headDefaults");
|
|
203
|
+
const head = resolveHead(configHead, middlewareHead, pageHead);
|
|
203
204
|
const { immediateProps, deferredMap } = separateDeferred(props);
|
|
204
205
|
const hasDeferred = Object.keys(deferredMap).length > 0;
|
|
205
206
|
const deferredKeys = {};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
//#region src/pages/serialize.d.ts
|
|
2
2
|
/**
|
|
3
|
-
* Escape JSON for embedding inside an inline `<script type="application/json">`
|
|
4
|
-
* tag. Replaces `<`, `>`, `&`, U+2028, U+2029 with their `\uXXXX` JSON escape
|
|
5
|
-
* sequences so the script tag cannot be closed early and the payload survives
|
|
6
|
-
* `JSON.parse` on hydration.
|
|
7
|
-
*/
|
|
8
|
-
declare function serializePageData(pageObj: unknown): string;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { serializePageData };
|
|
3
|
+
* Escape JSON for embedding inside an inline `<script type="application/json">`
|
|
4
|
+
* tag. Replaces `<`, `>`, `&`, U+2028, U+2029 with their `\uXXXX` JSON escape
|
|
5
|
+
* sequences so the script tag cannot be closed early and the payload survives
|
|
6
|
+
* `JSON.parse` on hydration.
|
|
7
|
+
*/
|
|
8
|
+
export declare function serializePageData(pageObj: unknown): string;
|
|
9
|
+
//#endregion
|