Compare commits

..

No commits in common. "main" and "v1.5.0" have entirely different histories.
main ... v1.5.0

2 changed files with 8 additions and 11 deletions

View File

@ -1,8 +1,5 @@
# CHANGELOG # CHANGELOG
## v1.5.1 (2026-06-08) ## [Unreleased]
- **JS 对齐**: 将所有注册到 `jsmod` 的导出方法名统一为 PascalCase`Int`, `FastInt`, `Byte`),以消除 JS 与 Go 调用体感上的摩擦。
## v1.5.0 (2026-05-10)
- 优化 `Bytes` 函数,提升随机生成健壮性。 - 优化 `Bytes` 函数,提升随机生成健壮性。
- 完善 `TEST.md` 性能基准报告与功能测试覆盖。 - 完善 `TEST.md` 性能基准报告与功能测试覆盖。

View File

@ -6,20 +6,20 @@ import (
func init() { func init() {
jsmod.Register("rand", map[string]any{ jsmod.Register("rand", map[string]any{
"Int": func(min, max int64) int64 { "int": func(min, max int64) int64 {
return Int(min, max) return Int(min, max)
}, },
"FastInt": func(min, max int64) int64 { "fastInt": func(min, max int64) int64 {
return FastInt(min, max) return FastInt(min, max)
}, },
"Float": func(min, max float64) float64 { "float": func(min, max float64) float64 {
return Float(min, max) return Float(min, max)
}, },
"FastFloat": func(min, max float64) float64 { "fastFloat": func(min, max float64) float64 {
return FastFloat(min, max) return FastFloat(min, max)
}, },
"Byte": Byte, "byte": Byte,
"Bytes": Bytes, "bytes": Bytes,
"Perm": Perm, "perm": Perm,
}) })
} }