KevinGimbel / eleventy-plugin-mermaid

Integrate Mermaid with eleventy (11ty)
https://kevingimbel.github.io/eleventy-plugin-mermaid/
ISC License
26 stars 3 forks source link

404 for Mermaid JS from UNPKG #2

Closed Pezmc closed 1 year ago

Pezmc commented 1 year ago

https://unpkg.com/mermaid/dist/mermaid.min.js is expanding to https://unpkg.com/mermaid@10.0.0/dist/mermaid.min.js, which 404's

Related to the V10 upgrade of Mermaid which includes https://github.com/mermaid-js/mermaid/issues/3590

It looks like the new URL is https://unpkg.com/mermaid/dist/mermaid.esm.min.mjs which is the ESModule version of mermaid

Edit: Alternatively, swapping to https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js fixes the issue since jsdelivr has bee configured to still serve the old file

KevinGimbel commented 1 year ago

Oh no :<

That's really unfortunate. I'll release a fix for it, thanks for bringing this to my attention!

Pezmc commented 1 year ago

Heads up that you'll need to set the module flag if swapping to the esm version

KevinGimbel commented 1 year ago

It's fixed and a new version 2.0.0 is released.

Pezmc commented 1 year ago

Amazing, thank you for such a prompt reply, really appreciate it, will update to 2.0.0 shortly.