All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
5.0.3 (2024-11-05)
5.0.2 (2024-11-05)
- publish on npm again since npm doesn't show a readme (15b4882)
5.0.1 (2024-11-05)
- Update information badges in the readme
5.0.0 (2023-09-07)
parseValue
now receives the escaped value and an additional argumentquoted
- utility function
unescapeValue
is removed
parseValue
now receives the escaped value and an additional argumentquoted
(fbc13bc)- support dot notation like
coordinates.1
for headers to parse into a nested array (67c2685)
- change the nested CSV benchmark to not use nested arrays (not supported by all libraries) (14c45bd)
- create unique column names in case of duplicates (ac5c247)
4.0.0 (2023-06-02)
- The API is now generic, so you can use the library like
json2csv<User>(...)
andcsv2json<User>(...)
. The typings of the value getters and setters (getValue
andsetValue
) is changed, and the type ofNestedObject
is changed.
3.0.4 (2023-05-31)
3.0.3 (2023-04-03)
- escape double quotes in column names (72519a9)
3.0.2 (2023-03-09)
- make the build-in
parseValue
robust against invalid json arrays and objects (4faa963)
3.0.1 (2023-03-08)
- negative values not being parsed into numbers when converting a csv file to json (8a99af7)
3.0.0 (2023-03-07)
- Dropped the
flattenArray
option, useflatten: isObjectOrArray
instead. Also, the utility functionisObjectOrArray
is now strict and does not return true for classes.
- change
flatten
into a boolean or callback again and make it strict, not matching classes (5d99eb6) - export utility functions
isObject
andisObjectAndArray
(ecdf273) - performance improvement (b6b2528)
- performance improvement in parsing a CSV file (baef63a)
- use the esm output instead of src in the benchmarks (is faster) (cefeeb6)
2.0.0 (2023-03-06)
-
you can no longer pass a callback value to
flatten
. UseflattenArray
instead. -
chore: enable benchmarking multiple file sizes again
-
chore: a bit more refactoring in collectNestedPaths
-
chore: add a unit test for Date
- benchmark validation on linux (some libraries output
\n
on linux and\r\n
on windows) (aa1bcfa) - flattening not always working when having mixed contents (15b97b0)
- getting a nested property failing when iterating over a
null
value (759f199)
- first version