Back to Explore

inspect-js/is-array-buffer

GitHub
4 watchersOpen source

Last release:

This module checks whether a given value is a JavaScript ArrayBuffer. It is designed to work across realms and iframes without relying on instanceof or mutable properties, making it useful for type checks in JavaScript codebases.

Project status

  • The source appears largely in maintenance mode, with the latest known published update being v3.0.5 on 2024-12-16, while the most recent upstream push recorded is 2025-12-30 (about 1.6 months before, but still roughly 21 months from the latest published update as of 2026-09-10).
  • Update cadence is low: multiple updates occurred in 2024 (v3.0.4 in early 2024, v3.0.5 in late 2024), but there is a long gap since then with no newer published updates shown.

AI summary generated

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

Recent updates

  • v3.0.5

    No publisher release notes were provided for v3.0.5. The code diff shows a small internal refactor in index.js, dependency bumps (including adding call-bound), and CI and tooling changes around testing and type checking.

  • v3.0.4

    Release v3.0.4 does not include any publisher release notes. The code diff shows a patch primarily focused on adding TypeScript type definitions and adding TypeScript-based type checking to the lint/test flow, plus small runtime detection tweaks in the ArrayBuffer check implementation.

    Features
  • v3.0.3

    Release v3.0.3 was published on 2024-02-03, but the publisher did not provide any release notes. As a result, there is no documented information about new features, bug fixes, breaking changes, security updates, or migrations.

  • v3.0.2

    This release updates the `is-array-buffer` type guard to better handle Node 0.8 edge cases when converting objects to typed arrays. It also bumps several dev and dependency versions and adds a targeted test for non-zero length ArrayBuffers.

  • v3.0.1

    This release bumps is-array-buffer to v3.0.1 and includes a targeted fix for older Node behavior (notably node 0.8) around ArrayBuffer detection. The patch adds runtime logic to prevent TypedArray inputs from being incorrectly treated as ArrayBuffers, and expands the test suite to cover TypedArray cases.

  • v3.0.0

    v3.0.0 replaces the package implementation of `is-array-buffer` with a new runtime detection approach and adds a small test suite for it. Release notes were not provided by the publisher, so the practical impact must be inferred from the code and packaging changes.

    Breaking
  • v2.0.0

    v2.0.0 is a major refactor that converts the library to TypeScript and changes how the package is built and published. It also removes the prebuilt dist artifacts (including the UMD bundles) and changes the package entry points to root-level index.js files while adding a TypeScript declaration file.

    Features
  • v1.0.1

    v1.0.1 makes mostly tooling and packaging updates (linting, tests with coverage, build metadata, and dependency upgrades). The runtime logic change in src/index.js is minimal and keeps the same exported function behavior, but package.json entrypoints for browser bundling appear to have changed.

    Breaking
  • v1.0.0

    v1.0.0 restructures the package to use a source file under src/ and a Rollup build that outputs multiple module formats (UMD, CommonJS, and ESM). The release notes section is empty, so the v0.1.0 to v1.0.0 behavioral and packaging changes shown by the diff are effectively undocumented.

    Breaking
  • v0.1.0

    Release v0.1.0 was published on 2015-11-28. No release notes or change details were provided by the publisher, so there is no developer-facing information available to assess features, breaking changes, or fixes.