Skip to content

v1.2.0

Latest

Choose a tag to compare

@github-actions github-actions released this 18 Mar 19:43
· 1 commit to main since this release

1.2.0 (2025-03-18)

Features

index.ts: added late response handling with onLateResponse callback (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.