Removed exports (scale, limits, brewer) in chroma.js >2.4.2
It looks like chroma-js is not exporting scale, limits or brewer anymore. If I'm not wrong those were still available in 2.4.2. Removing these exports is a breaking change. Unfortunately this wasn't respected in the naming of the chroma-js releases. With a breaking change the major version should increase.
Hi, I think the exports are still working fine, see this demo.
Can you explain how you're trying to import?
Interesting, I'm working with https://github.com/geostyler/geostyler which has a dependency on chroma-js ^2.4.2 and where I encountered the problem.
Thanks for your demo. For me it looks like that its fixed with a newer version of chroma-js. Try changing the import to: import { brewer } from '[email protected]';
Ah, yes I remember. Unfortunately I don't know that it's possible to "retract" a version from npm. Have you tried updating to v3? The only breaking changes involved the exporting of modern CSS colors, which shouldn't really break anything.