Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ http://r.tiye.me/Memkits/diffview/

### 使用者影响

CLI 与 `@calcit/procs` 配对升级到正式 **0.47.1**,需要重新安装完整模块图、
CLI 与 `@calcit/procs` 配对升级到正式 **0.49.0**,需要重新安装完整模块图、
生成 JS 并完整刷新,不能跨工具链热重载旧 Reel。依赖使用正式 Reel **0.11.11**、
UI **0.16.7**、Respo **0.20.1**、JS-FFI **0.2.26**,传递 Router **0.12.19**。
不使用 main/hash 或 alpha,不关闭 Caps strict 解决冲突。
Expand All @@ -18,7 +18,8 @@ UI **0.16.7**、Respo **0.20.1**、JS-FFI **0.2.26**,传递 Router **0.12.19**

七个 DOM 回调采用 RespoEvent,并派发同一个具名 `Op` 类型。两个文本输入直接读 Struct 字段,
缺失宿主 value(JS undefined)按原缺失值合同回退为空串;显式 null/false/0 等非法
文本仍由原 String decoder 拒绝,不在失败时写入状态。旧 Map 事件夹具改用 Respo
文本仍由原 String decoder 拒绝,不在失败时写入状态。0.49 将该检查收敛到输入解码边界,
旧存档的 Map/Struct 转换同样标记为解码入口;不改变接受的数据。旧 Map 事件夹具改用 Respo
公开 event→EDN 适配,原六项测试及全部断言保留。

DiffChunk、StoreData 和 `Map Tag String` site 配置沿用。存档入口接受原 Map/Struct,
Expand All @@ -31,7 +32,7 @@ DiffChunk、StoreData 和 `Map Tag String` site 配置沿用。存档入口接

### 安装与原门禁

使用 Calcit 0.47.1、Caps 0.1.2、Node.js 24、Yarn 4.18.0。
使用 Calcit 0.49.0、Caps 0.1.2、Node.js 24、Yarn 4.18.0。
Caps 独立安装,见 [官方说明](https://github.com/calcit-lang/caps);Corepack/Yarn 不会安装它。
新解析 npm 包保留 60 分钟年龄门禁,无单包例外。lock 只更新 procs 配对;已有
undici Dependabot #48 单独保留。
Expand Down
21 changes: 10 additions & 11 deletions calcit.cirru
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,7 @@
hint-fn $ Fn respo.schema/RespoEvent
Fn app.schema/Op $ -> Unit
-> Unit
d! $ app.schema/Op :write-old $ let
value $ :value e
if
= :unit $ type-of value
, | $ decode-map-as value String
d! $ app.schema/Op :write-old $ input-text (:value e)
:spell-check false
:autofocus true
comp-divider
Expand All @@ -74,11 +70,7 @@
hint-fn $ Fn respo.schema/RespoEvent
Fn app.schema/Op $ -> Unit
-> Unit
d! $ app.schema/Op :write-new $ let
value $ :value e
if
= :unit $ type-of value
, | $ decode-map-as value String
d! $ app.schema/Op :write-new $ input-text (:value e)
:spellcheck false
if dev?
Some $ comp-typed-reel (>> states :reel) reel ({}) on-control!
Expand Down Expand Up @@ -163,6 +155,13 @@
d! $ app.schema/Op :clear-text
:examples $ []
:schema $ quote $ Fn Bool Bool Bool (-> respo.schema/Component)
'input-text $ %{} 'CodeEntry (:doc |)
:code $ quote $ defn input-text (value)
if
= :unit $ type-of value
, | $ decode-map-as value String
:examples $ []
:schema $ quote $ Fn Input (-> String) (:generics Input) (:open :decode)
'sort-by-line $ %{} 'CodeEntry (:doc |)
:code $ quote $ defn sort-by-line (text)
join-string
Expand Down Expand Up @@ -395,7 +394,7 @@
if (struct? raw) (&struct:to-map raw) raw
, 'app.schema/StoreData
:examples $ []
:schema $ quote $ Fn Input (-> StoreData) (:generics Input)
:schema $ quote $ Fn Input (-> StoreData) (:generics Input) (:open :decode)
'store $ %{} 'CodeEntry (:doc |)
:code $ quote $ def store
StoreData :states ({}) :page :editor :sorted? false :show-result? false :by-word? false :old-text | :new-text |
Expand Down
2 changes: 1 addition & 1 deletion deps.cirru
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

{} (:calcit-version |0.47.1)
{} (:calcit-version |0.49.0)
:version |0.1.5
:dependencies $ {} (|Respo/reel.calcit |0.11.11)
|Respo/respo-ui.calcit |0.16.7
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"vite": "8.3.3"
},
"dependencies": {
"@calcit/procs": "0.47.1",
"@calcit/procs": "0.49.0",
"diff": "^8.0.2"
}
}
10 changes: 5 additions & 5 deletions yarn.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.