Skip to content

chore: fix remaining missing deps #2262

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

Merged
merged 6 commits into from
Jun 17, 2021
Merged

Conversation

mcasimir
Copy link
Collaborator

No description provided.

@mcasimir mcasimir changed the title Fix remaining missing deps chore: fix remaining missing deps Jun 17, 2021
@mcasimir mcasimir force-pushed the fix-remaining-missing-deps branch from e63eb36 to 5b7cfb6 Compare June 17, 2021 11:37
@mcasimir mcasimir force-pushed the fix-remaining-missing-deps branch from 5b7cfb6 to 19c475b Compare June 17, 2021 11:49
Copy link
Collaborator

@gribnoysup gribnoysup left a comment

Choose a reason for hiding this comment

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

One tiny question, but overall looks good!

@@ -35,7 +35,7 @@
"@mongodb-js/compass-status": "^4.2.1",
"d3": "3.5.17",
"debug": "*",
"hadron-document": "^6.2.1",
"hadron-document": "*",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why changing this to *?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

that's the peer dep section, just noticed that the version here didn't match the one in the devDeps .. but wait lerna should have pick this up right? I'm going to merge it cause this should not cause a problem and try to look into these misaligned stuff later

Copy link
Collaborator

Choose a reason for hiding this comment

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

Lerna doesn't modify peerDeps unfortunately, no. Yeah, thinking it over it's probably even better to set it to * to prevent them from going out of sync, having a specific version in peers seems to be an annoyance already (see #2261 mongodb-js/vscode#301)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Fwiw … I think we’ll want to have a "mongodb": "4.x" peer dep in mongodb-connection-model and mongodb-data-service eventually… of course, * would also make this work :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ok, thanks for the feedback you both! After this one I can put * for peer deps for internal deps only, for other deps I guess is fine to have any version range it makes sense as long as they align, lerna would not do anything about them anyway.

Copy link
Collaborator

@gribnoysup gribnoysup Jun 17, 2021

Choose a reason for hiding this comment

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

Ah, yeah, totally makes sense @addaleax!

I should've been more specific: I was thinking only about peerDeps between packages that are part of the monorepo, I think for them peerDeps are more of an annoyance than any help and maybe we can move them from peers to direct dependencies, especially taking into account that by default npm7 will be installing them

@mcasimir mcasimir merged commit ad9466a into master Jun 17, 2021
@mcasimir mcasimir deleted the fix-remaining-missing-deps branch June 17, 2021 13:41
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