async-function is a small package that returns the normally hidden AsyncFunction constructor when it is available. It is useful if you need to create async functions dynamically (for example, by calling new AsyncFunction(...) with a function body).
Project status
- The repository for
ljharb/async-functionshows an upstream push on 2026-04-21, but the provided update history only includes a publishedv1.0.0from 2025-01-23, so it looks more like ongoing but not very frequently released updates. - Apparent update cadence: no evidence of additional published
updatessincev1.0.0in early 2025, even though there was a code push in 2026.
AI summary generated
Recent updates
v1.0.0
v1.0.0 is a major release that refactors the package API to expose a function, `getAsyncFunction()`, which returns the AsyncFunction constructor when available (otherwise `false`). It also adds ESM entrypoints and TypeScript declaration files, and introduces test coverage to validate behavior across Node versions.
BreakingFeaturesv0.1.0
This release is v0.1.0, but the publisher did not include any release notes. As a result, no developer-impacting changes (new features, fixes, or breaking changes) can be confirmed from the provided information. If you are upgrading, review the full changelog and compare tags to identify behavioral or API changes not documented here.