Back to Explore

inspect-js/which-boxed-primitive

GitHub
2 watchersOpen source

Last release:

which-boxed-primitive detects whether a given JavaScript value is a boxed primitive and returns the corresponding built-in constructor name (like Boolean, Number, or String), or null for unboxed primitives. It is designed to work across realms and iframes without relying on instanceof or mutable properties, which makes it useful for type checks in mixed execution contexts.

Project status

  • Appears quiet or in maintenance mode, since the last upstream push was 2026-03-19, but the most recent published package updates you provided are from 2024-12 (v1.1.1).
  • Update cadence looks slow, with gaps of years earlier on (v1.0.x in 2020, v1.0.1-1.0.0 in 2019), and then a shorter but still modest gap to the next visible update (2024-12).

AI summary generated

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

Recent updates

  • v1.1.1

    The release v1.1.1 contains no published release notes. The only changes visible in the diff are version bumping and updates to a set of runtime and dev dependency versions.

  • v1.1.0

    Release v1.1.0 primarily adds TypeScript type declarations and updates repository tooling (tests, CI workflows, linting, and publish scripts). The runtime implementation in index.js appears unchanged, aside from a JSDoc type import comment.

    Features
  • v1.0.2

    Release v1.0.2 was published on 2020-12-14, but no release notes were provided by the publisher. As a result, there is no documented information about new features, fixes, breaking changes, or dependency updates for this version.

  • v1.0.1

    Release v1.0.1 primarily updates the package metadata and npm publishing behavior. No functional runtime code changes are shown in the provided diff, only a change to the publish script and an added dev dependency.

  • v1.0.0

    Release v1.0.0 was published on 2019-08-10, but no release notes were provided by the publisher. As a result, this release cannot be analyzed for documented new features, breaking changes, bug fixes, security updates, or migration steps from the release notes alone.