Back to Explore

ljharb/call-bind

GitHub
1 updates · last 90 days1 watchersOpen source

Last release: 1 month ago

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

  • The repository appears actively maintained, with the most recent update (v1.0.9) on 2026-04-09, after prior updates in 2024.
  • Update cadence looks intermittent rather than frequent, with notable version bumps at 2026-04-09, 2024-12-06, and 2024-02-13 (roughly 1 to 2 year gaps between these points).

AI summary generated Today

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

Recent updates

  • v1.0.9

    1 month ago

    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

    12/6/2024

    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

    2/13/2024

    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

    2/6/2024

    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

    10/20/2023

    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

    10/19/2023

    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

    10/19/2023

    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

    1/11/2021

    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

    1/9/2021

    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

    10/30/2020

    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.