Skip to content

Commit 53be255

Browse files
authored
迁移 Calcit 0.31.0 并明确开放 Enum 派发合同 (#55)
1 parent a3adf27 commit 53be255

6 files changed

Lines changed: 38 additions & 16 deletions

File tree

‎.github/workflows/upload.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
test ! -e package.cirru
5555
calcit calcit.cirru edit format
5656
if ! git diff --exit-code --quiet -- calcit.cirru; then
57-
echo '::error file=calcit.cirru::Snapshot is not canonical. With Calcit 0.30.1, run calcit calcit.cirru edit format and inspect definitions through calcit query def.'
57+
echo '::error file=calcit.cirru::Snapshot is not canonical. With Calcit 0.31.0, run calcit calcit.cirru edit format and inspect definitions through calcit query def.'
5858
exit 1
5959
fi
6060
calcit calcit.cirru --check-only --all-defs --format json

‎README.md‎

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,24 @@ Text diff
33

44
> a diffing library for [diffview](https://github.com/Memkits/diffview). WIP...
55
6-
### 本轮完整正式依赖图:用户影响
6+
### Calcit 0.31.0 迁移:用户影响
7+
8+
CLI 与 JS runtime 配对正式 `0.31.0`。请重新安装依赖、生成 JS 并完整刷新,
9+
不要跨工具链热重载保留旧 Reel 实例。UI 依赖使用已发布的 Respo `0.17.0-alpha.4`、
10+
Reel `0.7.0-alpha.4`、UI `0.9.0-alpha.4`、Markdown `0.5.0-alpha.4` 和
11+
JS-FFI `0.2.7`;这不是全部依赖均为稳定版的声明。
12+
13+
Respo 的 `dispatch-op` 槽绑定到显式声明为 `Enum` 的 `DispatchOp` 类型别名。
14+
别名的代表值不会派发;业务操作与 Reel 控制仍使用原有匿名 Enum,运行时检查、
15+
公开 updater、Map 存档和 HUD 保持原合同。移除已失效的 `reel.util/generate-id!`
16+
导入,调用仍解析为内置 `generate-id!`。不新增名义操作包装或强转。
17+
18+
完整 strict、原业务测试、构建和实际页面验收必须分别通过;具体结果以迁移 PR
19+
精确提交为准。保留原类型门禁、COS 内置校验及部署路径。
20+
21+
### 历史:0.30.1 完整依赖图
22+
23+
724

825
CLI/procs 继续配对正式 `0.30.1`;直接依赖升级为已发布的 Reel `0.6.42`、
926
Markdown `0.4.60`、UI `0.8.1`、Respo `0.16.126`、JS-FFI `0.2.6`。

‎calcit.cirru‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
{} (:description |Browser-app) (:init-fn 'text-diff.main/main!) (:mode :js) (:reload-fn 'text-diff.main/reload!) (:target :browser)
77
:feature-policy $ {}
88
:modules $ [] |respo.calcit/ |respo-ui.calcit/ |respo-markdown.calcit/ |reel.calcit/ |js-ffi/
9-
:type-slots $ {}
9+
:type-slots $ {} $ :dispatch-op |text-diff.schema/DispatchOp
1010
:files $ {}
1111
'text-diff.comp.container $ %{} 'FileEntry
1212
:defs $ {} $ 'comp-container
@@ -190,16 +190,21 @@
190190
text-diff.comp.container :refer $ comp-container
191191
text-diff.updater :refer $ updater
192192
text-diff.schema :as schema
193-
reel.util :refer $ listen-devtools! generate-id!
194193
text-diff.config :as config
195194
|./calcit.build-errors :default build-errors
196195
|bottom-tip :default hud!
197196
js-ffi.browser :as browser
198197
respo.ffi.browser :as respo-browser
199198
reel.typed :as typed
200199
js-ffi.shared :as shared
200+
reel.util :refer $ listen-devtools!
201201
'text-diff.schema $ %{} 'FileEntry
202202
:defs $ {}
203+
'DispatchOp $ %{} 'CodeEntry
204+
:doc "|Open Enum alias for Respo dispatch-op: application operations and Reel controls retain their existing tags and payloads. This representative value is not dispatched; the explicit Enum schema supplies the slot contract. dispatch! and updater keep their existing runtime checks."
205+
:code $ quote $ def DispatchOp (:: :unhandled)
206+
:examples $ []
207+
:schema $ :: 'Enum
203208
'Store $ %{} 'CodeEntry (:doc |)
204209
:code $ quote $ defstruct Store
205210
:states $ :: 'Map 'Tag 'Dynamic

‎deps.cirru‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

2-
{} (:calcit-version |0.30.1)
2+
{} (:calcit-version |0.31.0)
33
:version |0.1.3
4-
:dependencies $ {} (|Respo/reel.calcit |0.6.42)
5-
|Respo/respo-markdown.calcit |0.4.60
6-
|Respo/respo-ui.calcit |0.8.1
7-
|Respo/respo.calcit |0.16.126
8-
|calcit-lang/js-ffi |0.2.6
4+
:dependencies $ {} (|Respo/reel.calcit |0.7.0-alpha.4)
5+
|Respo/respo-markdown.calcit |0.5.0-alpha.4
6+
|Respo/respo-ui.calcit |0.9.0-alpha.4
7+
|Respo/respo.calcit |0.17.0-alpha.4
8+
|calcit-lang/js-ffi |0.2.7

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"vite": "^8.3.1"
2121
},
2222
"dependencies": {
23-
"@calcit/procs": "0.30.1",
23+
"@calcit/procs": "0.31.0",
2424
"cirru-color": "^0.2.4",
2525
"copy-text-to-clipboard": "^3.2.2",
2626
"dayjs": "^1.11.20",

‎yarn.lock‎

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)