json-render 0.21.3 修复重复流操作与补丁状态漂移
json-render 0.21.3 于 10 月 24 日发布:流编译器不再丢弃内容相同的连续 JSONL 操作,YAML move/copy 会同步后续编辑所依据的工作状态,并限制继承属性与越界数组路径。
为什么值得关注
生成式 UI 的每条流操作都代表一次状态转换。若用文本去重、让复制对象共享引用,或沿原型链解析路径,界面可能漏项、保留已删除内容,甚至让补丁影响预期范围之外的对象。
技术细节
此前两个相同的 add /items/- 会被 processedLines 集合当成重复文本,第二项被跳过;新版逐行执行。YAML 转换器现在把每次 yaml-patch 应用到工作规范,克隆复制值与发出值,让后续 yaml-edit 能正确删除或修改 move/copy 的结果,并给复制增长设限。路径工具只遍历自有属性与稠密数组,忽略继承路径和越界索引。前一天的 0.21.2 还修复了非标识符对象键代码生成、生产环境 Devtools、服务端 PDF repeat 容器和无 setter 的 React action。
适合哪些读者
使用 json-render 流式规范、YAML 补丁、React/PDF 渲染或模型生成对象键的前端与代理平台团队
原始来源
- json-render official releases and pull requests ↗github.com
- YAML patch-state and path-boundary fix ↗github.com
- Repeated SpecStream JSONL operations fix ↗github.com
- Official v0.21.2 release — 2026-10-23 ↗github.com
修订与更正记录 (1)
— Published a verified official patch sequence with direct Generative UI state-integrity impact. The October 24 release date, repeated-stream bug, YAML move/copy state drift, cloning and path-boundary behavior were confirmed in the release and merged pull requests; limits were kept explicit.