Back to Explore

ljharb/set-function-length

GitHub
1 watchersOpen source

Last release: 3/9/2024

set-function-length lets you set a JavaScript function’s `length` property, taking a function, a new integer length (0 to 2**32), and an optional `loose` flag. It returns the same function after attempting the update, useful in code that needs to adjust reported arity.

Project status

  • The repository appears actively maintained, with an upstream push as recent as 2025-12-30, though the provided recent update summaries only cover versions from 2024-01 to 2024-03.
  • Apparent update cadence based on the listed updates is relatively close early in 2024 (v1.2.0 on 2024-01-14, v1.2.1 on 2024-02-06, v1.2.2 on 2024-03-09), but there is not enough evidence here to confirm a continuing cadence after March 2024.

AI summary generated Today

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

Recent updates

  • v1.2.2

    3/9/2024

    v1.2.2 has no publisher release notes provided, but the diff shows it is mainly about TypeScript declaration handling (new handwritten .d.ts files, build script changes), CI/workflow updates, and several dependency version bumps. There are no clearly visible runtime logic changes in the main implementation file from the provided diff snippet.

  • v1.2.1

    2/6/2024

    Release v1.2.1 contains a small internal refactor and dependency bumps. There are no functional API or export changes shown in the provided diff, but the way the module obtains the TypeError intrinsic has been altered.

  • v1.2.0

    1/14/2024

    Release v1.2.0 was published on 2024-01-14. No release notes were provided by the publisher, so the developer impact of this upgrade (new features, bug fixes, or breaking changes) is not documented.