Repository navigation
升级 Calcit 0.36.0 并迁移到当前写法 / Upgrade to Calcit 0.36.0 - #61
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Requested by Jon
把 Termina 从 Calcit 0.24.3 升级到 0.36.0,依赖升级到 Respo 0.19.4、Respo UI 0.15.1、Alerts 0.14.0、Cumulo Reel 0.3.1、recollect 0.3.2 和 Fuzzy Filter 0.0.18。
这个 PR 接着之前未推送的 29 个迁移提交(到 0.30.1)继续做,最后一个提交再升到 0.36.0。
合并前提:
mvc-works/fuzzy-filter的 main 已经是 0.0.18,CI 也是绿的,但还没有打 tag。tag 发布前,这个 PR 的 CI 会在解析依赖时失败。写法迁移
app.schema/Op并绑定 page 入口的:dispatch-optype slot,组件改用app.schema/Op :op。事件回调写成Fn respo.schema/RespoEvent (Fn *dispatch-op $ -> Unit) (-> Unit);Alerts 插件回调要求任意 enum,那两个组件用AnyEnum。Fn写法,回调参数写成AnyFn。app.schema/field-or和path-or读取可缺省字段(get-in现在返回Result)。session/enlarge清空时删除字段,而不是写入 nil。app.schema/event-value读取,同时兼容RespoEvent和测试里的 Map 事件。slice去掉多余的结束参数,=<换成space-x/space-y,条件子节点返回 Option,样式参数显式解码为TextStyle。行为修复
~/.config/termina.cirru里,有一条进程记录带着残留的 string 键,迁移前的代码载入它时服务端会直接崩溃。现在载入时会丢掉这类键,并补了单测。session and account transitions的一处断言改为检查字段是否存在,对应上面session/enlarge的行为变化。验证
本地使用 main 上的 Fuzzy Filter(321164cf)验证:
--check-only(385 + 98 个定义)、fix --workflow strict --verify,以及dynamic-method、deprecated-call清零,均通过calcit test --require-match:5/5 通过node --test tests/*.test.mjs:25/25 通过yarn compile-server、yarn compile-page、yarn release-page:通过TERMINA_STORAGE_FILE指向副本,原文件没有动过)启动服务端,注册、查看已有进程、运行echo命令并看到输出,都正常Strict workflow 仍列出待审类型项(113 条 schema-dynamic、66 条 code-nil),这个 PR 没有处理。npm 发布流程没有在本地跑过。
🤖 Generated with Claude Code