Back to Explore

ljharb/get-intrinsic

GitHub
2 watchersOpen source

Last release:

get-intrinsic is a JavaScript utility that retrieves and robustly caches JS language-level intrinsics when it is first required. It is useful for looking up well-known intrinsic objects and functions, including handling missing intrinsics in a predictable way.

Project status

  • Actively maintained: Evidence suggests ongoing work (upstream push on 2026-01-13, and the latest tagged updates shown are v1.3.1 on 2025-09-29), so the project does not appear dormant as of 2026-06-09.
  • Update cadence (apparent): In the provided history, updates came roughly every 6 to 10 months during 2024 to 2025 (for example, v1.2.4 in 2024-02, v1.2.5 in 2024-12, v1.3.0 in 2025-02, v1.3.1 in 2025-09). This points to an evolving but steady release pattern rather than a rapid cadence.

AI summary generated

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

Recent updates

  • v1.3.1

    v1.3.1 is a small internal refactor of get-intrinsic. The main change is how the library obtains the %AsyncFunction%, %GeneratorFunction%, and %AsyncGeneratorFunction% intrinsics, shifting away from dynamically constructing code with the Function constructor.

    Security
  • v1.3.0

    v1.3.0 introduces support for an additional JavaScript intrinsic, Float16Array, and bumps several dependencies. The provided release notes contain no published change description, so the actual behavior/API impact must be inferred from the code diff.

  • v1.2.7

    Release v1.2.7 was published on 2025-01-02. No release notes or change details were provided, so the impact of this upgrade (API compatibility, behavior changes, bug fixes, or security updates) cannot be determined from the publisher text.

  • v1.2.6

    v1.2.6 has no publisher release notes provided, so documented behavior changes are unclear. The code diff shows internal refactors to how intrinsics are sourced and cached, plus added support for several Math intrinsics and dependency updates.

    Features
  • v1.2.5

    This release is v1.2.5 of get-intrinsic, but the publisher-provided release notes are missing (none provided). The code diff shows a refactor of how intrinsics are resolved and cached, plus several dependency and CI/workflow adjustments.

    BreakingFeatures
  • v1.2.4

    No release notes were provided by the publisher for v1.2.4. The actual change in this release is a small refactor in how error-related JavaScript intrinsics are resolved, plus a dependency bump of `es-errors`.

    Breaking
  • v1.2.3

    No publisher release notes were provided for v1.2.3. The actual diff shows a small refactor in index.js to source error constructors from the es-errors package (instead of relying on globals), plus package metadata and dependency updates.

    Breaking
  • v1.2.2

    Release v1.2.2 updates the internal implementation to use the `hasown` package instead of `has`, and bumps several dependency versions. The published release notes section contains no described changes, so the diff is the only reliable source of what actually changed.

  • v1.2.1

    v1.2.1 focuses on making get-intrinsic more robust in runtimes that do not provide `__proto__`. The code changes guard prototype lookups so the library avoids crashing and instead degrades gracefully by returning fewer intrinsics as `undefined` when prototype access is unavailable.

  • v1.2.0

    Version v1.2.0 was published on 2023-01-20, but the publisher did not provide release notes. Without documented changes, it is not possible to identify new features, breaking changes, bug fixes, or security updates from the release text alone.