-
-
Notifications
You must be signed in to change notification settings - Fork 396
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
build(deps): use jquery v2.2.4 to unblock jquery-ui v1.14.1 upgrade #11109
base: main
Are you sure you want to change the base?
build(deps): use jquery v2.2.4 to unblock jquery-ui v1.14.1 upgrade #11109
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #11109 +/- ##
=======================================
Coverage 49.03% 49.03%
=======================================
Files 78 78
Lines 22374 22374
Branches 5363 5363
=======================================
Hits 10971 10971
Misses 10058 10058
Partials 1345 1345 ☔ View full report in Codecov by Sentry. |
@@ -104,7 +107,6 @@ function buildjQueryUi() { | |||
"./node_modules/jquery-ui/ui/position.js", | |||
"./node_modules/jquery-ui/ui/keycode.js", | |||
"./node_modules/jquery-ui/ui/unique-id.js", | |||
"./node_modules/jquery-ui/ui/safe-active-element.js", |
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.
NB: safe-active-element.js
was removed from jquery-ui
in jquery/jquery-ui@bb49bd7 (released in v1.14.0).
From local testing: Edit: subsequent testing uncovered a compatibility problem related to the preferences panel. |
92053af
to
315ca55
Compare
Note: I have only manually tested the nutrition autosuggest functionality so far (it's the main affected component I'm aware of and familiar with), but I think this pull request is ready for review. |
I'm encountering a JavaScript error when attempting to close the preferences-edit panel using a build from fd7fb7f. It seems likely that the |
fd7fb7f
to
935e7e0
Compare
@jayaddison thanks for working on this ! |
Thank you so much @jayaddison ! I'll do my best to test the PR locally. |
What's the best way to have the gulpfile.ts changes applied in the dev containers? (ideally without running "make dev") I tried "make front_npm_update", "make front_build" followed by "make restart" but I still have jquery ui 1.13.3 I also tried docker compose up -d --build frontend
|
There may be a better way, but so far I have been running |
Thanks @jayaddison . I did that, but after I'm missing jquery, the file http://static.openfoodfacts.localhost/js/dist/jquery.js does not exist for some reason on my dev environment. |
Bumps the jquery group with 1 update in the / directory: [jquery-ui](https://github.com/jquery/jquery-ui). Updates `jquery-ui` from 1.13.3 to 1.14.1 - [Release notes](https://github.com/jquery/jquery-ui/releases) - [Commits](jquery/jquery-ui@1.13.3...1.14.1) --- updated-dependencies: - dependency-name: jquery-ui dependency-type: direct:production update-type: version-update:semver-minor dependency-group: jquery ... Signed-off-by: dependabot[bot] <support@github.com>
d606852
to
84c593e
Compare
Quality Gate passedIssues Measures |
What
The
jquery-ui
upgrade suggested in #10970 is incompatible withjquery
versions earlier than v2.2.0 as it lacks a fix that was applied for jquery/jquery#2466In our
package-lock.json
file, it appears that we usejquery
v3.7.1 -- but in fact we copy a vendored copy from thefoundation
UI framework, during thegulpfile.ts
copyJs
function.I believe that
jquery
v2.2.0+ is compatible -- and have tested this locally. Compatibility was restored by jquery/jquery@bf591fb because it ensures that auniqueSort
function (as used byjquery-ui
) is available injquery
.Related issue(s) and discussion
Edit: cleanup pull request description.