@flight-framework/core 0.2.3 → 0.2.5
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/chunk-FSJNOPYE.js +197 -0
- package/dist/chunk-FSJNOPYE.js.map +1 -0
- package/dist/{chunk-VOBQDQKX.js → chunk-LBYDTULN.js} +3 -3
- package/dist/{chunk-VOBQDQKX.js.map → chunk-LBYDTULN.js.map} +1 -1
- package/dist/chunk-PL37KFRJ.js +3 -0
- package/dist/chunk-PL37KFRJ.js.map +1 -0
- package/dist/chunk-YHEVHRLH.js +46 -0
- package/dist/chunk-YHEVHRLH.js.map +1 -0
- package/dist/errors/index.d.ts +267 -0
- package/dist/errors/index.js +4 -0
- package/dist/errors/index.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +14 -11
- package/dist/index.js.map +1 -1
- package/dist/react/index.d.ts +73 -0
- package/dist/react/index.js +52 -0
- package/dist/react/index.js.map +1 -0
- package/dist/rsc/adapters/index.js +1 -1
- package/dist/rsc/index.js +4 -4
- package/dist/server/index.js +2 -2
- package/dist/utils/index.d.ts +42 -0
- package/dist/utils/index.js +4 -0
- package/dist/utils/index.js.map +1 -0
- package/package.json +18 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '../../chunk-Y22AMGTM.js';
|
|
2
|
-
export { createPreactAdapter, createPreactConsumer, markAsPreactClientComponent, lazy as preactLazy } from '../../chunk-MDQNNIHH.js';
|
|
3
2
|
export { createReactAdapter, createReactConsumer, markAsClientComponent } from '../../chunk-TASAT7KB.js';
|
|
4
3
|
export { createVueAdapter, createVueConsumer, markAsVueClientComponent } from '../../chunk-2F2QU6RC.js';
|
|
5
4
|
export { createSolidAdapter, createSolidConsumer, isServer as isSolidServer, markAsSolidClientComponent } from '../../chunk-VPFMHGEV.js';
|
|
5
|
+
export { createPreactAdapter, createPreactConsumer, markAsPreactClientComponent, lazy as preactLazy } from '../../chunk-MDQNNIHH.js';
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
package/dist/rsc/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import '../chunk-63SCEXD7.js';
|
|
2
|
+
export { acceptsJson, createServerContext, deleteCookie, getHeader, getHeaders, getPreferredLanguage, getRedirectInfo, isAjaxRequest, isBotRequest, isMutationRequest, isNotFoundError, isRedirectError, notFound, redirect, setCacheControl, setCookie, supportsStreaming } from '../chunk-62C7LX2E.js';
|
|
2
3
|
export { FlightStreamError, consumeFlightStream, createFlightResponse, createFlightStream, createFlightStreamFromArray, createHybridResponse, createStreamController, mergeFlightStreams, parseFlightStream, parseFlightStreamSync, prettyPrintChunks, transformFlightStream } from '../chunk-PVUMB632.js';
|
|
3
4
|
export { FlightRenderer, createRenderer, renderServerComponent, renderServerComponentStreaming } from '../chunk-P6WSBVDT.js';
|
|
5
|
+
export { FlightPayloadError, FlightSerializationError, clientRef, createActionChunk, createClientChunk, createErrorChunk, createHintChunk, createServerChunk, deserialize, fragment, generateChunkId, h, isFlightElement, resetChunkIdCounter, serialize, suspense, text, toFlightElement } from '../chunk-K2CQZPCG.js';
|
|
4
6
|
export { composeComponents, createAsyncComponent, createClientBoundary, createRenderContext, deserializeProps, executeServerComponent, isNotFoundError as legacyIsNotFoundError, isRedirectError as legacyIsRedirectError, notFound as legacyNotFound, redirect as legacyRedirect, revalidatePath, revalidateTag, serializeProps, serverFetch, withErrorBoundary } from '../chunk-3ZSSRE6M.js';
|
|
5
7
|
export { flightRSC } from '../chunk-ZIE56LCA.js';
|
|
8
|
+
export { BoundaryRegistry, CLIENT_REFERENCE, SERVER_REFERENCE, analyzeModule, createClientReference, createServerReference, detectAsyncComponents, detectBoundaryType, detectInlineServerActions, getReferenceId, globalRegistry, hasUseClientDirective, hasUseServerDirective, isClientReference, isServerReference, registerClientComponent, registerServerAction } from '../chunk-PDW5WCMW.js';
|
|
6
9
|
import '../chunk-Y22AMGTM.js';
|
|
7
|
-
import '../chunk-MDQNNIHH.js';
|
|
8
10
|
export { createReactAdapter, createReactConsumer, markAsClientComponent } from '../chunk-TASAT7KB.js';
|
|
9
11
|
import '../chunk-2F2QU6RC.js';
|
|
10
12
|
import '../chunk-VPFMHGEV.js';
|
|
11
|
-
|
|
12
|
-
export { BoundaryRegistry, CLIENT_REFERENCE, SERVER_REFERENCE, analyzeModule, createClientReference, createServerReference, detectAsyncComponents, detectBoundaryType, detectInlineServerActions, getReferenceId, globalRegistry, hasUseClientDirective, hasUseServerDirective, isClientReference, isServerReference, registerClientComponent, registerServerAction } from '../chunk-PDW5WCMW.js';
|
|
13
|
-
export { acceptsJson, createServerContext, deleteCookie, getHeader, getHeaders, getPreferredLanguage, getRedirectInfo, isAjaxRequest, isBotRequest, isMutationRequest, isNotFoundError, isRedirectError, notFound, redirect, setCacheControl, setCookie, supportsStreaming } from '../chunk-62C7LX2E.js';
|
|
13
|
+
import '../chunk-MDQNNIHH.js';
|
|
14
14
|
//# sourceMappingURL=index.js.map
|
|
15
15
|
//# sourceMappingURL=index.js.map
|
package/dist/server/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { createServer, getRuntime, isFlightServer } from '../chunk-
|
|
1
|
+
export { createServer, getRuntime, isFlightServer } from '../chunk-LBYDTULN.js';
|
|
2
|
+
import '../chunk-IXMD5QH2.js';
|
|
2
3
|
import '../chunk-GCQZ4FHI.js';
|
|
3
4
|
import '../chunk-KWFX6WHG.js';
|
|
4
|
-
import '../chunk-IXMD5QH2.js';
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @flight-framework/core - Environment Utilities
|
|
3
|
+
*
|
|
4
|
+
* Environment detection utilities that work across Node.js, browsers, and edge runtimes.
|
|
5
|
+
* No hardcoded values - detects environment dynamically.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Check if running in production environment.
|
|
9
|
+
*
|
|
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)
|
|
14
|
+
*/
|
|
15
|
+
declare function isProduction(): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Check if running in development environment.
|
|
18
|
+
*
|
|
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)
|
|
23
|
+
*/
|
|
24
|
+
declare function isDevelopment(): boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Check if running in test environment.
|
|
27
|
+
*/
|
|
28
|
+
declare function isTest(): boolean;
|
|
29
|
+
/**
|
|
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.
|
|
39
|
+
*/
|
|
40
|
+
declare function getEnvironment(): 'production' | 'development' | 'test' | 'unknown';
|
|
41
|
+
|
|
42
|
+
export { getEnvironment, isBrowser, isDevelopment, isProduction, isServer, isTest };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flight-framework/core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "Core primitives for Flight Framework - routing, rendering, caching",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"flight",
|
|
@@ -17,6 +17,18 @@
|
|
|
17
17
|
"types": "./dist/index.d.ts",
|
|
18
18
|
"import": "./dist/index.js"
|
|
19
19
|
},
|
|
20
|
+
"./errors": {
|
|
21
|
+
"types": "./dist/errors/index.d.ts",
|
|
22
|
+
"import": "./dist/errors/index.js"
|
|
23
|
+
},
|
|
24
|
+
"./react": {
|
|
25
|
+
"types": "./dist/react/index.d.ts",
|
|
26
|
+
"import": "./dist/react/index.js"
|
|
27
|
+
},
|
|
28
|
+
"./utils": {
|
|
29
|
+
"types": "./dist/utils/index.d.ts",
|
|
30
|
+
"import": "./dist/utils/index.js"
|
|
31
|
+
},
|
|
20
32
|
"./router": {
|
|
21
33
|
"types": "./dist/router/index.d.ts",
|
|
22
34
|
"import": "./dist/router/index.js"
|
|
@@ -177,15 +189,20 @@
|
|
|
177
189
|
},
|
|
178
190
|
"devDependencies": {
|
|
179
191
|
"@types/node": "^22.0.0",
|
|
192
|
+
"@types/react": "^19.0.0",
|
|
180
193
|
"rimraf": "^6.0.0",
|
|
181
194
|
"tsup": "^8.0.0",
|
|
182
195
|
"typescript": "^5.7.0",
|
|
183
196
|
"vitest": "^2.0.0"
|
|
184
197
|
},
|
|
185
198
|
"peerDependencies": {
|
|
199
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
186
200
|
"vite": "^6.0.0 || ^7.0.0"
|
|
187
201
|
},
|
|
188
202
|
"peerDependenciesMeta": {
|
|
203
|
+
"react": {
|
|
204
|
+
"optional": true
|
|
205
|
+
},
|
|
189
206
|
"vite": {
|
|
190
207
|
"optional": true
|
|
191
208
|
}
|