Skip to content

Commit 0eb064a

Browse files
authored
chore(release): 5.15.0 (#152)
* feat(http-request): add stream option and response metadata to downloads Add stream option to httpRequest — resolves with HttpResponse immediately after headers arrive, leaving rawResponse unconsumed for piping to files. Refactor httpDownloadAttempt to use httpRequestAttempt with stream: true, eliminating ~120 lines of duplicated HTTP plumbing (redirect handling, protocol selection, error enrichment). Add headers, ok, status, and statusText to HttpDownloadResult so callers can inspect response metadata after streaming downloads. * chore(release): 5.15.0
1 parent f14f1fb commit 0eb064a

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@ 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.15.0](https://github.com/SocketDev/socket-lib/releases/tag/v5.15.0) - 2026-04-06
9+
10+
### Added — http-request
11+
12+
- `stream` option on `HttpRequestOptions` — resolves with `HttpResponse` immediately after headers arrive, leaving `rawResponse` unconsumed for piping to files
13+
- `headers`, `ok`, `status`, `statusText` fields on `HttpDownloadResult`
14+
15+
### Changed — http-request
16+
17+
- `httpDownload` now uses `httpRequest` with `stream: true` internally, eliminating ~120 lines of duplicated HTTP plumbing
18+
819
## [5.14.0](https://github.com/SocketDev/socket-lib/releases/tag/v5.14.0) - 2026-04-06
920

1021
### Added — http-request

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.14.0",
3+
"version": "5.15.0",
44
"packageManager": "pnpm@10.33.0",
55
"license": "MIT",
66
"description": "Core utilities and infrastructure for Socket.dev security tools",

0 commit comments

Comments
 (0)