Home > Blockchain >  Is there any benefits of using @nestjs/class-validator package instead of class-validator?
Is there any benefits of using @nestjs/class-validator package instead of class-validator?

Time:09-15

In NestJS application, right now I am using class-validator to validate DTO and request payload. Is there any benefits if I shift to @nestjs/class-validator?

I found both packages are same.

#edited Later I found @nestjs/class-validator is maintained by nestjs which is especially designed for nestjs projects. And @nestjs/class-validator is more updated/maintained one.

CodePudding user response:

as of now, @nestjs/class-validator is just a fork to keep class-validator dependencies up to date.

You can see all of non-updates changes here: https://github.com/nestjs/class-validator/pulls?q=is:pr sort:updated-desc is:merged -author:app/renovate -author:app/dependabot

  • Related