I am currently working on to upgrade javascript libraries due to some vulnerability concern. The one i am stuck right now is JQuery-ui-1.10.1.custom.js. I need to upgrade it to Jquery-ui-1.12.0.js but I am not sure if the regular Jquery-UI-1.12 file could replace this custom file. This is an old project .NET project. I am not sure whats the difference between the regular and custom files. Any help is appreciated.
The only way to be sure that upgrading won't break your app is your tests. If you don't have a testing strategy, you'll need to adopt one. When your code is well covered, you'll be able to swap the jQuery libs and know right away if something is breaking.
-
This is an old application with no test coverage at all and I am pretty sure adding testing strategy is not on Todo list right now. – HarmonicaBlower Jan 9 '19 at 19:24
-
1In that case, the next best(though far from ideal) thing is to go through the changelogs and CTRL+F any affected items against your codebase to identify any possible points of failure - Edited my post – Thomas Skubicki Jan 9 '19 at 20:03
.custom
is added when only some of the library has been bundled into the file (e.g. where some items are un-ticked on the download page jqueryui.com/download ) In theory you should be able to replace theJQuery-ui-1.10.1.custom.js
with aJQuery-ui-1.10.1.js
with no issues, it will simply add some unused library code. Though I can't comment on the upgrade path. – DBS Jan 9 '19 at 17:35