# What changed in csv-stringify

> 26 changes in csv-stringify 2 to 6 from its official release notes, upgrade guides and advisories: 2 breaking, 1 security, 3 new APIs and options. Each one cited. Sources checked 2026-11-30. HTML: https://unstale.sh/npm/csv-stringify/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## csv-stringify 6

### Breaking changes

- Removes the non-functional auto value. (6.8.0) — [release notes](https://github.com/adaltas/node-csv/blob/594c6469c4a7376c1048d13c47859c2f91674206/packages/csv-stringify/CHANGELOG.md#680-2026-06-14)

### Security

- Adds formula escaping to defend against injection attacks, including support for Unicode characters. (6.8.0) — [release notes](https://github.com/adaltas/node-csv/blob/594c6469c4a7376c1048d13c47859c2f91674206/packages/csv-stringify/CHANGELOG.md#680-2026-06-14)

### New APIs and options

- The CSV error is exposed as an API. (6.9.0) — [release notes](https://github.com/adaltas/node-csv/blob/594c6469c4a7376c1048d13c47859c2f91674206/packages/csv-stringify/CHANGELOG.md#690-2026-09-25)
- normalize_options is exposed as an API. (6.9.0) — [release notes](https://github.com/adaltas/node-csv/blob/594c6469c4a7376c1048d13c47859c2f91674206/packages/csv-stringify/CHANGELOG.md#690-2026-09-25)
- Adds an option to write the header as a comment. (6.7.0) — [release notes](https://github.com/adaltas/node-csv/blob/594c6469c4a7376c1048d13c47859c2f91674206/packages/csv-stringify/CHANGELOG.md#680-2026-06-14), [release notes](https://github.com/adaltas/node-csv/blob/594c6469c4a7376c1048d13c47859c2f91674206/packages/csv-stringify/CHANGELOG.md#670-2026-03-17)

### Behavior and default changes

- Stringify cast options now support null and undefined. (6.8.0) — [release notes](https://github.com/adaltas/node-csv/blob/594c6469c4a7376c1048d13c47859c2f91674206/packages/csv-stringify/CHANGELOG.md#680-2026-06-14)
- Adds header validation. (6.7.0) — [release notes](https://github.com/adaltas/node-csv/blob/594c6469c4a7376c1048d13c47859c2f91674206/packages/csv-stringify/CHANGELOG.md#680-2026-06-14), [release notes](https://github.com/adaltas/node-csv/blob/594c6469c4a7376c1048d13c47859c2f91674206/packages/csv-stringify/CHANGELOG.md#670-2026-03-17)

### Tooling

- TypeScript options now extend stream.TransformOptions. (6.8.0) — [release notes](https://github.com/adaltas/node-csv/blob/594c6469c4a7376c1048d13c47859c2f91674206/packages/csv-stringify/CHANGELOG.md#680-2026-06-14)

### Fixes and other changes

- Fields containing a carriage return are quoted. (6.9.0) — [release notes](https://github.com/adaltas/node-csv/blob/594c6469c4a7376c1048d13c47859c2f91674206/packages/csv-stringify/CHANGELOG.md#690-2026-09-25)
- Header cast context is preserved when eof is false. (6.9.0) — [release notes](https://github.com/adaltas/node-csv/blob/594c6469c4a7376c1048d13c47859c2f91674206/packages/csv-stringify/CHANGELOG.md#690-2026-09-25)
- Negative numeric values are preserved. (6.9.0) — [release notes](https://github.com/adaltas/node-csv/blob/594c6469c4a7376c1048d13c47859c2f91674206/packages/csv-stringify/CHANGELOG.md#690-2026-09-25)
- Objects returned by cast functions are preserved. (6.9.0) — [release notes](https://github.com/adaltas/node-csv/blob/594c6469c4a7376c1048d13c47859c2f91674206/packages/csv-stringify/CHANGELOG.md#690-2026-09-25)
- The source record is no longer altered when columns is set. (6.9.0) — [release notes](https://github.com/adaltas/node-csv/blob/594c6469c4a7376c1048d13c47859c2f91674206/packages/csv-stringify/CHANGELOG.md#690-2026-09-25)
- A global quoted_match regexp now quotes every matching field. (6.8.3) — [release notes](https://github.com/adaltas/node-csv/blob/594c6469c4a7376c1048d13c47859c2f91674206/packages/csv-stringify/CHANGELOG.md#683-2026-08-05)
- Fixes quoting fields that fuse with a multi-character separator. (6.8.1) — [release notes](https://github.com/adaltas/node-csv/blob/594c6469c4a7376c1048d13c47859c2f91674206/packages/csv-stringify/CHANGELOG.md#681-2026-07-02)
- Regexp metacharacters in escape and quote characters are handled literally, fixing double escaping. (6.8.1) — [release notes](https://github.com/adaltas/node-csv/blob/594c6469c4a7376c1048d13c47859c2f91674206/packages/csv-stringify/CHANGELOG.md#681-2026-07-02)
- Adds the missing type definition for the bigint cast option. (6.8.0) — [release notes](https://github.com/adaltas/node-csv/blob/594c6469c4a7376c1048d13c47859c2f91674206/packages/csv-stringify/CHANGELOG.md#680-2026-06-14)
- TypeScript types now allow cast functions to return an object. (6.8.0) — [release notes](https://github.com/adaltas/node-csv/blob/594c6469c4a7376c1048d13c47859c2f91674206/packages/csv-stringify/CHANGELOG.md#680-2026-06-14)
- An empty string pattern now causes empty strings to be quoted. (6.8.0) — [release notes](https://github.com/adaltas/node-csv/blob/594c6469c4a7376c1048d13c47859c2f91674206/packages/csv-stringify/CHANGELOG.md#680-2026-06-14)
- The quoted_match configuration option now accepts arrays. (6.8.0) — [release notes](https://github.com/adaltas/node-csv/blob/594c6469c4a7376c1048d13c47859c2f91674206/packages/csv-stringify/CHANGELOG.md#680-2026-06-14)
- Fixes uncaught errors with large stream chunks. (6.8.0) — [release notes](https://github.com/adaltas/node-csv/blob/594c6469c4a7376c1048d13c47859c2f91674206/packages/csv-stringify/CHANGELOG.md#680-2026-06-14)
- Fixes BOM and header output when there are no records, and throws an error for a header with no records. (6.8.0) — [release notes](https://github.com/adaltas/node-csv/blob/594c6469c4a7376c1048d13c47859c2f91674206/packages/csv-stringify/CHANGELOG.md#680-2026-06-14)
- Fixes error handling in the sync API. (6.8.0) — [release notes](https://github.com/adaltas/node-csv/blob/594c6469c4a7376c1048d13c47859c2f91674206/packages/csv-stringify/CHANGELOG.md#680-2026-06-14)
- Type definitions now allow columns to mix strings and objects. (6.7.0) — [release notes](https://github.com/adaltas/node-csv/blob/594c6469c4a7376c1048d13c47859c2f91674206/packages/csv-stringify/CHANGELOG.md#680-2026-06-14), [release notes](https://github.com/adaltas/node-csv/blob/594c6469c4a7376c1048d13c47859c2f91674206/packages/csv-stringify/CHANGELOG.md#670-2026-03-17)
- A bug involving Infinity being undefined in get is fixed. (6.7.0) — [release notes](https://github.com/adaltas/node-csv/blob/594c6469c4a7376c1048d13c47859c2f91674206/packages/csv-stringify/CHANGELOG.md#670-2026-03-17)

## csv-stringify 2

### Breaking changes

- CoffeeScript 2 produces modern JavaScript syntax and breaks compatibility with Node.js versions below 7.6 and with browsers. (2.0.0) — [release notes](https://github.com/adaltas/node-csv/blob/HEAD/packages/csv-stringify/CHANGELOG.md)
