-
-
Notifications
You must be signed in to change notification settings - Fork 398
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
Upgrade to jQuery 1.12.4, addressing security warning from GitHub #1358
base: main
Are you sure you want to change the base?
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. |
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 rake
locally (if code is attached to PR).