Back to Explore

ljharb/call-bind

GitHub
4 watchersOpen source

Last release:

call-bind provides utilities to robustly create a bound function using `.call.bind()`. It’s useful in JavaScript codebases that need consistent function binding and access to pre-bound methods like `call-bind/callBound`.

Project status

  • Actively maintained: Yes, the repo has recent updates, with the latest upstream push on 2026-04-09 and a tagged update v1.0.9 on 2026-04-09.
  • Update cadence: After a quieter period in 2024, updates resumed relatively close to the latest activity date, with v1.0.9 following v1.0.8 (Dec 2024 to Apr 2026). Overall, it appears to ship infrequently, but not dormant.

AI summary generated

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

Recent updates

  • v1.0.9

    v1.0.9 updates callBind to correct how the bound function .length is computed when arguments are partially applied. The only behavioral change visible in the diff is in the .length calculation logic (plus corresponding test coverage), alongside dependency and dev dependency bumps.

  • v1.0.8

    v1.0.8 is largely a refactor release that replaces direct uses of intrinsics and `function-bind` with the `call-bind-apply-helpers` package, while still preserving the public `callBind` API and its `apply` export. The accompanying test and CI changes mainly adjust environment handling and Node version matrix coverage.

  • v1.0.7

    Release v1.0.7 was published on 2024-02-13, but no release notes were provided by the publisher. As a result, there is no documented information about changes, fixes, or upgrade impacts in the provided data.

  • v1.0.6

    Release v1.0.6 updates internal implementation details and bumps several dependencies. The provided release notes are empty, so the only authoritative change record is the repository diff (index.js, package.json, and CHANGELOG.md).

  • v1.0.5

    This release updates the `call-bind` implementation to eagerly validate that the provided argument is a function, and it bumps the `set-function-length` dependency. Tests and dev tooling dependencies were also adjusted to add coverage for non-function inputs and to support the expanded test suite.

    Breaking
  • v1.0.4

    Release v1.0.4 appears to be a metadata-only release. The provided release notes contain no documented changes, and the code diff shows only a version bump and a changelog header addition.

  • v1.0.3

    v1.0.3 is a small library release that refactors how `callBind` adjusts the `length` property on the bound function. It also updates package metadata and publishing-related tooling (exports mapping, npmignore generation) and refreshes some dependencies and CI workflows.

  • v1.0.2

    v1.0.2 changes how callBind sets the bound function's .length property. The patch adjusts the length calculation to properly account for the receiver parameter, and updates tests to match the new .length behavior.

  • v1.0.1

    v1.0.1 mainly updates the call-bind implementation to preserve the returned bound function's `length` property when the runtime allows it. It also includes test and CI tooling updates, plus small dependency/devDependency bumps.

  • v1.0.0

    Release v1.0.0 was published on 2020-10-30, but the publisher did not provide any release notes. As a result, no documented changes, migrations, or fixes are available to assess upgrade impact from the release notes alone.