Files
ssw-platform/CHANGELOG.md
T
admin 6d6e0ee329 feat(platform): 标准平台包 v0.3.0 —— 业务自带状态的可组合装配
- Db 暴露同一个 Arc<PGlite>(Db::pg());Platform 两阶段装配 Assembled/Finish
- Extras 加自带状态路由 / 可替换兜底 / 全局层,with_state 前移;默认路径行为不变
- 新增探针 business_composition_it 与闸门 AR19(反自证 14/14)
- 文档:CHANGELOG / known-limitations / 需求稿实施记录与勘误
2026-11-04 18:20:03 +08:00

16 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# CHANGELOG
## v0.3.0(2026-11-04)
- 新增两阶段装配 `Platform::assemble()` / `Assembled::finish()` / `serve()` 与 `Finish` 注入点:自带状态类型的业务路由可挂进平台唯一装配链,业务状态可在开库后构造。
- `Db` 改用 `Arc<PGlite>` 并公开 `pg()` ⇒ 业务仓与平台共用一个库句柄,不必另开 PGlite;`Db::clone()` 语义不变。
- `Extras` 新增自带状态路由 / 可替换兜底 / 全局 middleware 层三个注入点;`with_state` 前移到 merge 之前,`build_app()` 默认路径行为不变。
- 面 A / 面 B、`base_*` 表、cipher、602 码、panic ⇒ 200 + `code=400` 全部保持不变;`v0.2.0` 的公开签名未改。
- 新增集成探针 `business_composition_it.rs` 与闸门 AR19(唯一装配链,反自证 14/14);`sspf` 版本 0.3.0。
- 已知局限:`Db::pg()` 绕过 `Db.lock` 时,平台与业务各自的多语句事务可能交错;业务 413 响应由平台改写为信封。见 `docs/known-limitations.md`。
## v0.2.0(2026-11-04)
- 新增门面 crate `sspf`:业务仓唯一依赖,`Platform` builder + `runtime` 启动动作;`sspf-admin` 退化为 CLI 薄壳。
- 4 个示例包降为 `example-packs` feature ⇒ 默认依赖树不含 `sspf-pack-*`;新增 AR17 / AR18 与仓外消费探针。