Back to Explore

ljharb/set-function-name

GitHub
4 watchersOpen source

Last release:

Set a function’s name property in JavaScript by calling the exported helper with a function (fn), the desired name (name), and an optional loose flag to avoid throwing on failure. It returns the original function, useful when you need stable or clearer function names for debugging or introspection.

Project status

  • The source appears not to be actively maintained in terms of published updates, with the most recent tagged update at v2.0.2 on 2024-02-20, and no newer update tags shown since then (as of 2026-09-10).
  • Update cadence looks low, with gaps of about year and a half between the last visible updates (v2.0.2 in 2024, prior substantive update v2.0.1 in 2023), and then a longer period with no visible update tags after 2024.

AI summary generated

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

Recent updates

  • v2.0.2

    v2.0.2 adds TypeScript support (a new index.d.ts and a package.json types entry), and updates a few runtime dependencies. The runtime JS change is small, but it includes a refactor to use es-errors/type for the thrown TypeError.

    Features
  • v2.0.1

    v2.0.1 updates the package version and adjusts dependency placement so that `functions-have-names` is available at runtime. Release notes were not provided by the publisher, so the only substantive change visible is in the dependency configuration.

  • v2.0.0

    The provided release data does not include any release notes or description of changes for v2.0.0. As a result, it is not possible to identify feature additions, bug fixes, breaking changes, or migration requirements from the release notes alone.

  • v1.0.0

    This release is tagged v1.0.0, but no release notes or change log details were provided by the publisher. As a result, there is no documented information here about new features, bug fixes, security updates, or potential breaking changes.