Fraction.js is a JavaScript library for working with rational numbers using exact numerator and denominator arithmetic via BigInt. It helps avoid floating point inaccuracies, and supports converting decimals to simplified fractions (optionally within an error tolerance) and parsing many input formats.
Project status
- Actively maintained: Evidence suggests maintenance rather than active, frequent upkeep. The most recent recorded update is v5.2.2 on 2025-03-30, and the last upstream push was 2025-09-26 (about 8+ months before today, 2026-06-09).
- Update cadence: There was a cluster of updates around 2024-10-04 through 2024-11-17 (several 5.0.x and 5.2 updates), followed by a later v5.2.2 update in 2025-03-30, then a long gap with no newer version evidence after that.
AI summary generated
Recent updates
v5.2.2
v5.2.2 bumps the Fraction.js version and updates the built artifacts (dist files) and documentation/comments. Release notes were not provided by the publisher, so the only guidance comes from repository changes, notably a small parsing logic adjustment and packaging config change.
v5.2.1
v5.2.1 is a small patch release with minimal code changes (5 files changed, +16 lines, -10 lines). Release notes were not provided, so the only concrete information comes from the diff itself, which includes a new early-return guard in the Fraction prototype logic.
v5.2
Release v5.2 was published on 2024-11-17, but no release notes were provided by the publisher. As a result, this release's changes, potential breaking updates, and any migration or security implications cannot be determined from the release text alone.
v5.0.5
Release v5.0.5 (code diff only) updates Fraction.js core parsing and modular arithmetic behavior. There are no published release notes, so the changes below are based entirely on the code and test updates.
BreakingFeaturesv5.0.4
v5.0.4 is a small patch update that changes core parsing logic in `src/fraction.js`, plus mirrored updates in the `dist` bundles. It also adds new unit tests covering BigInt inputs. No release notes were provided, so all behavioral changes are effectively undocumented.
v5.0.3
Release v5.0.3 contains minimal code changes and appears to be primarily a rebuild with updated headers/versioning. The only functional code change I can see in the diff is a small refactor to the rounding condition used during a division-related calculation.
v5.0.2
Release v5.0.2 updates the library metadata and build artifacts, with only small changes reflected in the diff. The only functional-looking change in the provided code changes is in the ES module distribution export surface, plus a dev dependency bump.
Featuresv5.0.1
Release v5.0.1 is a small patch release with no provided release notes. The code diff shows mostly version/branding updates, plus a notable change in how the library is exported from the built dist file (CommonJS/ES module interop).
v5.0.0
v5.0.0 introduces a BigInt-based Fraction implementation and updated distribution artifacts. The release notes are empty (none provided), so all behavioral and typing changes below are effectively undocumented in the published notes.
BreakingFeaturesv4.2.0
Release v4.2.0 was published on 2022-03-05, but the publisher did not provide any release notes. Without documented changes, there is no information available here to assess new features, breaking changes, bug fixes, or security updates.