@longzai-intelligence-transport/http-adapter-bun 0.1.5 → 0.1.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/README.md ADDED
@@ -0,0 +1,19 @@
1
+ # @longzai-intelligence-transport/http-adapter-bun
2
+
3
+ ## 意图
4
+
5
+ 为 Longzai Intelligence 传输层 HTTP 协议提供 Bun 适配器,对接 Bun 原生路由处理器与服务端能力。
6
+
7
+ ## 定位
8
+
9
+ HTTP 协议的 Bun 适配器包,基于 HTTP 核心包构建,对接 Bun 运行时的路由处理器与服务端能力,作为 Bun 场景下的 HTTP 传输接入层。
10
+
11
+ ## 核心能力
12
+
13
+ - 对接 Bun 原生路由处理器
14
+ - 复用 HTTP 核心包的类型与契约
15
+ - 支撑 Bun 服务端场景下的 HTTP 传输
16
+
17
+ ## 实现情况
18
+
19
+ 已完成对 HTTP 核心包与 Bun 运行时的依赖接入,并以 Bun 作为对等依赖承载服务端能力,可作为可发布包对外提供。
package/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { ApiResponse, InferRouteBody, InferRouteParams, InferRouteQuery, InferRouteResponse, RouteDefinition, StreamResponseRoute } from "@longzai-intelligence-transport/http-core";
2
-
3
2
  //#region src/index.d.ts
4
3
  /**
5
4
  * 验证错误详情
@@ -218,7 +217,7 @@ type RouteMapEntry<TContext = unknown> = {
218
217
  * @typeParam TRoutes - 路由定义映射类型
219
218
  * @typeParam TContext - 自定义上下文类型
220
219
  */
221
- type RoutesMap<TRoutes extends Record<string, RouteDefinition>, TContext = unknown> = { [K in keyof TRoutes]: RouteHandlerFn<TRoutes[K], TContext> };
220
+ type RoutesMap<TRoutes extends Record<string, RouteDefinition>, TContext = unknown> = { [K in keyof TRoutes]: RouteHandlerFn<TRoutes[K], TContext>; };
222
221
  /**
223
222
  * Fetch 处理器选项
224
223
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longzai-intelligence-transport/http-adapter-bun",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "keywords": [
5
5
  "adapter",
6
6
  "bun",
@@ -38,7 +38,7 @@
38
38
  "clean": "rimraf dist out .cache"
39
39
  },
40
40
  "dependencies": {
41
- "@longzai-intelligence-transport/http-core": "0.1.5"
41
+ "@longzai-intelligence-transport/http-core": "0.1.7"
42
42
  },
43
43
  "devDependencies": {
44
44
  "zod": "^4.4.3"