Skip to content

Commit 7dbe3b7

Browse files
authored
chore: release v5.12.0 (#135)
1 parent ca42b64 commit 7dbe3b7

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,23 @@ 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.12.0](https://github.com/SocketDev/socket-lib/releases/tag/v5.12.0) - 2026-04-04
9+
10+
### Added — http-request
11+
12+
- Lifecycle hooks (`onRequest`/`onResponse`) on `HttpRequestOptions` (#133)
13+
- Fire per-attempt — retries and redirects each trigger separate hook calls
14+
- `HttpHooks`, `HttpHookRequestInfo`, `HttpHookResponseInfo` types exported
15+
- `maxResponseSize` option to reject responses exceeding a byte limit
16+
- Works through redirects, `httpJson`, and `httpText`
17+
- `rawResponse` property on `HttpResponse` exposing the underlying `IncomingMessage`
18+
- `enrichErrorMessage()` exported for reusable error enrichment
19+
20+
### Changed — http-request
21+
22+
- Error messages now include HTTP method and URL for easier debugging
23+
- `HttpResponse.headers` type changed from `Record<string, string | string[] | undefined>` to `IncomingHttpHeaders`
24+
825
## [5.11.4](https://github.com/SocketDev/socket-lib/releases/tag/v5.11.4) - 2026-03-28
926

1027
### 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.11.4",
3+
"version": "5.12.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)