From 0397cf04cb7c0a2effa7232dbe28d2b3f10d5ebd Mon Sep 17 00:00:00 2001 From: tiye Date: Sat, 5 Sep 2026 22:00:25 +0800 Subject: [PATCH] chore: upgrade Calcit toolchain and dependencies --- calcit.cirru | 38 ++++++++++++++++++++------------------ deps.cirru | 12 ++++++------ package.json | 2 +- yarn.lock | 10 +++++----- 4 files changed, 32 insertions(+), 30 deletions(-) diff --git a/calcit.cirru b/calcit.cirru index ca8b8db..2e06a37 100644 --- a/calcit.cirru +++ b/calcit.cirru @@ -6,9 +6,9 @@ :modules $ [] |respo.calcit/ |lilac/ |memof/ |respo-ui.calcit/ |reel.calcit/ :type-slots $ {} :files $ {} - |app.comp.container $ %{} 'FileEntry + 'app.comp.container $ %{} 'FileEntry :defs $ {} - |comp-container $ %{} 'CodeEntry (:doc |) + 'comp-container $ %{} 'CodeEntry (:doc |) :code $ quote defcomp comp-container (reel) let @@ -46,29 +46,29 @@ reel.comp.reel :refer $ comp-reel reel.schema :as reel-schema app.config :refer $ dev? - |app.config $ %{} 'FileEntry + 'app.config $ %{} 'FileEntry :defs $ {} - |dev? $ %{} 'CodeEntry (:doc |) + 'dev? $ %{} 'CodeEntry (:doc |) :code $ quote def dev? $ = |dev option:unwrap-or (get-env |mode) |release :examples $ [] :schema $ :: 'Dynamic - |site $ %{} 'CodeEntry (:doc |) + 'site $ %{} 'CodeEntry (:doc |) :code $ quote def site $ {} (:storage-key |workflow) :examples $ [] :schema $ :: 'Dynamic :ns $ %{} 'NsEntry (:doc |) :code $ quote (ns app.config) - |app.main $ %{} 'FileEntry + 'app.main $ %{} 'FileEntry :defs $ {} - |*reel $ %{} 'CodeEntry (:doc |) + '*reel $ %{} 'CodeEntry (:doc |) :code $ quote defatom *reel $ -> reel-schema/reel (assoc :base schema/store) (assoc :store schema/store) :examples $ [] :schema $ :: 'Dynamic - |dispatch! $ %{} 'CodeEntry (:doc |) + 'dispatch! $ %{} 'CodeEntry (:doc |) :code $ quote defn dispatch! (op) when @@ -77,7 +77,7 @@ reset! *reel $ reel-updater updater @*reel op :examples $ [] :schema $ :: 'Dynamic - |main! $ %{} 'CodeEntry (:doc |) + 'main! $ %{} 'CodeEntry (:doc |) :code $ quote defn main! () println "|Running mode:" $ if config/dev? |dev |release @@ -87,7 +87,9 @@ listen-devtools! |k dispatch! js/window.addEventListener |beforeunload $ fn (event) (persist-storage!) js/window.addEventListener |visibilitychange $ fn (event) - if (= |hidden js/document.visibilityState) (persist-storage!) + if + = |hidden $ str js/document.visibilityState + persist-storage! flipped js/setInterval 60000 persist-storage! let raw $ .?!getItem js/localStorage (:storage-key config/site) @@ -97,12 +99,12 @@ println "|App started." :examples $ [] :schema $ :: 'Dynamic - |mount-target $ %{} 'CodeEntry (:doc |) + 'mount-target $ %{} 'CodeEntry (:doc |) :code $ quote def mount-target $ js/document.querySelector |.app :examples $ [] :schema $ :: 'Dynamic - |persist-storage! $ %{} 'CodeEntry (:doc |) + 'persist-storage! $ %{} 'CodeEntry (:doc |) :code $ quote defn persist-storage! () println "|Saved at" $ .!toISOString (new js/Date) @@ -110,7 +112,7 @@ format-cirru-edn $ :store @*reel :examples $ [] :schema $ :: 'Dynamic - |reload! $ %{} 'CodeEntry (:doc |) + 'reload! $ %{} 'CodeEntry (:doc |) :code $ quote defn reload! () $ if (nil? build-errors) do (remove-watch *reel :changes) (clear-cache!) @@ -120,7 +122,7 @@ hud! |error build-errors :examples $ [] :schema $ :: 'Dynamic - |render-app! $ %{} 'CodeEntry (:doc |) + 'render-app! $ %{} 'CodeEntry (:doc |) :code $ quote defn render-app! () $ render! mount-target (comp-container @*reel) dispatch! :examples $ [] @@ -138,9 +140,9 @@ app.config :as config |./calcit.build-errors :default build-errors |bottom-tip :default hud! - |app.schema $ %{} 'FileEntry + 'app.schema $ %{} 'FileEntry :defs $ {} - |store $ %{} 'CodeEntry (:doc |) + 'store $ %{} 'CodeEntry (:doc |) :code $ quote def store $ {} :states $ {} @@ -149,9 +151,9 @@ :schema $ :: 'Dynamic :ns $ %{} 'NsEntry (:doc |) :code $ quote (ns app.schema) - |app.updater $ %{} 'FileEntry + 'app.updater $ %{} 'FileEntry :defs $ {} - |updater $ %{} 'CodeEntry (:doc |) + 'updater $ %{} 'CodeEntry (:doc |) :code $ quote defn updater (store op op-id op-time) tag-match op diff --git a/deps.cirru b/deps.cirru index 7477d58..e8113bc 100644 --- a/deps.cirru +++ b/deps.cirru @@ -1,7 +1,7 @@ -{} (:calcit-version |0.13.29) - :dependencies $ {} (|Respo/reel.calcit |main) - |Respo/respo-ui.calcit |main - |Respo/respo.calcit |main - |calcit-lang/lilac |main - |calcit-lang/memof |main +{} (:calcit-version |0.13.77) (:version |0.0.1) + :dependencies $ {} (|Respo/reel.calcit |0.6.15) + |Respo/respo-ui.calcit |0.7.17 + |Respo/respo.calcit |0.16.93 + |calcit-lang/lilac |0.5.9 + |calcit-lang/memof |0.0.30 diff --git a/package.json b/package.json index 238c659..457fb93 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "packageManager": "yarn@4.12.0", "dependencies": { - "@calcit/procs": "^0.13.29" + "@calcit/procs": "0.13.77" }, "devDependencies": { "bottom-tip": "^0.1.5", diff --git a/yarn.lock b/yarn.lock index 6d6559c..04e6dab 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5,14 +5,14 @@ __metadata: version: 8 cacheKey: 10c0 -"@calcit/procs@npm:^0.13.29": - version: 0.13.29 - resolution: "@calcit/procs@npm:0.13.29" +"@calcit/procs@npm:0.13.77": + version: 0.13.77 + resolution: "@calcit/procs@npm:0.13.77" dependencies: "@calcit/ternary-tree": "npm:0.0.26" "@cirru/parser.ts": "npm:^0.0.9" "@cirru/writer.ts": "npm:^0.1.9" - checksum: 10c0/d8db7c62054dda827557f1bd8c8d7a777c17b40bd43f51fb3b39c57386d1c1a41dad449b641201daa05ad14c38a423601c803b5d9eb3557ae0173ae1a03f570a + checksum: 10c0/7f0d79ad9e7963728518c3754174136d7c2e906c7177785d633f622300be11b84a8f9ae659c5b93c9fb8f7d47e4fffba773bbe90a30a0f53fc3d1258ab850851 languageName: node linkType: hard @@ -563,7 +563,7 @@ __metadata: version: 0.0.0-use.local resolution: "root-workspace-0b6124@workspace:." dependencies: - "@calcit/procs": "npm:^0.13.29" + "@calcit/procs": "npm:0.13.77" bottom-tip: "npm:^0.1.5" vite: "npm:^4.4.11" languageName: unknown