-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Dependencies upgrade #3380
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
Dependencies upgrade #3380
Conversation
T4rk1n
commented
Jul 30, 2025
- Update build dependencies
- Update dash-renderer cookie version to latest
- Replace request in dash-html-components build scripts with native fetch.
- Update styled-jsx in core components
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.
It looks OK but I have a question about the code changes that are landing at the same time.
@@ -136,24 +135,31 @@ function extractElements(attributes) { | |||
|
|||
// A local copy of the MDN attributes web page has been saved for reference: | |||
// fs.readFile('./data/attributes.html', 'utf-8', (error, html) => { | |||
request(htmlURL, (error, response, html) => { | |||
if (error) { | |||
fetch(htmlURL) |
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.
why is this in with dependencies upgrade? (not arguing against it, just don't understand)
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.
The request dependency keeps on having security vulnerability and there was no resolving from updating, fetch has been natively available since node v18 so I opted to replace it instead.
@@ -63,14 +62,21 @@ function extractElements($) { | |||
}, []); | |||
} | |||
|
|||
request(refUrl, (error, response, html) => { | |||
if (error) { | |||
fetch(refUrl) |
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.
same question as above - how does this tie to dep upgrade?