Back to Explore

ljharb/unbox-primitive

GitHub
3 watchersOpen source

Last release:

Unbox a boxed JavaScript primitive value (for example, Boolean, String, Number, BigInt, or Symbol) back into its underlying primitive. Useful when you need to extract the primitive safely across realms or if you want to avoid relying on `instanceof` or mutable properties.

Project status

  • The upstream repo shows an actual push on 2025-12-30, which suggests the project is not abandoned, but published update notes are infrequent (no documented update after v1.1.0 in 2024-12-16).
  • Apparent update cadence (based on the available versioned updates): v1.1.0 in 2024, then prior updates in 2022, 2021, and 2019, indicating long gaps between numbered updates.

AI summary generated

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

Recent updates

  • v1.1.0

    v1.1.0 adds TypeScript type definitions for unbox-primitive, and refactors the implementation to use the `call-bound` package instead of `call-bind/callBound`. It also updates several dependencies and test fixtures, and changes CI workflows to split Node 10-20 and 20+ test jobs. The publisher release notes field contains no details, so most user-impacting changes are not described there.

    BreakingFeatures
  • v1.0.2

    v1.0.2 mainly refactors the internal “call a boxed primitive method” logic to use the newer `call-bind` package instead of `function-bind`. It also updates project tooling and CI workflows, and bumps a handful of dependency versions.

  • v1.0.1

    Release v1.0.1 was published on 2021-03-25, but no release notes were provided by the publisher. As a result, the specific changes, fixes, or compatibility impacts are not documented in the available text.

  • v1.0.0

    Release v1.0.0 was published on 2019-08-11, but no release notes were provided by the publisher. As a result, this release cannot be assessed for new features, breaking changes, bug fixes, security or performance updates based on the provided information.