-
Notifications
You must be signed in to change notification settings - Fork 715
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
security(visx/scale): Update for d3-color dependencies? #1577
Comments
thanks for opening this. we don't have any direct dependencies on
This affects |
hmm - any updates on this front? new project wants to use @visx/scale, but dependency graph points to i'm not sure if |
Unfortunately this was a blocker. We love the from: import { scaleLinear } from "@visx/scale";
const yScale = scaleLinear<number>({
domain: [0, maxNumber])
}); to: import { scaleLinear } from "d3-scale";
const yScale = scaleLinear<number>().domain([0, maxNumber]); $ npm install d3-scale --save
added 8 packages, and audited 757 packages in 3s
133 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities also if typescript make sure you grab the type defs from Cheers |
It’s not pretty, but we solved it by overriding d3-color’s version with Yarn’s |
@eelco would you mind sharing a little more details about what you did? 🥇 |
@JayWelsh You can use Yarn's selective resolutions like this: |
Fantastic temporary workaround, thanks a lot for sharing! 💯 |
It looks like Recharts might be leaning towards making use of
https://formidable.com/blog/2022/victory-esm/
https://github.com/FormidableLabs/victory/blob/main/packages/victory-vendor/README.md Github thread for history on discussion which ultimately lead to development of FormidableLabs/victory#2124 (comment) Evidence of Recharts discussion beginning to lean this way: recharts/recharts#3012 (comment) If There's no doubt that this is a problem which should be addressed because newcomers to |
P.S. for anyone in this thread looking for an update, our knight in shining armour @williaster has set the wheels in motion to migrate away from nimbus and resolve this problem: #1609 🥇 |
* deps(scale): bump `d3-interpolate` and `d3-scale` Closes #1577 Bumping these packages allows for `d3-color` version 3.1.0 or higher to be installed, fixing this vulnerability: GHSA-36jr-mh4h-2g58 * deps(scale): update yarn.lock * chore: configure modules that need to be transformed by babel
noting that the fix was reverted to enable release as a breaking change due to the ESM-only |
Given this vulnerability GHSA-36jr-mh4h-2g58, it would be great to get an update of all visx packages that directly and indirectly use
d3-color
.The text was updated successfully, but these errors were encountered: