@farm.js/core 0.1.0-beta.96 → 0.1.0-beta.97
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-runtime.d.mts +3 -2
- package/dist/agent-runtime.d.ts +3 -2
- package/dist/api/route-manager.cjs +43 -4
- package/dist/api/route-manager.d.mts +4 -3
- package/dist/api/route-manager.d.ts +4 -3
- package/dist/api/route-manager.mjs +6 -6
- package/dist/api/runtime.cjs +43 -4
- package/dist/api/runtime.d.mts +1 -1
- package/dist/api/runtime.d.ts +1 -1
- package/dist/api/runtime.mjs +4 -4
- package/dist/api.cjs +239 -70
- package/dist/api.d.mts +7 -6
- package/dist/api.d.ts +7 -6
- package/dist/api.mjs +17 -11
- package/dist/{app-CIIEvA4r.d.ts → app-CIOx3LvY.d.ts} +4 -4
- package/dist/{app-O4AEC1OH.d.mts → app-DBd6437H.d.mts} +4 -4
- package/dist/app-markdown.d.mts +4 -3
- package/dist/app-markdown.d.ts +4 -3
- package/dist/cache.cjs +42 -4
- package/dist/cache.d.mts +68 -1
- package/dist/cache.d.ts +68 -1
- package/dist/cache.mjs +3 -3
- package/dist/{chunk-AXVJCMVF.mjs → chunk-2HDOV47R.mjs} +3 -3
- package/dist/chunk-2HDOV47R.mjs.map +1 -0
- package/dist/{chunk-RBRLLZL5.mjs → chunk-34IAPZBG.mjs} +16 -3
- package/dist/chunk-34IAPZBG.mjs.map +1 -0
- package/dist/{chunk-VV24CC42.mjs → chunk-35NPLKQJ.mjs} +2 -2
- package/dist/{chunk-MM46HTX6.mjs → chunk-3TWQERDE.mjs} +4 -3
- package/dist/chunk-3TWQERDE.mjs.map +1 -0
- package/dist/{chunk-RWYRFCLG.mjs → chunk-4X57GXQA.mjs} +2 -2
- package/dist/{chunk-3I55IGXU.mjs → chunk-52BR7LTX.mjs} +14 -15
- package/dist/chunk-52BR7LTX.mjs.map +1 -0
- package/dist/{chunk-RAGSHKDC.mjs → chunk-6EJHNHH4.mjs} +38 -3
- package/dist/chunk-6EJHNHH4.mjs.map +1 -0
- package/dist/{chunk-ZFNK77WN.mjs → chunk-6JNGOC37.mjs} +2 -2
- package/dist/{after.cjs.map → chunk-6JNGOC37.mjs.map} +1 -1
- package/dist/{chunk-MOW47IF5.mjs → chunk-6UYVU46O.mjs} +2 -2
- package/dist/{chunk-7MABZJIM.mjs → chunk-7PYVLJ4J.mjs} +1 -1
- package/dist/chunk-7PYVLJ4J.mjs.map +1 -0
- package/dist/{chunk-54XSGLKT.mjs → chunk-D7F7YZ7L.mjs} +93 -67
- package/dist/chunk-D7F7YZ7L.mjs.map +1 -0
- package/dist/{chunk-SCFX4UTD.mjs → chunk-EHTUKVSW.mjs} +1 -1
- package/dist/chunk-EHTUKVSW.mjs.map +1 -0
- package/dist/{chunk-LZTGDH3H.mjs → chunk-EPDIF432.mjs} +424 -10
- package/dist/chunk-EPDIF432.mjs.map +1 -0
- package/dist/{chunk-GZHKWHCH.mjs → chunk-FP5Q67FO.mjs} +167 -96
- package/dist/chunk-FP5Q67FO.mjs.map +1 -0
- package/dist/{chunk-HHZAOTQD.mjs → chunk-GJ7W6LNK.mjs} +7 -6
- package/dist/chunk-GJ7W6LNK.mjs.map +1 -0
- package/dist/{chunk-RLGUZ3HS.mjs → chunk-I3OOUWO5.mjs} +3 -3
- package/dist/{chunk-LKKMI7JG.mjs → chunk-IZBX2TEU.mjs} +153 -68
- package/dist/chunk-IZBX2TEU.mjs.map +1 -0
- package/dist/{chunk-74QPONAN.mjs → chunk-J3MPQ4MQ.mjs} +2 -2
- package/dist/{chunk-74QPONAN.mjs.map → chunk-J3MPQ4MQ.mjs.map} +1 -1
- package/dist/{chunk-ODJGAWDH.mjs → chunk-JV7JUD7Q.mjs} +4 -4
- package/dist/{chunk-Q3OX763A.mjs → chunk-LXDASSTE.mjs} +2 -2
- package/dist/{chunk-ZRBCBOEX.mjs → chunk-N2FY2QZ7.mjs} +28 -3
- package/dist/chunk-N2FY2QZ7.mjs.map +1 -0
- package/dist/{chunk-MRVJCLYQ.mjs → chunk-PSQ7N4XP.mjs} +4 -2
- package/dist/chunk-PSQ7N4XP.mjs.map +1 -0
- package/dist/{chunk-HVG3HLQZ.mjs → chunk-Q7WGOOAI.mjs} +3 -3
- package/dist/{chunk-WTYAPO5I.mjs → chunk-RCNWMEBT.mjs} +3 -2
- package/dist/{chunk-WTYAPO5I.mjs.map → chunk-RCNWMEBT.mjs.map} +1 -1
- package/dist/{chunk-3INDBMUU.mjs → chunk-TGDIACZT.mjs} +2 -2
- package/dist/{chunk-WB75GIX2.mjs → chunk-TQTB33JS.mjs} +14 -3
- package/dist/chunk-TQTB33JS.mjs.map +1 -0
- package/dist/{chunk-WMAYETRD.mjs → chunk-TT3E2JOF.mjs} +3 -3
- package/dist/{chunk-FVAM43KI.mjs → chunk-UMUWR5XA.mjs} +2 -2
- package/dist/{chunk-VOUJW4FL.mjs → chunk-WD2EBM3I.mjs} +70 -15
- package/dist/chunk-WD2EBM3I.mjs.map +1 -0
- package/dist/{chunk-ZPG6SNHH.mjs → chunk-WMJGA32P.mjs} +47 -5
- package/dist/chunk-WMJGA32P.mjs.map +1 -0
- package/dist/{chunk-TKQCJMY7.mjs → chunk-X4SFHKFH.mjs} +7 -4
- package/dist/{chunk-TKQCJMY7.mjs.map → chunk-X4SFHKFH.mjs.map} +1 -1
- package/dist/{chunk-Q7GPJZCO.mjs → chunk-YIBV77KZ.mjs} +26 -7
- package/dist/chunk-YIBV77KZ.mjs.map +1 -0
- package/dist/client/lifecycle.mjs +2 -2
- package/dist/{client-mcMC334J.d.mts → client-DWoLZ3QU.d.mts} +52 -5
- package/dist/{client-d5ONQ-Pd.d.ts → client-DuQuQC1h.d.ts} +52 -5
- package/dist/client-cache-BMxuFqwH.d.ts +18 -0
- package/dist/client-cache-CCK-fCe0.d.mts +18 -0
- package/dist/{client-plugins-BvClItiL.d.mts → client-plugins-B6-07YmP.d.mts} +52 -99
- package/dist/{client-plugins-B9Sq-iMg.d.ts → client-plugins-By6MVUX-.d.ts} +52 -99
- package/dist/client-plugins.cjs +1 -1
- package/dist/client-plugins.d.mts +3 -2
- package/dist/client-plugins.d.ts +3 -2
- package/dist/client-plugins.mjs +2 -2
- package/dist/client.cjs +757 -104
- package/dist/client.d.mts +124 -16
- package/dist/client.d.ts +124 -16
- package/dist/client.mjs +28 -14
- package/dist/config.d.mts +3 -2
- package/dist/config.d.ts +3 -2
- package/dist/{devtools-S52RRRMN.mjs → devtools-XWZX6CCL.mjs} +5 -5
- package/dist/{devtools-client-EOVDBPOI.mjs → devtools-client-Z7QQA3Q2.mjs} +2 -2
- package/dist/{devtools-ui-NJKFORTG.mjs → devtools-ui-2HG5M4EL.mjs} +3 -1
- package/dist/devtools-ui-2HG5M4EL.mjs.map +1 -0
- package/dist/docs.cjs +24 -5
- package/dist/docs.mjs +5 -5
- package/dist/i18n/server.cjs +13 -2
- package/dist/i18n/server.d.mts +2 -2
- package/dist/i18n/server.d.ts +2 -2
- package/dist/i18n/server.mjs +1 -1
- package/dist/index.cjs +1578 -772
- package/dist/index.d.mts +28 -20
- package/dist/index.d.ts +28 -20
- package/dist/index.mjs +53 -33
- package/dist/index.mjs.map +1 -1
- package/dist/integration-api-BT024nuJ.d.mts +97 -0
- package/dist/integration-api-BT024nuJ.d.ts +97 -0
- package/dist/integrations.d.mts +3 -2
- package/dist/integrations.d.ts +3 -2
- package/dist/internal/build-runtime.cjs +710 -532
- package/dist/internal/build-runtime.d.mts +5 -4
- package/dist/internal/build-runtime.d.ts +5 -4
- package/dist/internal/build-runtime.mjs +15 -15
- package/dist/internal/client-runtime.cjs +1 -1
- package/dist/internal/client-runtime.mjs +2 -2
- package/dist/internal/config-runtime.cjs +4 -1
- package/dist/internal/config-runtime.d.mts +4 -3
- package/dist/internal/config-runtime.d.ts +4 -3
- package/dist/internal/config-runtime.mjs +4 -4
- package/dist/internal/product-telemetry-runtime.cjs +1 -1
- package/dist/internal/product-telemetry-runtime.mjs +1 -1
- package/dist/internal/production-runtime.cjs +29 -3
- package/dist/internal/production-runtime.d.mts +8 -7
- package/dist/internal/production-runtime.d.ts +8 -7
- package/dist/internal/production-runtime.mjs +5 -5
- package/dist/{metadata-route-yV4U6X8h.d.ts → metadata-route-8_V3UonT.d.ts} +1 -1
- package/dist/{metadata-route-p4K1l92V.d.mts → metadata-route-CWP_HjGU.d.mts} +1 -1
- package/dist/middleware.cjs +28 -2
- package/dist/middleware.d.mts +5 -4
- package/dist/middleware.d.ts +5 -4
- package/dist/middleware.mjs +4 -4
- package/dist/navigation.cjs +3 -1
- package/dist/navigation.mjs +3 -3
- package/dist/observability.cjs +27 -2
- package/dist/observability.mjs +1 -1
- package/dist/plugin.cjs +474 -334
- package/dist/plugin.d.mts +3 -2
- package/dist/plugin.d.ts +3 -2
- package/dist/plugin.mjs +12 -12
- package/dist/{production-runtime-IkB0Qj4i.d.mts → production-runtime-BGRH1dKG.d.mts} +1 -1
- package/dist/{production-runtime-0JTch4_d.d.ts → production-runtime-CdmzsDax.d.ts} +1 -1
- package/dist/query/client.cjs +11 -3
- package/dist/query/client.mjs +12 -4
- package/dist/query/client.mjs.map +1 -1
- package/dist/{render-plan-Dc8CjNI7.d.ts → render-plan-0GeHiGVZ.d.ts} +1 -1
- package/dist/{render-plan-CU31j-Jk.d.mts → render-plan-DLxJYAA5.d.mts} +1 -1
- package/dist/renderer-client.cjs +140 -26
- package/dist/renderer-client.d.mts +7 -6
- package/dist/renderer-client.d.ts +7 -6
- package/dist/renderer-client.mjs +16 -19
- package/dist/renderer-client.mjs.map +1 -1
- package/dist/{request-BXa1KY8i.d.mts → request-BCNXSXLh.d.mts} +1 -1
- package/dist/{request-CUUBujZt.d.ts → request-BstWbZ6O.d.ts} +1 -1
- package/dist/request.d.mts +4 -3
- package/dist/request.d.ts +4 -3
- package/dist/{route-Y8lfz1wF.d.ts → route-4pd-EVtw.d.ts} +45 -50
- package/dist/{route-Cq3aObmj.d.mts → route-CvEr4Uc9.d.mts} +45 -50
- package/dist/routes.cjs +27 -2
- package/dist/routes.d.mts +3 -2
- package/dist/routes.d.ts +3 -2
- package/dist/routes.mjs +4 -4
- package/dist/{runtime-j1S3sDTh.d.ts → runtime-BgDQzBiu.d.ts} +1 -0
- package/dist/{runtime-DDwvDtS4.d.mts → runtime-CV2UCV-5.d.mts} +1 -0
- package/dist/server-action-security.mjs +2 -2
- package/dist/server-fn-client.cjs +34 -2
- package/dist/server-fn-client.d.mts +6 -0
- package/dist/server-fn-client.d.ts +6 -0
- package/dist/server-fn-client.mjs +1 -1
- package/dist/server-fn.cjs +42 -4
- package/dist/server-fn.mjs +5 -5
- package/dist/server-plugins.d.mts +4 -3
- package/dist/server-plugins.d.ts +4 -3
- package/dist/server-query-client.cjs +146 -27
- package/dist/server-query-client.d.mts +3 -3
- package/dist/server-query-client.d.ts +3 -3
- package/dist/server-query-client.mjs +7 -7
- package/dist/{server-query-runtime-3zAj77yv.d.ts → server-query-runtime-DXRNhX_3.d.ts} +2 -0
- package/dist/{server-query-runtime-B50KAcj5.d.mts → server-query-runtime-aP52iuL5.d.mts} +2 -0
- package/dist/server-query.cjs +44 -5
- package/dist/server-query.d.mts +4 -0
- package/dist/server-query.d.ts +4 -0
- package/dist/server-query.mjs +7 -7
- package/dist/server.cjs +499 -355
- package/dist/server.d.mts +11 -10
- package/dist/server.d.ts +11 -10
- package/dist/server.mjs +16 -16
- package/dist/{spa-router-CyLkwst6.d.mts → spa-router-BeyAVSc6.d.mts} +1 -1
- package/dist/{spa-router-BkqGXaV_.d.ts → spa-router-COgu4txb.d.ts} +1 -1
- package/dist/testing.cjs +27 -2
- package/dist/testing.d.mts +3 -2
- package/dist/testing.d.ts +3 -2
- package/dist/testing.mjs +8 -8
- package/dist/{utils-NKR6SoNv.d.mts → utils-DL2VwDQl.d.mts} +1 -1
- package/dist/{utils-B2OHrb9F.d.ts → utils-DkU2c_1B.d.ts} +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +482 -338
- package/dist/vite.d.mts +3 -2
- package/dist/vite.d.ts +3 -2
- package/dist/vite.mjs +16 -12
- package/package.json +17 -17
- package/types/client.d.ts +87 -1
- package/dist/agent-runtime.cjs.map +0 -1
- package/dist/api/route-manager.cjs.map +0 -1
- package/dist/api/runtime.cjs.map +0 -1
- package/dist/api.cjs.map +0 -1
- package/dist/app-markdown.cjs.map +0 -1
- package/dist/cache.cjs.map +0 -1
- package/dist/chunk-3I55IGXU.mjs.map +0 -1
- package/dist/chunk-54XSGLKT.mjs.map +0 -1
- package/dist/chunk-7MABZJIM.mjs.map +0 -1
- package/dist/chunk-AXVJCMVF.mjs.map +0 -1
- package/dist/chunk-GZHKWHCH.mjs.map +0 -1
- package/dist/chunk-HHZAOTQD.mjs.map +0 -1
- package/dist/chunk-LKKMI7JG.mjs.map +0 -1
- package/dist/chunk-LZTGDH3H.mjs.map +0 -1
- package/dist/chunk-MM46HTX6.mjs.map +0 -1
- package/dist/chunk-MRVJCLYQ.mjs.map +0 -1
- package/dist/chunk-Q7GPJZCO.mjs.map +0 -1
- package/dist/chunk-RAGSHKDC.mjs.map +0 -1
- package/dist/chunk-RBRLLZL5.mjs.map +0 -1
- package/dist/chunk-SCFX4UTD.mjs.map +0 -1
- package/dist/chunk-VOUJW4FL.mjs.map +0 -1
- package/dist/chunk-WB75GIX2.mjs.map +0 -1
- package/dist/chunk-ZFNK77WN.mjs.map +0 -1
- package/dist/chunk-ZPG6SNHH.mjs.map +0 -1
- package/dist/chunk-ZRBCBOEX.mjs.map +0 -1
- package/dist/client/lifecycle.cjs.map +0 -1
- package/dist/client-cache-CopR_MaI.d.mts +0 -6
- package/dist/client-cache-Djy_TlE8.d.ts +0 -6
- package/dist/client-plugins.cjs.map +0 -1
- package/dist/client.cjs.map +0 -1
- package/dist/config.cjs.map +0 -1
- package/dist/cron.cjs.map +0 -1
- package/dist/deferred.cjs.map +0 -1
- package/dist/deployment.cjs.map +0 -1
- package/dist/devtools-ui-NJKFORTG.mjs.map +0 -1
- package/dist/docs.cjs.map +0 -1
- package/dist/env-types.cjs.map +0 -1
- package/dist/env.cjs.map +0 -1
- package/dist/environment/vite.cjs.map +0 -1
- package/dist/environment.cjs.map +0 -1
- package/dist/font.cjs.map +0 -1
- package/dist/headers.cjs.map +0 -1
- package/dist/i18n/client.cjs.map +0 -1
- package/dist/i18n/index.cjs.map +0 -1
- package/dist/i18n/server.cjs.map +0 -1
- package/dist/image/server.cjs.map +0 -1
- package/dist/image/sharp.cjs.map +0 -1
- package/dist/image.cjs.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/instrumentation.cjs.map +0 -1
- package/dist/integrations.cjs.map +0 -1
- package/dist/internal/build-runtime.cjs.map +0 -1
- package/dist/internal/client-runtime.cjs.map +0 -1
- package/dist/internal/config-runtime.cjs.map +0 -1
- package/dist/internal/isolated-boundary.cjs.map +0 -1
- package/dist/internal/metadata-image-runtime.cjs.map +0 -1
- package/dist/internal/product-telemetry-runtime.cjs.map +0 -1
- package/dist/internal/production-node-env.cjs.map +0 -1
- package/dist/internal/production-runtime.cjs.map +0 -1
- package/dist/markdown.cjs.map +0 -1
- package/dist/middleware.cjs.map +0 -1
- package/dist/navigation.cjs.map +0 -1
- package/dist/observability.cjs.map +0 -1
- package/dist/plugin.cjs.map +0 -1
- package/dist/query/client.cjs.map +0 -1
- package/dist/query/index.cjs.map +0 -1
- package/dist/query/parsers.cjs.map +0 -1
- package/dist/query/server.cjs.map +0 -1
- package/dist/renderer/react/client.cjs.map +0 -1
- package/dist/renderer/react/server.cjs.map +0 -1
- package/dist/renderer/react/vite.cjs.map +0 -1
- package/dist/renderer-client.cjs.map +0 -1
- package/dist/renderer.cjs.map +0 -1
- package/dist/request.cjs.map +0 -1
- package/dist/router.cjs.map +0 -1
- package/dist/routes.cjs.map +0 -1
- package/dist/server-action-security.cjs.map +0 -1
- package/dist/server-fn-client.cjs.map +0 -1
- package/dist/server-fn.cjs.map +0 -1
- package/dist/server-plugins.cjs.map +0 -1
- package/dist/server-query-client.cjs.map +0 -1
- package/dist/server-query.cjs.map +0 -1
- package/dist/server.cjs.map +0 -1
- package/dist/storage.cjs.map +0 -1
- package/dist/testing.cjs.map +0 -1
- package/dist/theme/client.cjs.map +0 -1
- package/dist/theme/index.cjs.map +0 -1
- package/dist/theme/runtime.cjs.map +0 -1
- package/dist/theme/server.cjs.map +0 -1
- package/dist/version.cjs.map +0 -1
- package/dist/vite.cjs.map +0 -1
- package/dist/workflows.cjs.map +0 -1
- /package/dist/{chunk-VV24CC42.mjs.map → chunk-35NPLKQJ.mjs.map} +0 -0
- /package/dist/{chunk-RWYRFCLG.mjs.map → chunk-4X57GXQA.mjs.map} +0 -0
- /package/dist/{chunk-MOW47IF5.mjs.map → chunk-6UYVU46O.mjs.map} +0 -0
- /package/dist/{chunk-RLGUZ3HS.mjs.map → chunk-I3OOUWO5.mjs.map} +0 -0
- /package/dist/{chunk-ODJGAWDH.mjs.map → chunk-JV7JUD7Q.mjs.map} +0 -0
- /package/dist/{chunk-Q3OX763A.mjs.map → chunk-LXDASSTE.mjs.map} +0 -0
- /package/dist/{chunk-HVG3HLQZ.mjs.map → chunk-Q7WGOOAI.mjs.map} +0 -0
- /package/dist/{chunk-3INDBMUU.mjs.map → chunk-TGDIACZT.mjs.map} +0 -0
- /package/dist/{chunk-WMAYETRD.mjs.map → chunk-TT3E2JOF.mjs.map} +0 -0
- /package/dist/{chunk-FVAM43KI.mjs.map → chunk-UMUWR5XA.mjs.map} +0 -0
- /package/dist/{devtools-S52RRRMN.mjs.map → devtools-XWZX6CCL.mjs.map} +0 -0
- /package/dist/{devtools-client-EOVDBPOI.mjs.map → devtools-client-Z7QQA3Q2.mjs.map} +0 -0
package/dist/after.cjs
CHANGED
|
@@ -186,7 +186,7 @@ async function _runWithAfterRequest(request, handler, context) {
|
|
|
186
186
|
const response = await afterStorage.run(state, handler);
|
|
187
187
|
return hasResponseHook ? response : wrapResponseBody(response, request, state);
|
|
188
188
|
} catch (error) {
|
|
189
|
-
|
|
189
|
+
finishSoon(state);
|
|
190
190
|
throw error;
|
|
191
191
|
}
|
|
192
192
|
}
|
package/dist/after.mjs
CHANGED
package/dist/agent-runtime.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChildProcess } from 'node:child_process';
|
|
2
|
-
import { B as BundleResultPayload, a as FarmPlugin, p as FarmIntegration } from './client-plugins-
|
|
2
|
+
import { B as BundleResultPayload, a as FarmPlugin, p as FarmIntegration } from './client-plugins-B6-07YmP.mjs';
|
|
3
3
|
import './lifecycle-De0vQG45.mjs';
|
|
4
|
-
import './route-
|
|
4
|
+
import './route-CvEr4Uc9.mjs';
|
|
5
5
|
import './cache.mjs';
|
|
6
6
|
import './renderer.mjs';
|
|
7
7
|
import 'http';
|
|
@@ -9,6 +9,7 @@ import './types-Cc8l9IqS.mjs';
|
|
|
9
9
|
import 'db0';
|
|
10
10
|
import 'unstorage';
|
|
11
11
|
import 'react';
|
|
12
|
+
import './integration-api-BT024nuJ.mjs';
|
|
12
13
|
import '@farming-labs/orm';
|
|
13
14
|
import './types-CKwggz9n.mjs';
|
|
14
15
|
import '@farming-labs/docs';
|
package/dist/agent-runtime.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChildProcess } from 'node:child_process';
|
|
2
|
-
import { B as BundleResultPayload, a as FarmPlugin, p as FarmIntegration } from './client-plugins-
|
|
2
|
+
import { B as BundleResultPayload, a as FarmPlugin, p as FarmIntegration } from './client-plugins-By6MVUX-.js';
|
|
3
3
|
import './lifecycle-De0vQG45.js';
|
|
4
|
-
import './route-
|
|
4
|
+
import './route-4pd-EVtw.js';
|
|
5
5
|
import './cache.js';
|
|
6
6
|
import './renderer.js';
|
|
7
7
|
import 'http';
|
|
@@ -9,6 +9,7 @@ import './types-Cc8l9IqS.js';
|
|
|
9
9
|
import 'db0';
|
|
10
10
|
import 'unstorage';
|
|
11
11
|
import 'react';
|
|
12
|
+
import './integration-api-BT024nuJ.js';
|
|
12
13
|
import '@farming-labs/orm';
|
|
13
14
|
import './types-CKwggz9n.js';
|
|
14
15
|
import '@farming-labs/docs';
|
|
@@ -75,7 +75,13 @@ function recordFarmEventTrace(event) {
|
|
|
75
75
|
activeSpan.addEvent(event.type, toEventAttributes(event), event.timestamp);
|
|
76
76
|
}
|
|
77
77
|
const error = event.type === "request.error" ? void 0 : getEventError(event);
|
|
78
|
-
if (error !== void 0)
|
|
78
|
+
if (error !== void 0) {
|
|
79
|
+
if (event.type === "render.error") {
|
|
80
|
+
recordSpanException(activeSpan, error);
|
|
81
|
+
} else {
|
|
82
|
+
recordSpanError(activeSpan, error);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
79
85
|
}
|
|
80
86
|
const completedTraceContext = recordCompletedEventSpan(event, activeContext);
|
|
81
87
|
return traceContext ?? completedTraceContext;
|
|
@@ -169,12 +175,25 @@ function getCompletedSpanDescriptor(event) {
|
|
|
169
175
|
return void 0;
|
|
170
176
|
}
|
|
171
177
|
}
|
|
178
|
+
function hashFarmCacheKey(value) {
|
|
179
|
+
let hash = 2166136261;
|
|
180
|
+
for (let index = 0; index < value.length; index++) {
|
|
181
|
+
hash ^= value.charCodeAt(index);
|
|
182
|
+
hash = Math.imul(hash, 16777619);
|
|
183
|
+
}
|
|
184
|
+
return (hash >>> 0).toString(16).padStart(8, "0");
|
|
185
|
+
}
|
|
172
186
|
function toEventAttributes(event) {
|
|
173
187
|
const attributes = {};
|
|
188
|
+
const redactKey = typeof event.type === "string" && event.type.startsWith("cache.");
|
|
174
189
|
for (const [key, value] of Object.entries(event)) {
|
|
175
190
|
if (key === "timestamp" || key === "level" || key === "error" || key === "traceId" || key === "spanId" || key === "traceSampled" || value === void 0) {
|
|
176
191
|
continue;
|
|
177
192
|
}
|
|
193
|
+
if (redactKey && key === "key" && typeof value === "string") {
|
|
194
|
+
attributes["farm.key_hash"] = hashFarmCacheKey(value);
|
|
195
|
+
continue;
|
|
196
|
+
}
|
|
178
197
|
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
|
|
179
198
|
attributes[`farm.${key}`] = value;
|
|
180
199
|
} else if (Array.isArray(value)) {
|
|
@@ -192,9 +211,13 @@ function toEventAttributes(event) {
|
|
|
192
211
|
function getEventError(event) {
|
|
193
212
|
return "error" in event ? event.error : void 0;
|
|
194
213
|
}
|
|
195
|
-
function
|
|
214
|
+
function recordSpanException(span, error) {
|
|
196
215
|
const normalized = error instanceof Error ? error : new Error(String(error));
|
|
197
216
|
span.recordException(normalized);
|
|
217
|
+
return normalized;
|
|
218
|
+
}
|
|
219
|
+
function recordSpanError(span, error) {
|
|
220
|
+
const normalized = recordSpanException(span, error);
|
|
198
221
|
span.setStatus({ code: import_api.SpanStatusCode.ERROR, message: normalized.message });
|
|
199
222
|
}
|
|
200
223
|
function setResponseStatus(span, status) {
|
|
@@ -245,8 +268,10 @@ var init_tracing = __esm({
|
|
|
245
268
|
__name(recordFarmEventTrace, "recordFarmEventTrace");
|
|
246
269
|
__name(recordCompletedEventSpan, "recordCompletedEventSpan");
|
|
247
270
|
__name(getCompletedSpanDescriptor, "getCompletedSpanDescriptor");
|
|
271
|
+
__name(hashFarmCacheKey, "hashFarmCacheKey");
|
|
248
272
|
__name(toEventAttributes, "toEventAttributes");
|
|
249
273
|
__name(getEventError, "getEventError");
|
|
274
|
+
__name(recordSpanException, "recordSpanException");
|
|
250
275
|
__name(recordSpanError, "recordSpanError");
|
|
251
276
|
__name(setResponseStatus, "setResponseStatus");
|
|
252
277
|
__name(getSpanTraceContext, "getSpanTraceContext");
|
|
@@ -393,15 +418,27 @@ function getFarmCacheInvalidationState() {
|
|
|
393
418
|
taskListeners: /* @__PURE__ */ new Set()
|
|
394
419
|
});
|
|
395
420
|
}
|
|
421
|
+
function warnFarmCacheListenerError(scope, error) {
|
|
422
|
+
const detail = error instanceof Error ? error.stack ?? error.message : String(error);
|
|
423
|
+
console.warn(`[farm:cache] ${scope} listener failed: ${detail}`);
|
|
424
|
+
}
|
|
396
425
|
function notifyFarmCacheInvalidation(key) {
|
|
397
426
|
if (typeof key !== "string" || key.length === 0) return;
|
|
398
427
|
for (const listener of getFarmCacheInvalidationState().listeners) {
|
|
399
|
-
|
|
428
|
+
try {
|
|
429
|
+
listener(key);
|
|
430
|
+
} catch (error) {
|
|
431
|
+
warnFarmCacheListenerError("invalidation", error);
|
|
432
|
+
}
|
|
400
433
|
}
|
|
401
434
|
}
|
|
402
435
|
function notifyFarmCacheTask(task) {
|
|
403
436
|
for (const listener of getFarmCacheInvalidationState().taskListeners) {
|
|
404
|
-
|
|
437
|
+
try {
|
|
438
|
+
listener(task);
|
|
439
|
+
} catch (error) {
|
|
440
|
+
warnFarmCacheListenerError("task", error);
|
|
441
|
+
}
|
|
405
442
|
}
|
|
406
443
|
}
|
|
407
444
|
function encodeFarmCacheInvalidations(keys) {
|
|
@@ -430,6 +467,7 @@ var init_cache_invalidation = __esm({
|
|
|
430
467
|
FARM_CACHE_INVALIDATION_STATE = /* @__PURE__ */ Symbol.for("farm.cacheInvalidationState");
|
|
431
468
|
globalState = globalThis;
|
|
432
469
|
__name(getFarmCacheInvalidationState, "getFarmCacheInvalidationState");
|
|
470
|
+
__name(warnFarmCacheListenerError, "warnFarmCacheListenerError");
|
|
433
471
|
__name(notifyFarmCacheInvalidation, "notifyFarmCacheInvalidation");
|
|
434
472
|
__name(notifyFarmCacheTask, "notifyFarmCacheTask");
|
|
435
473
|
__name(encodeFarmCacheInvalidations, "encodeFarmCacheInvalidations");
|
|
@@ -2302,6 +2340,7 @@ function createEndpoint(pathOrOptions, optionsOrHandler, maybeHandler) {
|
|
|
2302
2340
|
body: options.body,
|
|
2303
2341
|
inputBody: isMultipartSchema(options.body) ? "form-data" : options.body,
|
|
2304
2342
|
query: options.query,
|
|
2343
|
+
inputQuery: options.query,
|
|
2305
2344
|
headers: options.headers,
|
|
2306
2345
|
response: null,
|
|
2307
2346
|
errors
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { F as FarmRouteRuntimeConfig, a as FarmPlugin } from '../client-plugins-
|
|
1
|
+
import { F as FarmRouteRuntimeConfig, a as FarmPlugin } from '../client-plugins-B6-07YmP.mjs';
|
|
2
2
|
import { ViteDevServer } from 'vite';
|
|
3
3
|
import '../types-CnH8DOqo.mjs';
|
|
4
|
-
import { F as FarmI18nRuntime } from '../runtime-
|
|
4
|
+
import { F as FarmI18nRuntime } from '../runtime-CV2UCV-5.mjs';
|
|
5
5
|
export { getAllowedAPIRouteMethods, invokeAPIRouteEndpoint, isWebResponse, normalizeRouteResponse, resolveAPIRouteEndpoint } from './runtime.mjs';
|
|
6
6
|
import { A as APIRouteMatch } from '../route-pattern-W-SsJGSp.mjs';
|
|
7
7
|
export { b as APIRouteParamValue, a as APIRouteParams, m as matchAPIRoute } from '../route-pattern-W-SsJGSp.mjs';
|
|
8
8
|
import '../lifecycle-De0vQG45.mjs';
|
|
9
|
-
import '../route-
|
|
9
|
+
import '../route-CvEr4Uc9.mjs';
|
|
10
10
|
import '../cache.mjs';
|
|
11
11
|
import '../renderer.mjs';
|
|
12
12
|
import 'http';
|
|
@@ -14,6 +14,7 @@ import '../types-Cc8l9IqS.mjs';
|
|
|
14
14
|
import 'db0';
|
|
15
15
|
import 'unstorage';
|
|
16
16
|
import 'react';
|
|
17
|
+
import '../integration-api-BT024nuJ.mjs';
|
|
17
18
|
import '@farming-labs/orm';
|
|
18
19
|
import '../types-CKwggz9n.mjs';
|
|
19
20
|
import '@farming-labs/docs';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { F as FarmRouteRuntimeConfig, a as FarmPlugin } from '../client-plugins-
|
|
1
|
+
import { F as FarmRouteRuntimeConfig, a as FarmPlugin } from '../client-plugins-By6MVUX-.js';
|
|
2
2
|
import { ViteDevServer } from 'vite';
|
|
3
3
|
import '../types-CnH8DOqo.js';
|
|
4
|
-
import { F as FarmI18nRuntime } from '../runtime-
|
|
4
|
+
import { F as FarmI18nRuntime } from '../runtime-BgDQzBiu.js';
|
|
5
5
|
export { getAllowedAPIRouteMethods, invokeAPIRouteEndpoint, isWebResponse, normalizeRouteResponse, resolveAPIRouteEndpoint } from './runtime.js';
|
|
6
6
|
import { A as APIRouteMatch } from '../route-pattern-W-SsJGSp.js';
|
|
7
7
|
export { b as APIRouteParamValue, a as APIRouteParams, m as matchAPIRoute } from '../route-pattern-W-SsJGSp.js';
|
|
8
8
|
import '../lifecycle-De0vQG45.js';
|
|
9
|
-
import '../route-
|
|
9
|
+
import '../route-4pd-EVtw.js';
|
|
10
10
|
import '../cache.js';
|
|
11
11
|
import '../renderer.js';
|
|
12
12
|
import 'http';
|
|
@@ -14,6 +14,7 @@ import '../types-Cc8l9IqS.js';
|
|
|
14
14
|
import 'db0';
|
|
15
15
|
import 'unstorage';
|
|
16
16
|
import 'react';
|
|
17
|
+
import '../integration-api-BT024nuJ.js';
|
|
17
18
|
import '@farming-labs/orm';
|
|
18
19
|
import '../types-CKwggz9n.js';
|
|
19
20
|
import '@farming-labs/docs';
|
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
APIRouteConflictError,
|
|
3
3
|
APIRouteManager,
|
|
4
4
|
API_ROUTE_METHODS
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-TT3E2JOF.mjs";
|
|
6
6
|
import "../chunk-NXV52RNX.mjs";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-TQTB33JS.mjs";
|
|
8
8
|
import "../chunk-STV7A2LH.mjs";
|
|
9
9
|
import "../chunk-XNWHZQ6A.mjs";
|
|
10
10
|
import "../chunk-SXWF4QRU.mjs";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
isWebResponse,
|
|
18
18
|
normalizeRouteResponse,
|
|
19
19
|
resolveAPIRouteEndpoint
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-3TWQERDE.mjs";
|
|
21
21
|
import "../chunk-4OAR7CTF.mjs";
|
|
22
22
|
import "../chunk-O2IGROSM.mjs";
|
|
23
23
|
import "../chunk-4N7DAFLY.mjs";
|
|
@@ -27,10 +27,10 @@ import {
|
|
|
27
27
|
} from "../chunk-V4VRLVLW.mjs";
|
|
28
28
|
import "../chunk-6YPPIPKR.mjs";
|
|
29
29
|
import "../chunk-776TTMU3.mjs";
|
|
30
|
-
import "../chunk-
|
|
31
|
-
import "../chunk-
|
|
30
|
+
import "../chunk-2HDOV47R.mjs";
|
|
31
|
+
import "../chunk-34IAPZBG.mjs";
|
|
32
32
|
import "../chunk-WZ5QFROO.mjs";
|
|
33
|
-
import "../chunk-
|
|
33
|
+
import "../chunk-N2FY2QZ7.mjs";
|
|
34
34
|
import "../chunk-EDWCT2JF.mjs";
|
|
35
35
|
import "../chunk-LM2YNO4U.mjs";
|
|
36
36
|
import "../chunk-W4ZNS76E.mjs";
|
package/dist/api/runtime.cjs
CHANGED
|
@@ -81,16 +81,29 @@ function getFarmCacheInvalidationState() {
|
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
__name(getFarmCacheInvalidationState, "getFarmCacheInvalidationState");
|
|
84
|
+
function warnFarmCacheListenerError(scope, error) {
|
|
85
|
+
const detail = error instanceof Error ? error.stack ?? error.message : String(error);
|
|
86
|
+
console.warn(`[farm:cache] ${scope} listener failed: ${detail}`);
|
|
87
|
+
}
|
|
88
|
+
__name(warnFarmCacheListenerError, "warnFarmCacheListenerError");
|
|
84
89
|
function notifyFarmCacheInvalidation(key) {
|
|
85
90
|
if (typeof key !== "string" || key.length === 0) return;
|
|
86
91
|
for (const listener of getFarmCacheInvalidationState().listeners) {
|
|
87
|
-
|
|
92
|
+
try {
|
|
93
|
+
listener(key);
|
|
94
|
+
} catch (error) {
|
|
95
|
+
warnFarmCacheListenerError("invalidation", error);
|
|
96
|
+
}
|
|
88
97
|
}
|
|
89
98
|
}
|
|
90
99
|
__name(notifyFarmCacheInvalidation, "notifyFarmCacheInvalidation");
|
|
91
100
|
function notifyFarmCacheTask(task) {
|
|
92
101
|
for (const listener of getFarmCacheInvalidationState().taskListeners) {
|
|
93
|
-
|
|
102
|
+
try {
|
|
103
|
+
listener(task);
|
|
104
|
+
} catch (error) {
|
|
105
|
+
warnFarmCacheListenerError("task", error);
|
|
106
|
+
}
|
|
94
107
|
}
|
|
95
108
|
}
|
|
96
109
|
__name(notifyFarmCacheTask, "notifyFarmCacheTask");
|
|
@@ -187,7 +200,13 @@ function recordFarmEventTrace(event) {
|
|
|
187
200
|
activeSpan.addEvent(event.type, toEventAttributes(event), event.timestamp);
|
|
188
201
|
}
|
|
189
202
|
const error = event.type === "request.error" ? void 0 : getEventError(event);
|
|
190
|
-
if (error !== void 0)
|
|
203
|
+
if (error !== void 0) {
|
|
204
|
+
if (event.type === "render.error") {
|
|
205
|
+
recordSpanException(activeSpan, error);
|
|
206
|
+
} else {
|
|
207
|
+
recordSpanError(activeSpan, error);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
191
210
|
}
|
|
192
211
|
const completedTraceContext = recordCompletedEventSpan(event, activeContext);
|
|
193
212
|
return traceContext ?? completedTraceContext;
|
|
@@ -284,12 +303,26 @@ function getCompletedSpanDescriptor(event) {
|
|
|
284
303
|
}
|
|
285
304
|
}
|
|
286
305
|
__name(getCompletedSpanDescriptor, "getCompletedSpanDescriptor");
|
|
306
|
+
function hashFarmCacheKey(value) {
|
|
307
|
+
let hash = 2166136261;
|
|
308
|
+
for (let index = 0; index < value.length; index++) {
|
|
309
|
+
hash ^= value.charCodeAt(index);
|
|
310
|
+
hash = Math.imul(hash, 16777619);
|
|
311
|
+
}
|
|
312
|
+
return (hash >>> 0).toString(16).padStart(8, "0");
|
|
313
|
+
}
|
|
314
|
+
__name(hashFarmCacheKey, "hashFarmCacheKey");
|
|
287
315
|
function toEventAttributes(event) {
|
|
288
316
|
const attributes = {};
|
|
317
|
+
const redactKey = typeof event.type === "string" && event.type.startsWith("cache.");
|
|
289
318
|
for (const [key, value] of Object.entries(event)) {
|
|
290
319
|
if (key === "timestamp" || key === "level" || key === "error" || key === "traceId" || key === "spanId" || key === "traceSampled" || value === void 0) {
|
|
291
320
|
continue;
|
|
292
321
|
}
|
|
322
|
+
if (redactKey && key === "key" && typeof value === "string") {
|
|
323
|
+
attributes["farm.key_hash"] = hashFarmCacheKey(value);
|
|
324
|
+
continue;
|
|
325
|
+
}
|
|
293
326
|
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") {
|
|
294
327
|
attributes[`farm.${key}`] = value;
|
|
295
328
|
} else if (Array.isArray(value)) {
|
|
@@ -309,9 +342,14 @@ function getEventError(event) {
|
|
|
309
342
|
return "error" in event ? event.error : void 0;
|
|
310
343
|
}
|
|
311
344
|
__name(getEventError, "getEventError");
|
|
312
|
-
function
|
|
345
|
+
function recordSpanException(span, error) {
|
|
313
346
|
const normalized = error instanceof Error ? error : new Error(String(error));
|
|
314
347
|
span.recordException(normalized);
|
|
348
|
+
return normalized;
|
|
349
|
+
}
|
|
350
|
+
__name(recordSpanException, "recordSpanException");
|
|
351
|
+
function recordSpanError(span, error) {
|
|
352
|
+
const normalized = recordSpanException(span, error);
|
|
315
353
|
span.setStatus({ code: import_api.SpanStatusCode.ERROR, message: normalized.message });
|
|
316
354
|
}
|
|
317
355
|
__name(recordSpanError, "recordSpanError");
|
|
@@ -1253,6 +1291,7 @@ function createEndpoint(pathOrOptions, optionsOrHandler, maybeHandler) {
|
|
|
1253
1291
|
body: options.body,
|
|
1254
1292
|
inputBody: isMultipartSchema(options.body) ? "form-data" : options.body,
|
|
1255
1293
|
query: options.query,
|
|
1294
|
+
inputQuery: options.query,
|
|
1256
1295
|
headers: options.headers,
|
|
1257
1296
|
response: null,
|
|
1258
1297
|
errors
|
package/dist/api/runtime.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PluginRoutesFactory, E as EndpointFailure } from '../route-
|
|
1
|
+
import { P as PluginRoutesFactory, E as EndpointFailure } from '../route-CvEr4Uc9.mjs';
|
|
2
2
|
import { a as APIRouteParams, A as APIRouteMatch } from '../route-pattern-W-SsJGSp.mjs';
|
|
3
3
|
export { b as APIRouteParamValue, m as matchAPIRoute } from '../route-pattern-W-SsJGSp.mjs';
|
|
4
4
|
import '../cache.mjs';
|
package/dist/api/runtime.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PluginRoutesFactory, E as EndpointFailure } from '../route-
|
|
1
|
+
import { P as PluginRoutesFactory, E as EndpointFailure } from '../route-4pd-EVtw.js';
|
|
2
2
|
import { a as APIRouteParams, A as APIRouteMatch } from '../route-pattern-W-SsJGSp.js';
|
|
3
3
|
export { b as APIRouteParamValue, m as matchAPIRoute } from '../route-pattern-W-SsJGSp.js';
|
|
4
4
|
import '../cache.js';
|
package/dist/api/runtime.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
mergePluginAPIRoutes,
|
|
9
9
|
normalizeRouteResponse,
|
|
10
10
|
resolveAPIRouteEndpoint
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-3TWQERDE.mjs";
|
|
12
12
|
import {
|
|
13
13
|
registerAPIRouteShape
|
|
14
14
|
} from "../chunk-4OAR7CTF.mjs";
|
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
matchAPIRoute
|
|
20
20
|
} from "../chunk-V4VRLVLW.mjs";
|
|
21
21
|
import "../chunk-6YPPIPKR.mjs";
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-2HDOV47R.mjs";
|
|
23
|
+
import "../chunk-34IAPZBG.mjs";
|
|
24
24
|
import "../chunk-WZ5QFROO.mjs";
|
|
25
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-N2FY2QZ7.mjs";
|
|
26
26
|
import "../chunk-EDWCT2JF.mjs";
|
|
27
27
|
import "../chunk-LM2YNO4U.mjs";
|
|
28
28
|
import "../chunk-DZU3EKQP.mjs";
|