chroma.js icon indicating copy to clipboard operation
chroma.js copied to clipboard

The latest version isn't available on cdnjs

Open DonaldDuck313 opened this issue 11 months ago • 2 comments

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.

DonaldDuck313 avatar Jan 02 '25 08:01 DonaldDuck313

Yes, the file has moved to the dist subdirectory, eg https://unpkg.com/browse/[email protected]/dist/chroma.min.cjs

gka avatar Jan 06 '25 15:01 gka

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.

DonaldDuck313 avatar Jan 11 '25 10:01 DonaldDuck313