Compare commits

..

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

4 changed files with 9 additions and 12 deletions

View File

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

4
go.mod
View File

@ -2,6 +2,6 @@ module apigo.cc/go/shell
go 1.25.0 go 1.25.0
require apigo.cc/go/cast v1.5.0 require apigo.cc/go/cast v1.3.3
require apigo.cc/go/jsmod v1.5.0 require apigo.cc/go/jsmod v1.0.0

8
go.sum
View File

@ -1,4 +1,4 @@
apigo.cc/go/cast v1.5.0 h1:UBGJtFQ8eJPMQXs37cUgqd7YQo1zI9opuSDBDmn2/pE= apigo.cc/go/cast v1.3.3 h1:aln5eDR5DZVWVzZ/y5SJh1gQNgWv2sT82I25NaO9g34=
apigo.cc/go/cast v1.5.0/go.mod h1:z2GW5p5WCZGEqVVIJUdhl232vRbLf2Qu4EDlEakX/D8= apigo.cc/go/cast v1.3.3/go.mod h1:lGlwImiOvHxG7buyMWhFzcdvQzmSaoKbmr7bcDfUpHk=
apigo.cc/go/jsmod v1.5.0 h1:JgQtJNiJWy1NOP9AzE8NX5VXJkpO/x3GqLsCCSny5Ec= apigo.cc/go/jsmod v1.0.0 h1:lVQMq0tCno4kbHlQ3j5wzsm+v24J+bznIoHxpton0pE=
apigo.cc/go/jsmod v1.5.0/go.mod h1:bmyeZtOAP/j5am+YRnaiM89smysK24K7ebk0koFtsSw= apigo.cc/go/jsmod v1.0.0/go.mod h1:bmyeZtOAP/j5am+YRnaiM89smysK24K7ebk0koFtsSw=

View File

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