Skip to content

Releases: arijitcodes/microstream-client

v1.2.0

18 Mar 19:43

Choose a tag to compare

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.

v1.1.0

02 Mar 20:10

Choose a tag to compare

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

01 Mar 21:57

Choose a tag to compare

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

28 Feb 23:35

Choose a tag to compare

1.0.4 (2025-02-28)

Bug Fixes

package.json: updating postRelease script to inclucke package lock files foe npm and bun (fde5a32)

v1.0.3

28 Feb 23:17

Choose a tag to compare

1.0.3 (2025-02-28)

Bug Fixes

version: issue #2 second attempt (c3e9b30)

verison update issue still exists, this is 2nd attempt to fix

v1.0.2

28 Feb 23:07

Choose a tag to compare

1.0.2 (2025-02-28)

Bug Fixes

package.json: trying a fix for Issue #2 - where Package.json version was not being updated (54f09af)

v1.0.1

28 Feb 22:47

Choose a tag to compare

1.0.1 (2025-02-28)

Bug Fixes

package.json: added Keywords for package (c7a0669)

v1.0.0

28 Feb 22:39

Choose a tag to compare

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/>