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
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ http://r.tiye.me/Memkits/diffview/

### 使用者影响

CLI 与 `@calcit/procs` 配对升级到正式 **0.42.1**,需要重新安装完整模块图、
生成 JS 并完整刷新,不能跨工具链热重载旧 Reel。依赖使用正式 Reel **0.10.0**、
UI **0.15.2**、Respo **0.19.5**、JS-FFI **0.2.13**,传递 Router **0.12.2**。
CLI 与 `@calcit/procs` 配对升级到正式 **0.44.0**,需要重新安装完整模块图、
生成 JS 并完整刷新,不能跨工具链热重载旧 Reel。依赖使用正式 Reel **0.11.3**、
UI **0.15.5**、Respo **0.19.11**、JS-FFI **0.2.18**,传递 Router **0.12.9**。
不使用 main/hash 或 alpha,不关闭 Caps strict 解决冲突。

行/词差异、Sorted、Swap、Clear、原 ⌘E/⌘I/⌘K、存储 key `diffview` 和 Map 存档
Expand All @@ -23,15 +23,15 @@ UI **0.15.2**、Respo **0.19.5**、JS-FFI **0.2.13**,传递 Router **0.12.2**

DiffChunk、StoreData 和 `Map Tag String` site 配置沿用。存档入口接受原 Map/Struct,
通过原 decoder 构造本地 StoreData。应用事件构造具名 `Op` 后进入 Reel,
开发工具的控制操作仍由 Reel 解码。移除闲置的开放事件解码器,回归测试直接使用页面派发的具名事件。状态坐标使用 Respo 的 `CoordKey` union,
开发工具面板通过独立的具名 `reel.typed/Control` 回调直接应用控制操作;旧应用操作仍由 Reel 解码。移除闲置的开放事件解码器,回归测试直接使用页面派发的具名事件。状态坐标使用 Respo 的 `CoordKey` union,
状态节点载荷继续接受异构数据。

根组件构建与 render! 同处 managed memo frame。开发 Reel 直接使用 typed State,
两个开发工具条件子节点采用 Option,四处 spacer 保持宽 16。

### 安装与原门禁

使用 Calcit 0.42.1、Caps 0.1.1、Node.js 24、Yarn 4.18.0。
使用 Calcit 0.44.0、Caps 0.1.1、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: 15 additions & 6 deletions calcit.cirru
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
-> Unit
-> respo.schema/Component
'comp-container $ %{} 'CodeEntry (:doc |)
:code $ quote $ defcomp comp-container (reel)
:code $ quote $ defcomp comp-container (reel on-control!)
let
store $ :store reel
states $ :states store
Expand Down Expand Up @@ -81,13 +81,16 @@
, | $ decode-map-as value String
:spellcheck false
if dev?
Some $ comp-typed-reel (>> states :reel) reel $ {}
Some $ comp-typed-reel (>> states :reel) reel ({}) on-control!
, None
if dev?
Some $ comp-inspect |Store store $ {} (:bottom |0px)
, None
:examples $ []
:schema $ quote $ Fn (reel.typed/State app.schema/Op app.schema/StoreData) (-> respo.schema/Component) (:features :js-ffi)
:schema $ quote $ Fn (reel.typed/State app.schema/Op app.schema/StoreData)
Fn reel.typed/Control (-> Unit) (:features :io :state)
-> respo.schema/Component
:features :js-ffi :state
'comp-diff-view $ %{} 'CodeEntry (:doc |)
:code $ quote $ defcomp comp-diff-view (changes by-word?)
list->
Expand Down Expand Up @@ -299,6 +302,12 @@
:schema $ quote $ Fn
-> $ JsNullish respo.dom/DomElement
:features :js-ffi
'on-control! $ %{} 'CodeEntry (:doc |)
:code $ quote $ defn on-control! (control)
reset! *reel $ typed-reel/apply-control updater @*reel control
, &unit
:examples $ []
:schema $ quote $ Fn reel.typed/Control (-> Unit) (:features :state)
'persist-storage! $ %{} 'CodeEntry (:doc |)
:code $ quote $ defn persist-storage! ()
browser/storage-set!
Expand All @@ -318,13 +327,13 @@
hud! |error build-errors
, &unit
:examples $ []
:schema $ quote $ Fn (-> Unit) (:features :state)
:schema $ quote $ Fn (-> Unit) (:features :io :state)
'render-app! $ %{} 'CodeEntry (:doc |)
:code $ quote $ defn render-app! ()
with-memo-frame $ fn () $ render! (mount-target) (comp-container @*reel)
with-memo-frame $ fn () $ render! (mount-target) (comp-container @*reel on-control!)
fn (op) (dispatch! op)
:examples $ []
:schema $ quote $ Fn (-> Unit) (:features :state)
:schema $ quote $ Fn (-> Unit) (:features :io :state)
'repeat! $ %{} 'CodeEntry (:doc |)
:code $ quote $ defn repeat! (duration cb)
browser/set-timeout!
Expand Down
10 changes: 5 additions & 5 deletions deps.cirru
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

{} (:calcit-version |0.43.0)
{} (:calcit-version |0.44.0)
:version |0.1.5
:dependencies $ {} (|Respo/reel.calcit |0.10.0)
|Respo/respo-ui.calcit |0.15.2
|Respo/respo.calcit |0.19.5
|calcit-lang/js-ffi |0.2.13
:dependencies $ {} (|Respo/reel.calcit |0.11.3)
|Respo/respo-ui.calcit |0.15.5
|Respo/respo.calcit |0.19.11
|calcit-lang/js-ffi |0.2.18
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.43.0",
"@calcit/procs": "0.44.0",
"diff": "^8.0.2"
}
}
5 changes: 3 additions & 2 deletions scripts/upgrade.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ const unwrap = clt.option_$o_unwrap;
const read = (value, key) => unwrap(clt.get(value, key));
const op = (name, ...args) => clt._PCT__$o__$o_(Op, init_tags([name])[name], ...args);
const apply = (store, name, ...args) => updater(store, op(name, ...args), "test", 0);
const render = (store) => comp_container(new_reel(store));
const onControl = () => {};
const render = (store) => comp_container(new_reel(store), onControl);

function handlers(node, kind) {
if (component_$q_(node)) return handlers(unwrap(component_tree(node)), kind);
Expand All @@ -38,7 +39,7 @@ test("npm diff chunks decode into typed Calcit data", () => {
);
const reel = new_reel(store);

assert.ok(comp_container(reel));
assert.ok(comp_container(reel, onControl));
});

test("line and word differences render added and removed content", () => {
Expand Down
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.