-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Angular version upper bound is specified as 1.3.16, not 1.3.17 #4064
Comments
Seems like the bound should be |
Bower refuses to work with a range from one version to another that isn't fixed to an explicit number; not sure why. See this comment: #3925 (comment) |
That's odd - if I run that using bower-semver:
Seems to work fine for me, as does:
Edit: And if you add both patch versions, it correctly picks the highest one:
|
Oh wait, this is what breaks: var semver = require('semver');
var bowersemver = require('bower-semver');
console.log('bower', bowersemver.maxSatisfying(['1.3.16', '1.2.18'], '>=1.2.16 <=1.3.x'));
console.log('semver', semver.maxSatisfying(['1.3.16', '1.2.18'], '>=1.2.16 <=1.3.x'));
|
Looks like you might be using conflicting syntaxes? The // Undefined behaviour?
// Either that or it's saying 'less than any patch 1.3.x' so it picks a version in 1.2.x
> semver.maxSatisfying(['1.3.16', '1.2.18'], '>=1.2.16 <=1.3.x')
'1.2.18' // Correct result
> semver.maxSatisfying(['1.3.16', '1.2.18'], '>=1.2.16 1.3.x')
'1.3.16' |
doh, I see. silly me. I wonder why bower's is different then? |
Yeah, not a clue. Thanks for the fix! |
Here the upper bound for Angular is specified as 1.3.16 - however, the README claims to support any 1.3.x version, so the upper bound should instead be 1.3.17.
The text was updated successfully, but these errors were encountered: