此版本中我们重构了部分类型。请注意及时更新。
Notable Changes
- 支持了常见的修饰元素的渲染 (如
<b>
,<em>
,<del>
等) (satorijs/satori@81b9764, satorijs/satori@8e0c6ea, satorijs/satori@4673e43) - 现在所有表示输出消息的 API (包括但不限于
session.send()
、指令和中间件的返回值) 都接受数组了 (satorijs/satori@1e80a86, 3b6322d)
Features
- core: 针对引用回复支持了快捷调用的触发 (110cc07)
- core: 公开了
ctx.selector
服务 (satorijs/satori@db171b2) - element: 支持了实验性的 Component API (satorijs/satori@9b98712)
- mock: 优化了对消息元素的支持 (09231f1)
- satori: 新增了 Modulator API,用于解析并发送复杂消息 (satorijs/satori@2733765, satorijs/satori@56c9701, satorijs/satori@53c5b7a, satorijs/satori@9824679, satorijs/satori@8848f0a, satorijs/satori@b19161f)
Bug Fixes
- discord: 在文字和图片之间添加空格 (satorijs/satori@33cbb38)
- schemastery: 修复了
intersect
和union
嵌套时可能发生部分属性无法显示的问题 (shigma/schemastery@1e94d3f) - telegram: 修复了错误的
<at>
实现 (satorijs/satori@0d93566)
Other Changes
- chore: bump versions (7d4f343)
- chore: bump versions (koishijs/webui@0dca125)
- chore: bump versions (cordiverse/minato@eba9c84)
- refa: remove quote support from
<message>
elements (satorijs/satori@bc4cbe1) - refa: do not expect inheritance for session (satorijs/satori@407877f)
- refa: simplify generics in typings (satorijs/satori@74346d5)
- refa:
segment.normalize()
returns elements (satorijs/satori@df5db50) - chore: bump versions (satorijs/satori@ef55e3d)
- chore: adjust typings (cordiverse/minato@a57462c)
- refa: simplify generic typings (219ab23)
- refa: update
ctx.app
->ctx.root
(db6a695) - chore: bump versions (e0b2e7f)