File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
55The format is based on [ Keep a Changelog] ( http://keepachangelog.com/en/1.0.0/ )
66and this project adheres to [ Semantic Versioning] ( http://semver.org/spec/v2.0.0.html ) .
77
8+ ## [ 1.2.0] - 2018-08-22
9+ ### Added
10+ - CSV records are now not limited to an array but can be an iterable object. Thanks to @pineapplemachine .
11+ [ PR #11 ] ( https://github.com/ryu1kn/csv-writer/pull/11 )
12+
813## [ 1.1.0] - 2018-08-20
914### Added
1015- Allow semicolon as a field delimiter as it is commonly used in CSV in some regions. Thanks to @HKskn .
Original file line number Diff line number Diff line change @@ -191,10 +191,10 @@ console.log(csvStringifier.stringifyRecords(records));
191191
192192##### Parameters:
193193
194- * records ` <Array <Object|Array>> `
194+ * records ` <Iterator <Object|Array>> `
195195
196196 Depending on which function was used to create a ` csvWriter ` (i.e. ` createObjectCsvWriter ` or ` createArrayCsvWriter ` ),
197- records will be either an array of objects or arrays
197+ records will be either a collection of objects or arrays. As long as the collection is iterable, it doesn't need to be an array.
198198
199199##### Returns:
200200
Original file line number Diff line number Diff line change 11{
22 "name" : " csv-writer" ,
3- "version" : " 1.1 .0" ,
3+ "version" : " 1.2 .0" ,
44 "description" : " Convert objects/arrays into a CSV string or write them into a CSV file" ,
55 "main" : " index.js" ,
66 "scripts" : {
You can’t perform that action at this time.
0 commit comments