Back to Explore

inspect-js/has-proto

GitHub
2 watchersOpen source

Last release:

This is a small JavaScript utility that detects whether the current environment supports setting an object's [[Prototype]] at creation time using `__proto__`. It also provides accessor and mutator checks (via `has-proto/accessor` and `has-proto/mutator`) to help you write compatibility logic for different JavaScript runtimes.

Project status

  • The source appears to have ongoing upstream activity (last upstream push on 2026-01-13), but published tagged updates appear to have paused since v1.2.0 (2024-12-06), which is a long gap relative to today (2026-06-09).
  • Update cadence looks bursty rather than steady, with two quick updates in early Dec 2024 (v1.1.0 on 2024-12-01, v1.2.0 on 2024-12-06), followed by no further tagged updates for many months.

AI summary generated

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

Recent updates

  • v1.2.0

    v1.2.0 primarily refactors the internal implementation for getting and setting __proto__-related descriptors. The code now uses the dunder-proto package (get and set) instead of local helper modules built on gopd plus call-bind, and CI workflows were adjusted for Node 10-20 and Node 20+.

  • v1.1.0

    v1.1.0 adds new “hasProto” capability check entrypoints, `has-proto/accessor` and `has-proto/mutator`, alongside the existing default export. The implementation also changes the default export to compute the result once at module load time (cached), rather than re-evaluating on every call.

    BreakingFeatures
  • v1.0.3

    Release v1.0.3 was published on 2024-02-19, but no release notes or change details were provided by the publisher. As a result, the specific developer-impacting changes (features, fixes, breaking changes) cannot be determined from the provided information.

  • v1.0.2

    v1.0.2 updates the `has-proto` implementation and adds tooling for TypeScript-based type generation/checking. The only functional runtime code change is in `index.js`, where the feature-detection logic was tweaked. Release notes were not provided by the publisher, so changes are assessed purely from the diff.

  • v1.0.1

    v1.0.1 makes a small behavioral adjustment to the exported hasProto() detection logic, plus some metadata/doc updates. There were no release notes provided in the release description, so the functional change in index.js is not documented there.

  • v1.0.0

    This release is tagged v1.0.0, but the publisher did not provide any release notes. As a result, there is no documented information about new features, bug fixes, security fixes, breaking changes, or migration steps.