Skip to content

"Zero runtime dependencies" is false: mermaid-export ships puppeteer #4

Description

@arnelirobles

Current behaviour

The repo headline says zero runtime dependencies, but mermaid-export ships puppeteer.

README.md:3: "Zero-dependency, ultra-lightweight JavaScript utility libraries". README.md:8: "A collection of tiny, focused utility packages with zero runtime dependencies."

packages/mermaid-export/package.json:46-47 declares:

"dependencies": {
    "puppeteer": "^23.0.0"

mermaid-export 1.0.0 is live on npm, so an installer pulls puppeteer (and a Chromium download) despite the headline. The package is also not listed in the README package table.

Confirm:

sed -n '1,10p' README.md
node -e "console.log(require('./packages/mermaid-export/package.json').dependencies)"
npm view mermaid-export version

Why it matters

Puppeteer is a large dependency that downloads Chromium. Someone reading "zero runtime dependencies" and installing mermaid-export gets the opposite of what was promised.

Fix shape

Scope the claim (for example "zero runtime dependencies, except mermaid-export, which drives Chrome via puppeteer") and add mermaid-export to the package table with that caveat, or move it out of this monorepo.

How you know it worked

The README no longer contradicts node -e "console.log(require('./packages/mermaid-export/package.json').dependencies)".

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions