@nestjs-plugins/nestjs-nats-jetstream-transport@2.4.0. It adds NestJS 11 support, and the same build keeps working on NestJS 8. Existing code needs no changes.
npm i @nestjs-plugins/nestjs-nats-jetstream-transport@^2.4.0Features
- Supports NestJS 8, 9, 10 and 11.
@nestjs/commonand@nestjs/microservicesare now peer dependencies (^8 || ^9 || ^10 || ^11). CI tests NestJS 8 and 11 on Node 22 and 24. - NestJS 11 transport members on
NatsJetStreamServerandNatsJetStreamClientProxy, matching NestJS's own NATS transport. They also work on NestJS 8.status: an Observable ofconnected,disconnectedorreconnectingon('disconnect' | 'reconnect' | 'update', callback): NATS connection eventsunwrap(): the underlyingNatsConnection- The names are exported as
NatsJetStreamStatusandNatsJetStreamEvents.
Unchanged
listen()still does not call back or reject when NATS cannot be reached.- Failed event handlers keep the same default behavior, and
eventHandlerErrorworks as before. - Stream setup, durable consumer naming and client connection reuse are unchanged.
Requires Node.js 22 or later, as 2.3.x does. See the README section "Connection status, events and the NATS connection" for usage. PR #73.