Skip to content

Commit bdc0078

Browse files
committed
chore: release v5.11.0
1 parent 84d807b commit bdc0078

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,21 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [5.11.0](https://github.com/SocketDev/socket-lib/releases/tag/v5.11.0) - 2026-03-23
9+
10+
### Added
11+
12+
- **http-request**: Checksum verification for secure downloads
13+
- `parseChecksums(text)`: Parse checksums file text into filename→hash map
14+
- Supports GNU style (`hash filename`), BSD style (`SHA256 (file) = hash`), and single-space format
15+
- Handles Windows CRLF and Unix LF line endings
16+
- Returns null-prototype object to prevent prototype pollution
17+
- `fetchChecksums(url, options?)`: Fetch and parse checksums from URL
18+
- Supports `headers` and `timeout` options
19+
- `httpDownload` now accepts `sha256` option to verify downloaded files
20+
- Verification happens before atomic rename (file not saved if hash mismatches)
21+
- Accepts uppercase hashes (normalized to lowercase internally)
22+
823
## [5.10.0](https://github.com/SocketDev/socket-lib/releases/tag/v5.10.0) - 2026-03-14
924

1025
### Changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@socketsecurity/lib",
3-
"version": "5.10.0",
3+
"version": "5.11.0",
44
"packageManager": "pnpm@10.32.1",
55
"license": "MIT",
66
"description": "Core utilities and infrastructure for Socket.dev security tools",

0 commit comments

Comments
 (0)