Back to Explore

rawify/Fraction.js

GitHub
1 watchersOpen source

Last release: 3/30/2025

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: The repository shows multiple recent updates with version bumps (v5.2, v5.2.1, v5.2.2), and there is also a recorded upstream push on 2025-09-26, though its contents are not included in the provided summaries.
  • Update cadence (apparent): Noticing the provided versioned updates, activity appears incremental, with v5.2 and v5.2.1 both on 2024-11-17, then v5.2.2 on 2025-03-30 (roughly a few months later).

AI summary generated Today

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

Recent updates

  • v5.2.2

    3/30/2025

    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

    11/17/2024

    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

    11/17/2024

    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

    10/10/2024

    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

    10/10/2024

    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

    10/9/2024

    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

    10/6/2024

    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

    10/5/2024

    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

    10/4/2024

    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

    3/5/2022

    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.