Skip to content

升级 Calcit 并修正 shader 回调类型 - #44

Merged
tiye merged 1 commit into
mainfrom
chore/calcit-0510
Nov 29, 2026
Merged

tiye merged 1 commit into
mainfrom
chore/calcit-0510

Conversation

@tiye

@tiye tiye commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

使用者需要注意

Calcit Demo 配对正式 CLI / @calcit/procs 0.51.0 和 HUD Nav 0.0.16,升级后需重装依赖并重新构建。listenShaderError 的 TypeScript 回调类型修正为 string | null:成功时原本就会传入 null,启用严格空值检查的调用方需要处理这一分支。

改动与风险

  • 对齐正式依赖图,使用 JS 空值检查处理 shader 结果与热更新错误,继续通过页面 hud! 展示错误。
  • 修正 TypeScript 声明使其与已有运行行为一致;不改变 shader 编译、控制协议或生产部署路径。

验证

  • 0.51 严格依赖安装、274 定义、strict、动态方法/弃用门禁、TypeScript 声明及前端构建通过。
  • 合成 shader 结果实际回调验证成功时 null 和失败时文本;本轮未在真实 WebGPU 设备或真实 shader 编译错误上验收。
  • Linux CI 以本 PR Actions 为准;PR 工作流不执行生产上传或部署。

Summary by CodeRabbit

  • Bug Fixes
    • Improved shader error and reload handling when no error value is present, helping avoid incorrect error states.
  • Documentation
    • Clarified that shader error notifications may return null when compilation succeeds.
    • Updated documented tool and UI library versions, including the HUD navigation release.
  • Chores
    • Updated the project’s supporting tools and UI libraries to newer versions.

@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The project updates Calcit-related dependency versions. Shader-error callback typing and application checks now account for JavaScript nullish values.

Changes

Calcit and shader-error updates

Layer / File(s) Summary
Update Calcit-related dependencies
deps.cirru, package.json
Calcit, @calcit/procs, Respo reel, respo-ui, Respo, and HUD Nav versions are updated. The project version remains unchanged.
Handle null shader-error values
src/control.mts, calcit.cirru, README.md
listenShaderError accepts a string or null. Shader-error display and reload checks use JavaScript nullish-value handling. The README documents the callback type and updated versions.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Merge Risk: Minimal · up to b10b6 · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title is in Chinese and says the PR upgrades Calcit and corrects the shader callback type. The changeset does both: deps.cirru and package.json move @calcit/procs and Calcit to 0.51.0 with related…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title is in Chinese and says the PR upgrades Calcit and corrects the shader callback type. The changeset does both: deps.cirru and package.json move @calcit/procs and Calcit to 0.51.0 with related dependency bumps, and src/control.mts changes listenShaderError's callback to accept string | null. The title covers the two main changes, so it passes.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 05600a56-3526-44b3-bc4c-f4dfd0d65851
Commits

Reviewing files that changed from the base of the PR and between 1b1c4d0 and b10b632.

Files ignored due to path filters: 1

  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
Files selected for processing: 5

  • README.md
  • calcit.cirru
  • deps.cirru
  • package.json
  • src/control.mts

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@tiye
tiye merged commit cc81486 into main Nov 29, 2026
1 check passed
@tiye
tiye deleted the chore/calcit-0510 branch November 29, 2026 05:03
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.

1 participant