npm / csv-parse
csv-parse
What changed in csv-parse 5 to 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
2 breaking2 security3 new APIs and options4 behavior and defaults2 tooling11 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initcsv-parse 710 changes
Breaking changes 1
Trim behavior now aligns with ECMAScript whitespace.
Security 1
Fixes prototype replacement reachable through the columns option.
New APIs and options 3
CsvError is now exported.
Delimiter discovery was added to csv-parse.
normalize_options is now exported.
Behavior and default changes 1
Delimiter splitting is disabled when the delimiter is an empty array.
Fixes and other changes 4
Preserves typed column keys.
Types the score callback arguments.
A CommonJS export is now shipped for the stream entry point.
Sync parsing no longer modifies the prototype.
csv-parse 66 changes
Security 1
Fixes prototype pollution associated with the objname option.
Fixes and other changes 5
Support is added for number columns with cast.
The inherited type for delimiter is fixed.
The error type no longer uses TypeScript all.
TypeScript info interfaces are aligned with the JavaScript API.
A declaration for a nonexistent TypeScript function is removed.
csv-parse 58 changes
Breaking changes 1
CommonJS consumers must change the sync parser import from csv-parse/lib/sync to csv-parse/sync after the ESM migration.
Behavior and default changes 3
Support for Node.js 14 was backported.
Backward support for Node.js 8 was added.
When skipping lines with errors while using raw, the current buffer is printed.
Tooling 2
The TypeScript encoding type now uses BufferEncoding.
TypeScript types are exported for the sync API.
Fixes and other changes 2
The TypeScript callback CsvError argument was fixed.
Validation of record_delimiter was improved.