Skip to content
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

Updates class-validator and class-transformer to latest versions #39

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thomaux
Copy link

@thomaux thomaux commented Nov 22, 2021

This PR updates class-validator and class-transformer to their latest versions, allowing projects that depend on class-transformer-validator, to update to the latest versions of the peer dependencies.

Changes:

  • The latest class-validator no longer lists @types/validator as a runtime dependency, that's why it's been added to the list of dependencies here.
  • The 0.5.0 version of class-transformer replaces the usage of the word Class in methods to Instance. Example: plainToClass is renamed to plainToInstance.

@NoNameProvided
Copy link

Just chiming in, those functions while deprecated were removed accidentally, 0.5.1 re-added them. However, it's still a good idea to use the new name.

@thomaux
Copy link
Author

thomaux commented Nov 23, 2021

Thanks for the update @NoNameProvided, upgrading to 0.5.1 does indeed work with the existing version of class-transformer-validator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants