Skip to content

v1.2.0

@fzred fzred tagged this 31 May 00:09
- 保留朴素精度算法,修复 div/mul/add/sub 边界 bug(不引入 BigInt,超 2^53 退化原生)
- 新增 pow/abs/neg/mod、floor/ceil、cmp/eq/gt/lt/gte/lte、max/min/sum;四则支持多参数
- ESM + CJS + UMD 产物 + 类型定义;require() 仍返回可调用 calc
- 可定位错误:ParseError 可视化指针 + position/expression,除零带操作数
- Vitest(57 用例) + 编译产物冒烟 + Biome + GitHub Actions
Assets 2
Loading