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

chore(package): update lwc- and eslint-related deps #42

Merged
merged 1 commit into from
Jun 7, 2021

Conversation

nolanlawson
Copy link
Contributor

BREAKING CHANGE: This will bump the peer dependency from @lwc/engine v1 to @lwc/engine-dom v2.

Comment on lines +34 to +37
"@lwc/compiler": "^2.1.0",
"@lwc/engine-dom": "^2.1.0",
"@lwc/eslint-plugin-lwc": "^1.0.1",
"@lwc/jest-preset": "^11.0.1",
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we need to import each package discretely. @lwc/compiler, @lwc/engine-dom, @lwc/synthetic-shadow should be able to be replaced by lwc.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@pmdartus It was already working that way in the existing code, so I didn't change it.

Copy link
Member

Choose a reason for hiding this comment

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

I am fine either way, it something that can be fixed later if needed.

@@ -26,18 +26,22 @@
],
"repository": "https://github.com/salesforce/wire-service-jest-util",
"peerDependencies": {
"@lwc/engine": "^1.5.0"
"@lwc/engine-dom": "^2.0.0"
Copy link
Member

Choose a reason for hiding this comment

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

What about using a peer dependency against the umbrella package instead of @lwc/engine-dom? IMO, we should avoid asking developers to import each piece of the LWC framework independently.

Suggested change
"@lwc/engine-dom": "^2.0.0"
"lwc": "^2.0.0"

Copy link
Member

Choose a reason for hiding this comment

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

I brought up this concern for salesforce/lwc-test#110 (comment) but we ended up not doing so after some discussion. @jodarove do you remember what the reasoning was?

@nolanlawson nolanlawson requested a review from pmdartus June 3, 2021 18:11
@nolanlawson nolanlawson merged commit 1fec199 into master Jun 7, 2021
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.

4 participants