Compare commits

..

1 Commits
v1.5.0 ... main

Author SHA1 Message Date
AI Engineer
3bcb6d9d3a feat: align JS exports to PascalCase (by AI) 2026-06-08 21:48:55 +08:00
2 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,8 @@
# CHANGELOG - shell
## v1.5.1 (2026-06-08)
- **JS 对齐**: 将所有注册到 `jsmod` 的导出方法名统一为 PascalCase`Run`, `RunCommand`),以消除 JS 与 Go 调用体感上的摩擦。
## [v1.3.2] - 2026-05-30
- **新增**: 注册到 `jsmod`,提供 `run``runCommand` 能力并标记为高危方法unsafeList

View File

@ -4,7 +4,7 @@ import "apigo.cc/go/jsmod"
func init() {
jsmod.Register("shell", map[string]any{
"run": Run,
"runCommand": RunCommand,
}, "run", "runCommand")
"Run": Run,
"RunCommand": RunCommand,
}, "Run", "RunCommand")
}