File tree Expand file tree Collapse file tree 6 files changed +234
-29
lines changed
Expand file tree Collapse file tree 6 files changed +234
-29
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
44
55The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.1.0/ ) .
66
7+ ## [ 1.1.58] ( https://github.com/SocketDev/socket-cli/releases/tag/v1.1.58 ) - 2026-03-06
8+
9+ ### Changed
10+ - Updated ` @socketsecurity/socket-patch ` to v2.0.0, now powered by a native Rust binary for faster patch operations
11+ - The ` socket patch ` command now directly invokes the platform-specific Rust binary instead of a Node.js wrapper
12+ - Enhanced ` socket patch ` documentation with a complete subcommand reference and quick-start guide
13+
714## [ 1.1.57] ( https://github.com/SocketDev/socket-cli/releases/tag/v1.1.57 ) - 2026-01-10
815
916### Changed
Original file line number Diff line number Diff line change @@ -22,6 +22,38 @@ socket --help
2222
2323- ` socket cdxgen [command] ` - Run [ cdxgen] ( https://cyclonedx.github.io/cdxgen/#/?id=getting-started ) for SBOM generation
2424
25+ - ` socket patch <command> ` - Apply, manage, and rollback Socket security patches for vulnerable dependencies
26+
27+ ### Patch subcommands
28+
29+ | Command | Description |
30+ | ---------| -------------|
31+ | ` socket patch scan ` | Scan installed packages for available security patches |
32+ | ` socket patch get <uuid> --org <slug> ` | Download a patch by UUID and store it locally |
33+ | ` socket patch apply ` | Apply downloaded patches to ` node_modules ` |
34+ | ` socket patch rollback [purl\|uuid] ` | Rollback patches and restore original files |
35+ | ` socket patch list [--json] ` | List all patches in the local manifest |
36+ | ` socket patch remove <purl\|uuid> ` | Remove a patch from the manifest (rolls back by default) |
37+ | ` socket patch setup [--yes] ` | Add ` socket patch apply ` to ` postinstall ` scripts |
38+ | ` socket patch repair ` | Download missing blobs and clean up unused blobs |
39+
40+ ** Quick start:**
41+
42+ ``` bash
43+ # Scan for available patches, download, and apply.
44+ socket patch scan
45+ socket patch apply
46+
47+ # Or download a specific patch by UUID.
48+ socket patch get < uuid> --org < org-slug>
49+ socket patch apply
50+
51+ # Add to postinstall so patches reapply on npm install.
52+ socket patch setup --yes
53+ ```
54+
55+ Free patches work without authentication. For paid patches, set ` SOCKET_CLI_API_TOKEN ` and ` SOCKET_CLI_ORG_SLUG ` .
56+
2557## Aliases
2658
2759All aliases support the flags and arguments of the commands they alias.
Original file line number Diff line number Diff line change 11{
22 "name" : " socket" ,
3- "version" : " 1.1.57 " ,
3+ "version" : " 1.1.58 " ,
44 "description" : " CLI for Socket.dev" ,
55 "homepage" : " https://github.com/SocketDev/socket-cli" ,
66 "license" : " MIT AND OFL-1.1" ,
123123 "@socketsecurity/config" : " 3.0.1" ,
124124 "@socketsecurity/registry" : " 1.1.17" ,
125125 "@socketsecurity/sdk" : " 1.4.95" ,
126- "@socketsecurity/socket-patch" : " 1.2 .0" ,
126+ "@socketsecurity/socket-patch" : " 2.0 .0" ,
127127 "@types/blessed" : " 0.1.25" ,
128128 "@types/cmd-shim" : " 5.0.2" ,
129129 "@types/js-yaml" : " 4.0.9" ,
You can’t perform that action at this time.
0 commit comments