Back to Explore

ljharb/async-function

GitHub
4 watchersOpen source

Last release:

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-function shows an upstream push on 2026-04-21, but the provided update history only includes a published v1.0.0 from 2025-01-23, so it looks more like ongoing but not very frequently released updates.
  • Apparent update cadence: no evidence of additional published updates since v1.0.0 in early 2025, even though there was a code push in 2026.

AI summary generated

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

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.

    BreakingFeatures
  • v0.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.