-
Notifications
You must be signed in to change notification settings - Fork 229
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
The constraint ^0.17.0
on intl does not support the stable version 0.18.0
#3747
Comments
pub has an addendum to semver that says:
So if you want to be compatible with both 0.17.0 and 0.18.0 you indeed should do '>=0.17.0 <0.19.0'. |
I see, the problem is that when |
Since there's an addendum to semver, closing this, thanks! |
Environment
Problem
Source: getsentry/sentry-dart#1202
Relates to: flutter/flutter#117163 and dart-lang/i18n#458
Expected behavior
Upgrades to 0.18.0 without problem, since the a transitive dependency is
intl: ^0.17.0
and the final app has^0.18.0
, it is within the range.Actual behavior
Apps that use
intl: ^0.18.0
orintl: 0.18.0
and have a transitive dependency withintl: ^0.17.0
should not require a major bump since it's a minor version.Workaround
If the library does
intl: '>=0.17.0 <0.19.0'
orintl: any
would work, but libraries should be able to be more flexible with the minimum and maximum version hence it should be fixed to respect the version bands.The text was updated successfully, but these errors were encountered: