Visitar URL original
Pin dependencies to exact versions only by thisisdano · Pull Request #4615 · uswds/uswds · GitHub
Skip to content

Pin dependencies to exact versions only - #4615

Merged
thisisdano merged 1 commit into
developfrom
dw-pin-deps
Apr 5, 2022
Merged

thisisdano merged 1 commit into
developfrom
dw-pin-deps

Conversation

@thisisdano

Copy link
Copy Markdown
Contributor

Pin dependencies to exact versions only to give the project and team more control about which dependencies load on an npm install.

@mejiaj mejiaj left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No breaking changes with this approach.

The only concern would be an increase in size to node_modules if users have the same package, but different versions in their projects.

Alternatively, we could try:

  1. Pinning dependencies only and keeping the caret for devDependencies
  2. Rely on the ~ to only use patch versions

@thisisdano

Copy link
Copy Markdown
Contributor Author

Thanks James. Let's leave the exact pin for now, knowing that it could cause some ballooning and possible dependency conflicts. I agree that the regular dependencies are the best candidate for the exact pin, but let's be more conservative here and apply the exact pin across the board — then we can re-evaluate after some additional development time.

@thisisdano
thisisdano merged commit ab9ad6c into develop Apr 5, 2022
@thisisdano
thisisdano deleted the dw-pin-deps branch April 5, 2022 15:52
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.

2 participants