Repository navigation
v4.3.0
Features
- Add opt-in
skipEmptyLinesto the parser,validateFile, TypeScript options and CLI. Empty and whitespace-only unquoted records are skipped without dropping quoted blanks or delimiter-only records; existing defaults are unchanged.
Improvements
- Assemble fragmented records once instead of repeatedly copying their growing prefix.
- Honor readable backpressure within input chunks and release parser-owned final-record references at EOF. Memory still depends on the current record, input chunk and caller-retained raw buffers; performance varies by workload.
Bugfixes
- Recognize complete comment markers before CSV quotes, including Unicode markers split across chunks.
- Terminate on strict width errors and reject colliding overflow row keys instead of losing values.
- Correct CLI handling of strict mode, removed columns, custom quotes and escapes, bare/custom comment markers, and stream failures. For a bare comment flag with file input, use
csv-parser input.csv --skipComments; a following value remains a custom marker. - Make the checkout benchmark count rows without retaining them and await pipeline completion.
Native ESM, the Node.js requirement (^22.22.2 || >=24.15.0) and zero runtime dependencies are unchanged. Data Loader consumer adoption remains separate and deferred.
Full Changelog: v4.2.0...v4.3.0