Koishi 4.17.0-beta.0
Pre-release这是一个预发布版本,主要涉及底层架构调整,并未包含新功能。建议升级前备份整个目录,并确保同时升级所有依赖。
Notable Changes
-
cordis: 支持了函数式服务,只需实现
Context.invoke
方法,即可支持将服务以方法的形式暴露在上下文对象上 (cordiverse/cordis@b6197dd, cordiverse/cordis@f692eb8, cordiverse/cordis@4fbf8bf, cordiverse/cordis@cab9ce1) -
undios: 使用
fetch
API 重构了http
服务,并以 undios 命名发布为插件 (#1181) (cordiverse/http@ce0d4b3, cordiverse/http@565250f, cordiverse/http@6f0776b, cordiverse/http@a0dc5f8, cordiverse/http@c2ff28a, cordiverse/http@67850ce, cordiverse/http@1e74c3c, cordiverse/http@1e2d09f, cordiverse/http@e918da6, satorijs/satori@cf899ea, satorijs/satori@5841dbd)- 与代理相关的功能被迁移到了 undios-proxy-agent 包中,目前内置于整合包中 (cordiverse/http@fea2f99, cordiverse/http@45a1438, cordiverse/http@94a4248, cordiverse/http@e6dc7e3, cordiverse/http@d89a750, ac33e97)
- 与文件相关的 API 被迁移到了 undios-file 包中,目前内置于 Satori 中 (cordiverse/http@f0a3dd1, cordiverse/http@c07af16)
-
dumble: 发布了一个名为 dumble 的工具,该工具用于零配置构建 TypeScript 项目,现已内置于模板项目工作区中,作为
build
命令的一部分 (cordiverse/dumble@f053f90, cordiverse/dumble@bd68eef)- 支持了打包
devDependencies
(cordiverse/dumble@97e886c) - 对源文件目录中的
.d.ts
文件进行复制而非编译 (cordiverse/dumble@8d52904) - 优化了路径解析的性能和行为 (cordiverse/dumble@d541bab, cordiverse/dumble@c65721a)
- 输出文件中的文件名现在将基于当前项目的路径而非工作区根路径 (cordiverse/dumble@f73f282)
- 支持了打包
Features
- core: 实验性地支持了
ctx.intercept()
相关功能 (cordiverse/cordis@baea8d7) - logger: 基于函数式服务特性,支持了
ctx.logger.info()
等 API (cordiverse/cordis@9d11895)
Changes on Cordis Next
以下变更属于开发中的 Cordis 生态,并不会影响 Koishi 的行为,但会在未来版本替换 Koishi 的相关实现。
- hmr: 支持了配置项国际化 (cordiverse/cordis@69e5dd6)
Other Changes
- chore: bump versions (3e79a4f)
- refa: separate builder class (cordiverse/minato@3a356d2)
- chore: migrate to core monorepo, rename to http (cordiverse/http@4885102)
- chore: initial commit (cordiverse/dumble@179e1c2)
- chore: setup project (cordiverse/dumble@744f949)
- test: add example node-classic (cordiverse/dumble@5ec633f)
- test: add example node-next (cordiverse/dumble@b8fb407)
- test: add example node-hybrid (cordiverse/dumble@6f4c67a)
- test: add example cross-platform (cordiverse/dumble@06952a1)
- test: add tsc output (cordiverse/dumble@88a8577)
- test: add example wildcard (cordiverse/dumble@6486547)
- refa: rename package folders (cordiverse/http@1af22fe)
- chore: add readme (cordiverse/http@06ef47a)
- test: setup test workspace (cordiverse/dumble@a94bdd6)
- chore: setup eslint (cordiverse/dumble@8c581c0)
- chore: setup codecov (cordiverse/dumble@688855d)
- docs: add setup (cordiverse/dumble@b0a91f8)
- docs: add credits (cordiverse/dumble@838607d)
- chore: bump versions (cordiverse/cordis@1ea5ddc)