-
-
Notifications
You must be signed in to change notification settings - Fork 78.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update jQuery version check and jQuery dependency version range (#20338)
Closes #16834 [skip validator]
- Loading branch information
Showing
2 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,6 @@ | |
"test-infra" | ||
], | ||
"dependencies": { | ||
"jquery": "1.9.1 - 2" | ||
"jquery": "1.9.1 - 3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
edefe0e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! <3
edefe0e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cvrebert I think that there's an issue with the jQuery version checks.
If Bootstrap 3.x is supposed to support jQuery 3.x, (also based on bower.json:32 indications) there's a wrong check in configBridge.json : 40, about (version[0] > 3)
It should be
if ((version[0] == 1 && version[1] == 9 && version[2] < 1) || (version[0] > 4)) {
edefe0e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@davik3000 The condition is true when the version is incompatible, not when it's compatible. Your
if (major > 4) { throw error }
change would allow jQuery 4.x.x, which we cannot guarantee compatibility with.I think your analysis is incorrect.
Also, commenting on old commits isn't an effective bug reporting strategy. Opening issues is.