Skip to content

Conversation

MrJohz
Copy link
Contributor

@MrJohz MrJohz commented Oct 21, 2019

Use the caret (^) operator to allow any version of lodash with a version over the specified
version (4.17.13). This means that when this package is installed alongside other packages
depending on a higher version of lodash, the shared lodash dependencies can be deduped properly
across all dependents.

The caret also ensures that this package will not automatically upgrade to 5.x versions of
lodash (the next major version).

If it's preferred, I can also use the tilde (~) - this will lock the version to the current minor version. I figured the caret would be okay, given that the other dependencies were locked with the caret.

Motivation: One of our applications is currently depending on multiple versions of lodash, even after using npm dedupe. It's not terrible - this project does a good job of only using the necessary functions - but it would be nicer if we could dedupe them all. If this library were to accept other versions of lodash (which would, at least assuming semver, be backwards compatible), then this would be resolved.

I hope this is okay, and useful!

Use the caret (^) operator to allow any version of lodash with a version over the specified
version (4.17.13).  This means that when this package is installed alongside other packages
depending on a higher version of lodash, the shared lodash dependencies can be deduped properly
across all dependents.

The caret also ensures that this package will not automatically upgrade to 5.x versions of
lodash (the next major version).
@AntJanus AntJanus merged commit b438d81 into angular-redux:master Apr 9, 2020
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