Skip to content

v1.1.3 - Advanced Data Handling Improvements

Latest

Choose a tag to compare

@Kledenai Kledenai released this 27 Apr 21:25
· 2 commits to main since this release

[1.1.3] - 2025-04-27

Added

  • JSON Schema Validation: New validateJsonSchema function to validate JSON objects against provided schemas using AJV.
  • Batch Processing: New batchProcess function to divide and process large JSON arrays in batches asynchronously.
  • Pretty-Print for XML: XML output now supports customizable pretty formatting through the prettyPrint option.
  • Flatten Helpers: New modular helpers flattenObject and flattenJson to standardize object flattening across converters.
  • Custom CSV Header Mapping: customCSVFieldGenerator added for precise header customization in toCSV.
  • Automatic Flattening in toCSV: Nested JSON objects are automatically flattened in CSV output.
  • Error Handling Improvements: Better error messages and stricter input validation across all main converters.
  • Improved Test Coverage: Full unit test coverage for converters and internal helpers.

Changed

  • Internal refactor: Splitted converters and helpers into modular architecture (@helpers, @converters, etc).
  • Aliases introduced in tsconfig (@converters, @utils, @types) to improve import management and code clarity.
  • Updated internal types for stronger validation (JsonArray, JsonObject, etc).

Fixed

  • Correct flattening of deeply nested objects in CSV generation.
  • Proper handling of empty objects across all converters (returning safe outputs).
  • Small bug fixes and improvements for JSONLines stream generation.