-
Notifications
You must be signed in to change notification settings - Fork 3.4k
bower: 1.1.10 requires minimum angular 1.7.2 #11348
Comments
I have the exact same issue Edit: I had to downgrade angular-material to 1.1.9 in my bower.json |
@marshfire @clemator are you loading angularJS just over dependencies automatically or have you specified this? - I just look again via https://docs.npmjs.com/files/package.json#dependencies and this syntax just says that it supports up until angularJS 1.7.2 ... maybe it would make even sense to limit it to a min-version as well, but after research I think the repository here is correct but your package.json maybe wrong. |
@IMM0rtalis we usually allow 3rd party dependencies to patch their versions (thus we say "angular-material": "~1.1.5") 1.1.5 has the minimum feature set we needs and we want to be able to get patches but not minor version updates (e.g. no automatic 1.2) for angular we say "angular": "~1.6.x" (allows everything >= 1.6.0 and < 1.7.0) in material 1.1.10 angular is required as "^1.7.2" which meens it is compatible with 1.7.2 and everything not major breaking above, but not with versions below (so it allows to be resolved to >= 1.7.2 and < 2.0.0) This is now an unresolvable conflict and needs touching of every component/ module relying on it. Since material and angular is used by nearly everything we do this would mean touching 50+ projects and releasing new versions. |
Oh ok, you are right, sorry. I just read again about the carret: https://docs.npmjs.com/misc/semver#caret-ranges-123-025-004 |
@marshfire Can you check if my PR would be the correct dependency description? |
Responding to the OP, you mention that your project uses Bower and then you refer to the |
For 1.1.10, we did bump the minimum Bower dependencies to AngularJS Please note as indicated here support for Bower is deprecated. For NPM, we support a wider range of versions, The root cause of this is that AngularJS I will look into whether Bower can support something like |
It looks like version ranges are in fact supported by Bower (from their install docs). It's not clear if they support the |
FYI: You can always choose to stay with a specific version (or range) with Bower as it has the interactive conflict resolution in the CLI. After some manual testing, it looks like Bower can support the |
OK, this has been pushed up to If you want a more stable dependency, you can use the version after the next PR gets merged which will look something like The other option as mentioned above is to just use Bower's conflict resolution to tell it to use the AngularJS The updated dependencies for Bower will be part of |
Oh one more note, if you are actually on AngularJS For the upcoming AngularJS Material |
|
@Splaktar Thanks for the fix. We're using angular 1.6, not 1.4 (1.4 was mentioned in the readme of bower-material). The switch to 1.7 is already planned, but still takes a while. |
Bug, enhancement request, or proposal:
Bug
CodePen and steps to reproduce the issue:
CodePen Demo which demonstrates the issue:
no reproducer (build issue in existing projects that use bower with a dependency of angular-material ~1.1.*)
Detailed Reproduction Steps:
What is the expected behavior?
at least continue working with angular 1.6
What is the current behavior?
build conflicts in all our projects
What is the use-case or motivation for changing an existing behavior?
Which versions of AngularJS, Material, OS, and browsers are affected?
Is there anything else we should know? Stack Traces, Screenshots, etc.
introduced by this: f6534d6
The text was updated successfully, but these errors were encountered: