diff --git a/changelog.md b/changelog.md index c49cc0b..8dade6d 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,21 @@ # Changelog +## 2025-07-29 - 4.2.1 - fix(client) +Fix socket hanging issues and add auto-drain feature + +**Fixes:** +- Fixed socket hanging issues caused by unconsumed response bodies +- Resolved test timeout problems where sockets remained open after tests completed + +**Features:** +- Added automatic response body draining to prevent socket pool exhaustion +- Made auto-drain configurable via `autoDrain()` method (enabled by default) +- Added logging when auto-drain activates for debugging purposes + +**Improvements:** +- Updated all tests to properly consume response bodies +- Enhanced documentation about the importance of consuming response bodies + ## 2025-07-29 - 4.2.0 - feat(client) Add handle429Backoff method for intelligent rate limit handling diff --git a/package.json b/package.json index 43337ff..a7ae46c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@push.rocks/smartrequest", - "version": "4.2.0", + "version": "4.2.1", "private": false, "description": "A module for modern HTTP/HTTPS requests with support for form data, file uploads, JSON, binary data, streams, and more.", "exports": {