Commit 2a4e41c
committed
feat!: migrate patch command to @socketsecurity/socket-patch@1.2.0
BREAKING CHANGE: Replace custom built-in patch implementation with external
@socketsecurity/socket-patch package, following the same integration pattern
as Coana and SFW.
Changes:
- Add socket-patch@1.2.0 to external-tools.json
- Create socket-patch spawn utility (src/utils/socket-patch/spawn.mts)
- Add SOCKET_CLI_SOCKET_PATCH_LOCAL_PATH environment variable support
- Replace 30+ custom patch files with simple wrapper that delegates to socket-patch
- Move old custom implementation to patch-old/ for reference
- Add INLINED_SOCKET_CLI_SOCKET_PATCH_VERSION to env constants
BREAKING CHANGE: External tool version getters now throw errors instead of
returning empty strings when versions are missing from external-tools.json.
This affects getCoanaVersion(), getSwfVersion(), and getSocketPatchVersion().
Benefits:
- Consistent external tool integration pattern across CLI
- Reduces maintenance burden (socket-patch maintained separately)
- Users get socket-patch updates without CLI releases
- Simplified codebase (~30 files → 1 wrapper)
Ported from v1.x commits:
- 44655ac: Use @socketsecurity/socket-patch for patch command (#987)
- dfe019d: feat: update @socketsecurity/socket-patch to v1.2.0 (#1030)1 parent 3712e70 commit 2a4e41c
File tree
39 files changed
+250
-37
lines changed- packages/cli
- src
- commands
- patch-old
- patch
- constants
- env
- utils/socket-patch
39 files changed
+250
-37
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
27 | 33 | | |
28 | 34 | | |
29 | 35 | | |
| |||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
0 commit comments