Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,23 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [5.12.0](https://github.com/SocketDev/socket-lib/releases/tag/v5.12.0) - 2026-04-04

### Added — http-request

- Lifecycle hooks (`onRequest`/`onResponse`) on `HttpRequestOptions` (#133)
- Fire per-attempt — retries and redirects each trigger separate hook calls
- `HttpHooks`, `HttpHookRequestInfo`, `HttpHookResponseInfo` types exported
- `maxResponseSize` option to reject responses exceeding a byte limit
- Works through redirects, `httpJson`, and `httpText`
- `rawResponse` property on `HttpResponse` exposing the underlying `IncomingMessage`
- `enrichErrorMessage()` exported for reusable error enrichment

### Changed — http-request

- Error messages now include HTTP method and URL for easier debugging
- `HttpResponse.headers` type changed from `Record<string, string | string[] | undefined>` to `IncomingHttpHeaders`

## [5.11.4](https://github.com/SocketDev/socket-lib/releases/tag/v5.11.4) - 2026-03-28

### Changed
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@socketsecurity/lib",
"version": "5.11.4",
"version": "5.12.0",
"packageManager": "pnpm@10.33.0",
"license": "MIT",
"description": "Core utilities and infrastructure for Socket.dev security tools",
Expand Down