diff --git a/CHANGELOG.md b/CHANGELOG.md index 9fc93f0..d5aaf42 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [1.2.0] - 2018-08-22 +### Added +- CSV records are now not limited to an array but can be an iterable object. Thanks to @pineapplemachine. + [PR #11](https://github.com/ryu1kn/csv-writer/pull/11) + ## [1.1.0] - 2018-08-20 ### Added - Allow semicolon as a field delimiter as it is commonly used in CSV in some regions. Thanks to @HKskn. diff --git a/README.md b/README.md index 4b8da6d..8ce8add 100644 --- a/README.md +++ b/README.md @@ -191,10 +191,10 @@ console.log(csvStringifier.stringifyRecords(records)); ##### Parameters: -* records `>` +* records `>` Depending on which function was used to create a `csvWriter` (i.e. `createObjectCsvWriter` or `createArrayCsvWriter`), - records will be either an array of objects or arrays + 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. ##### Returns: diff --git a/package.json b/package.json index 0fe3c32..f9f72a0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "csv-writer", - "version": "1.1.0", + "version": "1.2.0", "description": "Convert objects/arrays into a CSV string or write them into a CSV file", "main": "index.js", "scripts": {