All Versions
18
Latest Version
Avg Release Cycle
140 days
Latest Release
87 days ago

Changelog History
Page 1

  • v4.0.0 Changes

    March 21, 2026

    ๐Ÿ’ฅ Breaking changes

    • Requires Node.js 24 or higher.

    What's new

    Tooling & infrastructure

    • Migrated from npm to pnpm
    • ๐Ÿ‘• Replaced XO linter with Biome
    • โœ… Replaced AVA with the built-in Node.js test runner (node:test)
    • โœ… Replaced c8 with native Node.js test coverage
    • Replaced ts-node with native Node.js type stripping
    • Modern TypeScript config (nodenext, ES2024, strict, declaration maps)
    • โž• Added Changesets for versioning
    • โž• Added autonomous npm release workflow with provenance
    • โž• Added Renovate for automated dependency updates
    • โœ‚ Removed Travis CI, editorconfig, and del-cli

    Code

    • Replaced hasKey utility with Object.hasOwn() (#18)
    • โž• Added proper validation for NaN and Infinity amounts โ€“ now throws a TypeError instead of producing misleading error messages (closes #18)
    • All errors now use TypeError where applicable
    • ๐Ÿ“œ Extracted parser regex to a named constant
    • โœ‚ Removed parameter reassignment in convert()

    ๐Ÿ“š Documentation

    • Replaced currency.js example with built-in Intl.NumberFormat
    • โšก๏ธ Updated floating point section to accurately describe the *100/100 trick and its limitations
    • โž• Added AI disclosure section
    • ๐Ÿ›  Fixed incorrect link in big.js section (closes #25)
    • โšก๏ธ Updated badges (removed XO, Bundlephobia; added CI from GitHub Actions)
    • Switched funding from OpenCollective to GitHub Sponsors

    Packaging

    • Modern exports field with types condition
    • โœ‚ Removed author field from package.json
    • โšก๏ธ Updated license year

    Full diff : 3.0.1...v4.0.0

  • v3.0.1 Changes

    December 10, 2021
    • ๐Ÿ›  Fix: move @types/big.js to dependencies (see #19).
  • v3.0.0 Changes

    December 05, 2021
    • ๐Ÿ’ฅ BREAKING: the package is now ESM-only and thus requires Node.js v14 or higher.
    • โž• Added big.js integration (see #17).
    • ๐Ÿ‘Œ Improved the test suite.
    • Minor size reduction.
    • ๐Ÿ‘Œ Improved type safety.
    • ๐Ÿ‘Œ Improve docs readability.
    • The error messages are now more succinct.
  • v2.5.0 Changes

    January 23, 2021
    • ๐Ÿ›  Fix: the parser now handles the expression '0' correctly.
    • ๐Ÿ‘ Better TypeScript types.
    • โšก๏ธ Update dependencies.
  • v2.4.4 Changes

    August 25, 2020
    • โšก๏ธ Update JSDOC for better DX.
    • โšก๏ธ Update devDependencies.
  • v2.4.3 Changes

    July 09, 2020
    • โšก๏ธ Update devDependencies
    • ๐Ÿ‘• Lint
    • If from equals to, return 100% directly (#12)
  • v2.4.2 Changes

    March 22, 2020
    • โšก๏ธ Update devDependencies
    • โšก๏ธ Optimize regex
    • ๐Ÿ‘Œ Improve type safety
    • โœ… Test when amount equals 0
  • v2.4.1 Changes

    March 10, 2020
    • Do not use named capture groups (they do not work in Firefox)
    • โšก๏ธ Update devDependencies
    • ๐Ÿ‘• Lint test files
  • v2.4.0 Changes

    February 22, 2020
    • ๐Ÿ“œ Parsing: allow different expression separating keywords (in and as)
    • โšก๏ธ Update parsing docs
    • โž• Add new parsing tests
    • โšก๏ธ Update devDependencies
    • ๐Ÿ›  Fix previous tests (ava >=3.0.0)
  • v2.3.1 Changes

    January 20, 2020
    • ๐Ÿ‘€ Export a parse function
    • ๐Ÿ“œ Document the new parse function