json-to-table
Advanced tools
Changelog
v4.0.0
Undo the code change made in v3, but only tweak the tests to make sure we keep that unexpected behaviour in the future.
We also started using es6 code here in v4, so be aware.
We bumped to v3 here because by fixing this bug, we potentially introduced a lot of broken metrics in the main app we are using this module for.
Changelog
v3.0.0
Fixed a bug where arrays weren't playing nice when the exludeSubArrays option was true, AND when one of the arrays was null (ie. it was a leaf). That was causing an issue since one of the arrays was a leaf, then it was a valid path to data. So when creating the table, it would include a column at that point, and so the cells where the array wasn't null were being included as whole arrays. This seemed wrong especially since exludeSubArrays was set to true.
See these tests more easily visualize the issue
Changelog
v2.1.5
Fixed an edge case with checkKeyBeforePath where the actual name of the key was something like ".ba`d"