You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please raise the peer dependency version of class-transformer in nestjs-common to 0.4.1 and clearly indicate that this is a Breaking change.
Package
I don't know. Or some 3rd-party package
@nestjs/common
@nestjs/core
@nestjs/microservices
@nestjs/platform-express
@nestjs/platform-fastify
@nestjs/platform-socket.io
@nestjs/platform-ws
@nestjs/testing
@nestjs/websockets
Other (see below)
Other package
No response
NestJS version
11.x.x
Packages versions
[Nest Platform Informationplatform-express version : 11.0.1schematics version : 11.0.0testing version : 11.0.1common version : 11.0.1core version : 11.0.1cli version : 11.0.0
Node.js version
20.9.0
In which operating systems have you tested?
macOS
Windows
Linux
Other
No response
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Current behavior
The @nejsts/common package specifies class-transformer as a peer dependency with *, but it actually uses functions available from version 0.4.1.
https://github.com/typestack/class-transformer/blob/master/CHANGELOG.md
In validation.pipe.ts, the classTransformer.plainToInstance function is used, but this is actually a change included as a Breaking Change in 0.4.1.
Minimum reproduction code
https://codesandbox.io/p/devbox/kind-chatelet-qwcsy5?workspaceId=ws_PYFpCF7vfEnGHzwPXpUUKF
Steps to reproduce
No response
Expected behavior
Please raise the peer dependency version of class-transformer in nestjs-common to 0.4.1 and clearly indicate that this is a Breaking change.
Package
@nestjs/common
@nestjs/core
@nestjs/microservices
@nestjs/platform-express
@nestjs/platform-fastify
@nestjs/platform-socket.io
@nestjs/platform-ws
@nestjs/testing
@nestjs/websockets
Other package
No response
NestJS version
11.x.x
Packages versions
Node.js version
20.9.0
In which operating systems have you tested?
Other
No response
The text was updated successfully, but these errors were encountered: