Releases: arijitcodes/microstream-client
v1.2.0
1.2.0 (2025-03-18)
Features
✅ index.ts: added late response handling with onLateResponse callback (a7eab29)
- Introduced
allowLateResponseAfterTimeoutflag insendRequestmethod to enable late response handling. - Added
onLateResponsecallback insendRequestmethod to handle late responses after request timeout. - Modified
sendRequestto store timed-out requests conditionally intimedOutRequestsobject. - Updated response handler to invoke
onLateResponsefor late responses. - Improved error handling by passing
CustomErroror 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-serviceexample 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.
v1.1.0
1.1.0 (2025-03-02)
Features
✅ implement comprehensive error handling system (ef8c673)
- Update error handling to match hub's error structure
- Add support for parsing standardized error codes
- Implement error data structure compatibility
- Add detailed error handling documentation
- Document error structure and standard error codes
- Include usage examples and best practices
- Add common error scenarios and solutions
v1.0.5
1.0.5 (2025-03-01)
Bug Fixes
✅ index.ts: Implemented Duplicate Service Regn. Attempt and Hub Connection Rejection Handling (c9ae873), closes #3
- Added proper error handling for hub connection rejection
- Implemented graceful process termination on duplicate detection
- Enhanced error logging with detailed service context
- Added connection_error event handler for hub rejection
- Implemented custom error type handling with error codes
- Added automatic process exit on DUPLICATE_SERVICE_REGISTRATION error
This ensures proper client-side handling of hub rejections for duplicate services, providing clear error messaging and preventing service conflicts through automatic termination. Works in conjunction with hub-side validation for complete security implementation.
v1.0.4
v1.0.3
v1.0.2
v1.0.1
v1.0.0
1.0.0 (2025-02-28)
Bug Fixes
✅ tsconfig: Simplify include paths in TypeScript configuration (4db3106)
Features
✅ logger: Implement configurable and colorful logging (2cff58b)
This commit introduces a new logging utility to the microstream-client SDK, allowing developers to control the verbosity of logs using a configurable logLevel option. The logLevel supports the following levels: "debug", "info", "warn", "error", and "silent". Additionally, logs are now color-coded based on their type for better readability.
Changes include:
- Creation of a logger.ts file in src/utils/ with methods for debug, info, warn, and error, respecting the logLevel setting.
- Addition of a logLevel option to the MicrostreamClientOptions interface.
- Initialization of the logger in the MicrostreamClient constructor using the provided logLevel.
- Replacement of all console.log, console.warn, and console.error calls with the appropriate logger methods.
- Color-coding of log messages using the chalk library.
✅ logger: Implement configurable logging and replace console statements in client SDK (4506ce3)
This commit introduces a new logging utility to the microstream-client SDK, allowing developers to control the verbosity of logs using a configurable logLevel option. The logLevel supports the following levels: "debug", "info", "warn", "error", and "silent".
Changes include:
- Creation of a logger.ts file in src/utils/ with methods for debug, info, warn, and error, respecting the logLevel setting.
- Addition of a logLevel option to the MicrostreamClientOptions interface.
- Initialization of the logger in the MicrostreamClient constructor using the provided logLevel.
- Replacement of all console.log, console.warn, and console.error calls with the appropriate logger methods.
✅ microstream-client: The primary working setup for microstream-client. (c10ec70)
This is the first commit - with the primary version (v1) of a working version of microstream-client.
✅ semantic-release: set up Semantic-Release for auto Release & Update (72890b7), closes #1
Setup Semantic-Release with Commitizen - along with GitHub Workflow. Now this setup will -
- Auto Release on GitHub, NPM
- Update Changelog automatically from Conventional Commit messages and update version in package.json
- Set up Commitizen for Conventional Commit message formatting
- Setup GitHub Workflow to automate all these tasks <br/><br/>