@flight-framework/core 0.6.5 → 0.6.7
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/LICENSE +21 -0
- package/README.md +541 -541
- package/dist/actions/index.d.ts +1 -58
- package/dist/actions/index.js +1 -1
- package/dist/adapters/index.js +1 -1
- package/dist/cache/index.js +1 -1
- package/dist/{chunk-FSJNOPYE.js → chunk-2JVEH76V.js} +3 -3
- package/dist/chunk-2JVEH76V.js.map +1 -0
- package/dist/{chunk-VPFMHGEV.js → chunk-3N5ZBVZJ.js} +2 -2
- package/dist/chunk-3N5ZBVZJ.js.map +1 -0
- package/dist/{chunk-2F2QU6RC.js → chunk-3UQJE3XZ.js} +2 -2
- package/dist/chunk-3UQJE3XZ.js.map +1 -0
- package/dist/{chunk-3KRBRSRJ.js → chunk-4U7CJVNQ.js} +2 -2
- package/dist/chunk-4U7CJVNQ.js.map +1 -0
- package/dist/{chunk-PDW5WCMW.js → chunk-5XHOLZBJ.js} +2 -2
- package/dist/chunk-5XHOLZBJ.js.map +1 -0
- package/dist/{chunk-MDQNNIHH.js → chunk-65JYF3DJ.js} +2 -2
- package/dist/chunk-65JYF3DJ.js.map +1 -0
- package/dist/{chunk-K2CQZPCG.js → chunk-6GI6HFSQ.js} +2 -2
- package/dist/chunk-6GI6HFSQ.js.map +1 -0
- package/dist/{chunk-LNV47HGV.js → chunk-6IG6XIXU.js} +2 -2
- package/dist/chunk-6IG6XIXU.js.map +1 -0
- package/dist/{chunk-PVUMB632.js → chunk-A2QRUBVE.js} +2 -2
- package/dist/chunk-A2QRUBVE.js.map +1 -0
- package/dist/{chunk-W6D62JCI.js → chunk-A4TKWQBU.js} +2 -2
- package/dist/chunk-A4TKWQBU.js.map +1 -0
- package/dist/{chunk-GCQZ4FHI.js → chunk-ARBKF6VI.js} +2 -2
- package/dist/{chunk-GCQZ4FHI.js.map → chunk-ARBKF6VI.js.map} +1 -1
- package/dist/{chunk-ZVC3ZWLM.js → chunk-B2LPSCES.js} +2 -2
- package/dist/chunk-B2LPSCES.js.map +1 -0
- package/dist/{chunk-62C7LX2E.js → chunk-CKJHJPKQ.js} +2 -2
- package/dist/chunk-CKJHJPKQ.js.map +1 -0
- package/dist/{chunk-RSVA2EYO.js → chunk-CNY3ZUVG.js} +2 -2
- package/dist/chunk-CNY3ZUVG.js.map +1 -0
- package/dist/{chunk-IXMD5QH2.js → chunk-EHVUAFNH.js} +2 -2
- package/dist/chunk-EHVUAFNH.js.map +1 -0
- package/dist/{chunk-P6WSBVDT.js → chunk-FRAH5QNY.js} +4 -4
- package/dist/chunk-FRAH5QNY.js.map +1 -0
- package/dist/{chunk-MQQLYWZZ.js → chunk-GNS2FGPC.js} +2 -2
- package/dist/chunk-GNS2FGPC.js.map +1 -0
- package/dist/{chunk-TASAT7KB.js → chunk-HNPO6LFW.js} +2 -2
- package/dist/chunk-HNPO6LFW.js.map +1 -0
- package/dist/{chunk-EGB7C73X.js → chunk-KDEA64UX.js} +5 -5
- package/dist/chunk-KDEA64UX.js.map +1 -0
- package/dist/{chunk-NWMJYTMB.js → chunk-LAKHYTHL.js} +3 -3
- package/dist/chunk-LAKHYTHL.js.map +1 -0
- package/dist/{chunk-R7SQAREQ.js → chunk-LKOPJ3GS.js} +2 -2
- package/dist/chunk-LKOPJ3GS.js.map +1 -0
- package/dist/{chunk-WOEIJWGJ.js → chunk-NZS2YJ43.js} +2 -2
- package/dist/chunk-NZS2YJ43.js.map +1 -0
- package/dist/{chunk-XGP3C2ZE.js → chunk-OZ3EXPLE.js} +4 -112
- package/dist/chunk-OZ3EXPLE.js.map +1 -0
- package/dist/{chunk-YHEVHRLH.js → chunk-OZBPR27I.js} +2 -2
- package/dist/chunk-OZBPR27I.js.map +1 -0
- package/dist/{chunk-T4Z4HM4W.js → chunk-PAVI5W6M.js} +3 -3
- package/dist/chunk-PAVI5W6M.js.map +1 -0
- package/dist/chunk-PL37KFRJ.js +3 -0
- package/dist/chunk-PL37KFRJ.js.map +1 -0
- package/dist/{chunk-XSY5AAXT.js → chunk-PO7IHPFF.js} +2 -2
- package/dist/chunk-PO7IHPFF.js.map +1 -0
- package/dist/{chunk-OYF2OAKS.js → chunk-R7MEVVA4.js} +2 -2
- package/dist/chunk-R7MEVVA4.js.map +1 -0
- package/dist/{chunk-WFAWAHJH.js → chunk-UFWGOJL7.js} +2 -2
- package/dist/chunk-UFWGOJL7.js.map +1 -0
- package/dist/{chunk-XOIYNY4I.js → chunk-VNO2YUVD.js} +2 -2
- package/dist/chunk-VNO2YUVD.js.map +1 -0
- package/dist/{chunk-ZIE56LCA.js → chunk-XU6MRYG2.js} +3 -3
- package/dist/chunk-XU6MRYG2.js.map +1 -0
- package/dist/{chunk-6BDCTUQY.js → chunk-YNTMYL36.js} +3 -3
- package/dist/chunk-YNTMYL36.js.map +1 -0
- package/dist/{chunk-77MJZCYD.js → chunk-ZQS3WBE7.js} +2 -2
- package/dist/chunk-ZQS3WBE7.js.map +1 -0
- package/dist/client.d.ts +1 -1
- package/dist/client.js +9 -9
- package/dist/client.js.map +1 -1
- package/dist/config/index.js +1 -1
- package/dist/errors/index.js +2 -2
- package/dist/file-router/index.js +1 -1
- package/dist/file-router/streaming-hints.js +1 -1
- package/dist/handlers/index.js +1 -1
- package/dist/index.d.ts +1 -3
- package/dist/index.js +31 -31
- package/dist/index.js.map +1 -1
- package/dist/islands/index.js +1 -1
- package/dist/middleware/index.js +1 -1
- package/dist/react/index.js +2 -2
- package/dist/react/index.js.map +1 -1
- package/dist/render/index.js +1 -1
- package/dist/router/index.js +1 -1
- package/dist/rsc/adapters/index.js +4 -4
- package/dist/rsc/adapters/preact.js +1 -1
- package/dist/rsc/adapters/react.js +1 -1
- package/dist/rsc/adapters/solid.js +1 -1
- package/dist/rsc/adapters/vue.js +1 -1
- package/dist/rsc/boundaries.js +1 -1
- package/dist/rsc/context.js +1 -1
- package/dist/rsc/index.js +11 -11
- package/dist/rsc/legacy.js +1 -1
- package/dist/rsc/payload.js +1 -1
- package/dist/rsc/plugins/esbuild.js +2 -2
- package/dist/rsc/plugins/index.js +4 -4
- package/dist/rsc/plugins/rollup.js +2 -2
- package/dist/rsc/renderer.js +3 -3
- package/dist/rsc/stream.js +1 -1
- package/dist/rsc/vite-plugin.js +2 -2
- package/dist/server/index.js +4 -4
- package/dist/streaming/adapters/index.js +1 -1
- package/dist/streaming/conditional.js +1 -1
- package/dist/streaming/index.js +1 -1
- package/dist/streaming/observability.js +2 -2
- package/dist/streaming/priority.js +1 -1
- package/dist/utils/index.d.ts +28 -83
- package/dist/utils/index.js +2 -2
- package/package.json +225 -235
- package/dist/chunk-2F2QU6RC.js.map +0 -1
- package/dist/chunk-3KRBRSRJ.js.map +0 -1
- package/dist/chunk-62C7LX2E.js.map +0 -1
- package/dist/chunk-6BDCTUQY.js.map +0 -1
- package/dist/chunk-77MJZCYD.js.map +0 -1
- package/dist/chunk-EGB7C73X.js.map +0 -1
- package/dist/chunk-FSJNOPYE.js.map +0 -1
- package/dist/chunk-IXMD5QH2.js.map +0 -1
- package/dist/chunk-J7WEZXWH.js +0 -14
- package/dist/chunk-J7WEZXWH.js.map +0 -1
- package/dist/chunk-K2CQZPCG.js.map +0 -1
- package/dist/chunk-LNV47HGV.js.map +0 -1
- package/dist/chunk-MDQNNIHH.js.map +0 -1
- package/dist/chunk-MFUJN7RV.js +0 -20
- package/dist/chunk-MFUJN7RV.js.map +0 -1
- package/dist/chunk-MQQLYWZZ.js.map +0 -1
- package/dist/chunk-NWMJYTMB.js.map +0 -1
- package/dist/chunk-OYF2OAKS.js.map +0 -1
- package/dist/chunk-P6WSBVDT.js.map +0 -1
- package/dist/chunk-PDW5WCMW.js.map +0 -1
- package/dist/chunk-PVUMB632.js.map +0 -1
- package/dist/chunk-R7SQAREQ.js.map +0 -1
- package/dist/chunk-RSVA2EYO.js.map +0 -1
- package/dist/chunk-T4Z4HM4W.js.map +0 -1
- package/dist/chunk-TASAT7KB.js.map +0 -1
- package/dist/chunk-VPFMHGEV.js.map +0 -1
- package/dist/chunk-W6D62JCI.js.map +0 -1
- package/dist/chunk-WF46NESN.js +0 -67
- package/dist/chunk-WF46NESN.js.map +0 -1
- package/dist/chunk-WFAWAHJH.js.map +0 -1
- package/dist/chunk-WOEIJWGJ.js.map +0 -1
- package/dist/chunk-XGP3C2ZE.js.map +0 -1
- package/dist/chunk-XOIYNY4I.js.map +0 -1
- package/dist/chunk-XSY5AAXT.js.map +0 -1
- package/dist/chunk-YHEVHRLH.js.map +0 -1
- package/dist/chunk-ZIE56LCA.js.map +0 -1
- package/dist/chunk-ZVC3ZWLM.js.map +0 -1
- package/dist/env-9do2c6yn.d.ts +0 -42
- package/dist/plugins/env-plugin.d.ts +0 -47
- package/dist/plugins/env-plugin.js +0 -3
- package/dist/plugins/env-plugin.js.map +0 -1
- package/dist/plugins/index.d.ts +0 -221
- package/dist/plugins/index.js +0 -192
- package/dist/plugins/index.js.map +0 -1
- package/dist/plugins/server-boundary-plugin.d.ts +0 -40
- package/dist/plugins/server-boundary-plugin.js +0 -3
- package/dist/plugins/server-boundary-plugin.js.map +0 -1
package/dist/rsc/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import '../chunk-63SCEXD7.js';
|
|
2
2
|
import '../chunk-Y22AMGTM.js';
|
|
3
|
-
export { createReactAdapter, createReactConsumer, markAsClientComponent } from '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
7
|
-
export { acceptsJson, createServerContext, deleteCookie, getHeader, getHeaders, getPreferredLanguage, getRedirectInfo, isAjaxRequest, isBotRequest, isMutationRequest, isNotFoundError, isRedirectError, notFound, redirect, setCacheControl, setCookie, supportsStreaming } from '../chunk-
|
|
8
|
-
export { FlightStreamError, consumeFlightStream, createFlightResponse, createFlightStream, createFlightStreamFromArray, createHybridResponse, createStreamController, mergeFlightStreams, parseFlightStream, parseFlightStreamSync, prettyPrintChunks, transformFlightStream } from '../chunk-
|
|
9
|
-
export { FlightRenderer, createRenderer, renderServerComponent, renderServerComponentStreaming } from '../chunk-
|
|
10
|
-
export { FlightPayloadError, FlightSerializationError, clientRef, createActionChunk, createClientChunk, createErrorChunk, createHintChunk, createServerChunk, deserialize, fragment, generateChunkId, h, isFlightElement, resetChunkIdCounter, serialize, suspense, text, toFlightElement } from '../chunk-
|
|
11
|
-
export { composeComponents, createAsyncComponent, createClientBoundary, createRenderContext, deserializeProps, executeServerComponent, isNotFoundError as legacyIsNotFoundError, isRedirectError as legacyIsRedirectError, notFound as legacyNotFound, redirect as legacyRedirect, revalidatePath, revalidateTag, serializeProps, serverFetch, withAsyncErrorBoundary, withErrorBoundary } from '../chunk-
|
|
12
|
-
export { flightRSC } from '../chunk-
|
|
13
|
-
export { BoundaryRegistry, CLIENT_REFERENCE, SERVER_REFERENCE, analyzeModule, createClientReference, createServerReference, detectAsyncComponents, detectBoundaryType, detectInlineServerActions, getReferenceId, globalRegistry, hasUseClientDirective, hasUseServerDirective, isClientReference, isServerReference, registerClientComponent, registerServerAction } from '../chunk-
|
|
3
|
+
export { createReactAdapter, createReactConsumer, markAsClientComponent } from '../chunk-HNPO6LFW.js';
|
|
4
|
+
import '../chunk-3UQJE3XZ.js';
|
|
5
|
+
import '../chunk-3N5ZBVZJ.js';
|
|
6
|
+
import '../chunk-65JYF3DJ.js';
|
|
7
|
+
export { acceptsJson, createServerContext, deleteCookie, getHeader, getHeaders, getPreferredLanguage, getRedirectInfo, isAjaxRequest, isBotRequest, isMutationRequest, isNotFoundError, isRedirectError, notFound, redirect, setCacheControl, setCookie, supportsStreaming } from '../chunk-CKJHJPKQ.js';
|
|
8
|
+
export { FlightStreamError, consumeFlightStream, createFlightResponse, createFlightStream, createFlightStreamFromArray, createHybridResponse, createStreamController, mergeFlightStreams, parseFlightStream, parseFlightStreamSync, prettyPrintChunks, transformFlightStream } from '../chunk-A2QRUBVE.js';
|
|
9
|
+
export { FlightRenderer, createRenderer, renderServerComponent, renderServerComponentStreaming } from '../chunk-FRAH5QNY.js';
|
|
10
|
+
export { FlightPayloadError, FlightSerializationError, clientRef, createActionChunk, createClientChunk, createErrorChunk, createHintChunk, createServerChunk, deserialize, fragment, generateChunkId, h, isFlightElement, resetChunkIdCounter, serialize, suspense, text, toFlightElement } from '../chunk-6GI6HFSQ.js';
|
|
11
|
+
export { composeComponents, createAsyncComponent, createClientBoundary, createRenderContext, deserializeProps, executeServerComponent, isNotFoundError as legacyIsNotFoundError, isRedirectError as legacyIsRedirectError, notFound as legacyNotFound, redirect as legacyRedirect, revalidatePath, revalidateTag, serializeProps, serverFetch, withAsyncErrorBoundary, withErrorBoundary } from '../chunk-6IG6XIXU.js';
|
|
12
|
+
export { flightRSC } from '../chunk-XU6MRYG2.js';
|
|
13
|
+
export { BoundaryRegistry, CLIENT_REFERENCE, SERVER_REFERENCE, analyzeModule, createClientReference, createServerReference, detectAsyncComponents, detectBoundaryType, detectInlineServerActions, getReferenceId, globalRegistry, hasUseClientDirective, hasUseServerDirective, isClientReference, isServerReference, registerClientComponent, registerServerAction } from '../chunk-5XHOLZBJ.js';
|
|
14
14
|
//# sourceMappingURL=index.js.map
|
|
15
15
|
//# sourceMappingURL=index.js.map
|
package/dist/rsc/legacy.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { composeComponents, createAsyncComponent, createClientBoundary, createRenderContext, deserializeProps, executeServerComponent, isNotFoundError, isRedirectError, notFound, redirect, revalidatePath, revalidateTag, serializeProps, serverFetch, withAsyncErrorBoundary, withErrorBoundary } from '../chunk-
|
|
1
|
+
export { composeComponents, createAsyncComponent, createClientBoundary, createRenderContext, deserializeProps, executeServerComponent, isNotFoundError, isRedirectError, notFound, redirect, revalidatePath, revalidateTag, serializeProps, serverFetch, withAsyncErrorBoundary, withErrorBoundary } from '../chunk-6IG6XIXU.js';
|
|
2
2
|
//# sourceMappingURL=legacy.js.map
|
|
3
3
|
//# sourceMappingURL=legacy.js.map
|
package/dist/rsc/payload.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { FlightPayloadError, FlightSerializationError, clientRef, createActionChunk, createClientChunk, createErrorChunk, createHintChunk, createServerChunk, deserialize, fragment, generateChunkId, h, isFlightElement, resetChunkIdCounter, serialize, suspense, text, toFlightElement } from '../chunk-
|
|
1
|
+
export { FlightPayloadError, FlightSerializationError, clientRef, createActionChunk, createClientChunk, createErrorChunk, createHintChunk, createServerChunk, deserialize, fragment, generateChunkId, h, isFlightElement, resetChunkIdCounter, serialize, suspense, text, toFlightElement } from '../chunk-6GI6HFSQ.js';
|
|
2
2
|
//# sourceMappingURL=payload.js.map
|
|
3
3
|
//# sourceMappingURL=payload.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { esbuild_default as default, flightRSCEsbuild } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
export { esbuild_default as default, flightRSCEsbuild } from '../../chunk-PAVI5W6M.js';
|
|
2
|
+
import '../../chunk-5XHOLZBJ.js';
|
|
3
3
|
//# sourceMappingURL=esbuild.js.map
|
|
4
4
|
//# sourceMappingURL=esbuild.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { flightRSCEsbuild } from '../../chunk-
|
|
2
|
-
export { flightRSCRollup } from '../../chunk-
|
|
3
|
-
export { flightRSC as flightRSCVite } from '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
1
|
+
export { flightRSCEsbuild } from '../../chunk-PAVI5W6M.js';
|
|
2
|
+
export { flightRSCRollup } from '../../chunk-LAKHYTHL.js';
|
|
3
|
+
export { flightRSC as flightRSCVite } from '../../chunk-XU6MRYG2.js';
|
|
4
|
+
import '../../chunk-5XHOLZBJ.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { rollup_default as default, flightRSCRollup } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
export { rollup_default as default, flightRSCRollup } from '../../chunk-LAKHYTHL.js';
|
|
2
|
+
import '../../chunk-5XHOLZBJ.js';
|
|
3
3
|
//# sourceMappingURL=rollup.js.map
|
|
4
4
|
//# sourceMappingURL=rollup.js.map
|
package/dist/rsc/renderer.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { FlightRenderer, createRenderer, renderServerComponent, renderServerComponentStreaming } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { FlightRenderer, createRenderer, renderServerComponent, renderServerComponentStreaming } from '../chunk-FRAH5QNY.js';
|
|
2
|
+
import '../chunk-6GI6HFSQ.js';
|
|
3
|
+
import '../chunk-5XHOLZBJ.js';
|
|
4
4
|
//# sourceMappingURL=renderer.js.map
|
|
5
5
|
//# sourceMappingURL=renderer.js.map
|
package/dist/rsc/stream.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { FlightStreamError, consumeFlightStream, createFlightResponse, createFlightStream, createFlightStreamFromArray, createHybridResponse, createStreamController, mergeFlightStreams, parseFlightStream, parseFlightStreamSync, prettyPrintChunks, transformFlightStream } from '../chunk-
|
|
1
|
+
export { FlightStreamError, consumeFlightStream, createFlightResponse, createFlightStream, createFlightStreamFromArray, createHybridResponse, createStreamController, mergeFlightStreams, parseFlightStream, parseFlightStreamSync, prettyPrintChunks, transformFlightStream } from '../chunk-A2QRUBVE.js';
|
|
2
2
|
//# sourceMappingURL=stream.js.map
|
|
3
3
|
//# sourceMappingURL=stream.js.map
|
package/dist/rsc/vite-plugin.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { vite_plugin_default as default, flightRSC } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { vite_plugin_default as default, flightRSC } from '../chunk-XU6MRYG2.js';
|
|
2
|
+
import '../chunk-5XHOLZBJ.js';
|
|
3
3
|
//# sourceMappingURL=vite-plugin.js.map
|
|
4
4
|
//# sourceMappingURL=vite-plugin.js.map
|
package/dist/server/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { createServer, getRuntime, isFlightServer } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
1
|
+
export { createServer, getRuntime, isFlightServer } from '../chunk-KDEA64UX.js';
|
|
2
|
+
import '../chunk-R7MEVVA4.js';
|
|
3
|
+
import '../chunk-EHVUAFNH.js';
|
|
4
|
+
import '../chunk-ARBKF6VI.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { createHTMXStreamAdapter, createReactStreamAdapter, createSolidStreamAdapter, createStreamAdapter, createSvelteStreamAdapter, createVueStreamAdapter } from '../../chunk-
|
|
1
|
+
export { createHTMXStreamAdapter, createReactStreamAdapter, createSolidStreamAdapter, createStreamAdapter, createSvelteStreamAdapter, createVueStreamAdapter } from '../../chunk-GNS2FGPC.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { DEFAULT_BOT_PATTERNS, addStreamingHeaders, createConditionalStreamer, createStaticResponse, createStreamingResponse, isBot, isSlowConnection, prefersNoStream, streamIf, supportsStreaming } from '../chunk-
|
|
1
|
+
export { DEFAULT_BOT_PATTERNS, addStreamingHeaders, createConditionalStreamer, createStaticResponse, createStreamingResponse, isBot, isSlowConnection, prefersNoStream, streamIf, supportsStreaming } from '../chunk-VNO2YUVD.js';
|
|
2
2
|
//# sourceMappingURL=conditional.js.map
|
|
3
3
|
//# sourceMappingURL=conditional.js.map
|
package/dist/streaming/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { createLazyContent, createStreamingResponse, createStreamingSSR, renderWithStreaming, streamParallel, streamSequential } from '../chunk-
|
|
1
|
+
export { createLazyContent, createStreamingResponse, createStreamingSSR, renderWithStreaming, streamParallel, streamSequential } from '../chunk-CNY3ZUVG.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { MetricsAggregator, createHttpObserver, createInstrumentedStream, createLoggerObserver } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { MetricsAggregator, createHttpObserver, createInstrumentedStream, createLoggerObserver } from '../chunk-YNTMYL36.js';
|
|
2
|
+
import '../chunk-CNY3ZUVG.js';
|
|
3
3
|
//# sourceMappingURL=observability.js.map
|
|
4
4
|
//# sourceMappingURL=observability.js.map
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,97 +1,42 @@
|
|
|
1
|
-
export { g as getEnvironment, d as isBrowser, a as isDevelopment, i as isProduction, c as isServer, b as isTest } from '../env-9do2c6yn.js';
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
|
-
* @flight-framework/core -
|
|
5
|
-
*
|
|
6
|
-
* Runtime utilities for server/client code separation.
|
|
7
|
-
* These are OPTIONAL - use them if you want safety guards.
|
|
8
|
-
* Flight doesn't force you to use them.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```typescript
|
|
12
|
-
* import { assertServer, getEnv } from '@flight-framework/core';
|
|
2
|
+
* @flight-framework/core - Environment Utilities
|
|
13
3
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* const dbUrl = getEnv('DATABASE_URL'); // Returns undefined on client
|
|
17
|
-
* // ... your code
|
|
18
|
-
* }
|
|
19
|
-
* ```
|
|
4
|
+
* Environment detection utilities that work across Node.js, browsers, and edge runtimes.
|
|
5
|
+
* No hardcoded values - detects environment dynamically.
|
|
20
6
|
*/
|
|
21
7
|
/**
|
|
22
|
-
*
|
|
23
|
-
* Throws an error if called from the client (browser).
|
|
24
|
-
*
|
|
25
|
-
* Use this to protect server-only code from being accidentally
|
|
26
|
-
* called on the client.
|
|
27
|
-
*
|
|
28
|
-
* @param context - Optional context string for the error message
|
|
29
|
-
* @throws Error if called on client
|
|
8
|
+
* Check if running in production environment.
|
|
30
9
|
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* // Safe to use process.env, database connections, etc.
|
|
36
|
-
* }
|
|
37
|
-
* ```
|
|
10
|
+
* Detection order:
|
|
11
|
+
* 1. Node.js process.env.NODE_ENV
|
|
12
|
+
* 2. Vite/modern bundlers import.meta.env.MODE or import.meta.env.PROD
|
|
13
|
+
* 3. Default: false (not production)
|
|
38
14
|
*/
|
|
39
|
-
declare function
|
|
15
|
+
declare function isProduction(): boolean;
|
|
40
16
|
/**
|
|
41
|
-
*
|
|
42
|
-
* Throws an error if called from the server.
|
|
17
|
+
* Check if running in development environment.
|
|
43
18
|
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
* @throws Error if called on server
|
|
49
|
-
*
|
|
50
|
-
* @example
|
|
51
|
-
* ```typescript
|
|
52
|
-
* export function scrollToTop() {
|
|
53
|
-
* assertClient('scrollToTop');
|
|
54
|
-
* window.scrollTo(0, 0);
|
|
55
|
-
* }
|
|
56
|
-
* ```
|
|
19
|
+
* Detection order:
|
|
20
|
+
* 1. Node.js process.env.NODE_ENV
|
|
21
|
+
* 2. Vite/modern bundlers import.meta.env.MODE or import.meta.env.DEV
|
|
22
|
+
* 3. Default: true (assume development if unknown)
|
|
57
23
|
*/
|
|
58
|
-
declare function
|
|
24
|
+
declare function isDevelopment(): boolean;
|
|
59
25
|
/**
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
* On the server: Returns the variable value.
|
|
63
|
-
* On the client: Returns undefined for non-public vars.
|
|
64
|
-
*
|
|
65
|
-
* Public variables (prefixed with FLIGHT_PUBLIC_) are always accessible.
|
|
66
|
-
*
|
|
67
|
-
* @param key - Environment variable name
|
|
68
|
-
* @returns The value or undefined
|
|
69
|
-
*
|
|
70
|
-
* @example
|
|
71
|
-
* ```typescript
|
|
72
|
-
* // On server: returns actual value
|
|
73
|
-
* // On client: returns undefined (safe!)
|
|
74
|
-
* const dbUrl = getEnv('DATABASE_URL');
|
|
75
|
-
*
|
|
76
|
-
* // Works on both server and client
|
|
77
|
-
* const apiUrl = getEnv('FLIGHT_PUBLIC_API_URL');
|
|
78
|
-
* ```
|
|
26
|
+
* Check if running in test environment.
|
|
79
27
|
*/
|
|
80
|
-
declare function
|
|
28
|
+
declare function isTest(): boolean;
|
|
81
29
|
/**
|
|
82
|
-
*
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
*
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
*
|
|
91
|
-
* // Throws if DATABASE_URL is not set
|
|
92
|
-
* const dbUrl = requireEnv('DATABASE_URL');
|
|
93
|
-
* ```
|
|
30
|
+
* Check if running on the server (not browser).
|
|
31
|
+
*/
|
|
32
|
+
declare function isServer(): boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Check if running in the browser.
|
|
35
|
+
*/
|
|
36
|
+
declare function isBrowser(): boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Get the current environment name.
|
|
94
39
|
*/
|
|
95
|
-
declare function
|
|
40
|
+
declare function getEnvironment(): 'production' | 'development' | 'test' | 'unknown';
|
|
96
41
|
|
|
97
|
-
export {
|
|
42
|
+
export { getEnvironment, isBrowser, isDevelopment, isProduction, isServer, isTest };
|
package/dist/utils/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export { getEnvironment, isBrowser, isDevelopment, isProduction, isServer, isTest } from '../chunk-
|
|
1
|
+
import '../chunk-PL37KFRJ.js';
|
|
2
|
+
export { getEnvironment, isBrowser, isDevelopment, isProduction, isServer, isTest } from '../chunk-OZBPR27I.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|