-
Notifications
You must be signed in to change notification settings - Fork 78
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
PL - Dependencies: Remediate Babel security issue #438
Conversation
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.
Added comments for clarity.
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.
Tip
File is left empty to allow custom JS in the future. Also avoids a build error. The polyfill and jQuery are no longer needed.
"babel-loader": "^8.2.3", | ||
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2", |
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.
Tip
Now included in @babel/preset-env
.
Source →
"babel-loader": "^8.2.3", | ||
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2", | ||
"babel-preset-es2015": "^6.14.0", |
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.
Tip
Replaced by @babel/preset-env
.
Source →
"jquery": "^3.7.1", | ||
"pa11y-ci": "^2.4.2", | ||
"stickyfilljs": "^2.1.0", |
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.
Tip
jQuery and stickyfill no longer needed as position sticky is well supported.
Description
Removing deprecated dependencies and redundant JavaScript. Closes https://github.com/GSA/plainlanguage.gov/security/dependabot/49.
Details
Remove deprecated dependencies
Removed the following deprecated dependencies:
Create NVMRC
Added an NVMRC file to always use the latest LTS version of node. This will help us stay on top of node versions.
Remove sticky polyfill
The only custom JS included was setting an explicit height to prevent a slight jump on hover. Position sticky has good support and didn't notice any issues on pages with sticky sidenav, like
law/agency-programs
.Testing
npm run build-js
builds without errors.npm audit
shows zero vulnerabilities.Impact