npm / csv-stringify
csv-stringify
What changed in csv-stringify 2 to 6, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
2 breaking1 security3 new APIs and options2 behavior and defaults1 tooling17 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initcsv-stringify 625 changes
Breaking changes 1
Removes the non-functional auto value.
Security 1
Adds formula escaping to defend against injection attacks, including support for Unicode characters.
New APIs and options 3
The CSV error is exposed as an API.
normalize_options is exposed as an API.
Adds an option to write the header as a comment.
Behavior and default changes 2
Stringify cast options now support null and undefined.
Adds header validation.
Tooling 1
TypeScript options now extend stream.TransformOptions.
Fixes and other changes 17
Fields containing a carriage return are quoted.
Header cast context is preserved when eof is false.
Negative numeric values are preserved.
Objects returned by cast functions are preserved.
The source record is no longer altered when columns is set.
A global quoted_match regexp now quotes every matching field.
Fixes quoting fields that fuse with a multi-character separator.
Regexp metacharacters in escape and quote characters are handled literally, fixing double escaping.
Adds the missing type definition for the bigint cast option.
TypeScript types now allow cast functions to return an object.
An empty string pattern now causes empty strings to be quoted.
The quoted_match configuration option now accepts arrays.
Fixes uncaught errors with large stream chunks.
Fixes BOM and header output when there are no records, and throws an error for a header with no records.
Fixes error handling in the sync API.
Type definitions now allow columns to mix strings and objects.
A bug involving Infinity being undefined in get is fixed.
csv-stringify 21 changes
Breaking changes 1
CoffeeScript 2 produces modern JavaScript syntax and breaks compatibility with Node.js versions below 7.6 and with browsers.