@lad-tech/nsc-toolkit 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,13 +1,6 @@
1
- # [2.0.0](https://github.com/lad-tech/nsc-toolkit/compare/v1.28.1...v2.0.0) (2025-07-01)
1
+ ## [2.0.1](https://github.com/lad-tech/nsc-toolkit/compare/v2.0.0...v2.0.1) (2025-07-07)
2
2
 
3
3
 
4
- ### Performance Improvements
4
+ ### Bug Fixes
5
5
 
6
- * Rename some var and change otlp protocol ([#148](https://github.com/lad-tech/nsc-toolkit/issues/148)) ([21e4109](https://github.com/lad-tech/nsc-toolkit/commit/21e4109fd0fe4b5f1fee006d8d2e711628b021f8))
7
-
8
-
9
- ### BREAKING CHANGES
10
-
11
- * Rename DEFAULT_REPONSE_TIMEOUT to DEFAULT_RESPONSE_TIMEOUT
12
-
13
- Co-authored-by: gleip <kuchinsn@lad24.ru>
6
+ * Fix off method ([#151](https://github.com/lad-tech/nsc-toolkit/issues/151)) ([a6eafb4](https://github.com/lad-tech/nsc-toolkit/commit/a6eafb4679f2846496afde639b52dca86b2afc97))
@@ -139,7 +139,7 @@ export interface Listener<E extends Emitter> {
139
139
  }
140
140
  export interface ListenerBatch<E extends Emitter> {
141
141
  on<A extends keyof E>(action: A, handler: (params: Array<Parameters<E[A]>[0]>, meter: EventMeter) => void): void;
142
- off<A extends keyof E>(action: A, handler: (params: Array<Parameters<E[A]>[0]>) => void): void;
142
+ off<A extends keyof E>(action: A, handler: (params: Array<Parameters<E[A]>[0]>, ...args: any[]) => void): void;
143
143
  }
144
144
  export interface HttpSettings {
145
145
  ip?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lad-tech/nsc-toolkit",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Toolkit for create microservices around NATS",
5
5
  "main": "dist/index.js",
6
6
  "types": "./dist/types/index.d.ts",