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 repository shows evidence of ongoing activity, with an upstream push on 2025-12-30. However, the provided published
updateshistory stops at v2.0.2 on 2024-02-20, so there has been a long gap since the last documented update in this data. - Apparent
updatecadence (based on the tagged versions provided) was roughly 5 months between v2.0.1 (2023-09-13) and v2.0.2 (2024-02-20), then no further taggedupdatesappear up to the 2026-06-09 date in the supplied list.
AI summary generated
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.
Featuresv2.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.