File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed
Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,23 @@ All notable changes to this project will be documented in this file.
55The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.1.0/ ) ,
66and 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
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments