This release is mostly a bugfix and maintenance pass over the 11.1.x line. The user-facing work is concentrated in microservices and core, with a small dependency refresh around it.
What's new
microservicesnow preserves packet headers in the NATS serializer when the response payload is a plain value or object instead of aNatsRecord. That means headers set on the packet are carried through the fallback serialization path, which addresses a common response-header use case for NATS users (#16675).
Fixes
microservices: fixes a crash event listener that was reading the public consumer getter instead of the backing field (#16762).microservices: prevents a stack overflow injsonsocket.handledata()(#16764).core: prevents the injector from hanging whendesign:paramtypesis missing, including environments whereemitDecoratorMetadatais unavailable (#16683).microservices: escapes message pattern keys so they are handled safely (#16687).core: sanitizes SSE message fields before they are written into the Server-Sent Events stream (#16686).
Other notable changes
- Various dependency updates landed across the monorepo, including
dotenv,mysql2,webpack,ts-morph,globals,@nestjs/typeorm,@nestjs/swagger,@nestjs/serve-static, and others. corealso centralized headers for streamable file responses into shared helper methods (#16627).
Contributors
@burhanharoon @kamilmysliwiec @Youmoo @wwenrr @ankitbelal