All notable changes to this project will be documented here.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- JSON Schema Validation
- Pretty-Print for XML Output
- Batch Processing
- Automation using GitHub Actions to automatically publish to npm when a new release is created.
- Validates package version to prevent publishing duplicate versions.
- Executes automated tests (
npm test
) to ensure package stability. - Adds dependency caching to improve CI/CD performance.
- Configures npm authentication automatically via
.npmrc
.
- JSON to YAML Conversion: Added support for converting JSON to YAML for configurations like Kubernetes and Ansible.
- JSON to JSONLines (NDJSON): Transform JSON arrays into JSONLines, ideal for incremental processing and data pipelines.
- JSONLines Stream: Generate readable streams of JSONLines to handle large volumes of data efficiently.
- General improvements in input validation for existing functions.
- Memory optimizations for large conversions.
- Custom header labels for CSV: Allows specifying friendly column names instead of using raw JSON keys.
- Nested object flattening in CSV: Transforms nested fields (e.g.
details.age
) into separate columns. - Type-based CSV output: Numbers are unquoted, strings are quoted, and
null/undefined
fields are left empty. - Large dataset test coverage: Ensures performance and correctness for bigger JSON arrays.
- Incorrectly quoted numeric fields in CSV outputs.
- Inconsistent handling of empty or null fields when generating CSV.
- Improved XML conversion with options for maximum depth and array handling (
wrap
orindex
). - Enhanced Markdown table generation with dynamic header extraction.
- Better error handling for empty JSON arrays in
toMarkdownTable
and invalid inputs intoXML
. - New file structure: Organized modules into dedicated files for better maintainability and scalability.
- Corrected edge cases in CSV output when handling missing keys.
- 🚀 Convert JSON to CSV, XML, and Markdown tables.
- 📄 Easy-to-use API:
toCSV
,toXML
,toMarkdownTable
.
- Minor bugs in XML formatting.
- Minimum Node.js version: 14.0.0.
- Compatible with JavaScript and TypeScript.
- Initial prototype for JSON to CSV conversion.