Dev coolfish#38
Merged
Merged
Conversation
- 实现 Box3JSHttp 绑定,提供同步 http.fetch() 方法 - 支持标准 HTTP 方法(GET/POST/PUT/DELETE/PATCH/HEAD/OPTIONS) - 添加请求配置选项,包括 headers、body、timeout、responseType - 包含响应处理,支持自动解析和大小限制 - 添加 Response 对象,提供 json()、text()、arrayBuffer() 方法 - 文档说明 Rhino 引擎限制导致的 API 差异 docs: 更新文档以适配新版 HTTP API - 在 README 文件的 API 概览表中添加 http API - 更新 Box3 API 对比表,补充实现细节 - 在 API 快速参考中添加网络请求章节 - 统一格式化 Markdown 表格,保证对齐规范 refactor: 改进脚本引擎中的正则表达式处理 - 添加纯 JS 正则辅助函数,解决 Rhino NativeRegExp 在 Minecraft 类加载器中的加载问题 - 实现 regexSplit、regexMatch、regexReplace、regexTest 和 regexExec 辅助函数 - 添加字符类匹配函数(digit、whitespace、word)
- 为 Box3JSHttp 增加 async/await 功能,支持 onResponse/onError 回调 - 同时支持同步(阻塞)和异步(非阻塞)两种请求模式 - 使用 MinecraftServer.execute 将回调投递到主线程执行 - 更新 TypeScript 类型定义,补充新的异步选项及相关文档 - 修改构造函数,使其接收 MinecraftServer 实例和引擎引用
- 将 TypeScript 类型定义拆分为共享、服务端、客户端专用文件 - 添加独立的服务端和客户端入口点(src/server/app.ts 和 src/client/app.ts) - 实现客户端 API,支持键盘输入、UI、聊天及远程事件 - 添加服务端与客户端之间的双向事件通道(remoteChannel) - 更新构建系统,生成独立的 server.js 和 client.js 打包文件 - 增强文档,补充客户端 API 参考及使用示例 - 添加 SQLite 可用性检查,并实现优雅的降级处理
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.