Skip to content

class-transformer version issue #15045

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
4 of 15 tasks
0816i opened this issue Apr 30, 2025 · 1 comment
Closed
4 of 15 tasks

class-transformer version issue #15045

0816i opened this issue Apr 30, 2025 · 1 comment
Labels
needs triage This issue has not been looked into

Comments

@0816i
Copy link

0816i commented Apr 30, 2025

Is there an existing issue for this?

  • I have searched the existing issues

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

  • 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 Information
platform-express version : 11.0.1
schematics version       : 11.0.0
testing version          : 11.0.1
common version           : 11.0.1
core version             : 11.0.1
cli version              : 11.0.0

Node.js version

20.9.0

In which operating systems have you tested?

  • macOS
  • Windows
  • Linux

Other

No response

@0816i 0816i added the needs triage This issue has not been looked into label Apr 30, 2025
@kamilmysliwiec
Copy link
Member

c05a0e6

@nestjs nestjs locked and limited conversation to collaborators May 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs triage This issue has not been looked into
Projects
None yet
Development

No branches or pull requests

2 participants