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
Improve semver ranges in bower.json #1671
Conversation
I'll close this and leave you guys in peace (or whatever the equivalent of peace is in a flat dep graph world). |
@scotje! Thanks for raising this issue! I'm going to reopen this because I'd like for us to take this into consideration. You've got a good point. We should be supporting a wider range of jQuery libraries. I remember the suggestion of us having Here's an argument for the caret operator: 1.8 is the minimum that we need. 1.10 mirrors 2.0 in terms of functionality, only the latter targets modern browsers exclusively. The jQuery team has stated that they will definitely follow semver. Conclusion: @thejameskyle's flipping of tables shouldn't be interpreted to mean that this isn't an important issue :) |
Ha, OK. You guys know your actual dependencies, it just seemed odd to accept 2.1.0 but no further down the 2.1.x branch. :) Trust me that I know this stuff sucks, especially when disjoint ranges come into play. |
Heh heh. Yeah. Hopefully this will resolve it once and for all! @marionettejs/marionette-core, what do you guys think about |
@scotje I'm so sorry! I was joking around! |
Haha, no worries guys.
|
I can fixup this PR with the new jQuery range. Was there any reason that backbone and/or underscore were capped on the upper end the way they were? |
Yup, they've chosen not to follow semver so even a patch release could be breaking. We have to cap it so that folks' apps don't break when they update dependencies. On your own apps I recommend that you also hardcore the version of those libs :) |
I am ok for increasing the jquery range |
Some of the previous ranges didn't really make sense and seemed unintentionally restrictive. (e.g. Allowing jQuery 2.1.0 but no other 2.1.x releases.)
OK, I updated the PR to include only the jQuery version range change. |
Older versions of npm do not support the caret operator. Is there a similar support issue with bower? |
They both use |
The new dependency statement looks good to me. 👍 |
~ .x.x is what we want for lower versions of npm and bower |
I just want to clarify, is anything from the 1.x series (that is greater than 1.8.0) acceptable? Or only 1.8.x? If it's everything after 1.8.0, it seems like the only actual requirements here are ">=1.8.0 <3.0.0". As long as you guys trust jQuery adherence to semver. |
@scotje please read my post here: |
Some of the previous ranges didn't really make sense and seemed unintentionally restrictive. (e.g. Allowing jQuery 2.1.0 but no other 2.1.x releases.)
If there was a method behind the previous ranges, feel free to disregard. :)