Skip to content

Releases: stevetarver/excel-as-json

Bug fix: 23, 30

16 Apr 00:17
Compare
Choose a tag to compare

Fix the following bugs:

#23 Fix flat arrays to be empty if no values specified. Fix code flaw.
#30 Add option to not convert text to numbers: convertTextToNumber

Fix intermittent dest dir create and then file write failures

06 May 06:08
Compare
Choose a tag to compare

Project should create missing destination dir if it does not exist.
Was using fs.mkdir which may or may not complete before attempting
a file write. Changed to use fs.mkdirSync.

Also removes this deprecation warning in node 7.x
(node:72327) DeprecationWarning: Calling an asynchronous function
without callback is deprecated.

Read sheets other than 1, omit empty fields

12 Feb 19:18
Compare
Choose a tag to compare

Breaking Changes
processFile() signature replaces isColOriented boolean with an options object to allow future feature addition without breaking existing users.

New Features

  • 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.

Notes
The options object is validated when processFile() is called; you may omit it completely to accept defaults, or simply provide the options that you want to be different from defaults.

Bug fix

03 Dec 21:11
Compare
Choose a tag to compare
  • Fixed value type conversion to return empty strings instead of converting them to 0.
  • Updated 'excel' dependency version which resolves problems with empty datasets from valid files.

Version bump

25 Jun 02:40
Compare
Choose a tag to compare

Updated package version to match release tag

Update excel.js dependency to update its libxmljs dependency

25 Jun 02:30
Compare
Choose a tag to compare

Users have reported install failures on Node.js v6.2.1, or windows due to libxmljs compilation. Updating to excel.js v0.1.6 in the hopes this fixes that issue

Update dependencies

13 Jun 01:21
Compare
Choose a tag to compare

No package code changes, only dependency updates.

Feature complete

02 Sep 06:33
Compare
Choose a tag to compare
  • 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

Feature complete

31 Aug 07:59
Compare
Choose a tag to compare

The main process function now reflects inherent async nature of reading xlsx files and writing files. Also allow returning data without writing a file. Improved unit test coverage to 100%.

Holding off on a 1.0.0 version until there is some burn time and I decide whether to include a processSync variant.

Initial functionality

28 Aug 23:46
Compare
Choose a tag to compare
Initial functionality Pre-release
Pre-release

Initial functionality proven locally.