void 1.1.11 → 1.2.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-R35a4Oa8.mjs → account-cmd-CdUll_35.mjs} +5 -5
- package/dist/action-key-XZ9HkWAO.mjs +26 -0
- package/dist/{application-analysis-D7nNmNJb.mjs → application-analysis-fEqoSeMp.mjs} +11 -11
- package/dist/{application-routing-CZH66gXn.mjs → application-routing-DAhNP4u3.mjs} +1 -1
- package/dist/{ast-CPGPjb0V.mjs → ast-CsZ_q_gc.mjs} +6 -1
- package/dist/ast-bindings-C3yaPs1y.mjs +296 -0
- package/dist/{auth-link-VHmiKZmP.mjs → auth-link-C87vGXM-.mjs} +5 -5
- package/dist/{auth-router-O_Wrs5kg.mjs → auth-router-6I81r-ix.mjs} +3 -3
- package/dist/{better-auth-shared-Bv18bB-l.d.mts → better-auth-shared-DVk2DkTW.d.mts} +1 -1
- package/dist/{build-cmd-CMZiMn46.mjs → build-cmd-ex1g-j_e.mjs} +4 -4
- package/dist/{cache-TZ5Ab3d7.mjs → cache-oHzrnY3z.mjs} +4 -4
- package/dist/{cancel-deploy-DXoR6oC3.mjs → cancel-deploy-viAMD0Q_.mjs} +3 -3
- package/dist/cf-build-output-BJHuSsVN.mjs +1 -0
- package/dist/{cf-build-output-Bc8i3dzE.mjs → cf-build-output-BhVxldCw.mjs} +75 -10
- package/dist/{cf-user-agent-ChjQp2MU.mjs → cf-command-values-ByHk0xg4.mjs} +6 -16
- package/dist/cf-worker-settings-BECvvTVd.mjs +37 -0
- package/dist/cli/cli.mjs +139 -35
- package/dist/cli/cloudflare-operation-process.mjs +65 -18
- package/dist/cli/env-schema-probe.d.mts +1 -1
- package/dist/cli/env-schema-probe.mjs +3 -3
- package/dist/{client-GuSO3v_x.mjs → client-BEkdj1kx.mjs} +58 -13
- package/dist/client-BiRDZTSd.mjs +1 -0
- package/dist/{cloudflare-auth-DSvBc1Gu.mjs → cloudflare-auth-Byo_0_N9.mjs} +1 -1
- package/dist/{cloudflare-cmd-ZSErUl6Y.mjs → cloudflare-cmd-DMzCv12s.mjs} +5 -5
- package/dist/{cloudflare-config-rdFOys4X.mjs → cloudflare-config-DchHxPTo.mjs} +1 -1
- package/dist/{cloudflare-connect-BN-k2kD-.mjs → cloudflare-connect-CCRTVg-I.mjs} +3 -3
- package/dist/{cloudflare-operations-DH3GedbV.mjs → cloudflare-operations-Dh9dEHJj.mjs} +17 -7
- package/dist/{cloudflare-operations-Cm8lVx7W.mjs → cloudflare-operations-DsSaw2BT.mjs} +1 -1
- package/dist/{cloudflare-process-CZJ4viYl.mjs → cloudflare-process-8jEYIeim.mjs} +3 -2
- package/dist/{config-DC5llZaI.mjs → config-BIaXIkkv.mjs} +8 -3
- package/dist/{config-DYJV8aEH.mjs → config-BU6hMu1W.mjs} +1 -1
- package/dist/{config-D26zcdKy.mjs → config-DHgSEWT7.mjs} +39 -6
- package/dist/{config-7qoq2p9v.d.mts → config-DQfHOKh9.d.mts} +10 -1
- package/dist/config-entry.d.mts +1 -1
- package/dist/{connect-yQuLbuiJ.mjs → connect-k7R2rPVA.mjs} +6 -6
- package/dist/{create-project-CGOo_OL_.mjs → create-project-DTuy-l0z.mjs} +1 -1
- package/dist/{create-project-DEEWJX_M.mjs → create-project-DV71ol5d.mjs} +4 -4
- package/dist/{db-COI-yTJE.mjs → db-DVOkLH5X.mjs} +79 -23
- package/dist/{delete-PgN6L_9N.mjs → delete-BbP5eopu.mjs} +4 -4
- package/dist/{deploy-DsW-PrRQ.mjs → deploy-7H32EnUs.mjs} +220 -95
- package/dist/deploy-CE0Ev0Ob.mjs +2 -0
- package/dist/{deploy-managed-static-Dqz06S2u.mjs → deploy-managed-static-DlvcvnQT.mjs} +74 -28
- package/dist/{deploy-transport-nY3vLXPL.mjs → deploy-transport-BzGEj0Ge.mjs} +2 -2
- package/dist/deploy.d.mts +22 -1
- package/dist/deploy.mjs +49 -8
- package/dist/{dev-inbox-Rd6j_8vM.mjs → dev-inbox-D0jxye_D.mjs} +1 -1
- package/dist/{dispatch-BAbbn3jg.mjs → dispatch-DoUnxTNo.mjs} +15 -11
- package/dist/{dist-CfgIkieS.mjs → dist-B1PLt4_8.mjs} +1 -1
- package/dist/{dist-BVdsO7Py.mjs → dist-Cor9XGoz.mjs} +94 -200
- package/dist/{dist-Bn8Kodjp.mjs → dist-D15hFhP0.mjs} +1 -1
- package/dist/{domain-DKlNI0SR.mjs → domain-CA2wBgra.mjs} +5 -5
- package/dist/drizzle-9TubSZvI.mjs +1 -0
- package/dist/{email-BcjSyAL0.mjs → email-B9ayYQEG.mjs} +1 -1
- package/dist/{email-C0s3OvJk.mjs → email-DXpCc77w.mjs} +10 -10
- package/dist/{email-cloudflare-etpKiITL.mjs → email-cloudflare-D03g2TkS.mjs} +7 -7
- package/dist/{entry-B_0IhV64.mjs → entry-BEM8ZuGP.mjs} +40 -12
- package/dist/{env-BX2JFsgF.mjs → env-DgOQ9_8S.mjs} +6 -6
- package/dist/{env-public-CCdykygU.d.mts → env-public-6lqiSD2b.d.mts} +1 -0
- package/dist/{env-types-GRchm5dw.mjs → env-types-BicfKBhV.mjs} +1 -1
- package/dist/{env-validation-CuGfWRJd.mjs → env-validation-BmsdCZEk.mjs} +1 -1
- package/dist/{env-validation-D_KyMdab.mjs → env-validation-Dwq3PJzK.mjs} +3 -3
- package/dist/{fetch-DHLOuPyk.d.mts → fetch-CUX0tB78.d.mts} +14 -1
- package/dist/fetch-CtESUYWd.mjs +26 -0
- package/dist/{fetch-error-Dj3crt0e.mjs → fetch-error-Bw0n-IY-.mjs} +1 -1
- package/dist/{fetch-stream-PGgz4uGz.mjs → fetch-stream-BspOeTAI.mjs} +1 -1
- package/dist/{fetch-stream-CNxOrBdP.d.mts → fetch-stream-DfkAzZf-.d.mts} +1 -1
- package/dist/{gen-Bj6ZkOcI.mjs → gen-BfmcIi2g.mjs} +5 -5
- package/dist/gen-NrOlWZaG.mjs +1 -0
- package/dist/{github-cmd-DQDryS-5.mjs → github-cmd-CY9LUqLh.mjs} +4 -4
- package/dist/{handler-_PqY82xe.d.mts → handler-BbkSPzGF.d.mts} +91 -9
- package/dist/{headers-Bi4bOAwp.mjs → headers-D522zd0A.mjs} +2 -2
- package/dist/help-BeAFFE5C.mjs +1 -0
- package/dist/{help-D49SL_lN.mjs → help-CxSlPpzJ.mjs} +83 -12
- package/dist/{inbound-BuTfm11U.mjs → inbound-VrOLqwZY.mjs} +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +125 -124
- package/dist/{info-Bxunp14X.mjs → info-7VDlhtyy.mjs} +4 -4
- package/dist/{init-DyTEY04s.mjs → init-DxYyOs4-.mjs} +103 -43
- package/dist/{link-CgOVn9EC.mjs → link-Ddmod1dZ.mjs} +5 -5
- package/dist/{list-CUfD9RSb.mjs → list-MogaugiO.mjs} +5 -5
- package/dist/{live-DJONVlQK.d.mts → live-Bt8Y_0bg.d.mts} +1 -1
- package/dist/{local-d1-CpaPbd_L.mjs → local-d1-BHBnKWRb.mjs} +1 -1
- package/dist/{log-vqY3pqwI.mjs → log-BMwmN5Ae.mjs} +2 -2
- package/dist/{login-BJvGW5Eu.mjs → login-Cttnagmm.mjs} +4 -4
- package/dist/login-DgDwlKc_.mjs +1 -0
- package/dist/{logs-DeizBI4j.mjs → logs-CAszUWZI.mjs} +4 -4
- package/dist/{migrate-8rk56vV8.mjs → migrate-DyT2jJ8y.mjs} +5 -5
- package/dist/migrate-n49ZeS1X.mjs +1 -0
- package/dist/{mime-srOklVVv.mjs → mime-BAyHPskU.mjs} +1 -1
- package/dist/nitro.mjs +3 -3
- package/dist/{node-uN8_zxJr.mjs → node-WB7c2N4L.mjs} +2 -2
- package/dist/operator-cmd-d2MvJOrl.mjs +1 -0
- package/dist/{operator-cmd-CA5QQyvE.mjs → operator-cmd-skshjMGl.mjs} +4 -4
- package/dist/output-BW9uK099.mjs +1 -0
- package/dist/{output-Ba6ZbrzY.mjs → output-BpgYODYx.mjs} +16 -4
- package/dist/pages/client.d.mts +2 -2
- package/dist/pages/client.mjs +48 -25
- package/dist/pages/index.d.mts +2 -2
- package/dist/pages/index.mjs +4 -4
- package/dist/pages/islands-plugin.d.mts +43 -5
- package/dist/pages/islands-plugin.mjs +100 -28
- package/dist/pages/protocol.d.mts +2 -2
- package/dist/pages/protocol.mjs +1 -1
- package/dist/pages/serialize.d.mts +2 -2
- package/dist/pages/serialize.mjs +1 -1
- package/dist/{parse-filename-CUbj-1MP.mjs → parse-filename-DioPHiR9.mjs} +1 -35
- package/dist/{picocolors-BTps1_gs.mjs → picocolors-BsDfhxIw.mjs} +1 -1
- package/dist/{platform-args-B7ke06up.mjs → platform-args-DVbVClZl.mjs} +12 -4
- package/dist/platform-args-kQrgxScY.mjs +1 -0
- package/dist/{platform-auth-config-CZaY812e.mjs → platform-auth-config-C-pm5Qzx.mjs} +6 -6
- package/dist/{platform-auth-protection-U9HCqoXv.mjs → platform-auth-protection-SHhvim1L.mjs} +4 -4
- package/dist/{platform-auth-recovery-B0BV2hfV.mjs → platform-auth-recovery-DXVWs-wA.mjs} +4 -4
- package/dist/{platform-cmd-CXrjk4fb.mjs → platform-cmd-D5I1beUX.mjs} +7 -7
- package/dist/{platform-cmd-D9lwFpcl.mjs → platform-cmd-PiNRkopU.mjs} +1 -1
- package/dist/{platform-domain-CXyq-68_.mjs → platform-domain-jpmBfZeb.mjs} +4 -4
- package/dist/{platform-lifecycle-Dz2cJsLX.mjs → platform-lifecycle-DH3Yr1qQ.mjs} +1 -1
- package/dist/{platform-lifecycle-D0TdyXbN.mjs → platform-lifecycle-DyKmuNY6.mjs} +405 -44
- package/dist/{platform-management-CnXhgxTM.mjs → platform-management--vDwSn35.mjs} +49 -5
- package/dist/{platform-management-BvgbusqL.mjs → platform-management-7m-PLaPJ.mjs} +1 -1
- package/dist/{platform-plans-config-BWn1S2Rv.mjs → platform-plans-config-CeydDSj0.mjs} +2 -2
- package/dist/{platform-recovery-CH_fThW6.mjs → platform-recovery-BiNpZZab.mjs} +2 -2
- package/dist/{platform-setup-YvN9VQXV.mjs → platform-setup-Ca53gtt0.mjs} +3 -2
- package/dist/{plugin-inference-Bekzjuqw.mjs → plugin-inference-DUjCd55H.mjs} +145 -218
- package/dist/{prepare-2XD6kh77.mjs → prepare-BcAE5Sdj.mjs} +3 -3
- package/dist/prepare-C4I0f--h.mjs +1 -0
- package/dist/{prepare-DepAGBcV.mjs → prepare-DA-17DhO.mjs} +5 -5
- package/dist/{prerender-render-Bfsumdkv.mjs → prerender-render-Cijv7UFo.mjs} +11 -6
- package/dist/prerender-render.mjs +1 -1
- package/dist/{project-cmd-CpLYflCH.mjs → project-cmd-DA4K5faU.mjs} +18 -18
- package/dist/{project-team-CTSY7W7Q.mjs → project-team-CQBNveX3.mjs} +4 -4
- package/dist/{project-token-Cybtlfbl.mjs → project-token-CCalFyQf.mjs} +4 -4
- package/dist/{project-zero-trust-DKOtqyvu.mjs → project-zero-trust-DPnkiEuT.mjs} +4 -4
- package/dist/{protocol-B8sI8dRD.d.mts → protocol-BBDpJz3G.d.mts} +3 -1
- package/dist/{protocol-RNP0u7UY.mjs → protocol-DimNxVRr.mjs} +42 -17
- package/dist/{provision-UcYjpTRh.mjs → provision-BFLCrnUp.mjs} +1 -1
- package/dist/{provision-BuifYvLc.mjs → provision-DtROpNNI.mjs} +6 -5
- package/dist/{requests-Ryiazz9i.mjs → requests-BpH0kImL.mjs} +3 -3
- package/dist/resolve-project-DD1vu8s9.mjs +1 -0
- package/dist/{resolve-project-WpwkCB_c.mjs → resolve-project-Xoi6eTWY.mjs} +1 -1
- package/dist/{rollback-Or0EV3rP.mjs → rollback-CXS1tAa-.mjs} +10 -9
- package/dist/{rolldown-runtime-DXIUcv95.mjs → rolldown-runtime-3h0WiCiA.mjs} +1 -1
- package/dist/{routing-assets-VkrKIbxE.mjs → routing-assets-DdSFxoLp.mjs} +10 -4
- package/dist/runtime/better-auth-mysql.d.mts +1 -1
- package/dist/runtime/better-auth-pg.d.mts +1 -1
- package/dist/runtime/better-auth.d.mts +1 -1
- package/dist/runtime/client-react.d.mts +2 -2
- package/dist/runtime/client-react.mjs +3 -3
- package/dist/runtime/client-solid.d.mts +2 -2
- package/dist/runtime/client-solid.mjs +3 -3
- package/dist/runtime/client-svelte.d.mts +2 -2
- package/dist/runtime/client-svelte.mjs +3 -3
- package/dist/runtime/client-vue.d.mts +2 -2
- package/dist/runtime/client-vue.mjs +3 -3
- package/dist/runtime/client.d.mts +2 -2
- package/dist/runtime/client.mjs +3 -3
- package/dist/runtime/email/testing.mjs +4 -4
- package/dist/runtime/email.mjs +3 -3
- package/dist/runtime/env-public.d.mts +1 -1
- package/dist/runtime/fetch-server.d.mts +8 -0
- package/dist/runtime/fetch-server.mjs +30 -0
- package/dist/runtime/fetch-stream.d.mts +2 -2
- package/dist/runtime/fetch-stream.mjs +2 -2
- package/dist/runtime/fetch.d.mts +2 -2
- package/dist/runtime/fetch.mjs +3 -3
- package/dist/runtime/handler.d.mts +1 -1
- package/dist/runtime/live-client.d.mts +1 -1
- package/dist/runtime/live.d.mts +1 -1
- package/dist/runtime/routing.d.mts +17 -76
- package/dist/runtime/routing.mjs +277 -216
- package/dist/runtime/validator.d.mts +1 -1
- package/dist/runtime/ws-server.d.mts +2 -2
- package/dist/runtime/ws.d.mts +1 -1
- package/dist/{scan-D2-FcLHs.mjs → scan-8IzYXiU_.mjs} +12 -11
- package/dist/{secret-CClHaFxm.mjs → secret-BbXHfLAt.mjs} +6 -6
- package/dist/serialize-DtR8Vwa_.d.mts +18 -0
- package/dist/serialize-YHvlcG3Q.mjs +31 -0
- package/dist/{skills-C_yRTg0g.mjs → skills-CrUO3PJ0.mjs} +1 -1
- package/dist/{subcommand-prompt-Bm3ZlYgA.mjs → subcommand-prompt-D9OhhbGG.mjs} +2 -2
- package/dist/{version-metadata-B1Bm2wSq.mjs → version-metadata-tS39iW09.mjs} +1 -1
- package/dist/wrangler-BLb3_luP.mjs +1 -0
- package/dist/{wrangler-C9XSzrju.mjs → wrangler-F96NnLyb.mjs} +13 -5
- package/dist/{wrapper-BOigE1xJ.mjs → wrapper-D3sZyh2C.mjs} +5 -3
- package/dist/{ws-CsBNxv86.d.mts → ws-BH-im_tX.d.mts} +1 -1
- package/docs/guide/ai.md +1 -1
- package/docs/guide/database/postgresql.md +1 -1
- package/docs/guide/database.md +26 -0
- package/docs/guide/deployment.md +2 -0
- package/docs/guide/edge/headers.md +1 -1
- package/docs/guide/email/domains.md +1 -1
- package/docs/guide/email/receiving.md +1 -1
- package/docs/guide/email/sending.md +3 -3
- package/docs/guide/pages-routing/actions-and-forms.md +1 -1
- package/docs/guide/pages-routing/markdown.md +3 -1
- package/docs/guide/platform/administration/email.md +7 -1
- package/docs/guide/platform/installation/ci.md +2 -0
- package/docs/guide/platform/installation/credentials.md +24 -6
- package/docs/guide/platform/installation/domains.md +16 -0
- package/docs/guide/platform/installation/maintenance.md +32 -2
- package/docs/guide/platform/installation/setup.md +1 -1
- package/docs/guide/self-hosted-platform.md +1 -1
- package/docs/guide/server-routing.md +1 -1
- package/docs/guide/typed-fetch.md +1 -1
- package/docs/integrations/cloudflare.md +2 -1
- package/docs/integrations/frameworks/tanstack-start.md +25 -0
- package/docs/reference/api/deploy.md +35 -3
- package/docs/reference/api/env.md +1 -1
- package/docs/reference/api/rewrites.md +1 -1
- package/docs/reference/api/types.md +1 -0
- package/docs/reference/cli/database.md +15 -0
- package/docs/reference/cli/platform-installation.md +5 -2
- package/docs/reference/cli/project.md +4 -2
- package/docs/reference/cli/setup.md +17 -0
- package/docs/reference/cli.md +1 -0
- package/docs/reference/config.md +14 -1
- package/docs/reference/resource-inference.md +4 -0
- package/package.json +23 -22
- package/sandbox.Dockerfile +1 -1
- package/schema.json +23 -3
- package/dist/cf-build-output-BU3hqdHu.mjs +0 -1
- package/dist/client-DrdeJgHR.mjs +0 -1
- package/dist/deploy-CxNgEYr4.mjs +0 -2
- package/dist/fetch-sAcwjzLO.mjs +0 -18
- package/dist/gen-DsCukhuw.mjs +0 -1
- package/dist/help-DOFygYi4.mjs +0 -1
- package/dist/login-alAlxw4S.mjs +0 -1
- package/dist/migrate-D2odrAmh.mjs +0 -1
- package/dist/operator-cmd-D7toMPJ9.mjs +0 -1
- package/dist/platform-args-B_LrqEZB.mjs +0 -1
- package/dist/prepare-EVEbQ9n2.mjs +0 -1
- package/dist/resolve-project-PnhzMtY6.mjs +0 -1
- package/dist/serialize-BtQyaYoC.mjs +0 -20
- package/dist/serialize-CfSwWfF2.d.mts +0 -10
- package/dist/wrangler-DAdxHEzh.mjs +0 -1
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import { a as join, c as resolve, n as dirname, r as extname, s as relative } from "./dist-ipQi0Q8y.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { m as needsApplicationDatabase } from "./plugin-inference-DUjCd55H.mjs";
|
|
3
3
|
import { n as readProjectPaths } from "./project-paths-DGu_QZ_Q.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { u as isNodeTarget } from "./config-DHgSEWT7.mjs";
|
|
5
5
|
import { t as collectMigrations } from "./collect-Dew86qce.mjs";
|
|
6
6
|
import { i as collectFiles, t as collectPages } from "./isr-config-fZaJJ8t7.mjs";
|
|
7
|
-
import { n as mergeRoutingRules, t as lintRoutingPhases } from "./headers-
|
|
7
|
+
import { n as mergeRoutingRules, t as lintRoutingPhases } from "./headers-D522zd0A.mjs";
|
|
8
8
|
import { s as shouldLinkDeployProject, t as attachSelectedPlatform, u as writeProjectConfig } from "./project-rqDnVsJN.mjs";
|
|
9
|
-
import {
|
|
9
|
+
import { E as resolveLiveBindingConfig, O as syncWranglerBindings, a as LIVE_MIGRATION_TAG, g as normalizeWranglerCompatibilityFlags, u as ensureWranglerCompat, v as readExistingLiveBindingConfig } from "./wrangler-F96NnLyb.mjs";
|
|
10
10
|
import { n as buildMigrationPlanBundle } from "./plan-BhLO2p4w.mjs";
|
|
11
11
|
import { l as getTokenSource } from "./auth-B6iOCjKI.mjs";
|
|
12
|
-
import { L as log$1, N as intro, X as text, tt as isCancel } from "./dist-BVdsO7Py.mjs";
|
|
13
|
-
import { f as import_picocolors, h as sanitizeTerminalText, m as printSuccess, o as formatCount, p as note, r as createSpinner, u as getErrorMessage } from "./output-Ba6ZbrzY.mjs";
|
|
14
12
|
import { t as discoverSchema } from "./discover-LaV0tbIu.mjs";
|
|
15
|
-
import { t as findEnvFile } from "./env-types-
|
|
16
|
-
import { a as buildEnv } from "./version-metadata-
|
|
17
|
-
import { r as writeDrizzleConfig, t as PLACEHOLDER_DB_URL } from "./config-
|
|
13
|
+
import { t as findEnvFile } from "./env-types-BicfKBhV.mjs";
|
|
14
|
+
import { a as buildEnv } from "./version-metadata-tS39iW09.mjs";
|
|
15
|
+
import { r as writeDrizzleConfig, t as PLACEHOLDER_DB_URL } from "./config-BIaXIkkv.mjs";
|
|
18
16
|
import { i as validateMigrations, r as listDrizzleArtifacts, t as assertJournalCoherence } from "./validate-CnZPMq4q.mjs";
|
|
17
|
+
import { L as log$1, N as intro, X as text, tt as isCancel } from "./dist-Cor9XGoz.mjs";
|
|
19
18
|
import { t as formatCloudflareUserMessage } from "./cloudflare-user-output-Q-k0QoNQ.mjs";
|
|
20
|
-
import { c as platformErrorMessage, i as isCliOutdatedError, n as PlatformApiError, o as isHeadersTimeoutError, s as parsePlatformErrorBody } from "./client-
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
19
|
+
import { c as platformErrorMessage, i as isCliOutdatedError, n as PlatformApiError, o as isHeadersTimeoutError, s as parsePlatformErrorBody } from "./client-BEkdj1kx.mjs";
|
|
20
|
+
import { f as import_picocolors, h as sanitizeTerminalText, m as printSuccess, o as formatCount, p as note, r as createSpinner, u as getErrorMessage } from "./output-BpgYODYx.mjs";
|
|
21
|
+
import { a as promptProjectSelection, i as reportProjectCreationWarnings, o as promptProjectSetupAction, r as promptAndCreateProject } from "./create-project-DV71ol5d.mjs";
|
|
22
|
+
import { o as detectPreset, s as formatProjectCommand, u as resolveProjectCommand } from "./cloudflare-process-8jEYIeim.mjs";
|
|
23
|
+
import { d as formatEnvReport, g as validateProdEnv, u as fetchRemoteSecretNames } from "./env-validation-Dwq3PJzK.mjs";
|
|
24
|
+
import { a as needsWrapper, i as generateWrapper } from "./wrapper-D3sZyh2C.mjs";
|
|
25
25
|
import { n as drizzleKitBin } from "./yarn-pnp-DLbEFMT0.mjs";
|
|
26
|
-
import { t as MANAGED_DEPLOY_BUILD_ENV } from "./deploy-transport-
|
|
26
|
+
import { t as MANAGED_DEPLOY_BUILD_ENV } from "./deploy-transport-BzGEj0Ge.mjs";
|
|
27
27
|
import { cpSync, existsSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, rmSync } from "node:fs";
|
|
28
28
|
import { createDeployArtifact, createDeployUploadPayload } from "@void/deploy-core";
|
|
29
29
|
import { createHash } from "node:crypto";
|
|
30
30
|
import { execSync, spawnSync } from "node:child_process";
|
|
31
31
|
import { getContentType } from "@void/edge";
|
|
32
|
-
import { hash } from "blake3-jit";
|
|
33
32
|
import ignore from "ignore";
|
|
33
|
+
import { hash } from "blake3-jit";
|
|
34
34
|
//#region src/cli/deploy-helpers.ts
|
|
35
35
|
const log = {
|
|
36
36
|
error: (message) => log$1.error(formatCloudflareUserMessage(message)),
|
|
@@ -628,10 +628,11 @@ var DirectR2PutError = class extends Error {
|
|
|
628
628
|
}
|
|
629
629
|
};
|
|
630
630
|
/**
|
|
631
|
-
* Issue direct-to-R2 PUTs for every item in `items
|
|
632
|
-
* `R2_PUT_CONCURRENCY`. Surfaces the first failure
|
|
633
|
-
* after retry exhaustion) as a `DirectR2PutError`
|
|
634
|
-
* and hash so the user can correlate against the
|
|
631
|
+
* Issue direct-to-R2 PUTs for every item in `items` (assets or Worker
|
|
632
|
+
* modules), bounded to `R2_PUT_CONCURRENCY`. Surfaces the first failure
|
|
633
|
+
* (4xx immediately, 5xx after retry exhaustion) as a `DirectR2PutError`
|
|
634
|
+
* carrying the item path and hash so the user can correlate against the
|
|
635
|
+
* JSONL log.
|
|
635
636
|
*
|
|
636
637
|
* Logs `r2_put_start` / `r2_put_end` per asset, plus `r2_put_retry` on
|
|
637
638
|
* each retry attempt. Per-asset durations help identify slow uploads.
|
|
@@ -894,20 +895,64 @@ async function streamDeployEvents(projectId, events, s, cliLog) {
|
|
|
894
895
|
throw new Error(formatConnectionLostMessage(deploymentId, cliLog?.path ?? null));
|
|
895
896
|
}
|
|
896
897
|
/**
|
|
898
|
+
* Upload Worker modules straight to R2 and return the `workerInput` that
|
|
899
|
+
* finalization names them by. The platform checks the Worker against
|
|
900
|
+
* Cloudflare's size limit when it issues the URLs, so a Worker that is too
|
|
901
|
+
* large fails before any bytes are sent. Each buffer leaves `workerFiles`
|
|
902
|
+
* once R2 acknowledges its PUT.
|
|
903
|
+
*/
|
|
904
|
+
async function uploadWorkerModules(client, projectId, workerFiles, s, cliLog) {
|
|
905
|
+
const modules = Array.from(workerFiles, ([name, body]) => ({
|
|
906
|
+
name,
|
|
907
|
+
size: body.length,
|
|
908
|
+
sha256: createHash("sha256").update(body).digest("hex")
|
|
909
|
+
}));
|
|
910
|
+
s.message(`Requesting upload URLs for ${formatCount(modules.length, "worker module")}...`);
|
|
911
|
+
cliLog?.info("worker_presign_request_start", {
|
|
912
|
+
moduleCount: modules.length,
|
|
913
|
+
totalBytes: modules.reduce((total, module) => total + module.size, 0)
|
|
914
|
+
});
|
|
915
|
+
const presignStartedAt = Date.now();
|
|
916
|
+
const { id, urls } = await client.requestWorkerUploadUrls(projectId, modules);
|
|
917
|
+
cliLog?.info("worker_presign_request_end", {
|
|
918
|
+
uploadId: id,
|
|
919
|
+
durationMs: Date.now() - presignStartedAt
|
|
920
|
+
});
|
|
921
|
+
const items = modules.map((module, index) => ({
|
|
922
|
+
path: module.name,
|
|
923
|
+
hash: module.sha256,
|
|
924
|
+
body: workerFiles.get(module.name),
|
|
925
|
+
url: urls[index].url,
|
|
926
|
+
headers: urls[index].headers
|
|
927
|
+
}));
|
|
928
|
+
s.message(`Uploading ${formatCount(items.length, "worker module")} to R2...`);
|
|
929
|
+
await uploadAssetsToR2(items, cliLog, void 0, (item) => {
|
|
930
|
+
workerFiles.delete(item.path);
|
|
931
|
+
});
|
|
932
|
+
return {
|
|
933
|
+
id,
|
|
934
|
+
modules
|
|
935
|
+
};
|
|
936
|
+
}
|
|
937
|
+
/**
|
|
897
938
|
* Direct-to-R2 deploy orchestration. Issues presigned PUT URLs for each
|
|
898
939
|
* needed asset, uploads bytes directly to R2, then calls the manifest-only
|
|
899
|
-
* deploy endpoint to finalize.
|
|
940
|
+
* deploy endpoint to finalize. When the platform supports it, Worker modules
|
|
941
|
+
* go to R2 the same way, before the assets.
|
|
900
942
|
*
|
|
901
943
|
* Key invariants:
|
|
902
944
|
* 1. No needed assets → skip presign + R2 PUT phase entirely (saves a
|
|
903
945
|
* round-trip when every asset was already present from a prior deploy).
|
|
904
|
-
* 2. Asset bytes come exclusively from the in-memory
|
|
905
|
-
*
|
|
906
|
-
* disk during
|
|
946
|
+
* 2. Asset and Worker bytes come exclusively from the in-memory
|
|
947
|
+
* `assetFiles` / `workerFiles` caches computed by `collectAndHashAssets`
|
|
948
|
+
* and `collectWorkerFiles` — files are NEVER re-read from disk during
|
|
949
|
+
* this flow.
|
|
907
950
|
* 3. R2 PUT failures (4xx, 5xx, network) are surfaced with the asset
|
|
908
|
-
* path + hash
|
|
951
|
+
* path + hash (or Worker module name + SHA-256) so the user can
|
|
952
|
+
* correlate against the JSONL trace.
|
|
909
953
|
*/
|
|
910
954
|
async function streamDirectR2Deploy({ client, projectId, manifest, assetManifest, assetFiles, needed, gitMetadata, preflightUsed, workerFiles, spinner: s, cliLog }) {
|
|
955
|
+
const workerInput = workerFiles && workerFiles.size > 0 && await client.supportsDirectWorkerUpload() ? await uploadWorkerModules(client, projectId, workerFiles, s, cliLog) : void 0;
|
|
911
956
|
if (needed.length > 0) {
|
|
912
957
|
const neededPaths = new Set(needed);
|
|
913
958
|
const preBufferCount = assetFiles.size;
|
|
@@ -968,7 +1013,7 @@ async function streamDirectR2Deploy({ client, projectId, manifest, assetManifest
|
|
|
968
1013
|
cliLog?.info("presign_skipped", { reason: "no_needed_assets" });
|
|
969
1014
|
}
|
|
970
1015
|
let encodedWorkerFiles;
|
|
971
|
-
if (workerFiles && workerFiles.size > 0) {
|
|
1016
|
+
if (!workerInput && workerFiles && workerFiles.size > 0) {
|
|
972
1017
|
encodedWorkerFiles = {};
|
|
973
1018
|
for (const [relPath, buf] of workerFiles) encodedWorkerFiles[relPath] = buf.toString("base64");
|
|
974
1019
|
}
|
|
@@ -984,10 +1029,11 @@ async function streamDirectR2Deploy({ client, projectId, manifest, assetManifest
|
|
|
984
1029
|
commitUrl: gitMetadata?.commitUrl ?? null,
|
|
985
1030
|
gitRef: gitMetadata?.gitRef ?? null,
|
|
986
1031
|
preflight: preflightUsed ? "true" : null
|
|
987
|
-
});
|
|
1032
|
+
}, workerInput);
|
|
988
1033
|
s.message("Finalizing deploy...");
|
|
989
1034
|
cliLog?.info("finalize_start", {
|
|
990
|
-
workerFileCount: workerFiles?.size ?? 0,
|
|
1035
|
+
workerFileCount: workerInput?.modules.length ?? workerFiles?.size ?? 0,
|
|
1036
|
+
...workerInput && { workerUploadId: workerInput.id },
|
|
991
1037
|
assetCount: Object.keys(assetManifest).length
|
|
992
1038
|
});
|
|
993
1039
|
const finalizeStartedAt = Date.now();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as join } from "./dist-ipQi0Q8y.mjs";
|
|
2
2
|
import { n as scanWranglerDotenvKeys } from "./dotenv-CNazY3-w.mjs";
|
|
3
3
|
import { t as CLOUDFLARE_DEPLOY_BUILD_ENV } from "./env-BJjULvL0.mjs";
|
|
4
|
-
import { i as WRANGLER_AUTH_CREDENTIAL_ENV_VARS, t as CLOUDFLARE_PRESERVE_BINDINGS_BUILD_ENV } from "./version-metadata-
|
|
5
|
-
import { _ as provisionEnv, r as assertNoTransportRedirectInProjectDotenv, s as deleteEnvVarCaseAware, v as resolvePinnedApiBaseUrl } from "./provision-
|
|
4
|
+
import { i as WRANGLER_AUTH_CREDENTIAL_ENV_VARS, t as CLOUDFLARE_PRESERVE_BINDINGS_BUILD_ENV } from "./version-metadata-tS39iW09.mjs";
|
|
5
|
+
import { _ as provisionEnv, r as assertNoTransportRedirectInProjectDotenv, s as deleteEnvVarCaseAware, v as resolvePinnedApiBaseUrl } from "./provision-DtROpNNI.mjs";
|
|
6
6
|
import { readWranglerTopLevelString } from "@void/deploy-cloudflare";
|
|
7
7
|
//#region src/cli/deploy-transport.ts
|
|
8
8
|
/**
|
package/dist/deploy.d.mts
CHANGED
|
@@ -1,10 +1,31 @@
|
|
|
1
1
|
import { DeployArtifact } from "@void/deploy-core";
|
|
2
2
|
//#region src/deploy.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* A disposable Cloudflare Build Output directory. Experimental: it follows Cloudflare's draft
|
|
5
|
+
* Build Output format, which can change between Void releases.
|
|
6
|
+
*/
|
|
7
|
+
export type CfBuildOutput = {
|
|
8
|
+
directory: string;
|
|
9
|
+
/** The input's static assets, when the Worker has any. */
|
|
10
|
+
assetsDirectory?: string;
|
|
11
|
+
dispose(): Promise<void>;
|
|
12
|
+
};
|
|
13
|
+
export type PrepareCfBuildOutputOptions = {
|
|
14
|
+
/** The Cloudflare account the build must target. */
|
|
15
|
+
accountId?: string;
|
|
16
|
+
/** The Vite build mode. Native output must match it; legacy output defaults to production. */
|
|
17
|
+
mode?: string;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Convert an existing Cloudflare Worker build into a disposable Cloudflare Build Output directory.
|
|
21
|
+
* Experimental. Returns null for an unsupported build or a conflicting account or mode.
|
|
22
|
+
*/
|
|
23
|
+
export declare function prepareCfBuildOutput(directory: string, options?: PrepareCfBuildOutputOptions): Promise<CfBuildOutput | null>;
|
|
3
24
|
export type PreparedDeployArtifact = {
|
|
4
25
|
artifact: DeployArtifact;
|
|
5
26
|
/** Static asset bytes keyed by URL path, encoded as base64. */
|
|
6
27
|
assets: Record<string, string>;
|
|
7
28
|
};
|
|
8
|
-
/** Package an already-built
|
|
29
|
+
/** Package an already-built app for managed deployment, without platform credentials. */
|
|
9
30
|
export declare function prepareDeployArtifact(root?: string): Promise<PreparedDeployArtifact>;
|
|
10
31
|
//#endregion
|
package/dist/deploy.mjs
CHANGED
|
@@ -1,19 +1,60 @@
|
|
|
1
1
|
import { a as join, c as resolve } from "./dist-ipQi0Q8y.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { o as validateSsrEntry } from "./entry-
|
|
4
|
-
import { r as hasEmailHandlers } from "./email-
|
|
2
|
+
import { p as readConfig, u as isNodeTarget } from "./config-DHgSEWT7.mjs";
|
|
3
|
+
import { o as validateSsrEntry } from "./entry-BEM8ZuGP.mjs";
|
|
4
|
+
import { r as hasEmailHandlers } from "./email-B9ayYQEG.mjs";
|
|
5
5
|
import { a as resolveDistDir, c as hasDocumentRoutes, l as resolveAssetConfig, n as collectRevalidate, o as resolveWorkerDirName, s as hasApiRoutes } from "./isr-config-fZaJJ8t7.mjs";
|
|
6
|
-
import { t as analyzeApplication } from "./application-routing-
|
|
7
|
-
import {
|
|
6
|
+
import { t as analyzeApplication } from "./application-routing-DAhNP4u3.mjs";
|
|
7
|
+
import { t as prepareCfBuildOutput$1 } from "./cf-build-output-BhVxldCw.mjs";
|
|
8
|
+
import { o as detectPreset } from "./cloudflare-process-8jEYIeim.mjs";
|
|
9
|
+
import { F as resolveStaticDeployPreset, I as toManifestSchedulesAndQueues, L as validateDeployMigrations, M as resolveDeployWranglerCompat, a as collectAndHashAssets, b as assertWorkerMainUploaded, d as mergeAndLintRoutingRules, h as assertDeploySchemaDriftFree, i as buildStaticManifest, j as resolveDeployWorkerMain, o as collectWorkerFiles, t as assembleVoidManifest } from "./deploy-managed-static-DlvcvnQT.mjs";
|
|
8
10
|
import { existsSync } from "node:fs";
|
|
9
11
|
import { createDeployArtifact } from "@void/deploy-core";
|
|
10
12
|
//#region src/deploy.ts
|
|
11
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* Convert an existing Cloudflare Worker build into a disposable Cloudflare Build Output directory.
|
|
15
|
+
* Experimental. Returns null for an unsupported build or a conflicting account or mode.
|
|
16
|
+
*/
|
|
17
|
+
async function prepareCfBuildOutput(directory, options = {}) {
|
|
18
|
+
const prepared = await prepareCfBuildOutput$1(directory, options.accountId, options.mode);
|
|
19
|
+
return prepared && {
|
|
20
|
+
directory: prepared.directory,
|
|
21
|
+
...prepared.assetsDirectory ? { assetsDirectory: prepared.assetsDirectory } : {},
|
|
22
|
+
dispose: prepared.dispose
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
/** Package an already-built app for managed deployment, without platform credentials. */
|
|
12
26
|
async function prepareDeployArtifact(root = process.cwd()) {
|
|
13
27
|
root = resolve(root);
|
|
14
28
|
const config = readConfig(root);
|
|
15
29
|
if (isNodeTarget(config.target) || config.output === "static") throw new Error("Artifact preparation requires a Void Cloudflare Worker build.");
|
|
16
|
-
|
|
30
|
+
let preset = resolveStaticDeployPreset(root, config);
|
|
31
|
+
let analysis;
|
|
32
|
+
if (!preset) {
|
|
33
|
+
analysis = await analyzeApplication(root, {
|
|
34
|
+
config,
|
|
35
|
+
environment: "prod"
|
|
36
|
+
});
|
|
37
|
+
if (!config.inference?.appType && !analysis.framework && !analysis.durableObjects.length && !analysis.websockets.length && !Object.values(analysis.bindings).some(Boolean)) preset = detectPreset(root, { strictBackend: true });
|
|
38
|
+
}
|
|
39
|
+
if (preset) {
|
|
40
|
+
if (!existsSync(preset.outputDir)) throw new Error("Static build output is missing. Run the app build first.");
|
|
41
|
+
const rules = mergeAndLintRoutingRules(preset.outputDir, config.routing);
|
|
42
|
+
const { assetManifest, assetFiles } = await collectAndHashAssets(preset.outputDir);
|
|
43
|
+
if (!assetFiles.size) throw new Error("Static build output is empty. Run the app build first.");
|
|
44
|
+
return {
|
|
45
|
+
artifact: createDeployArtifact({
|
|
46
|
+
manifest: buildStaticManifest({
|
|
47
|
+
appType: preset.appType,
|
|
48
|
+
hashedAssetsPrefix: "assets",
|
|
49
|
+
notFound: config.routing?.notFound,
|
|
50
|
+
...rules
|
|
51
|
+
}),
|
|
52
|
+
assetManifest
|
|
53
|
+
}),
|
|
54
|
+
assets: Object.fromEntries([...assetFiles].map(([path, bytes]) => [path, bytes.toString("base64")]))
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
analysis ??= await analyzeApplication(root, {
|
|
17
58
|
config,
|
|
18
59
|
environment: "prod"
|
|
19
60
|
});
|
|
@@ -79,4 +120,4 @@ async function prepareDeployArtifact(root = process.cwd()) {
|
|
|
79
120
|
};
|
|
80
121
|
}
|
|
81
122
|
//#endregion
|
|
82
|
-
export { prepareDeployArtifact };
|
|
123
|
+
export { prepareCfBuildOutput, prepareDeployArtifact };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as bytesToBase64, t as base64ToBytes } from "./base64-DVrOndmI.mjs";
|
|
2
|
-
import { a as newId, t as MAX_MESSAGE_BYTES } from "./mime-
|
|
2
|
+
import { a as newId, t as MAX_MESSAGE_BYTES } from "./mime-BAyHPskU.mjs";
|
|
3
3
|
//#region src/runtime/email/dev-inbox.ts
|
|
4
4
|
/**
|
|
5
5
|
* In-memory email capture for `void dev` and tests. The inbox buffer lives in
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as join, i as isAbsolute, n as dirname, s as relative } from "./dist-ipQi0Q8y.mjs";
|
|
2
2
|
import { i as resolveProjectPaths, n as readProjectPaths } from "./project-paths-DGu_QZ_Q.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { i as voidWarn } from "./log-
|
|
3
|
+
import { c as getDatabaseCasing, l as getDatabaseDialect, m as resolveBindingNames, p as readConfig } from "./config-DHgSEWT7.mjs";
|
|
4
|
+
import { i as voidWarn } from "./log-BMwmN5Ae.mjs";
|
|
5
5
|
import { n as ensureProjectTsconfig } from "./project-tsconfig-Itv1f4WC.mjs";
|
|
6
6
|
import { n as generateDbDts, t as DRIZZLE_OPERATORS } from "./db-types-NGxPwnlt.mjs";
|
|
7
7
|
import { t as discoverSchema } from "./discover-LaV0tbIu.mjs";
|
|
@@ -43,7 +43,7 @@ function requestPool(resolve, own = {}) {
|
|
|
43
43
|
*/
|
|
44
44
|
function createVoidDbModule(root, dialect, options, paths = readProjectPaths(root)) {
|
|
45
45
|
const schema = discoverSchema(root, paths);
|
|
46
|
-
const hasDbRuntime = schema != null || options.forceVirtualDb === true || dialect !== "sqlite";
|
|
46
|
+
const hasDbRuntime = schema != null || options.forceVirtualDb === true || options.casing !== void 0 || dialect !== "sqlite";
|
|
47
47
|
const d1BindingName = options.d1BindingName ?? "DB";
|
|
48
48
|
return {
|
|
49
49
|
schema,
|
|
@@ -54,7 +54,7 @@ function createVoidDbModule(root, dialect, options, paths = readProjectPaths(roo
|
|
|
54
54
|
if (schema && importer) {
|
|
55
55
|
const normalizedImporter = normalizePath(importer);
|
|
56
56
|
const normalizedSchemaPath = normalizePath(schema.path);
|
|
57
|
-
if (schema.type === "file" && normalizedImporter === normalizedSchemaPath) return VIRTUAL_SCHEMA_DB_ID;
|
|
57
|
+
if (schema.type === "file" && (normalizedImporter === normalizedSchemaPath || normalizedImporter.startsWith(normalizePath(paths.schemaDir) + "/"))) return VIRTUAL_SCHEMA_DB_ID;
|
|
58
58
|
if (schema.type === "directory" && normalizedImporter.startsWith(normalizedSchemaPath)) return VIRTUAL_SCHEMA_DB_ID;
|
|
59
59
|
}
|
|
60
60
|
return VIRTUAL_DB_ID;
|
|
@@ -75,14 +75,17 @@ export function createDb() {
|
|
|
75
75
|
}
|
|
76
76
|
`;
|
|
77
77
|
const schemaImport = schema ? `import * as schema from ${JSON.stringify(schema.path)};` : "";
|
|
78
|
-
const
|
|
78
|
+
const casingOption = options.casing ? `casing: ${JSON.stringify(options.casing)}` : "";
|
|
79
|
+
const drizzleOptions = [schema ? "schema" : "", casingOption].filter(Boolean);
|
|
80
|
+
const drizzleConfig = drizzleOptions.length > 0 ? `, { ${drizzleOptions.join(", ")} }` : "";
|
|
81
|
+
const drizzleOptionKeys = drizzleOptions.map((option) => `, ${option}`).join("");
|
|
79
82
|
if (dialect === "mysql") {
|
|
80
|
-
const mysqlDrizzleConfig = schema ? ", schema, mode: \"default\"" : "";
|
|
83
|
+
const mysqlDrizzleConfig = (schema ? ", schema, mode: \"default\"" : "") + (casingOption ? `, ${casingOption}` : "");
|
|
81
84
|
return `
|
|
85
|
+
export { ${DRIZZLE_OPERATORS} } from ${JSON.stringify(drizzleOrmResolved)};
|
|
82
86
|
import { drizzle } from ${JSON.stringify(drizzleMysql2Resolved)};
|
|
83
87
|
import { getRuntimeBinding, getRuntimeRequestResource } from ${JSON.stringify(envModuleResolved)};
|
|
84
88
|
${schemaImport}
|
|
85
|
-
export { ${DRIZZLE_OPERATORS} } from ${JSON.stringify(drizzleOrmResolved)};
|
|
86
89
|
|
|
87
90
|
const _requestResourceKey = {};
|
|
88
91
|
|
|
@@ -158,10 +161,10 @@ export function createDb(connectionString) {
|
|
|
158
161
|
`;
|
|
159
162
|
}
|
|
160
163
|
if (dialect === "postgresql") return `
|
|
164
|
+
export { ${DRIZZLE_OPERATORS} } from ${JSON.stringify(drizzleOrmResolved)};
|
|
161
165
|
import { drizzle } from ${JSON.stringify(drizzleNodePgResolved)};
|
|
162
166
|
import { getRuntimeBinding, getRuntimeRequestResource } from ${JSON.stringify(envModuleResolved)};
|
|
163
167
|
${schemaImport}
|
|
164
|
-
export { ${DRIZZLE_OPERATORS} } from ${JSON.stringify(drizzleOrmResolved)};
|
|
165
168
|
|
|
166
169
|
const _requestResourceKey = {};
|
|
167
170
|
|
|
@@ -196,7 +199,7 @@ export const db = new Proxy({}, {
|
|
|
196
199
|
// drizzle reports a query's errors as "Failed query", so build the request's pool here:
|
|
197
200
|
// a missing connection string then throws its own message. Outside a request, build none.
|
|
198
201
|
getRuntimeRequestResource(_requestResourceKey, createPool, () => undefined);
|
|
199
|
-
instance ??= drizzle({ client: requestPool(getPool)${
|
|
202
|
+
instance ??= drizzle({ client: requestPool(getPool)${drizzleOptionKeys} });
|
|
200
203
|
const value = Reflect.get(instance, prop);
|
|
201
204
|
return typeof value === "function" ? value.bind(instance) : value;
|
|
202
205
|
},
|
|
@@ -207,10 +210,10 @@ export function createDb(connectionString) {
|
|
|
207
210
|
}
|
|
208
211
|
`;
|
|
209
212
|
return `
|
|
213
|
+
export { ${DRIZZLE_OPERATORS} } from ${JSON.stringify(drizzleOrmResolved)};
|
|
210
214
|
import { drizzle } from ${JSON.stringify(drizzleD1Resolved)};
|
|
211
215
|
import { getRuntimeRequestResource, requireRuntimeBinding } from ${JSON.stringify(envModuleResolved)};
|
|
212
216
|
${schemaImport}
|
|
213
|
-
export { ${DRIZZLE_OPERATORS} } from ${JSON.stringify(drizzleOrmResolved)};
|
|
214
217
|
|
|
215
218
|
const _requestResourceKey = {};
|
|
216
219
|
|
|
@@ -310,7 +313,8 @@ function voidDbBundlerPlugin(root, options = {}) {
|
|
|
310
313
|
const d1BindingName = resolveBindingNames(config.inference?.bindings)?.d1;
|
|
311
314
|
const dbModule = createVoidDbModule(root, dialect, {
|
|
312
315
|
d1BindingName,
|
|
313
|
-
forceVirtualDb: d1BindingName !== void 0
|
|
316
|
+
forceVirtualDb: d1BindingName !== void 0,
|
|
317
|
+
casing: getDatabaseCasing(config)
|
|
314
318
|
}, resolveProjectPaths(root, config));
|
|
315
319
|
const driverPackage = dialect === "postgresql" ? "pg" : dialect === "mysql" ? "mysql2" : void 0;
|
|
316
320
|
const drivers = /* @__PURE__ */ new Map();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { tt as isCancel, L as log, K as select, X as text } from "./dist-
|
|
1
|
+
export { tt as isCancel, L as log, K as select, X as text } from "./dist-Cor9XGoz.mjs";
|