Upgrade to jQuery 1.12.4, addressing security warning from GitHub#1358
Upgrade to jQuery 1.12.4, addressing security warning from GitHub#1358thomthom wants to merge 1 commit intolsegal:mainfrom
Conversation
|
Ah, I checked the issues list first, but I didn't check the open PRs. I see now that there is #1351 that also addresses this. |
|
@thomthom I actually like this as a solution that uses jquery-migrate to handle the deprecated APIs. Did you verify that all pages load correctly with this version? |
|
I didn't check the guide template. That is a template I haven't noticed before. But for the default template it seemed to work well. I tested the front page (README) along with class/module pages, additional pages, search. I've put the fix into our custom YARD template (https://github.com/SketchUp/sketchup-yard-template) and we'll soon be publishing with these fixes applied locally to our doc builds. If you want, I can zip up a copy of the YARD Btw, does YARD itself use the guide template? Or any project you are aware of that uses it that can be easily tested? |
|
Here are builds of the YARD docs and the YARD guide using a build from this PR branch. |
|
Btw, I saw warning from YARD when building the guide, not sure if that's related to how in invoked the build? |
|
Updating to 1.12.4 is nearly useless since 4 vulnerabilities will remain out of the 6 vulnerabilities present in 1.7.1. I know it as already be downgraded (3.4.1 back to 1.7.1) because breaking changes were not taken into account https://github.com/lsegal/yard/pull/1298/files. Dependabot security alerts are sent to many project using yard: The only versions with zero vulnerabilities now are 3.5.x and 3.6.x. |
The development group includes "yard" which vendors jquery 1.7.1, which has many CVEs[1]. Yard attempted to upgrade jquery, but it had to be reverted.[2] Although the issue remains, "yard" is not a runtime dependency, so exclude it from mend scans. I had to upgrade to ruby 3.2 to get the BUNDLE_WITHOUT to work. [1] lsegal/yard#1358 (comment) [2] lsegal/yard#1298

Description
We host our generated docs on GitHub via GitHub pages. Via GitHub's security warnings we started seeing this recent:
We can patch this on our end, but we figured it was better to try to patch upstream.
However, jQuery 1.9 removed a number of functions which caused rendering issues:
This PR upgrades jQuery to the latest 1.x version; 1.12.4 along with the jQuery Migration plugin. The migration plugin ensures that YARD renders correctly again.
This does add another HTTP request to be made. If that's a concern we could merge jQuery and the Migration plugin into a single file.
Related discussion:
#1298 (comment)
Completed Tasks
bundle exec rakelocally (if code is attached to PR).