Skip to content

Remove unused csv-parse dependency - #867

Merged
rzueger merged 1 commit into
developfrom
chore/remove-unused-csv-parse
Sep 2, 2026
Merged

Remove unused csv-parse dependency#867
rzueger merged 1 commit into
developfrom
chore/remove-unused-csv-parse

Conversation

@rzueger

@rzueger rzueger commented Sep 2, 2026

Copy link
Copy Markdown
Member

The CSV import was removed in efebc46 ("Remove unused user import (server sync endpoint and CSV import)") along with src/util/parseCsv.ts and src/util/importCsv.ts, but the dependency itself stayed behind.

Changes

  • package.json — drop csv-parse. Nothing in the repo imports it, and npm ls csv-parse showed it as a top-level dependency with no other package depending on it.
  • jest.config.js — drop the now-orphaned moduleNameMapper entry '^csv-parse/browser/esm/sync$': 'csv-parse/sync'. It existed only so Jest (running in Node) could resolve the browser ESM subpath the source used to import. No module requests that specifier anymore, so the mapping never fires.
  • package-lock.json — regenerated; the only change is removal of the csv-parse entry.

csv-stringify is untouched and stays: src/util/writeCsv.ts still uses it for the CSV report export, as does its Jest mapping.

Verification

  • npm run typecheck — clean
  • npm test — 2492/2500 pass. The 8 failures are styled-components snapshot mismatches (sc-* class hashes only, identical DOM structure) in LabeledBox, ImageButton, LabeledComponent, ModalDialog and OptionalLink. They reproduce identically on a clean checkout of develop, so they are pre-existing and unrelated to this change.
  • npm run build --project=lszt — succeeds, confirming no dynamic import that a source grep would miss

As a side effect this clears the csv-parse entry from the outdated-dependency list; it needed a major bump to 7.0.2, which is now moot.

The CSV import was removed in efebc46 along with src/util/parseCsv.ts
and src/util/importCsv.ts, but the dependency stayed behind. Nothing
imports it anymore, and npm ls shows no other package depends on it.

Also drops the now-orphaned Jest moduleNameMapper entry that rewrote
the browser ESM build to the Node one; no module requests that
specifier any longer. The csv-stringify mapping stays, since
src/util/writeCsv.ts still uses it for the CSV report export.
@rzueger
rzueger merged commit 43cc960 into develop Sep 2, 2026
2 checks passed
@rzueger
rzueger deleted the chore/remove-unused-csv-parse branch September 2, 2026 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant