-
Notifications
You must be signed in to change notification settings - Fork 93
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
Upgrading jQuery 2.x dependent libraries to support jQuery 3.x #1151
Comments
Bootstrap just got upgraded in PR #1182 so now it's one blocker less. 🎉 |
Had a look at some of the pending items of the list (excluding the first item):
Archived by maintainer. Easiest solution, IMO, is adopting Bootstrap's Popover (requires Popperjs only, no JQuery). Update templates and docready.js to use the popover component instead. I think we should be able to customize the CSS, but not sure if it will look 100% like the current qtip popup (if it's a lot to customize, that could become an issue when upgrading to a new version of bootstrap too).
It hasn't been updated in a long time (last commit from 2015). We can review the warnings and keep using it, or search for a replacement component, or try the browser's Datalists. These are supported in Bootstrap, here's the caniuse for Datalists. This solution with Datalists also is independent of JQuery. Not sure if we can customize how it looks like, I think it's more like the file & date pickers, that are handled by the browser.
Hmm, last commit from 2015 too. Some users already reported problems with JQuery. I think it is not very hard to write some JS code to handle the scrollbar events and fire a callback, as waypoint does. There is an event that we can try to use (not sure if it was available back in 2015, it looks like it's from 2020, but now well supported). We could use JQuery, but I would first try a pure JS + DOM approach.
This last one is still maintained, but by a single maintainer + pull requests. The maintainer appears to be busy with life/family/etc (which is good, and not his fault :) ). We can try to take a look at the WDYT? |
Hmmm, JQuery UI also needs to be updated, I think? There are 3 CVE's against the current version we are using in Skosmos: The 1.13 release is pending from packagist. Someone created an issue in October/2021, but looks like there's no maintainer for the packagist component? I couldn't find any JQuery UI's [ |
Updated to JQuery 3 locally, re-created my dev environment on Docker, and so far everything is working OK :-) 🎉 Even the scrollbar listener is working OK. |
I added Edit: Ah, I had missed @kinow's comment above mentioning jQuery UI as well. |
In order to properly migrate to jQuery 3.x at least the following libraries need to be upgraded:
Some of these "only" use deprecated features that are not per se dangerous and jQuery Migrate plugin (which restores old API) can be used in production for a while. See https://github.com/jquery/jquery-migrate/blob/main/warnings.md for more information.
Additional info: https://jquery.com/upgrade-guide/3.0/ and https://jquery.com/upgrade-guide/3.5/
The text was updated successfully, but these errors were encountered: