Skip to content

RFC-4180 Compliance

Compare
Choose a tag to compare
@coston coston released this 31 Jul 00:20
· 17 commits to master since this release

Breaking Change

  • Default Delimiter Change: The default delimiter has been switched from semicolon (;) to comma (,), in compliance with RFC-4180. This change may affect users relying on the previous default delimiter. Please update your configurations accordingly. For more details, see the discussion here.

New Features and Improvements

  • RFC-4180 Compliance: The library now adheres to RFC-4180 rules, ensuring that cell values are wrapped in double-quotes only when they contain a quote, comma (or semicolon if using a semicolon as the delimiter), or carriage-return/newline. This improvement reduces the total file size by avoiding unnecessary quote wrapping and adds stability to generated files, preventing issues with values containing delimiters or newline characters, which are valid for CSV but could previously cause output errors.

Other Updates

  • Testing Enhancements: Additional tests have been added to ensure that the generated Blob used in CSV downloads is correctly formatted.

Acknowledgments

Thank you @zachelrath for delivering RFC-4180 compliance ⭐

Updates

  • feat(#61)!: Change default delimiter to comma (#64) d1221b8
  • chore(deps): Bump postcss and next (#54) 7c6a93f
  • chore(deps-dev): Bump @babel/traverse from 7.20.12 to 7.23.2 (#56) 08c5449
  • chore: Increase Node compatibility ec243d8
  • chore: Increase Node version compatibility eca2d64

For a full list of changes, see the compare view.