Skip to content

Commit 4603c87

Browse files
chore(release): 1.2.0 [skip ci]
# [1.2.0](v1.1.0...v1.2.0) (2025-03-18) ### Features ✅ **index.ts:** added late response handling with onLateResponse callback ([a7eab29](a7eab29)) - Introduced `allowLateResponseAfterTimeout` flag in `sendRequest` method to enable late response handling. - Added `onLateResponse` callback in `sendRequest` method to handle late responses after request timeout. - Modified `sendRequest` to store timed-out requests conditionally in `timedOutRequests` object. - Updated response handler to invoke `onLateResponse` for late responses. - Improved error handling by passing `CustomError` or response to the callback. - Added detailed logging for late response handling. - Updated README with documentation for late response handling and new error codes. - Updated `auth-service` example to demonstrate late response handling in the README. This feature allows users to handle late responses gracefully, providing better flexibility for real-time communication in microservices. <br/><br/>
1 parent a7eab29 commit 4603c87

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
# [1.2.0](https://github.com/arijitcodes/microstream-client/compare/v1.1.0...v1.2.0) (2025-03-18)
2+
3+
4+
### Features
5+
6+
**index.ts:** added late response handling with onLateResponse callback ([a7eab29](https://github.com/arijitcodes/microstream-client/commit/a7eab2990c147e692c7215a6ac92477ff1605923))
7+
8+
- Introduced `allowLateResponseAfterTimeout` flag in `sendRequest` method to enable late response handling.
9+
- Added `onLateResponse` callback in `sendRequest` method to handle late responses after request timeout.
10+
- Modified `sendRequest` to store timed-out requests conditionally in `timedOutRequests` object.
11+
- Updated response handler to invoke `onLateResponse` for late responses.
12+
- Improved error handling by passing `CustomError` or response to the callback.
13+
- Added detailed logging for late response handling.
14+
- Updated README with documentation for late response handling and new error codes.
15+
- Updated `auth-service` example to demonstrate late response handling in the README.
16+
17+
This feature allows users to handle late responses gracefully, providing better flexibility for real-time communication in microservices. <br/><br/>
18+
119
# [1.1.0](https://github.com/arijitcodes/microstream-client/compare/v1.0.5...v1.1.0) (2025-03-02)
220

321

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "microstream-client",
3-
"version": "1.1.0",
3+
"version": "1.2.0",
44
"description": "A lightweight client SDK for Microstream communication",
55
"main": "dist/cjs/index.js",
66
"module": "dist/esm/index.js",

0 commit comments

Comments
 (0)