Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# v4.0.3

* [FIXED] Issue where invalid rows were not accounted for when skipRows was set [#317](https://github.com/C2FO/fast-csv/issues/317)
* [FIXED] Issue where readableObjectMode was not set to false when formatting [#319](https://github.com/C2FO/fast-csv/issues/319)

# v4.0.2

Expand Down
2 changes: 1 addition & 1 deletion packages/format/src/CsvFormatterStream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class CsvFormatterStream<I extends Row, O extends Row> extends Transform
private hasWrittenBOM = false;

public constructor(formatterOptions: FormatterOptions<I, O>) {
super({ objectMode: formatterOptions.objectMode });
super({ writableObjectMode: formatterOptions.objectMode });
this.formatterOptions = formatterOptions;
this.rowFormatter = new RowFormatter(formatterOptions);
// if writeBOM is false then set to true
Expand Down