Situation
I have been working on creating various D3.js charts using the latest version of D3 (4.9.1).
However, I also need to incorporate occasional C3.js charts into my application, which poses a challenge as C3 requires D3 v3.5.0.
Exploring Options
Considering modifying C3 to work with the latest D3 version, but this is not very practical.
Exploring alternative package managers like Yarn.
Hesitant to abandon C3 entirely due to the significant rework involved.
Attempted to specify an older version URL in bower.json for C3 only, while keeping the latest versions for other dependencies, but encountered difficulties.
"d3": "^4.9.1", "d3-3.5.0": "https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.0/d3.min.js"
Query
Is there a way to effectively manage multiple versions of the same dependency? Or, if not, what would be a sensible workaround?