@fluojs/platform-bun
Advanced tools
+1
-2
@@ -1,3 +0,2 @@ | ||
| import { createFetchStyleHttpAdapterRealtimeCapability } from '@fluojs/http'; | ||
| import { bindRawRequestNativeRouteHandoff, isRoutePathNormalizationSensitive } from '@fluojs/http/internal'; | ||
| import { bindRawRequestNativeRouteHandoff, createFetchStyleHttpAdapterRealtimeCapability, isRoutePathNormalizationSensitive } from '@fluojs/http/internal'; | ||
| import { createNodeShutdownSignalRegistration, defaultNodeShutdownSignals } from '@fluojs/runtime/node'; | ||
@@ -4,0 +3,0 @@ import { createWebRequestResponseFactory, dispatchWebRequest } from '@fluojs/runtime/web'; |
+3
-3
@@ -11,3 +11,3 @@ { | ||
| ], | ||
| "version": "1.0.0-beta.6", | ||
| "version": "1.0.0-beta.7", | ||
| "private": false, | ||
@@ -36,4 +36,4 @@ "license": "MIT", | ||
| "dependencies": { | ||
| "@fluojs/http": "^1.0.0-beta.6", | ||
| "@fluojs/runtime": "^1.0.0-beta.8" | ||
| "@fluojs/http": "^1.0.0-beta.11", | ||
| "@fluojs/runtime": "^1.0.0-beta.12" | ||
| }, | ||
@@ -40,0 +40,0 @@ "devDependencies": { |
+4
-0
@@ -94,2 +94,4 @@ # @fluojs/platform-bun | ||
| - `BunWebSocketBinding` 및 `BunRealtimeBindingHost`: 일반 HTTP dispatch 전에 `@fluojs/websockets/bun`이 사용하는 binding 계약입니다. | ||
| - `BunWebSocketBindingHost`: Bun realtime binding 설정을 위한 backward-compatible alias입니다. | ||
| - `BunServeOptions`, `BunServerLike`, `BunWebSocketHandler`, `BunServerWebSocket`, `BunWebSocketMessage`, `BunApplicationSignal`, `BunCorsInput`, `BunTlsOptions`, `CreateBunFetchHandlerOptions`: 저수준 Bun host, websocket, signal, CORS, TLS, fetch-handler integration type입니다. | ||
@@ -101,2 +103,3 @@ ## 어댑터 계약 | ||
| - **네이티브 route 가속**: Bun의 `routes` object를 사용할 수 있고 fluo route shape를 의미 보존 상태로 선등록할 수 있을 때만 Bun이 path matching을 먼저 처리하고, 이후 요청은 다시 shared dispatcher로 넘깁니다. 지원하지 않거나 모호한 route shape는 일반 `fetch` 경로로 폴백하며, middleware가 handler matching 전에 method/path를 rewrite하면 stale handoff는 무시됩니다. | ||
| - **네이티브 route gate**: Native route는 Bun `>=1.2.3`에서만 활성화됩니다. Versioned route, `ALL` handler, same-shape conflict, normalization-sensitive path, `OPTIONS`/CORS preflight는 fetch/shared-dispatch path에 남습니다. | ||
| - **Multipart 동작**: Multipart 요청은 `rawBody`를 노출하지 않으며 multipart limit은 shared runtime parser를 통해 계속 적용됩니다. | ||
@@ -106,2 +109,3 @@ - **시작 target**: `hostname`, `port`, `tls`는 `Bun.serve()`로 전달됩니다. 시작 로그는 설정된 HTTP 또는 HTTPS listen URL을 보고합니다. | ||
| - **Realtime seam**: Bun websocket binding은 서버를 시작하는 `listen()` 전에 구성해야 합니다. Upgrade 요청은 HTTP dispatch로 넘어가기 전에 구성된 binding에 먼저 전달됩니다. | ||
| - **Adapter instance helper**: `BunHttpApplicationAdapter`는 `getServer()`, `getListenTarget()`, `getRealtimeCapability()`, `configureRealtimeBinding()`, `configureWebSocketBinding()`, `listen()`, `close()`를 노출합니다. | ||
@@ -108,0 +112,0 @@ ## Conformance 커버리지 |
+4
-0
@@ -94,2 +94,4 @@ # @fluojs/platform-bun | ||
| - `BunWebSocketBinding` and `BunRealtimeBindingHost`: binding contracts used by `@fluojs/websockets/bun` before normal HTTP dispatch. | ||
| - `BunWebSocketBindingHost`: Backward-compatible alias for configuring Bun realtime bindings. | ||
| - `BunServeOptions`, `BunServerLike`, `BunWebSocketHandler`, `BunServerWebSocket`, `BunWebSocketMessage`, `BunApplicationSignal`, `BunCorsInput`, `BunTlsOptions`, and `CreateBunFetchHandlerOptions`: Lower-level Bun host, websocket, signal, CORS, TLS, and fetch-handler integration types. | ||
@@ -101,2 +103,3 @@ ## Adapter Contract | ||
| - **Native route acceleration**: When Bun's `routes` object is available and a fluo route shape is semantically safe to pre-register, the adapter lets Bun short-circuit path matching before handing the request back to the shared dispatcher. Unsupported or ambiguous route shapes fall back to the regular `fetch` path, and stale handoffs are ignored if middleware rewrites method/path before handler matching. | ||
| - **Native route gate**: Native routes are enabled only on Bun `>=1.2.3`; versioned routes, `ALL` handlers, same-shape conflicts, normalization-sensitive paths, and `OPTIONS`/CORS preflight stay on the fetch/shared-dispatch path. | ||
| - **Multipart behavior**: Multipart requests never expose `rawBody`, and multipart limits continue to flow through the shared runtime parser. | ||
@@ -106,2 +109,3 @@ - **Startup target**: `hostname`, `port`, and `tls` are forwarded to `Bun.serve()`. Startup logs report the configured HTTP or HTTPS listen URL. | ||
| - **Realtime seam**: Bun websocket bindings must be configured before `listen()` starts the server. Upgrade requests are offered to the configured binding before falling back to HTTP dispatch. | ||
| - **Adapter instance helpers**: `BunHttpApplicationAdapter` exposes `getServer()`, `getListenTarget()`, `getRealtimeCapability()`, `configureRealtimeBinding()`, `configureWebSocketBinding()`, `listen()`, and `close()`. | ||
@@ -108,0 +112,0 @@ ## Conformance Coverage |
55377
3.1%125
3.31%675
-0.15%