Skip to content

chore: upgrade to Calcit 0.32.1 / 升级到 Calcit 0.32.1 - #88

Merged
tiye merged 1 commit into
mainfrom
chore/upgrade-calcit-0.32.1
Oct 31, 2026
Merged

tiye merged 1 commit into
mainfrom
chore/upgrade-calcit-0.32.1

Conversation

@tiye

@tiye tiye commented Oct 31, 2026

Copy link
Copy Markdown
Member

Requested by Jon · project thread

生产 server 已经是 Calcit 0.32.x,加载快照时报 E_LEGACY_TYPE_SYNTAX,server 起不来,前端 websocket 随即断开。本 PR 把项目整体升级到 0.32.1。

改动

  • CLI、deps.cirru 工具链和 @calcit/procs 成对升级到 0.32.1(.yarnrc.yml 预批准版本、yarn.lock、README 同步)。
  • 所有依赖库升级到对应 0.32.x 的版本:Respo 0.17.1、respo-ui 0.9.0、respo-message 0.1.0-alpha.4、respo-feather 0.5.0-alpha.6、alerts 0.11.0-alpha.4、cumulo-reel 0.1.0-alpha.3、cumulo-util 0.0.35、recollect 0.1.0-alpha.5、ws-edn 0.0.51、js-ffi 0.2.9、calcit-wss 0.2.39、calcit.std 0.2.46、memof 0.0.42。
  • calcit edit format 把 106 处旧类型写法迁移为 quote 精简写法,行为不变。
  • ws-edn 0.0.51 把 socket js-cast 为 BrowserWebSocketHost,要求有 onopen/onmessage/onclose/onerror 字段;凭据宿主测试里的假 socket 补上这些 null 字段(与真实 WebSocket 一致)。

验证(本地 calcit 0.32.1)

  • calcit fix --workflow strict --verify、edit format 无改动、两个入口 --check-only、两组 --ns 公开定义检查全部通过。
  • yarn test-boundaries 通过(79 项原生测试、63 项生成 JS 测试和各宿主合同)。
  • 用一份真实格式的 storage 启动 native server,release 构建的前端通过 Chromium 连接:存储迁移、登录、Data 页、新建并保存日记正常;Ctrl-C 持久化后重启再加载也正常,websocket 不断开。

部署后需要在服务器上用 calcit 0.32.1 重新 caps 并重启 server。


Generated by Claude Code

The production server already runs Calcit 0.32.x, which refuses to load
the snapshot with E_LEGACY_TYPE_SYNTAX, so the websocket never comes up.

- Pair the CLI, deps.cirru toolchain and @calcit/procs at 0.32.1.
- Move every library to its 0.32.x release (Respo 0.17.1, respo-ui 0.9.0,
  ws-edn 0.0.51, recollect 0.1.0-alpha.5, cumulo-reel 0.1.0-alpha.3, ...).
- Run `calcit edit format` to migrate type signatures to the compact
  quote syntax; no behaviour change.
- ws-edn 0.0.51 js-casts the socket to BrowserWebSocketHost, which needs
  the onopen/onmessage/onclose/onerror fields; give the fake sockets in
  the credentials host test those null fields like a real WebSocket.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019bPduk2UQJUue5WCjg1M3d
@tiye tiye self-assigned this Oct 31, 2026
@tiye
tiye merged commit f39422d into main Oct 31, 2026
1 check passed
@tiye
tiye deleted the chore/upgrade-calcit-0.32.1 branch October 31, 2026 05:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants