Back to Explore

rawify/Fraction.js

GitHub
2 watchersOpen source

Last release:

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

  • Maintenance status: Not clearly actively maintained today, with the latest upstream push on 2025-09-26 and the latest documented update summary on 2025-03-30, which is a long gap relative to 2026-09-10 (suggesting a quiet or maintenance mode period rather than active iteration).
  • Update cadence (apparent): Updates cluster around Oct-Nov 2024 (v5.0.1 to v5.0.5), then Nov 2024 (v5.2 initial), followed by a smaller patch (v5.2.2) in Mar 2025, and no further update summaries are shown after that (cadence looks intermittent, not steady).

AI summary generated

AI-generated from public sources. May be inaccurate. Report

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.

    BreakingFeatures
  • v5.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.

    Features
  • v5.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.

    BreakingFeatures
  • v4.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.