Skip to content

Commit

Permalink
Update README change log
Browse files Browse the repository at this point in the history
  • Loading branch information
stevetarver committed May 6, 2017
1 parent ae30822 commit a8ee60e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -319,14 +319,20 @@ excel dependency - although questionable, they appear to be benign.

## Change History

### 2.0.1
- Fix creating missing destination directories to complete prior to writing file


### 2.0.0

- **Breaking changes to most function signatures**
- Replace single option `isColOriented` with an options object to try to stabilize the processFile signature allowing future non-breaking feature additions.
- Add `sheet` option to specify a 1-based index into the Excel sheet collection - all of your data in a single Excel workbook.
- Add `omitEmptyFields` option that removes an object key-value if the corresponding Excel cell is empty.


### 1.0.0

- Changed process() to processFile() to avoid name collision with node's process object
- Automatically convert text numbers and booleans to native values
- Create destination directory if it does not exist
Expand Down
6 changes: 3 additions & 3 deletions spec/processFileSpec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ describe 'process file', ->
isColOriented: false
omitEmptyFields: false

processFile ROW_XLSX, ROW_JSON, {sheet:'1',isColOriented:false,omitEmptyFields:false}, (err, data) ->
processFile ROW_XLSX, ROW_JSON, options, (err, data) ->
expect(err).to.be.an 'undefined'
result = JSON.parse(fs.readFileSync(ROW_JSON, 'utf8'))
JSON.stringify(result).should.equal ROW_SHEET_1_JSON
Expand Down Expand Up @@ -163,8 +163,8 @@ describe 'process file', ->


#=============================== Coverage summary ===============================
# Statements : 100% ( 138/138 )
# Statements : 100% ( 128/128 )
# Branches : 100% ( 55/55 )
# Functions : 100% ( 14/14 )
# Lines : 100% ( 106/106 )
# Lines : 100% ( 100/100 )
#================================================================================

0 comments on commit a8ee60e

Please sign in to comment.