Open duecknoah opened 2 years ago
Hey, any updates on this issue?
These packages are released as ESM, so we can't easily bump them without introducing a bundler or releasing react-d3-cloud as ESM too.
@chentsulin I would recommend using something like parcel or vite in library mode. That will take care of the bundling and requires a minimal amount of setup. Moving forward (most) everything will be in ESM anyway, so you will be ahead of the curve on that regardless. Vite is almost all ESM under the hood anyway.
It's an example of a painful migration in the Node/js ecosystem, but it does get easier with time. Most modules I am working with "just work" once I have a proper bundler included. For this reason I recommend Vite as its setup is far less complex than Webpack or Turbopack.
Use overrides
(or resolutions
) in your package.json.
"overrides": {
"d3-color": "^3.1.0"
}
react-d3-cloud depends on a version of d3-color that is vunerable to reDOS: https://github.com/advisories/GHSA-36jr-mh4h-2g58 Any version of d3-color <3.1.0 is vunerable to this. Please update the package.json to get a later version of react-d3-color