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

Pin exact dependencies #1002

Closed

Conversation

JamieMagee
Copy link
Contributor

For applications it's considered a best practice to pin exact versions of dependencies.

This change removes the semantic version range specifiers and pins each dependency to the maximum allowed by the range specifier. This makes the implicit updates explicit. For example:

  • ^1.0.0 will have been upgraded to the maximum minor version available. Equivalent to 1.0.0 <= x < 2.0.0
  • ~1.0.0 will have been upgraded to the maximum patch version available. Equivalent to 1.0.0 <= x < 1.1.0

@JamieMagee JamieMagee force-pushed the pin-dependencies branch 2 times, most recently from 1b53b88 to 78e9caa Compare November 6, 2023 17:17
For applications, it's considered best practices to pin exact versions of dependencies.

This change removes the semantic version range specifiers, and pins each dependency to the maximum allowed by the range specifier. This makes the implicit updates explicit. For example:

- `^1.0.0` will have been upgraded to the maximum minor version available. Equivalent to `1.0.0 <= x < 2.0.0`
- `~1.0.0` will have been upgraded to the maximum patch version available. Equivalent to `1.0.0 <= x < 1.1.0`
@JamieMagee
Copy link
Contributor Author

Looks like there might be some breaking changes, despite the fact that npm packages are supposed to follow semantic versioning.

I'll break this down into smaller changes and merge it piece-by-piece instead.

@JamieMagee JamieMagee closed this Nov 6, 2023
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