The latest version isn't available on cdnjs
If I go to https://cdnjs.com/libraries/chroma-js/3.1.2, there is no link to the javascript file. If I go to https://cdnjs.com/libraries/chroma-js/2.4.2 (an older version), however, there is a link to the raw file https://cdnjs.cloudflare.com/ajax/libs/chroma-js/2.4.2/chroma.min.js which works fine. If I try to go to the raw file for the latest version (https://cdnjs.cloudflare.com/ajax/libs/chroma-js/3.1.2/chroma.min.js) I get a 404 not found error.
Yes, the file has moved to the dist subdirectory, eg https://unpkg.com/browse/[email protected]/dist/chroma.min.cjs
Yes, that seems to work. Could you update the documentation then? The link you provided is to unpkg.com, but the documentation still links to cdnjs.com.