Commit Graph

25 Commits

Author SHA1 Message Date
a53e8c0bc3 refactor: update router import path and add random ID utility
- Changed the import path for router types from '@kevisual/router' to './route.ts' in src/router-define.ts.
- Added a new lock file (bun.lock) to manage dependencies.
- Introduced a new utility function in src/utils/random.ts to generate random IDs using the nanoid library.
2026-02-17 20:35:16 +08:00
xiongxiao
a5429f055a fix 2026-01-31 18:23:09 +08:00
7dcf53fb4f feat: 更新静态资源代理文档,优化路由和插件集成,提升代码可读性和功能性 2026-01-21 01:44:58 +08:00
78af49906e update 2026-01-13 14:02:03 +08:00
a76f1fb5d2 chore: update version to 0.0.49 and refactor WebSocket handling and type definitions 2025-12-21 20:37:50 +08:00
7975863af3 chore: update version to 0.0.47 and enhance WebSocket handling in server implementation 2025-12-21 03:26:15 +08:00
a6a7e74559 feat: Refactor server implementation to support Bun and Node environments
- Introduced `ServerNode` and `BunServer` classes to handle server logic for Node and Bun respectively.
- Updated `App` class to initialize the appropriate server based on the runtime environment.
- Enhanced `parseBody` function to handle request body parsing for both environments.
- Modified WebSocket handling to support Bun's WebSocket upgrade mechanism.
- Improved error handling and response structure across the server implementation.
- Added support for custom middleware in the server's request handling.
- Refactored server base functionality into `ServerBase` for better code organization.
- Updated type definitions to reflect changes in server options and listener handling.
- Added a new demo for testing the server functionality with various request types.
2025-12-20 05:11:51 +08:00
a997dad00b ifx: fix run ERROR 2025-12-09 14:08:42 +08:00
c692061b23 refactor router system and update version
- Simplified Route class by removing validator functionality
- Added AppRouteContext type for better type safety
- Added forward method to RouteContext for response handling
- Replaced queryRoute with run method for consistency
- Improved Server class with proper cleanup methods
- Updated Mini class to extend QueryRouterServer properly
- Removed lodash-es dependency and nanoid random import
- Added deprecation warnings for older methods
- Enhanced route handling and middleware execution

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-06 12:30:47 +08:00
ac32ff9d4a udpate 2025-10-24 03:04:06 +08:00
cc74dc6803 update add no path and random path 2025-10-22 17:05:20 +08:00
187900ad55 update: fix docs 2025-06-20 16:20:56 +08:00
d2a03fc959 temp 2025-05-25 00:05:20 +08:00
afad59e0ab feat: update to 0.0.12 2025-04-18 01:16:06 +08:00
17e515ad32 add deno mod 2025-04-17 23:54:21 +08:00
e8f7f61e09 fix: add json needSerialize 2025-03-06 22:45:11 +08:00
50c87043c8 type 定义修改 2024-12-14 08:52:42 +08:00
dc2f282f4b feat: 更新cookie模块和添加res和req在app的请求当中 2024-12-11 14:28:46 +08:00
c99d03550e fix: add http2 2024-11-27 18:49:55 +08:00
e0c7d40a9c add queryRoute for only return code data message 2024-11-26 19:25:43 +08:00
926c0a09cd feat: 更新sign的模块 2024-11-16 12:34:08 +08:00
780d744a16 feat: 设置默认的context 2024-11-12 11:19:11 +08:00
303c579e92 router添加 throw 2024-11-10 19:03:56 +08:00
158b12d811 feat: add export and import 2024-10-25 19:41:01 +08:00
733677f3f3 init router 2024-10-16 00:47:30 +08:00