angular icon indicating copy to clipboard operation
angular copied to clipboard

Incompatible with latest version of Intl

Open morrica opened this issue 6 years ago • 4 comments

None of the recent versions of the Angular package are compatible with the latest version of the Intl package. Angular requires intl: '>=0.13.0 <0.16.0', the latest version of Intl is 0.16.0. Some other packages I use are requiring intl: ^0.16.0 so version solving is failing. You could argue that there is no reason the other packages need to use intl 0.16.0, but since it is the latest release and I believe it only contains bug fixes and performance improvements it seems like it would be best to upgrade the Angular package to allow it.

  • Dart SDK Version (dart --version) 2.5.0

  • AngularDart Version (i.e. 4.0.0, 5.0.0-alpha+5, MASTER) 5.0.0-beta+1 through MASTER

  • Whether you are using Windows, macOS, or Linux (if applicable) Linux

  • Whether you are using Chrome, Safari, Firefox, Edge (if applicable) Chrome

  • Any other packages or constraints we should know about I am using modern_charts which requires intl ^0.16.0

morrica avatar Sep 17 '19 20:09 morrica

Any updates on this? Is there a workaround available?

JulianBissekkou avatar Dec 13 '19 19:12 JulianBissekkou

No updates yet. The only workaround is to use an intl < 0.16.0.

morrica avatar Dec 13 '19 20:12 morrica

Sorry I missed this. Considering both packages are developed alongside each other at head, we should be updating the intl dependency every time we publish to support the latest version. The only reason for this upper bound is to prevent someone using an old version of angular in the future from resolving a newer version of intl with breaking changes.

In the meantime, you can override the intl version with dependency_overrides.

# pubspec.yaml
...
dependency_overrides:
  intl: ^0.16.0

leonsenft avatar Dec 13 '19 23:12 leonsenft

Thanks for the workaround and the fast response!

JulianBissekkou avatar Dec 14 '19 09:12 JulianBissekkou