Back to Explore

petamoriken/float16

GitHub
1 watchersOpen source

Last release:

JavaScript half-precision floating-point (IEEE 754 float16) ponyfill that provides a `Float16Array`-like API plus helpers like `getFloat16`, `setFloat16`, and `f16round`. It is useful when you need float16/`float16array` functionality in environments that do not yet support the ES2025 `float16array` standard, with guidance noting that modern environments may not need the ponyfill.

Project status

  • Actively maintained: The upstream GitHub repo shows a recent push on 2026-08-10, just one day before today (2026-08-11), indicating ongoing work (even though the most recent tagged update was earlier).
  • Updates and cadence: Published updates appear irregular, with tags at v3.9.1 (2024-12-31), v3.9.2 (2025-03-09), and v3.9.3 (2025-10-10). After v3.9.3, there have been no further tagged updates provided, though there is at least one upstream push in 2026.

AI summary generated

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

Recent updates

  • v3.9.3

    v3.9.3 updates the package export type definition entry to point to index.v5.7.d.ts. It also bumps various development tool dependencies and updates the npm publish workflow behavior. No runtime API changes are visible from the provided diff.

  • v3.9.2

    Release v3.9.2 updates the published TypeScript type metadata used for JSR to align with TypeScript 5.7. It also bumps a number of devDependencies used for the project build and test tooling.

  • v3.9.1

    v3.9.1 is described as a documentation and devDependency chore release. However, the code diff shows a meaningful change to the library's inspect integration and JSR export wiring, which is not mentioned in the release notes.

  • v3.9.0

    v3.9.0 primarily updates the TypeScript type declarations for Float16Array to better support TypeScript 5.6 and 5.7, with additional devDependency updates. The code diff shows substantial changes to the published .d.ts files, including new version-specific declaration files and updates to how types are selected by TypeScript.

    Features
  • v3.8.7

    v3.8.7 is a patch release focused on correcting an internal float16 conversion table calculation. It also updates development dependencies and makes some CI and documentation-related changes in the repo.

  • v3.8.6

    v3.8.6 makes a small runtime change to avoid a frequently-caught exception during type checks, and bumps a couple of dev dependencies. The only functional code diff is in the internal ArrayBuffer detection utility.

  • v3.8.5

    Release v3.8.5 is presented as a simple devDependency maintenance release, but the diff shows broader repository changes. In addition to dependency bumps, it updates CI workflow actions, adds an automated publish workflow (npm and JSR), and changes the Node customInspect implementation signature used by Float16Array inspection hooks.

    Features
  • v3.8.4

    v3.8.4 primarily fixes float16 rounding behavior (notably the ties-to-even handling) and updates development dependencies. The core rounding implementation was refactored, and CI workflow actions were also bumped to newer major versions.

  • v3.8.3

    v3.8.3 primarily fixes the Float16Array constructor to correctly accept SharedArrayBuffer inputs. It also updates development dependencies. The code changes go beyond the stated fix, including internal conversion and utility refactors that could affect edge-case float16 rounding and import compatibility.

  • v3.8.2

    v3.8.2 is a small patch release focused on correcting half-float rounding behavior (ties-to-even) and updating development dependencies. The code changes also adjust expected conversion results in tests, indicating observable numeric output changes for some inputs.

    Breaking