@horizon-republic/nestjs-jetstream 2.8.0 → 2.9.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@horizon-republic/nestjs-jetstream",
3
- "version": "2.8.0",
3
+ "version": "2.9.1",
4
4
  "description": "A NestJS transport for NATS with JetStream events, broadcast fan-out, and Core/JetStream RPC.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -57,41 +57,50 @@
57
57
  "@nestjs/common": "^10.2.0 || ^11.0.0",
58
58
  "@nestjs/core": "^10.2.0 || ^11.0.0",
59
59
  "@nestjs/microservices": "^10.2.0 || ^11.0.0",
60
+ "msgpackr": "^1.11.0",
60
61
  "reflect-metadata": "^0.2.0",
61
62
  "rxjs": "^7.8.0"
62
63
  },
64
+ "peerDependenciesMeta": {
65
+ "msgpackr": {
66
+ "optional": true
67
+ }
68
+ },
63
69
  "devDependencies": {
64
70
  "@faker-js/faker": "^10.4.0",
65
71
  "@golevelup/ts-vitest": "^4.0.0",
66
- "@nestjs/platform-express": "^11.1.17",
67
- "@nestjs/testing": "^11.1.17",
68
- "@types/node": "^25.5.0",
69
- "@vitest/coverage-v8": "^4.1.2",
70
- "eslint": "^10.1.0",
72
+ "@nestjs/platform-express": "^11.1.19",
73
+ "@nestjs/testing": "^11.1.19",
74
+ "@types/node": "^25.6.0",
75
+ "@vitest/coverage-v8": "^4.1.4",
76
+ "eslint": "^10.2.0",
71
77
  "eslint-config-prettier": "^10.1.8",
72
78
  "eslint-plugin-prefer-arrow": "^1.2.3",
73
79
  "eslint-plugin-prettier": "^5.5.5",
74
- "eslint-plugin-sonarjs": "^4.0.2",
80
+ "eslint-plugin-sonarjs": "^4.0.3",
75
81
  "eslint-plugin-unused-imports": "^4.4.1",
76
- "prettier": "^3.8.1",
77
- "testcontainers": "^11.13.0",
82
+ "hdr-histogram-js": "^3.0.1",
83
+ "msgpackr": "^1.11.9",
84
+ "prettier": "^3.8.3",
85
+ "testcontainers": "^11.14.0",
86
+ "tinybench": "^6.0.0",
78
87
  "tsup": "^8.5.1",
79
88
  "tsx": "^4.21.0",
80
- "typescript": "~5.9.3",
81
- "typescript-eslint": "^8.58.0",
82
- "vitest": "^4.1.2"
89
+ "typescript": "~6.0.2",
90
+ "typescript-eslint": "^8.58.2",
91
+ "vitest": "^4.1.4"
83
92
  },
84
93
  "dependencies": {
85
94
  "@nats-io/jetstream": "^3.3.1",
95
+ "@nats-io/kv": "^3.3.1",
86
96
  "@nats-io/nuid": "^2.0.3",
87
97
  "@nats-io/transport-node": "^3.3.1"
88
98
  },
89
99
  "scripts": {
90
100
  "build": "tsup",
91
101
  "build:watch": "tsup --watch",
92
- "build:example": "tsc -p examples/tsconfig.json",
93
- "start:example": "pnpm build && pnpm build:example && node dist-example/examples/main.js",
94
- "dev:example": "tsx --tsconfig examples/tsconfig.json examples/main.ts",
102
+ "start:example": "pnpm build && tsx --tsconfig examples/tsconfig.json examples/01-basic/main.ts",
103
+ "dev:example": "tsx --tsconfig examples/tsconfig.json examples/01-basic/main.ts",
95
104
  "lint": "eslint",
96
105
  "lint:fix": "eslint --fix",
97
106
  "docs:dev": "pnpm --filter ./website start",
@@ -99,6 +108,12 @@
99
108
  "docs:serve": "pnpm --filter ./website serve",
100
109
  "test": "vitest run",
101
110
  "test:watch": "vitest",
102
- "test:cov": "vitest run --coverage"
111
+ "test:cov": "vitest run --coverage",
112
+ "bench": "node --expose-gc --import tsx benchmarks/harness/cli.ts",
113
+ "bench:codec": "pnpm bench codec",
114
+ "bench:route": "pnpm bench route-pipeline",
115
+ "bench:all": "pnpm bench all",
116
+ "bench:quick": "pnpm bench all --quick",
117
+ "bench:diff": "node --import tsx benchmarks/harness/diff-cli.ts"
103
118
  }
104
119
  }