Repository navigation
升级正式 Calcit 0.27,迁移复数运算契约与快照格式 - #2
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动
compact.cirru迁移为官方格式的calcit.cirru/deps.cirru,删除旧文件并忽略生成目录。@calcit/procs0.27.0、caps 0.1.1、Node 24 和 Yarn 4.18.0;更新锁文件和 CI,使用正式 Action 版本,不依赖 hash 或 alpha。phlox.complex命名空间声明,极坐标运算改用跨 native/JS 的cos/sin。conjugate对额外元素的保留行为及divide-by的 first/last 语义。List<Number>不证明列表长度,调用方仍须传入有效复数对。calcit-test依赖改为内置定义附属测试,现有入口在 native 和 JS 上执行同一组八种运算断言。没有增加检查脚本、测试框架或 concurrently。调用方需要迁移
这不是无破坏性的版本替换:旧
&+、&-、&*、&/分别改为add、subtract、multiply、divide,避免与当前内置 proc 名称冲突。其余四个公开函数保持原名。README 已列出新调用方式。模块版本仍为 0.0.1,本 PR 不代表已发布新版本。该仓库是纯模块,没有前端资源,不添加 COS/CDN 或服务器部署。
本地验证
caps --ci --strict/caps verify --toolchain、yarn install --immutable通过。yarn test通过:定义附属测试 1/1,native 和实际生成 JS 的 Node 入口都完成八种运算断言。git diff --check通过。js-out/、dist/、package.cirru,旧compact.cirru已删除。未进行发布或部署。远端验证
最新 head
4aebf73a9dccabaa8ae1eea66a5a32cd12852252的 Actions 37005249332 已成功。日志确认严格依赖/工具链、canonical format、main/reload、14/14 公开契约和 native/JS 运算入口实际执行通过。当前未合并、未发布。