Skip to content

Dead postImage/resizeImage exports; cheerio is the last heavy dependency #43

Description

@dickhardt
  • postImage in src/api.js:43 and resizeImage in src/util.js:50 are exported but never imported (knip). If resizeImage goes, browser-image-compression may go with it — src/util.js imports it at the top; check nothing else uses it.
  • cheerio is the last heavy dependency (parse5, undici, encoding-sniffer, and the one remaining whatwg-encoding install deprecation). sri.js uses it only to find <script src> tags in one HTML file and add integrity/crossorigin. A regex or small tokenizer over index.html would remove ~40 packages; it is a rewrite of the SRI plugin, not a swap.
  • The Tailwind 4 compatibility block (border-color: var(--color-gray-200, currentcolor)) that @tailwindcss/upgrade inserted in src/index.css can go once borders are audited.

Found during the Node 24 / dependency upgrade, 2026-09-06 (see chore/deps-prune branch)

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