@farm.js/core 0.1.76 → 0.1.78
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/after.cjs +1 -1
- package/dist/after.mjs +1 -1
- package/dist/{agent-mcp-handler-PJKZHYSA.mjs → agent-mcp-handler-EDJNU224.mjs} +1 -1
- package/dist/{agent-mcp-handler-73SGWVZT.cjs → agent-mcp-handler-LNBYLRTZ.cjs} +1 -1
- package/dist/{agent-mcp.d-Cftp2kFv.d.ts → agent-mcp.d-BErtnhV2.d.ts} +1 -1
- package/dist/{agent-mcp.d-D0FMmqi0.d.mts → agent-mcp.d-CYHfcjur.d.mts} +1 -1
- package/dist/agent-runtime.cjs +3 -3
- package/dist/agent-runtime.d.mts +2 -2
- package/dist/agent-runtime.d.ts +2 -2
- package/dist/agent-runtime.mjs +2 -2
- package/dist/analyzer-KVTUYGTT.cjs +16 -0
- package/dist/{analyzer-NLQKPN74.mjs → analyzer-M2BG6QYU.mjs} +3 -3
- package/dist/api/client.cjs +1 -1
- package/dist/api/client.mjs +1 -1
- package/dist/api/client.native.cjs +1 -1
- package/dist/api/client.native.mjs +1 -1
- package/dist/api/node.cjs +1 -1
- package/dist/api/node.d.mts +4 -4
- package/dist/api/node.d.ts +4 -4
- package/dist/api/node.mjs +1 -1
- package/dist/api/route-manager.cjs +5 -5
- package/dist/api/route-manager.d.mts +4 -4
- package/dist/api/route-manager.d.ts +4 -4
- package/dist/api/route-manager.mjs +4 -4
- package/dist/api/runtime.cjs +1 -1
- package/dist/api/runtime.d.mts +3 -3
- package/dist/api/runtime.d.ts +3 -3
- package/dist/api/runtime.mjs +1 -1
- package/dist/api.cjs +6 -6
- package/dist/api.d.mts +5 -5
- package/dist/api.d.ts +5 -5
- package/dist/api.mjs +5 -5
- package/dist/{app-manifest.d-cpOw_sV5.d.mts → app-manifest.d-6NCkLQ1y.d.mts} +1 -1
- package/dist/{app-manifest.d-7PmA_9hm.d.ts → app-manifest.d-DuqLBcmi.d.ts} +1 -1
- package/dist/app-markdown.cjs +1 -1
- package/dist/app-markdown.d.mts +3 -3
- package/dist/app-markdown.d.ts +3 -3
- package/dist/app-markdown.mjs +1 -1
- package/dist/{app.d-wOkxXre8.d.ts → app.d-Bz6vYBFF.d.ts} +4 -4
- package/dist/{app.d-DUZvwnFF.d.mts → app.d-Dk2HkvPh.d.mts} +4 -4
- package/dist/cache.cjs +1 -1
- package/dist/cache.mjs +1 -1
- package/dist/{chunk-DVW6SKHA.cjs → chunk-26CNCIFI.cjs} +2 -2
- package/dist/{chunk-CCQZDOQR.cjs → chunk-2G6JPLSL.cjs} +19 -19
- package/dist/{chunk-CL2ONP73.cjs → chunk-2PE5STAR.cjs} +36 -27
- package/dist/{chunk-E7VF3LQ5.mjs → chunk-4STJ6LGR.mjs} +13 -1
- package/dist/{chunk-HFJLMALC.cjs → chunk-5DREJN4G.cjs} +4 -4
- package/dist/{chunk-WILPJVQE.cjs → chunk-5KISFWD2.cjs} +4 -4
- package/dist/{chunk-5WFPZG7K.mjs → chunk-5REIO5DT.mjs} +4 -4
- package/dist/{chunk-SYPEMXW2.mjs → chunk-6MZSTPD2.mjs} +1 -1
- package/dist/{chunk-63EFR2WF.cjs → chunk-6XDDE7M6.cjs} +3 -3
- package/dist/{chunk-A2VFKOQL.mjs → chunk-7JTVN6IJ.mjs} +1 -1
- package/dist/{chunk-2GZZVIXY.mjs → chunk-7RQ5KAK6.mjs} +2 -2
- package/dist/{chunk-QVBXTSIZ.mjs → chunk-7V5M43ND.mjs} +1 -1
- package/dist/{chunk-SGQXJVFX.mjs → chunk-A37D6LOS.mjs} +1 -1
- package/dist/{chunk-7EOSFIPN.cjs → chunk-A4WWKG2B.cjs} +2 -2
- package/dist/{chunk-LQBV2Y37.mjs → chunk-A7EJATEW.mjs} +40 -4
- package/dist/{chunk-CKBBKRBO.mjs → chunk-AHGOHPRN.mjs} +14 -14
- package/dist/{chunk-JRBWBMP2.mjs → chunk-B3IRRANH.mjs} +1 -1
- package/dist/{chunk-7564NP5Z.cjs → chunk-BZJYPIFZ.cjs} +46 -10
- package/dist/{chunk-3OYFMOBY.mjs → chunk-CBP7AKZH.mjs} +1 -1
- package/dist/{chunk-QUEYL2WM.cjs → chunk-CKNZJFK5.cjs} +1 -1
- package/dist/{chunk-2WKGQCAV.cjs → chunk-DD2ANOEF.cjs} +265 -178
- package/dist/{chunk-XX6ZA2IO.cjs → chunk-DPBQRDWW.cjs} +1 -1
- package/dist/chunk-DS2KZ5BT.mjs +16 -0
- package/dist/{chunk-VDJ3CLBR.mjs → chunk-E7V2GYBP.mjs} +1 -1
- package/dist/{chunk-YHE7HH2I.mjs → chunk-EBFTAVGD.mjs} +134 -47
- package/dist/{chunk-UBXNTZCY.cjs → chunk-EVVV2XZ2.cjs} +115 -108
- package/dist/{chunk-PSNYVBWC.cjs → chunk-F7PKUP6P.cjs} +12 -12
- package/dist/{chunk-75XSZIRE.mjs → chunk-FD6BMUA3.mjs} +35 -26
- package/dist/{chunk-TMVVBK5S.cjs → chunk-FOULIN4S.cjs} +2 -2
- package/dist/{chunk-WJDMH3E7.cjs → chunk-H5OVJHXY.cjs} +4 -4
- package/dist/{chunk-DTNWLRRF.cjs → chunk-HVMQAVZK.cjs} +85 -85
- package/dist/{chunk-Q4X3MX4J.mjs → chunk-IGE5BAWK.mjs} +112 -105
- package/dist/{chunk-2JEXQAIR.cjs → chunk-IWGGRXD2.cjs} +2 -2
- package/dist/{chunk-SFSTZ7TB.cjs → chunk-K3ZELA6U.cjs} +2 -2
- package/dist/{chunk-DZ3AZ7UK.cjs → chunk-KZ5BOWJS.cjs} +9 -9
- package/dist/{chunk-GP5BWTO7.mjs → chunk-LIC6CMLB.mjs} +6 -6
- package/dist/{chunk-BYJPBJ4E.cjs → chunk-LJKTJNOF.cjs} +3 -3
- package/dist/{chunk-XLOORES5.cjs → chunk-LMXGCFAM.cjs} +1 -1
- package/dist/{chunk-QTDIOZV6.cjs → chunk-MBD34AS5.cjs} +2 -2
- package/dist/{chunk-BBRSPKFI.cjs → chunk-NB2ZEBIS.cjs} +196 -173
- package/dist/{chunk-PXXG5BID.cjs → chunk-NNGBTJCX.cjs} +3 -3
- package/dist/{chunk-QDHR54S6.cjs → chunk-OBVBII5K.cjs} +5 -5
- package/dist/{chunk-QP4GYVRR.cjs → chunk-ODYKCC6W.cjs} +8 -8
- package/dist/{chunk-3AJQFVWW.mjs → chunk-OGVOKAQU.mjs} +1 -1
- package/dist/{chunk-5EEQNZLU.mjs → chunk-PNWRH6TR.mjs} +2 -2
- package/dist/{chunk-3GMD2E4Q.mjs → chunk-QES76U42.mjs} +1 -1
- package/dist/{chunk-MTBDJ326.cjs → chunk-QMR2TUVZ.cjs} +13 -1
- package/dist/{chunk-JL6XHQZF.mjs → chunk-R77D7TCZ.mjs} +6 -6
- package/dist/{chunk-O225GNEU.mjs → chunk-RIMEFQYO.mjs} +44 -21
- package/dist/{chunk-MOS2N377.mjs → chunk-S6RUJRWI.mjs} +1 -1
- package/dist/chunk-TIZJYHB7.mjs +42 -0
- package/dist/chunk-UZM3PDKK.cjs +46 -0
- package/dist/{chunk-YQXJY7E7.mjs → chunk-VCW6BR6U.mjs} +1 -1
- package/dist/{chunk-E77ZKNPN.mjs → chunk-VO5XDZHK.mjs} +1 -1
- package/dist/{chunk-YONTMPZ6.mjs → chunk-VRI43FDN.mjs} +1 -1
- package/dist/{chunk-X3HUT4JU.mjs → chunk-VRJAMU34.mjs} +1 -1
- package/dist/{chunk-CF74ABRI.mjs → chunk-WJ4NUY2H.mjs} +2 -2
- package/dist/{chunk-Q7JMHO5U.mjs → chunk-X2SEYK7I.mjs} +2 -2
- package/dist/{chunk-WMJQNVKX.cjs → chunk-XGS76V7L.cjs} +2 -2
- package/dist/chunk-XRRHPBG2.cjs +16 -0
- package/dist/{chunk-3QM74STY.cjs → chunk-Y2FEFQAY.cjs} +3 -3
- package/dist/{chunk-HKGU2X4I.cjs → chunk-ZCYGYIC2.cjs} +2 -2
- package/dist/{chunk-OCLCA3X3.mjs → chunk-ZEWIWAS2.mjs} +1 -1
- package/dist/{cli-runtime.d-D84CwyPI.d.ts → cli-runtime.d-BG9q2_vC.d.ts} +8 -6
- package/dist/{cli-runtime.d-OQY2pgwK.d.mts → cli-runtime.d-CGMGs1Zz.d.mts} +8 -6
- package/dist/client/lifecycle.cjs +1 -1
- package/dist/client/lifecycle.mjs +1 -1
- package/dist/{client-component.d-Bf8jZqW7.d.ts → client-component.d-B84GPb_u.d.ts} +1 -1
- package/dist/{client-component.d-Bh6CfC5z.d.mts → client-component.d-CdsG1E7p.d.mts} +1 -1
- package/dist/client-plugins.cjs +1 -1
- package/dist/{client-plugins.d-r3K2oQ6w.d.mts → client-plugins.d-DX-iCJWE.d.mts} +1 -1
- package/dist/{client-plugins.d-DuujrC8d.d.ts → client-plugins.d-FptsHgls.d.ts} +1 -1
- package/dist/client-plugins.d.mts +2 -2
- package/dist/client-plugins.d.ts +2 -2
- package/dist/client-plugins.mjs +1 -1
- package/dist/client.cjs +1 -1
- package/dist/client.d.mts +7 -7
- package/dist/client.d.ts +7 -7
- package/dist/client.mjs +1 -1
- package/dist/config.cjs +1 -1
- package/dist/config.d.mts +2 -2
- package/dist/config.d.ts +2 -2
- package/dist/config.mjs +1 -1
- package/dist/cron.cjs +1 -1
- package/dist/cron.mjs +1 -1
- package/dist/deferred.cjs +1 -1
- package/dist/deferred.mjs +1 -1
- package/dist/deployment.cjs +1 -1
- package/dist/deployment.mjs +1 -1
- package/dist/desktop.cjs +1 -1
- package/dist/desktop.d.mts +3 -3
- package/dist/desktop.d.ts +3 -3
- package/dist/desktop.mjs +1 -1
- package/dist/{dev-guard-ZDIELV6Q.mjs → dev-guard-K3GJDPEQ.mjs} +1 -1
- package/dist/{dev-guard-ZLLKVO5T.cjs → dev-guard-VIEEA4LS.cjs} +1 -1
- package/dist/{devtools-MBZPUH3U.mjs → devtools-7P3OUNLV.mjs} +6 -5
- package/dist/{devtools-3WZIZ7KK.cjs → devtools-TMATFNUY.cjs} +7 -6
- package/dist/{devtools-client-X5OQCXDF.cjs → devtools-client-BKBCCORT.cjs} +1 -1
- package/dist/{devtools-client-SU4XH46J.mjs → devtools-client-L4MUWD6K.mjs} +1 -1
- package/dist/{devtools-ui-CYBVFLPH.mjs → devtools-ui-BOG33MT5.mjs} +1 -1
- package/dist/{devtools-ui-SYRUXUA7.cjs → devtools-ui-C2EMF2SO.cjs} +1 -1
- package/dist/docs.cjs +8 -7
- package/dist/docs.d.mts +4 -4
- package/dist/docs.d.ts +4 -4
- package/dist/docs.mjs +7 -6
- package/dist/env-types.cjs +1 -1
- package/dist/env-types.mjs +1 -1
- package/dist/env.cjs +1 -1
- package/dist/env.mjs +1 -1
- package/dist/environment/vite.cjs +6 -5
- package/dist/environment/vite.mjs +5 -4
- package/dist/environment.cjs +1 -1
- package/dist/environment.mjs +1 -1
- package/dist/font.cjs +1 -1
- package/dist/font.mjs +1 -1
- package/dist/{handler.d-Bd5lRSvb.d.ts → handler.d-Cy3XbY_W.d.ts} +1 -1
- package/dist/{handler.d-SRH-AKzf.d.mts → handler.d-DSwLTpa5.d.mts} +1 -1
- package/dist/headers.cjs +1 -1
- package/dist/{headers.d-CHHvyaIG.d.mts → headers.d-DiL9YTH3.d.mts} +1 -1
- package/dist/{headers.d-D-OvGikv.d.ts → headers.d-Qbjo38a0.d.ts} +1 -1
- package/dist/headers.mjs +1 -1
- package/dist/i18n/client.cjs +1 -1
- package/dist/i18n/client.mjs +1 -1
- package/dist/i18n/index.cjs +1 -1
- package/dist/i18n/index.mjs +1 -1
- package/dist/i18n/server.cjs +1 -1
- package/dist/i18n/server.mjs +1 -1
- package/dist/image/server.cjs +1 -1
- package/dist/image/server.mjs +1 -1
- package/dist/image/sharp.cjs +1 -1
- package/dist/image/sharp.mjs +1 -1
- package/dist/image.cjs +1 -1
- package/dist/image.mjs +1 -1
- package/dist/index.cjs +44 -39
- package/dist/{index.d-BOPsgMlI.d.mts → index.d-CqQKX3s6.d.mts} +1 -1
- package/dist/{index.d-BiUtYJUG.d.ts → index.d-OccJoC6I.d.ts} +1 -1
- package/dist/index.d.mts +23 -23
- package/dist/index.d.ts +23 -23
- package/dist/index.mjs +40 -35
- package/dist/instrumentation.cjs +1 -1
- package/dist/instrumentation.mjs +1 -1
- package/dist/integrations/orm.cjs +5 -4
- package/dist/integrations/orm.d.mts +2 -2
- package/dist/integrations/orm.d.ts +2 -2
- package/dist/integrations/orm.mjs +4 -3
- package/dist/integrations.cjs +3 -3
- package/dist/integrations.d.mts +2 -2
- package/dist/integrations.d.ts +2 -2
- package/dist/integrations.mjs +2 -2
- package/dist/internal/app-markdown-runtime.cjs +1 -1
- package/dist/internal/app-markdown-runtime.d.mts +3 -3
- package/dist/internal/app-markdown-runtime.d.ts +3 -3
- package/dist/internal/app-markdown-runtime.mjs +1 -1
- package/dist/internal/build-runtime.cjs +30 -29
- package/dist/internal/build-runtime.d.mts +5 -5
- package/dist/internal/build-runtime.d.ts +5 -5
- package/dist/internal/build-runtime.mjs +29 -28
- package/dist/internal/cli-runtime.cjs +17 -14
- package/dist/internal/cli-runtime.d.mts +9 -8
- package/dist/internal/cli-runtime.d.ts +9 -8
- package/dist/internal/cli-runtime.mjs +17 -14
- package/dist/internal/client-error-overlay.cjs +5 -5
- package/dist/internal/client-error-overlay.mjs +2 -2
- package/dist/internal/client-runtime.cjs +1 -1
- package/dist/internal/client-runtime.d.mts +5 -5
- package/dist/internal/client-runtime.d.ts +5 -5
- package/dist/internal/client-runtime.mjs +1 -1
- package/dist/internal/compression-runtime.cjs +3 -3
- package/dist/internal/compression-runtime.d.mts +6 -3
- package/dist/internal/compression-runtime.d.ts +6 -3
- package/dist/internal/compression-runtime.mjs +2 -2
- package/dist/internal/config-runtime.cjs +8 -7
- package/dist/internal/config-runtime.d.mts +4 -4
- package/dist/internal/config-runtime.d.ts +4 -4
- package/dist/internal/config-runtime.mjs +7 -6
- package/dist/internal/desktop-guard.cjs +1 -1
- package/dist/internal/desktop-guard.mjs +1 -1
- package/dist/internal/docs-precompiled-runtime.cjs +1 -1
- package/dist/internal/docs-precompiled-runtime.mjs +1 -1
- package/dist/internal/form-actions-client.cjs +1 -1
- package/dist/internal/form-actions-client.mjs +1 -1
- package/dist/internal/form-actions.cjs +1 -1
- package/dist/internal/form-actions.mjs +1 -1
- package/dist/internal/infra-analytics-runtime.cjs +7 -7
- package/dist/internal/infra-analytics-runtime.mjs +5 -5
- package/dist/internal/island-codec.cjs +1 -1
- package/dist/internal/island-codec.mjs +1 -1
- package/dist/internal/island-value-store.cjs +1 -1
- package/dist/internal/island-value-store.mjs +1 -1
- package/dist/internal/islands-boot.cjs +27 -6
- package/dist/internal/islands-boot.mjs +24 -3
- package/dist/internal/islands-runtime.cjs +1 -1
- package/dist/internal/islands-runtime.mjs +1 -1
- package/dist/internal/islands-server.cjs +1 -1
- package/dist/internal/islands-server.mjs +1 -1
- package/dist/internal/islx-client.cjs +1 -1
- package/dist/internal/islx-react.cjs +1 -1
- package/dist/internal/islx-server.cjs +1 -1
- package/dist/internal/isolated-boundary.cjs +1 -1
- package/dist/internal/isolated-boundary.mjs +1 -1
- package/dist/internal/metadata-image-runtime.cjs +1 -1
- package/dist/internal/metadata-image-runtime.mjs +1 -1
- package/dist/internal/native-server-fns.cjs +5 -5
- package/dist/internal/native-server-fns.mjs +4 -4
- package/dist/internal/product-telemetry-runtime.cjs +4 -4
- package/dist/internal/product-telemetry-runtime.mjs +3 -3
- package/dist/internal/production-node-env.cjs +1 -1
- package/dist/internal/production-node-env.mjs +1 -1
- package/dist/internal/production-runtime.cjs +8 -7
- package/dist/internal/production-runtime.d.mts +11 -11
- package/dist/internal/production-runtime.d.ts +11 -11
- package/dist/internal/production-runtime.mjs +7 -6
- package/dist/internal/react-cache.cjs +1 -1
- package/dist/internal/react-cache.mjs +1 -1
- package/dist/internal/request-cookies.cjs +1 -1
- package/dist/internal/request-cookies.mjs +1 -1
- package/dist/internal/server-fn-transform.cjs +1 -1
- package/dist/internal/server-fn-transform.mjs +1 -1
- package/dist/internal/server-tree.cjs +1 -1
- package/dist/internal/server-tree.mjs +1 -1
- package/dist/internal/start-manifest.cjs +1 -1
- package/dist/internal/start-manifest.d.mts +2 -2
- package/dist/internal/start-manifest.d.ts +2 -2
- package/dist/internal/start-manifest.mjs +1 -1
- package/dist/internal/vercel-edge-middleware.cjs +1 -1
- package/dist/internal/vercel-edge-middleware.mjs +1 -1
- package/dist/json-ld.cjs +1 -1
- package/dist/json-ld.mjs +1 -1
- package/dist/{layers-XQ7VFMWO.mjs → layers-5ZD4764G.mjs} +3 -2
- package/dist/layers-HMEGUEXM.cjs +21 -0
- package/dist/libsql-http-2QD224YS.mjs +600 -0
- package/dist/libsql-http-M6LMNXCN.cjs +600 -0
- package/dist/{manager-YO2RHDYU.mjs → manager-OMTC5FOJ.mjs} +2 -2
- package/dist/{manager-R7FV4A56.cjs → manager-PX4QN4HK.cjs} +4 -4
- package/dist/markdown.cjs +1 -1
- package/dist/markdown.d.mts +2 -2
- package/dist/markdown.d.ts +2 -2
- package/dist/markdown.mjs +1 -1
- package/dist/middleware.cjs +5 -5
- package/dist/middleware.d.mts +2 -2
- package/dist/middleware.d.ts +2 -2
- package/dist/middleware.mjs +4 -4
- package/dist/mobile.cjs +1 -1
- package/dist/mobile.mjs +1 -1
- package/dist/{modules-KOKD4XS6.mjs → modules-3Q2ZCY4Q.mjs} +1 -1
- package/dist/{modules-QTP7WJPD.cjs → modules-KDHFBQ6L.cjs} +1 -1
- package/dist/{mount.d-vq1HTq5u.d.mts → mount.d-AcJaUtHF.d.mts} +1 -1
- package/dist/{mount.d-C2yq0Zzz.d.ts → mount.d-CPzqOm-a.d.ts} +1 -1
- package/dist/{native-server-fn-handler-LII4MDRR.mjs → native-server-fn-handler-WYYY4YBN.mjs} +1 -1
- package/dist/{native-server-fn-handler-IWNKQEXK.cjs → native-server-fn-handler-XRTZR7SZ.cjs} +1 -1
- package/dist/{native-specs-LDV6IZ4N.mjs → native-specs-A7YOL463.mjs} +1 -1
- package/dist/{native-specs-5OLED4MM.cjs → native-specs-JDPH26AO.cjs} +1 -1
- package/dist/{native-tree-G6ZWS7IR.mjs → native-tree-JDI3LJSH.mjs} +1 -1
- package/dist/{native-tree-D3PW64ZL.cjs → native-tree-MNUFN5G6.cjs} +1 -1
- package/dist/native.cjs +1 -1
- package/dist/native.mjs +1 -1
- package/dist/{navigation-delegate.d-DS2Sqm7E.d.mts → navigation-delegate.d-C4i5Y39E.d.mts} +1 -1
- package/dist/{navigation-delegate.d-D7xIin3i.d.ts → navigation-delegate.d-_Df9DnPY.d.ts} +1 -1
- package/dist/navigation.cjs +1 -1
- package/dist/navigation.d.mts +5 -5
- package/dist/navigation.d.ts +5 -5
- package/dist/navigation.mjs +1 -1
- package/dist/{nitro-HKMVYIXY.cjs → nitro-NUCTYEKJ.cjs} +3 -3
- package/dist/{nitro-RHLKLYXH.mjs → nitro-VCJ6QQSI.mjs} +2 -2
- package/dist/{node-module-bundle-LIZ2KMVW.cjs → node-module-bundle-M6BISE2P.cjs} +1 -1
- package/dist/{node-module-bundle-VR6NV6AI.mjs → node-module-bundle-XPLBMXRD.mjs} +1 -1
- package/dist/observability.cjs +1 -1
- package/dist/observability.mjs +1 -1
- package/dist/og.cjs +1 -1
- package/dist/og.mjs +1 -1
- package/dist/platform.cjs +1 -1
- package/dist/platform.mjs +1 -1
- package/dist/{plugin-YXPIS3XX.cjs → plugin-AGEFSU7K.cjs} +3 -3
- package/dist/{plugin-6CHZBFJD.mjs → plugin-TV6W7YNK.mjs} +2 -2
- package/dist/plugin.cjs +23 -22
- package/dist/plugin.d.mts +6 -6
- package/dist/plugin.d.ts +6 -6
- package/dist/plugin.mjs +22 -21
- package/dist/{port-CLL4BC4O.mjs → port-CEZTV776.mjs} +1 -1
- package/dist/{port-HASZTQGY.cjs → port-STMSGUVU.cjs} +1 -1
- package/dist/query/client.cjs +1 -1
- package/dist/query/client.mjs +1 -1
- package/dist/query/index.cjs +1 -1
- package/dist/query/index.mjs +1 -1
- package/dist/query/parsers.cjs +1 -1
- package/dist/query/parsers.mjs +1 -1
- package/dist/query/server.cjs +1 -1
- package/dist/query/server.mjs +1 -1
- package/dist/{render-plan.d-X6KqerAM.d.mts → render-plan.d-4V_NmaA6.d.mts} +1 -1
- package/dist/{render-plan.d-BCq0nfdw.d.ts → render-plan.d-CslZE7o7.d.ts} +1 -1
- package/dist/renderer/none/server.cjs +1 -1
- package/dist/renderer/none/server.mjs +1 -1
- package/dist/renderer/react/client.cjs +1 -1
- package/dist/renderer/react/client.mjs +1 -1
- package/dist/renderer/react/server.cjs +1 -1
- package/dist/renderer/react/server.mjs +1 -1
- package/dist/renderer/react/vite.cjs +1 -1
- package/dist/renderer/react/vite.mjs +1 -1
- package/dist/renderer-client.cjs +1 -1
- package/dist/renderer-client.d.mts +5 -5
- package/dist/renderer-client.d.ts +5 -5
- package/dist/renderer-client.mjs +1 -1
- package/dist/renderer.cjs +1 -1
- package/dist/renderer.mjs +1 -1
- package/dist/request.cjs +1 -1
- package/dist/{request.d-CPdq2_kC.d.ts → request.d-CbV3y7j3.d.ts} +1 -1
- package/dist/{request.d-Be9rWboC.d.mts → request.d-CmLTxEgS.d.mts} +1 -1
- package/dist/request.d.mts +3 -3
- package/dist/request.d.ts +3 -3
- package/dist/request.mjs +1 -1
- package/dist/{route-rendering.d-CKB5GhQr.d.ts → route-rendering.d-CETnXNez.d.ts} +1 -1
- package/dist/{route-rendering.d-CIPli7Ve.d.mts → route-rendering.d-CmoqfOmj.d.mts} +1 -1
- package/dist/router.cjs +1 -1
- package/dist/{router.d-CvrbOXzF.d.ts → router.d-Dga3N5YO.d.ts} +1 -1
- package/dist/{router.d-VxTgLGxN.d.mts → router.d-ktz7pwYm.d.mts} +1 -1
- package/dist/router.mjs +1 -1
- package/dist/routes.cjs +1 -1
- package/dist/routes.d.mts +2 -2
- package/dist/routes.d.ts +2 -2
- package/dist/routes.mjs +1 -1
- package/dist/{rsc-pipeline-TPHK74VE.cjs → rsc-pipeline-JLYD26AR.cjs} +11 -10
- package/dist/{rsc-pipeline-FPE4OL57.mjs → rsc-pipeline-N7CWJW7T.mjs} +10 -9
- package/dist/{runtime-UBG657UC.cjs → runtime-F5NSS4DD.cjs} +14 -13
- package/dist/{runtime-45BD33OJ.mjs → runtime-QXX2A4TS.mjs} +10 -9
- package/dist/{runtime.d-Ps54JWpo.d.ts → runtime.d-BWLZUOfA.d.ts} +1 -1
- package/dist/{runtime.d-Cn1jiDNI.d.mts → runtime.d-DuaXEM0p.d.mts} +1 -1
- package/dist/safe-fetch.cjs +1 -1
- package/dist/safe-fetch.mjs +1 -1
- package/dist/{schema-dev-notice-CA55V57L.mjs → schema-dev-notice-2GN5V7Y2.mjs} +1 -1
- package/dist/{schema-dev-notice-RWA2UTR6.cjs → schema-dev-notice-6VCOZGG2.cjs} +1 -1
- package/dist/schema.cjs +1 -1
- package/dist/schema.mjs +1 -1
- package/dist/{search-client-ZZLKVO5R.cjs → search-client-6NVC6HM2.cjs} +1 -1
- package/dist/{search-client-OXH6GBNO.mjs → search-client-W4PEFAQB.mjs} +1 -1
- package/dist/server-action-security.cjs +1 -1
- package/dist/server-action-security.mjs +1 -1
- package/dist/{server-components-status.d-Dhtbs5lC.d.ts → server-components-status.d-C5JpC7_Y.d.ts} +1 -1
- package/dist/{server-components-status.d-DnmipSb3.d.mts → server-components-status.d-CqxtJmqP.d.mts} +1 -1
- package/dist/server-fn-client.cjs +1 -1
- package/dist/server-fn-client.mjs +1 -1
- package/dist/server-fn.cjs +1 -1
- package/dist/server-fn.mjs +1 -1
- package/dist/server-plugins.cjs +3 -3
- package/dist/server-plugins.d.mts +4 -4
- package/dist/server-plugins.d.ts +4 -4
- package/dist/server-plugins.mjs +2 -2
- package/dist/server-query-client.cjs +1 -1
- package/dist/server-query-client.mjs +1 -1
- package/dist/server-query.cjs +1 -1
- package/dist/server-query.mjs +1 -1
- package/dist/server.cjs +99 -72
- package/dist/server.d.mts +13 -13
- package/dist/server.d.ts +13 -13
- package/dist/server.mjs +57 -30
- package/dist/{session-ASQTJNBK.mjs → session-AK2OA5UZ.mjs} +4 -3
- package/dist/session-H4TWP73H.cjs +24 -0
- package/dist/{spa-router.d-DXm5J9rM.d.mts → spa-router.d-BLE188EL.d.mts} +2 -2
- package/dist/{spa-router.d-cppVufl2.d.ts → spa-router.d-C3LzwTlY.d.ts} +2 -2
- package/dist/{ssg.d-CI5OFl8H.d.ts → ssg.d-DisOfj0I.d.ts} +2 -2
- package/dist/{ssg.d-Duzy1wQc.d.mts → ssg.d-QrFyU6T4.d.mts} +2 -2
- package/dist/storage.cjs +8 -3
- package/dist/storage.d.mts +260 -38
- package/dist/storage.d.ts +260 -38
- package/dist/storage.mjs +7 -2
- package/dist/testing.cjs +4 -4
- package/dist/testing.d.mts +2 -2
- package/dist/testing.d.ts +2 -2
- package/dist/testing.mjs +4 -4
- package/dist/theme/client.cjs +1 -1
- package/dist/theme/client.mjs +1 -1
- package/dist/theme/index.cjs +1 -1
- package/dist/theme/index.mjs +1 -1
- package/dist/theme/runtime.cjs +1 -1
- package/dist/theme/runtime.mjs +1 -1
- package/dist/theme/server.cjs +1 -1
- package/dist/theme/server.mjs +1 -1
- package/dist/{types.d-D5cY6XjK.d.mts → types.d-DW2vyaUq.d.mts} +26 -4
- package/dist/{types.d-D5cY6XjK.d.ts → types.d-DW2vyaUq.d.ts} +26 -4
- package/dist/{utils.d-D3dfy8zh.d.ts → utils.d-7YcgfTCK.d.ts} +1 -1
- package/dist/{utils.d-CNI-I8ZV.d.mts → utils.d-BlWZFgdL.d.mts} +1 -1
- package/dist/version.cjs +3 -3
- package/dist/version.mjs +2 -2
- package/dist/vite.cjs +23 -22
- package/dist/vite.d.mts +7 -7
- package/dist/vite.d.ts +7 -7
- package/dist/vite.mjs +22 -21
- package/dist/workflows.cjs +3 -3
- package/dist/workflows.mjs +2 -2
- package/package.json +4 -6
- package/dist/analyzer-KFJGYJS7.cjs +0 -16
- package/dist/chunk-BTZ5O6VM.cjs +0 -14
- package/dist/chunk-Y6FXYEAI.mjs +0 -10
- package/dist/layers-7P4RLKVX.cjs +0 -20
- package/dist/session-ACVUJ5XV.cjs +0 -23
- package/dist/{chunk-WW62HKA2.cjs → chunk-4SLHSODZ.cjs} +2 -2
- package/dist/{chunk-LSHUCNIF.mjs → chunk-522K362I.mjs} +0 -0
- package/dist/{chunk-OWO7KDZ3.cjs → chunk-AOTD2N5P.cjs} +0 -0
- package/dist/{chunk-22T75EML.cjs → chunk-CUZT7474.cjs} +0 -0
- package/dist/{chunk-6MNDFNZW.mjs → chunk-JKFN3YVG.mjs} +0 -0
- package/dist/{chunk-YTNE4KGC.cjs → chunk-MALGIHIC.cjs} +0 -0
- package/dist/{chunk-UOE6ZZZP.mjs → chunk-Q3DO7MVK.mjs} +0 -0
- package/dist/{chunk-GAAK3HDZ.mjs → chunk-XT2CHTDN.mjs} +3 -3
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
isMountSchema
|
|
3
|
+
} from "./chunk-DS2KZ5BT.mjs";
|
|
4
|
+
|
|
1
5
|
// src/storage/managed-sqlite.ts
|
|
2
6
|
function managedSqliteName(mount, managed) {
|
|
3
7
|
const name = managed === true ? mount : managed && typeof managed === "object" && "name" in managed ? managed.name : void 0;
|
|
@@ -14,7 +18,7 @@ function secureUrl(value) {
|
|
|
14
18
|
throw new Error("Use HTTPS or a loopback URL for Farm managed SQLite.");
|
|
15
19
|
return url;
|
|
16
20
|
}
|
|
17
|
-
async function requestSqliteResource(name, operation) {
|
|
21
|
+
async function requestSqliteResource(name, operation, declarations) {
|
|
18
22
|
const key = process.env.FARMJS_API_KEY;
|
|
19
23
|
if (!key) throw new Error("Set FARMJS_API_KEY on the server to access managed SQLite.");
|
|
20
24
|
const base = secureUrl(process.env.FARMJS_API_URL || "https://app.farmjs.dev");
|
|
@@ -29,7 +33,7 @@ async function requestSqliteResource(name, operation) {
|
|
|
29
33
|
const response = await fetch(new URL("/api/storage/sqlite/" + operation, base), {
|
|
30
34
|
method: operation === "token" ? "POST" : "PUT",
|
|
31
35
|
headers,
|
|
32
|
-
body: JSON.stringify({ name }),
|
|
36
|
+
body: JSON.stringify(operation === "provision" ? { name, declarations } : { name }),
|
|
33
37
|
redirect: "error",
|
|
34
38
|
signal: AbortSignal.timeout(15e3)
|
|
35
39
|
});
|
|
@@ -75,7 +79,8 @@ async function connect(name, loadClient) {
|
|
|
75
79
|
});
|
|
76
80
|
}
|
|
77
81
|
var databaseAccessor = /* @__PURE__ */ Symbol.for("farmjs.storage.managedDatabase");
|
|
78
|
-
|
|
82
|
+
var mountSchema = /* @__PURE__ */ Symbol.for("farmjs.storage.managedSchema");
|
|
83
|
+
function managedSqliteDriver(name, loadClient, schema) {
|
|
79
84
|
let pending;
|
|
80
85
|
let initialized;
|
|
81
86
|
let closed = false;
|
|
@@ -100,6 +105,7 @@ function managedSqliteDriver(name, loadClient) {
|
|
|
100
105
|
return {
|
|
101
106
|
name: "farm-managed-sqlite",
|
|
102
107
|
[databaseAccessor]: client,
|
|
108
|
+
[mountSchema]: schema,
|
|
103
109
|
async hasItem(key) {
|
|
104
110
|
return (await (await kv()).execute({ sql: "SELECT 1 FROM _farm_kv WHERE key=?", args: [key] })).rows.length > 0;
|
|
105
111
|
},
|
|
@@ -287,6 +293,7 @@ function extractDriverOptions(config) {
|
|
|
287
293
|
client: _client,
|
|
288
294
|
driver: _driver,
|
|
289
295
|
mounts: _mounts,
|
|
296
|
+
managed: _managed,
|
|
290
297
|
options,
|
|
291
298
|
tableName: _tableName,
|
|
292
299
|
...inlineOptions
|
|
@@ -332,11 +339,13 @@ async function resolveDriver(config, mount) {
|
|
|
332
339
|
if (config && isStorageClient(config)) {
|
|
333
340
|
return config.resolveDriver();
|
|
334
341
|
}
|
|
335
|
-
|
|
342
|
+
const hosted = resolveManagedStorageMount(config);
|
|
343
|
+
if (hosted) {
|
|
336
344
|
if (!mount) throw new TypeError("Register managed SQLite in storage.mounts.");
|
|
337
345
|
return managedSqliteDriver(
|
|
338
|
-
managedSqliteName(mount,
|
|
339
|
-
() =>
|
|
346
|
+
managedSqliteName(mount, hosted.managed),
|
|
347
|
+
() => import("./libsql-http-2QD224YS.mjs"),
|
|
348
|
+
hosted.schema
|
|
340
349
|
);
|
|
341
350
|
}
|
|
342
351
|
const driverInput = config?.driver ?? "memory";
|
|
@@ -421,12 +430,17 @@ function createStorageClientFromResolver(resolveDriver2, modules = []) {
|
|
|
421
430
|
function defineStorageClient(resolveDriver2) {
|
|
422
431
|
return createStorageClientFromResolver(resolveDriver2);
|
|
423
432
|
}
|
|
424
|
-
function
|
|
433
|
+
function configuredStorageClient(config) {
|
|
434
|
+
const hosted = resolveManagedStorageMount(config);
|
|
435
|
+
if (hosted) return hosted;
|
|
425
436
|
return createStorageClientFromResolver(
|
|
426
437
|
() => resolveDriver(config),
|
|
427
438
|
_collectFarmStorageModules(config)
|
|
428
439
|
);
|
|
429
440
|
}
|
|
441
|
+
function createStorageClient(config) {
|
|
442
|
+
return configuredStorageClient(config);
|
|
443
|
+
}
|
|
430
444
|
function driverStorage(driver) {
|
|
431
445
|
return defineStorageClient(() => typeof driver === "function" ? driver() : driver);
|
|
432
446
|
}
|
|
@@ -440,105 +454,96 @@ function databaseStorage(database, options = {}) {
|
|
|
440
454
|
return driver;
|
|
441
455
|
}, ["unstorage/drivers/db0"]);
|
|
442
456
|
}
|
|
443
|
-
function
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
function localStorage(options = {}) {
|
|
447
|
-
return createStorageClient({
|
|
448
|
-
driver: "local",
|
|
449
|
-
...options
|
|
450
|
-
});
|
|
451
|
-
}
|
|
452
|
-
function sqliteStorage(options) {
|
|
453
|
-
if ("managed" in options) {
|
|
454
|
-
if (Object.keys(options).some((key) => key !== "managed"))
|
|
455
|
-
throw new TypeError("Supply only managed when Farm provisions SQLite.");
|
|
456
|
-
if (options.managed !== true) managedSqliteName("", options.managed);
|
|
457
|
-
return { driver: "farm-managed-sqlite", managed: options.managed };
|
|
457
|
+
function assertMountSchema(schema) {
|
|
458
|
+
if (schema !== void 0 && !isMountSchema(schema)) {
|
|
459
|
+
throw new TypeError("Pass a schema created with defineSchema() from @farming-labs/orm.");
|
|
458
460
|
}
|
|
459
|
-
return createStorageClient({
|
|
460
|
-
driver: "sqlite",
|
|
461
|
-
...options
|
|
462
|
-
});
|
|
463
|
-
}
|
|
464
|
-
function mysqlStorage(options) {
|
|
465
|
-
return createStorageClient({
|
|
466
|
-
driver: "mysql",
|
|
467
|
-
...options
|
|
468
|
-
});
|
|
469
|
-
}
|
|
470
|
-
function mysql2Storage(options) {
|
|
471
|
-
return mysqlStorage(options);
|
|
472
|
-
}
|
|
473
|
-
function postgresStorage(options) {
|
|
474
|
-
return createStorageClient({
|
|
475
|
-
driver: "postgres",
|
|
476
|
-
...options
|
|
477
|
-
});
|
|
478
|
-
}
|
|
479
|
-
function pgStorage(options) {
|
|
480
|
-
return postgresStorage(options);
|
|
481
|
-
}
|
|
482
|
-
function pgliteStorage(options) {
|
|
483
|
-
return createStorageClient({
|
|
484
|
-
driver: "pglite",
|
|
485
|
-
...options
|
|
486
|
-
});
|
|
487
|
-
}
|
|
488
|
-
function planetscaleStorage(options) {
|
|
489
|
-
return createStorageClient({
|
|
490
|
-
driver: "planetscale",
|
|
491
|
-
...options
|
|
492
|
-
});
|
|
493
|
-
}
|
|
494
|
-
function libsqlStorage(options) {
|
|
495
|
-
return createStorageClient({
|
|
496
|
-
driver: "libsql",
|
|
497
|
-
...options
|
|
498
|
-
});
|
|
499
|
-
}
|
|
500
|
-
function redisStorage(options) {
|
|
501
|
-
return createStorageClient({
|
|
502
|
-
driver: "redis",
|
|
503
|
-
...options
|
|
504
|
-
});
|
|
505
|
-
}
|
|
506
|
-
function s3Storage(options) {
|
|
507
|
-
return createStorageClient({
|
|
508
|
-
driver: "s3",
|
|
509
|
-
...options
|
|
510
|
-
});
|
|
511
|
-
}
|
|
512
|
-
function mongodbStorage(options) {
|
|
513
|
-
return createStorageClient({
|
|
514
|
-
driver: "mongodb",
|
|
515
|
-
...options
|
|
516
|
-
});
|
|
517
461
|
}
|
|
518
|
-
function
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
462
|
+
function farmStorage(options = {}) {
|
|
463
|
+
if (!options || typeof options !== "object" || Array.isArray(options) || Object.keys(options).some((key) => key !== "namespace" && key !== "managed" && key !== "schema"))
|
|
464
|
+
throw new TypeError(
|
|
465
|
+
"Use farmStorage() or pass only the `managed`, `namespace`, and `schema` options."
|
|
466
|
+
);
|
|
467
|
+
if (options.managed !== void 0 && options.managed !== true)
|
|
468
|
+
throw new TypeError("Set `managed` to true or omit it when using farmStorage().");
|
|
469
|
+
assertMountSchema(options.schema);
|
|
470
|
+
return createManagedMount(options.namespace, options.schema, "farm");
|
|
471
|
+
}
|
|
472
|
+
function createManagedMount(namespace, schema, declaredDriver) {
|
|
473
|
+
const managed = namespace === void 0 ? true : { name: namespace };
|
|
474
|
+
if (managed !== true) managedSqliteName("", managed);
|
|
475
|
+
return {
|
|
476
|
+
driver: "farm-managed-sqlite",
|
|
477
|
+
managed,
|
|
478
|
+
...declaredDriver && { declaredDriver },
|
|
479
|
+
...schema && { schema }
|
|
480
|
+
};
|
|
523
481
|
}
|
|
524
|
-
function
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
482
|
+
function resolveManagedStorageMount(config) {
|
|
483
|
+
if (!config || typeof config !== "object") return;
|
|
484
|
+
if ("schema" in config && isMountSchema(config.schema) && (!("managed" in config) || !config.managed)) {
|
|
485
|
+
throw new TypeError(
|
|
486
|
+
"Set `managed: true` or use farmStorage({ schema }) to bind an ORM schema."
|
|
487
|
+
);
|
|
488
|
+
}
|
|
489
|
+
if (!("managed" in config)) {
|
|
490
|
+
if ("driver" in config && config.driver === "farm-managed-sqlite")
|
|
491
|
+
throw new TypeError("Set `managed` to true on a hosted storage mount.");
|
|
492
|
+
return;
|
|
493
|
+
}
|
|
494
|
+
const { driver, managed, ...options } = config;
|
|
495
|
+
if ((managed === false || managed === void 0) && driver !== "farm-managed-sqlite") return;
|
|
496
|
+
if (driver !== "farm-managed-sqlite" && !isHostedDriver(driver))
|
|
497
|
+
throw new TypeError("Select a built-in storage driver to use `managed: true`.");
|
|
498
|
+
const declaredDriver = driver === "farm-managed-sqlite" ? options.declaredDriver : driver;
|
|
499
|
+
if (driver === "farm-managed-sqlite") {
|
|
500
|
+
delete options.declaredDriver;
|
|
501
|
+
if (declaredDriver !== void 0 && declaredDriver !== "farm" && !isHostedDriver(declaredDriver))
|
|
502
|
+
throw new TypeError("Use a known storage driver in the managed mount descriptor.");
|
|
503
|
+
}
|
|
504
|
+
if (Object.keys(options).some((key) => key !== "namespace" && key !== "schema"))
|
|
505
|
+
throw new TypeError(
|
|
506
|
+
"Remove provider connection settings and driver options when using `managed: true`."
|
|
507
|
+
);
|
|
508
|
+
assertMountSchema(options.schema);
|
|
509
|
+
let namespace;
|
|
510
|
+
if (managed === true) namespace = options.namespace;
|
|
511
|
+
else if ((driver === "sqlite" || driver === "farm-managed-sqlite") && !("namespace" in options))
|
|
512
|
+
namespace = managedSqliteName("", managed);
|
|
513
|
+
else
|
|
514
|
+
throw new TypeError("Set `managed` to true and use `namespace` to select a hosted resource.");
|
|
515
|
+
return createManagedMount(
|
|
516
|
+
namespace,
|
|
517
|
+
options.schema,
|
|
518
|
+
typeof declaredDriver === "string" ? declaredDriver : void 0
|
|
519
|
+
);
|
|
529
520
|
}
|
|
530
|
-
function
|
|
531
|
-
return
|
|
532
|
-
driver: "vercel-kv",
|
|
533
|
-
...options
|
|
534
|
-
});
|
|
521
|
+
function isHostedDriver(driver) {
|
|
522
|
+
return typeof driver === "string" && (driver === "local" || driver === "vercel-kv" || Object.prototype.hasOwnProperty.call(DATABASE_CONNECTORS, driver) || driver !== "db0" && Object.prototype.hasOwnProperty.call(builtinDrivers, driver));
|
|
535
523
|
}
|
|
536
|
-
function
|
|
537
|
-
|
|
538
|
-
driver
|
|
539
|
-
|
|
540
|
-
|
|
524
|
+
function providerStorage(driver) {
|
|
525
|
+
function storage(options) {
|
|
526
|
+
return configuredStorageClient({ ...options, driver });
|
|
527
|
+
}
|
|
528
|
+
return storage;
|
|
541
529
|
}
|
|
530
|
+
var memoryStorage = providerStorage("memory");
|
|
531
|
+
var localStorage = providerStorage("local");
|
|
532
|
+
var sqliteStorage = providerStorage("sqlite");
|
|
533
|
+
var mysqlStorage = providerStorage("mysql");
|
|
534
|
+
var mysql2Storage = mysqlStorage;
|
|
535
|
+
var postgresStorage = providerStorage("postgres");
|
|
536
|
+
var pgStorage = postgresStorage;
|
|
537
|
+
var pgliteStorage = providerStorage("pglite");
|
|
538
|
+
var planetscaleStorage = providerStorage("planetscale");
|
|
539
|
+
var libsqlStorage = providerStorage("libsql");
|
|
540
|
+
var redisStorage = providerStorage("redis");
|
|
541
|
+
var s3Storage = providerStorage("s3");
|
|
542
|
+
var mongodbStorage = providerStorage("mongodb");
|
|
543
|
+
var upstashStorage = providerStorage("upstash");
|
|
544
|
+
var netlifyBlobsStorage = providerStorage("netlify-blobs");
|
|
545
|
+
var vercelKVStorage = providerStorage("vercel-kv");
|
|
546
|
+
var vercelBlobStorage = providerStorage("vercel-blob");
|
|
542
547
|
function collectDriverModules(config, modules) {
|
|
543
548
|
if (!config || typeof config !== "object") return;
|
|
544
549
|
if (isStorageClient(config)) {
|
|
@@ -549,10 +554,8 @@ function collectDriverModules(config, modules) {
|
|
|
549
554
|
if (isStorageInstance(config)) return;
|
|
550
555
|
const source = config;
|
|
551
556
|
const driver = source.driver;
|
|
552
|
-
if (typeof driver === "string") {
|
|
553
|
-
if (driver
|
|
554
|
-
modules.add("@libsql/client/http");
|
|
555
|
-
} else if (isDatabaseDriverName(driver)) {
|
|
557
|
+
if (typeof driver === "string" && !resolveManagedStorageMount(config)) {
|
|
558
|
+
if (isDatabaseDriverName(driver)) {
|
|
556
559
|
modules.add("db0");
|
|
557
560
|
modules.add(DATABASE_CONNECTORS[driver].module);
|
|
558
561
|
modules.add("unstorage/drivers/db0");
|
|
@@ -629,7 +632,9 @@ async function getDatabase(name, options) {
|
|
|
629
632
|
"Configure a managed SQLite mount named " + JSON.stringify(name) + " before calling getDatabase()."
|
|
630
633
|
);
|
|
631
634
|
const client = await driver[databaseAccessor]();
|
|
632
|
-
|
|
635
|
+
if (options && "raw" in options) return client;
|
|
636
|
+
const schema = options?.schema ?? driver[mountSchema];
|
|
637
|
+
return schema ? managedOrm(client, schema) : client;
|
|
633
638
|
}
|
|
634
639
|
function getStorage(namespace) {
|
|
635
640
|
globalStorage = getActiveGlobalStorage();
|
|
@@ -702,6 +707,8 @@ export {
|
|
|
702
707
|
createStorageClient,
|
|
703
708
|
driverStorage,
|
|
704
709
|
databaseStorage,
|
|
710
|
+
farmStorage,
|
|
711
|
+
resolveManagedStorageMount,
|
|
705
712
|
memoryStorage,
|
|
706
713
|
localStorage,
|
|
707
714
|
sqliteStorage,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkSHIWRBFIcjs = require('./chunk-SHIWRBFI.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkEVVV2XZ2cjs = require('./chunk-EVVV2XZ2.cjs');
|
|
7
7
|
|
|
8
8
|
// src/mobile/session.ts
|
|
9
9
|
var FARM_MOBILE_SESSION_PLUGIN = "farm:mobile-session";
|
|
@@ -176,7 +176,7 @@ function createFarmMobileSessionPlugin(options) {
|
|
|
176
176
|
const refreshTtl = (_nullishCoalesce(options.refreshTokenTtl, () => ( 30 * 24 * 60 * 60))) * 1e3;
|
|
177
177
|
const nonceTtl = (_nullishCoalesce(options.nonceTtl, () => ( 60))) * 1e3;
|
|
178
178
|
const now = _nullishCoalesce(options.now, () => ( Date.now));
|
|
179
|
-
const store = () => _nullishCoalesce(_optionalChain([options, 'access', _6 => _6.storage, 'optionalCall', _7 => _7()]), () => (
|
|
179
|
+
const store = () => _nullishCoalesce(_optionalChain([options, 'access', _6 => _6.storage, 'optionalCall', _7 => _7()]), () => ( _chunkEVVV2XZ2cjs.getStorage.call(void 0, STORAGE_NAMESPACE)));
|
|
180
180
|
let warnedNoReader = false;
|
|
181
181
|
function sessionReader() {
|
|
182
182
|
for (const integration of Object.values(_nullishCoalesce(options.integrations(), () => ( {})))) {
|
|
@@ -9,7 +9,7 @@ var _chunk67MZTLTFcjs = require('./chunk-67MZTLTF.cjs');
|
|
|
9
9
|
var _chunkQYOAGT3Ecjs = require('./chunk-QYOAGT3E.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkMALGIHICcjs = require('./chunk-MALGIHIC.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
var _chunkGC5ROI3Acjs = require('./chunk-GC5ROI3A.cjs');
|
|
@@ -174,7 +174,7 @@ async function scanRoutePatterns(options) {
|
|
|
174
174
|
);
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
|
-
for (const route of await
|
|
177
|
+
for (const route of await _chunkMALGIHICcjs.discoverProgrammaticRoutePaths.call(void 0, source.root, source.srcDir)) {
|
|
178
178
|
pages.add(route);
|
|
179
179
|
modules.add(route);
|
|
180
180
|
}
|
|
@@ -9,10 +9,10 @@ var _chunkKBGZ5FD6cjs = require('./chunk-KBGZ5FD6.cjs');
|
|
|
9
9
|
var _chunkP2355C6Ecjs = require('./chunk-P2355C6E.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk5DREJN4Gcjs = require('./chunk-5DREJN4G.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkMALGIHICcjs = require('./chunk-MALGIHIC.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunkSBDWCDS6cjs = require('./chunk-SBDWCDS6.cjs');
|
|
@@ -148,7 +148,7 @@ function farmApiPlugin(options = {}) {
|
|
|
148
148
|
const existing = apiRoutesCache.get(routePath);
|
|
149
149
|
const existingFile = _optionalChain([endpointSources, 'access', _4 => _4.get, 'call', _5 => _5(routePath), 'optionalAccess', _6 => _6.get, 'call', _7 => _7(normalizedMethod)]);
|
|
150
150
|
if (existingFile) {
|
|
151
|
-
throw new (0,
|
|
151
|
+
throw new (0, _chunk5DREJN4Gcjs.APIRouteConflictError)(routePath, normalizedMethod, existingFile, filePath);
|
|
152
152
|
}
|
|
153
153
|
if (existing) {
|
|
154
154
|
if (!existing.methods.includes(normalizedMethod)) {
|
|
@@ -323,7 +323,7 @@ function farmApiPlugin(options = {}) {
|
|
|
323
323
|
log(`API route discovered: ${availableMethods.join(", ")} ${routePath}`);
|
|
324
324
|
}
|
|
325
325
|
} catch (e) {
|
|
326
|
-
if (e instanceof
|
|
326
|
+
if (e instanceof _chunk5DREJN4Gcjs.APIRouteConflictError || e instanceof _chunkML4TOUZPcjs.AmbiguousRouteError) throw e;
|
|
327
327
|
log(`API route load failed at ${filePath}: ${e.message}`);
|
|
328
328
|
}
|
|
329
329
|
}
|
|
@@ -350,7 +350,7 @@ function farmApiPlugin(options = {}) {
|
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
} catch (e) {
|
|
353
|
-
if (e instanceof
|
|
353
|
+
if (e instanceof _chunk5DREJN4Gcjs.APIRouteConflictError || e instanceof _chunkML4TOUZPcjs.AmbiguousRouteError) throw e;
|
|
354
354
|
log(`Root routes.ts load failed: ${e.message}`);
|
|
355
355
|
}
|
|
356
356
|
break;
|
|
@@ -360,7 +360,7 @@ function farmApiPlugin(options = {}) {
|
|
|
360
360
|
const discoverProgrammaticRoutes = async () => {
|
|
361
361
|
const path = await import("path");
|
|
362
362
|
const srcRoot = path.join(server.config.root, srcDir);
|
|
363
|
-
const routeFiles =
|
|
363
|
+
const routeFiles = _chunkMALGIHICcjs.findProgrammaticRouteFilesInDir.call(void 0, srcRoot);
|
|
364
364
|
if (routeFiles.length === 0) return;
|
|
365
365
|
const { getProgrammaticRouteManifest } = await import("./routes.cjs");
|
|
366
366
|
for (const routeFile of routeFiles) {
|
|
@@ -381,7 +381,7 @@ function farmApiPlugin(options = {}) {
|
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
383
|
} catch (e) {
|
|
384
|
-
if (e instanceof
|
|
384
|
+
if (e instanceof _chunk5DREJN4Gcjs.APIRouteConflictError || e instanceof _chunkML4TOUZPcjs.AmbiguousRouteError) throw e;
|
|
385
385
|
log(`Programmatic routes file load failed at ${routeFile}: ${e.message}`);
|
|
386
386
|
}
|
|
387
387
|
}
|
|
@@ -606,7 +606,7 @@ function farmApiPlugin(options = {}) {
|
|
|
606
606
|
log(`API router recreated`);
|
|
607
607
|
} catch (e) {
|
|
608
608
|
restoreRouteState(previousState);
|
|
609
|
-
if (e instanceof
|
|
609
|
+
if (e instanceof _chunk5DREJN4Gcjs.APIRouteConflictError || e instanceof _chunkML4TOUZPcjs.AmbiguousRouteError) throw e;
|
|
610
610
|
log(`Root routes.ts HMR failed: ${e.message}`);
|
|
611
611
|
}
|
|
612
612
|
return [];
|
|
@@ -644,7 +644,7 @@ function farmApiPlugin(options = {}) {
|
|
|
644
644
|
log(`API router recreated`);
|
|
645
645
|
} catch (e) {
|
|
646
646
|
restoreRouteState(previousState);
|
|
647
|
-
if (e instanceof
|
|
647
|
+
if (e instanceof _chunk5DREJN4Gcjs.APIRouteConflictError || e instanceof _chunkML4TOUZPcjs.AmbiguousRouteError) throw e;
|
|
648
648
|
log(`API route HMR failed: ${e.message}`);
|
|
649
649
|
}
|
|
650
650
|
return [];
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
import {
|
|
39
39
|
loadFarmConfigFile,
|
|
40
40
|
resolveFarmLayers
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-4STJ6LGR.mjs";
|
|
42
42
|
import {
|
|
43
43
|
isFarmRendererDisabled,
|
|
44
44
|
isReactRenderer,
|
|
@@ -70,13 +70,13 @@ import {
|
|
|
70
70
|
} from "./chunk-MGKWYPE3.mjs";
|
|
71
71
|
import {
|
|
72
72
|
resolveWorkflowsConfig
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-OGVOKAQU.mjs";
|
|
74
74
|
import {
|
|
75
75
|
resolveFarmThemeConfig
|
|
76
76
|
} from "./chunk-YWPNIYUP.mjs";
|
|
77
77
|
import {
|
|
78
78
|
resolveIntegrationPlugins
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-JKFN3YVG.mjs";
|
|
80
80
|
import {
|
|
81
81
|
compileMiddlewareConfig
|
|
82
82
|
} from "./chunk-EDPENAVO.mjs";
|
|
@@ -1120,12 +1120,12 @@ async function resolveConfig(userConfig, mode) {
|
|
|
1120
1120
|
userConfig.deploymentId || process.env.FARM_DEPLOYMENT_ID || process.env.VERCEL_GIT_COMMIT_SHA || process.env.CF_PAGES_COMMIT_SHA || (mode === "production" ? await generateBuildId() : "development")
|
|
1121
1121
|
);
|
|
1122
1122
|
const basePath = normalizeFarmConfigBasePath(userConfig.basePath);
|
|
1123
|
-
const mobileSessionPlugin = userConfig.mobile !== void 0 && userConfig.mobile !== null ? (await import("./session-
|
|
1123
|
+
const mobileSessionPlugin = userConfig.mobile !== void 0 && userConfig.mobile !== null ? (await import("./session-AK2OA5UZ.mjs")).createFarmMobileSessionPlugin({
|
|
1124
1124
|
basePath,
|
|
1125
1125
|
integrations: () => integrations
|
|
1126
1126
|
}) : null;
|
|
1127
1127
|
let nativeServerFnAppDirs = [];
|
|
1128
|
-
const nativeServerFnPlugin = userConfig.mobile !== void 0 && userConfig.mobile !== null ? (await import("./native-server-fn-handler-
|
|
1128
|
+
const nativeServerFnPlugin = userConfig.mobile !== void 0 && userConfig.mobile !== null ? (await import("./native-server-fn-handler-WYYY4YBN.mjs")).createFarmNativeServerFnPlugin({
|
|
1129
1129
|
resolve: (await import("./internal/native-server-fns.mjs")).createFarmDevNativeServerFnResolver(
|
|
1130
1130
|
{ root, srcDir, appDirs: () => nativeServerFnAppDirs }
|
|
1131
1131
|
)
|
|
@@ -1233,7 +1233,7 @@ async function resolveConfig(userConfig, mode) {
|
|
|
1233
1233
|
};
|
|
1234
1234
|
assertPluginDependencies(resolved.plugins, resolved.integrations);
|
|
1235
1235
|
if (nativeServerFnPlugin) {
|
|
1236
|
-
nativeServerFnAppDirs = (await import("./layers-
|
|
1236
|
+
nativeServerFnAppDirs = (await import("./layers-5ZD4764G.mjs")).getFarmAppDirectories(resolved);
|
|
1237
1237
|
}
|
|
1238
1238
|
return resolved;
|
|
1239
1239
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkZCYGYIC2cjs = require('./chunk-ZCYGYIC2.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkPIUTGRDIcjs = require('./chunk-PIUTGRDI.cjs');
|
|
@@ -64,7 +64,7 @@ function findFarmNativeScreenFiles(appDirs) {
|
|
|
64
64
|
}
|
|
65
65
|
function collectFarmNativeServerFns(options) {
|
|
66
66
|
const { root, srcDir } = options;
|
|
67
|
-
const aliases =
|
|
67
|
+
const aliases = _chunkZCYGYIC2cjs.readAliases.call(void 0, root, srcDir);
|
|
68
68
|
const seen = /* @__PURE__ */ new Set();
|
|
69
69
|
const found = /* @__PURE__ */ new Map();
|
|
70
70
|
const queue = [...options.entries];
|
|
@@ -98,7 +98,7 @@ function collectFarmNativeServerFns(options) {
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
for (const candidate of _nullishCoalesce(candidates, () => ( []))) {
|
|
101
|
-
const resolved =
|
|
101
|
+
const resolved = _chunkZCYGYIC2cjs.resolveFile.call(void 0, candidate);
|
|
102
102
|
if (resolved && SCRIPT.test(resolved) && !resolved.includes(`${_path2.default.sep}node_modules${_path2.default.sep}`)) {
|
|
103
103
|
queue.push(resolved);
|
|
104
104
|
break;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkAQLHD6HZcjs = require('./chunk-AQLHD6HZ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkAOTD2N5Pcjs = require('./chunk-AOTD2N5P.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -284,7 +284,7 @@ function isArrayIndex(key) {
|
|
|
284
284
|
// src/plugin-server-runtime.ts
|
|
285
285
|
function hasFarmServerRuntimePlugins(plugins) {
|
|
286
286
|
return (plugins || []).some((plugin) => {
|
|
287
|
-
if (
|
|
287
|
+
if (_chunkAOTD2N5Pcjs.getFarmIntegrationPluginServerRuntime.call(void 0, plugin) === false) return false;
|
|
288
288
|
return Boolean(
|
|
289
289
|
plugin.setup || plugin.init || plugin.ready || plugin.shutdown || plugin.runtime || plugin.router || plugin.render || plugin.beforeRouteMatch || plugin.afterRouteMatch || plugin.beforeRender || plugin.afterRender || plugin.onError || plugin.transformHTML
|
|
290
290
|
);
|