All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
6.0.0-alpha.2 (2023-01-21)
6.0.0-alpha.1 (2022-02-23)
- expose JSON2CSVStreamParser (d476707)
- fix missing ndjson option to CLI (885e28b)
- fix some issues in the AsyncParser tests (695f116)
- reset lockfile due to changes in url patterns for github (b589372)
- unwind transform issue with nested arrays (#548) (3cb57f3)
- update engines and volta (98984dd)
6.0.0-alpha.0 (2021-04-14)
-
Drop support for Node < v12
-
AsyncParser API has changed, see the
Upgrading from 5.X to 6.X
section for details. -
fix: consolidate the API of AsyncParser and parseAsync
-
feat: simplify AsyncParser
-
chore: drop support for node 11
-
refactor: improve AsyncParser parse method
-
docs: add links to node docs and fix few small issues
-
In the JavaScript modules,
formatters
are introduced and thequote
,escapedQuote
andexcelStrings
options are removed. See the migration notes in the readme. CLI hasn't changed.
- Introduce formatters (#455) (88ed6ee)
- use jsonparse for ND-JSON instead of the custom made implementation (#493) (55aa0c7)
- consolidate the API of AsyncParser and parseAsync (#492) (bcce91f)
- issue with unwind and empty arrays creating an extra column (#497) (3b74735)
- Performance optimizations (#491) (471f5a7)
- prevents Parser and AsyncParser from caching the fields option between executions causing issues and inconsistencies (#498) (4d8a81a)
- simplify stringExcel formatter and support proper escaping (#513) (50062c3)
5.0.3 (2020-09-24)
5.0.2 (2020-09-24)
5.0.1 (2020-04-28)
5.0.0 (2020-03-15)
-
Node 8 and 9 no longer supported, use Node 10 or greater. It might still work, but it has reached End-Of-Life.
-
module no longer takes
unwind
,unwindBlank
,flatten
or theflattenSeparator
options, instead see the newtransforms
option. CLI options are unchanged from the callers side, but use the built in transforms under the hood. -
Add support for transforms
-
Add documentation about transforms
-
remove extra commonjs build, use starting point in package.json
main
field. -
Renamed
doubleQuote
toescapedQuote
-
remove
stringify
option -
--fields-config
option has been removed, use the new--config
option for all configuration, not just fields. -
Drop node 6 and 7, and add node 11 and 12
- Always error asynchronously from parseAsync method (#412) (16cc044)
- audit deps (15992cf)
- drop Node 8 and 9 (7295465)
- Make some CLI options mandatory (#433) (bd51527)
- Remove CommonJS build (#422) (5ce0089)
- Remove stringify option (#419) (39f303d)
- Rename doubleQuote to escapedQuote (#418) (f99408c)
- update CI node versions (#413) (6fd6c09)
- update commander cli dep (74aa40a)
- update commander dep (272675b)
- deps: audit dependencies (bf9877a)
- deps: update commander (3f099f2)
- security: fix audit vulnerabilities (b57715b)
- Add support for flattening arrays and change transforms arguments to an object. (#432) (916e448)
- Add support for transforms (#431) (f1d04d0)
- Improve async promise to optionally not return (#421) (3e296f6)
- Improves the unwind transform so it unwinds all unwindable fields if … (#434) (ec1f301)
- replace fields config by a global config (#338) (d6c1c5f)
4.5.2 (2019-07-05)
4.4.0 (2019-03-25)
4.3.5 (2019-02-22)
4.3.4 (2019-02-11)
4.3.3 (2019-01-11)
- audit dep fix (1ef4bcd)
- Remove invalid reference to flat (#347) (130ef7d)
- Remove preferGlobal from package.json (#346) (2b6ad3a)
4.3.2 (2018-12-08)
4.3.1 (2018-11-17)
4.3.0 (2018-11-05)
- Optimize performance around the usage of fields (#328) (d9e4463)
- Remove wrong submodule (#326) (6486bb0)
4.2.1 (2018-08-06)
- bug that modifies opts after parsing an object/stream (#318) (f0a4830)
- Clean up the flattening separator feature (#315) (ee3d181)
4.2.0 (2018-07-31)
4.1.6 (2018-07-12)
4.1.5 (2018-06-26)
4.1.4 (2018-06-23)
4.1.3 (2018-05-23)
4.1.2 (2018-04-16)
4.1.1 (2018-04-16)
- readme CLI's info (#289) (9fe65b3)
- Add tests and docs to unwind-blank feature (#287) (e3d4a05)
- perf: Improve unwind performance and maintainability (#288) (80e496d)
4.1.0 (2018-04-16)
4.0.4 (2018-04-10)
- comment out failing tests (#283) (5b25eaa)
- Support empty array with opts.fields (#281) (eccca89)
- tests: emit correct lines from transform (#282) (2322ddf)
4.0.3 (2018-04-09)
- error when a field is null and flatten is used (#274) (1349a94)
- throw error for empty dataset only if fields not specified (0d8534e)
4.0.2 (2018-03-09)
4.0.1 (2018-03-05)
4.0.0 (2018-02-27)
4.0.0-alpha.2 (2018-02-25)
4.0.0-alpha.1 (2018-02-21)
4.0.0-alpha.0 (2018-02-21)
- Add CLI tests (#247) (bb8126f)
- Add excel string to cli and standardize (#231) (421baad)
- Allow passing ldjson input files (#220) (9c861ed)
- Avoid throwing an error on elements that can't be stringified (like functions) (#223) (679c687)
- backslash logic (#222) (29e9445)
- broken stdin input (#241) (6cb407c)
- Combine EOL and newLine parameters (#219) (4668a8b)
- header flag (#221) (7f7338f)
- outdated jsdoc (#243) (efe9888)
- pretty print issues (#242) (3bd9655)
- Process header cells as any other cell (#244) (1fcde13)
- Remove callback support (2096ade)
- Remove fieldNames (#232) (6cc74b2)
- Remove path-is-absolute dependency (#225) (f71a3df)
- Rename hasCSVColumnTitle to noHeader (#216) (f053c8b)
- Rename ld-json to ndjson (#240) (24a7893)
- Rename unwindPath to unwind (#230) (7143bc7)
- Streamify pretty print (#248) (fb7ad53)
- add doubleQuote to cli, rename other options to line up with the cli (5e402dc)
- Add fields config option to CLI (#245) (74ef666)
- Add streaming API (#235) (01ca93e)
- Split tests in multiple files (#246) (839de77)
-
Replaces field-list with field-config
-
Remove
preserveNewLinesInValues
option, preserve by default -
Refactor the entire library to ES6
-
Fix PR issues
-
Add strict mode for node 4.X
-
Remove fieldNames
-
Increase coverage back to 100%
-
callback is no longer available, just return the csv from the json2csv.
- updated tests
- updated readme
-
- Rename unwindPath to unwind
-
Fix field-list in CLI
-
newLine removed, eol kept.
-
Rename del to delimiter to match the cli flag
-
Rename quotes to quote to match the cli flag
-
Remove unused double quotes comment
-
Fix noHeader in CLI
-
Revert "Remove unused double quotes comment"
This reverts commit 250d3e6ddf3062cbdc1e0174493a37fa21197d8e.
- Add doubleQuote to CLI
- Rename hasCSVColumnTitle to noHeader to keep in line with the CLI
3.11.5 (2017-10-23)
3.11.4 (2017-10-09)
- security: Update debug to 3.1.0 for security reasons (9c7cfaa)
3.11.3 (2017-10-09)
3.11.2 (2017-09-13)
3.11.1 (2017-08-11)
3.11.0 (2017-08-02)
- Handle dates without double-escaping (#189) (ff514ba)
- unwind parameter in command line mode (#191) (e706c25)
3.10.0 (2017-07-24)
3.9.1 (2017-07-14)
3.9.0 (2017-07-11)
3.8.0 (2017-07-03)
3.7.3 (2016-12-08)
- Remove debugger, see #132
- Fix changelog typo
- Fix auto-fields returning all available fields, even if not available on the first object, see #104
- Make callback optional
- Make callback use
process.nextTick
, so it's not sync
Thanks @STRML!
- Revert #114, due to more issues
- Update npmignore
- Add a changelog
- Updatee readme
includeEmptyRows
options added, see #122 (Thanks @glutentag)-a
or--include-empty-rows
added for the CLI.
- mainly for development e.g. adding code format, update readme..
- not create CSV column title by passing hasCSVColumnTitle: false, into params.
- if field is not exist in object then the field value in CSV will be empty.
- fix data in object format - {...}
- quote titles in the first row
- err in callback function
- fix stdin encoding
- support reading from stdin #9
- support custom field names #8
- add optional custom delimiter