diff --git a/CHANGELOG.md b/CHANGELOG.md index 81aba25..0f30339 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,7 +17,7 @@ Please join and contribute: * relax_column_count: rename INCONSISTENT_RECORD_LENGTH to RECORD_INCONSISTENT_FIELDS_LENGTH (easy) * relax_column_count: rename RECORD_DONT_MATCH_COLUMNS_LENGTH to RECORD_INCONSISTENT_COLUMNS (easy) -## Trunk +## Version 4.15.0 * feat: new ignore_last_delimiters option, solve #193 * feat: generate browser compatible lib diff --git a/lib/es5/index.d.ts b/lib/es5/index.d.ts index fd15b10..5a3d19f 100644 --- a/lib/es5/index.d.ts +++ b/lib/es5/index.d.ts @@ -112,6 +112,10 @@ declare namespace parse { */ from_line?: number; fromLine?: number; + /** + * Don't interpret delimiters as such in the last field according to the number of fields calculated from the number of columns, the option require the presence of the `column` option when `true`. + */ + ignore_last_delimiters?: boolean | number; /** * Generate two properties `info` and `record` where `info` is a snapshot of the info object at the time the record was created and `record` is the parsed array or object. */ diff --git a/package.json b/package.json index 4838ee8..8071bcd 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "4.14.2", + "version": "4.15.0", "name": "csv-parse", "description": "CSV parsing implementing the Node.js `stream.Transform` API", "keywords": [