Commit 4603c87
committed
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
3 files changed
+21
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
1 | 19 | | |
2 | 20 | | |
3 | 21 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments