You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can I suggest having a 1 for 1 mapping of dependency versions? That way if a user specifies [email protected] they will get all the dependent packages at 1.2.3. The only way to lock all these packages to a specific version currently is to list every dependency in your own package.json at the version specified.
Expected package.json
..."victory": "35.2.0"...
Required package.json to lock to a specific version
for patch and minor version bumps, lerna publishes only the packages that have changes, so it's possible to end up in a situation where victory-bar is 35.2.2 and victory-core is 35.2.0. The resulting [email protected] package will use [email protected]. For major version bumps, all packages get bumped regardless of changes. In the vast majority of cases, this is the behavior you want, but when we create a regression in a non-major version it does cause a problem for folks who are importing from the main victory package rather than the individual packages.
I'll see if it's possible to cause just the main victory package to use exact versions since that package does get updated with every release.
That makes sense. If you cant lock the versions for the main victory package perhaps instead of using ^ you can use ~ so at least any floating versions will only float for their patch versions. That should hopefully reduce the possibility of regressions between minor versions while still maintaining the ability to release sub project patches independently.
Bugs and Questions
Checklist
This is not a
victory-native
specific issue. (Issues that only appear invictory-native
should be opened here)I have read through the FAQ and Guides before asking a question
I am using the latest version of Victory
I've searched open issues to make sure I'm not opening a duplicate issue
The Problem
Including
victory
withinpackage.json
at a specific version is not sufficient to prevent newer versions of dependent libraries such asvictory-area
,victory-axis
, etc from pulling newer versions due to the dependencies being listed in package.json with the^
version modifier (https://github.com/FormidableLabs/victory/blob/main/packages/victory/package.json#L22-L47).Can I suggest having a 1 for 1 mapping of dependency versions? That way if a user specifies
[email protected]
they will get all the dependent packages at1.2.3
. The only way to lock all these packages to a specific version currently is to list every dependency in your own package.json at the version specified.Expected package.json
Required package.json to lock to a specific version
The text was updated successfully, but these errors were encountered: