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

fix: class-transformer as peer dependency #371

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

Conversation

Michsior14
Copy link

Marks class-transformer as peer dependency next to dependency. This ensures consumer installed version is prioritized and used to avoid runtime issues.

Resolves: #341, #365

@@ -18,7 +18,8 @@
"orm"
],
"peerDependencies": {
"reflect-metadata": "^0.1.13"
"reflect-metadata": "^0.1.13",
"class-transformer": "*"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't class-transformer be moved from dependencies to devDependencies with this change?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would be a breaking change as every consumer would be required to provide it's own copy of class-transformer. This only changes the priority :)

@nVitius
Copy link

nVitius commented Apr 22, 2024

@whimzyLive can you take a look at this PR? Can confirm this resolves the issue I brought up in #341

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.

class-trasnsformer should be a peer dependency
3 participants