Situation
I've written a bunch of D3.js charts using the latest version of D3 (4.9.1).
However I also need to include the occasional C3.js chart in my app, problem is- C3 requires D3 v3.5.0.
What I've considered so far
Forking C3 to update it to the latest version of D3 (it's not really feasible though)
Using a different package manager, such as Yarn
Just forgetting about C3.... (don't want to do this, as it will involve a lot of re-work!)
Specifying a URL of an older version in the bower.json. However, I still was not able to reference to just that version for C3, and the latest for everything else.
"d3": "^4.9.1", "d3-3.5.0": "https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.0/d3.min.js"
Question
Is it possible to manage multiple versions of the same dependency, cleanly? And if not, what would be a sensible work-around?