Skip to content

v2.2.2

Latest

Choose a tag to compare

@badosa badosa released this 09 Jun 17:20
79b8f1d

This release updates the toolkit to version 2.2.2. It rolls up several major, minor, and patch updates that have been introduced since the last GitHub release (v1.6.0).

πŸš€ Major Modernization (v2.0.0)

  • ES2016 Transition: The codebase has been fully reviewed and updated to ES2016 standards.
  • Dependency Reduction: Removed node-fetch as it is no longer required.

✨ New Features (v2.1.0 - v2.2.1)

  • Transform() Method:
    • Introduced the new Transform() method as a modern replacement for the toTable() method.
    • Integrated Transform() internally into the Dice() and Slice() methods.
    • Added support for the "objarr" output format in Transform().
    • Added support for the "object" output format in Transform() (providing direct compatibility with Google's DataTable).

πŸ› Bug Fixes & Optimizations

  • Performance: Optimized the Unflatten() method for greater efficiency.
  • toTable() Fixes:
    • Fixed a bug when unit=true.
    • Fixed a bug when type="arrobj", comma=true, and field="label".
  • Transform() Fixes: Corrected the treatment of null values when the comma=true option is enabled.

πŸ”’ Security & Build Updates (v2.2.2)

  • Resolved security vulnerabilities by upgrading build tools and dependencies:
    • Bumped rollup devDependency to 4.59.0.
    • Upgraded serialize-javascript transitive dependency (used by @rollup/plugin-terser) to 7.0.5.
    • Upgraded picomatch transitive dependency to 4.0.4.

πŸ“ Documentation & Examples

  • Substantially expanded documentation across API.md, EXAMPLES.md, and INSTALL.md with comprehensive examples (e.g., unemployment rates, population pyramids) and links to Observable notebooks.