Back to Explore

thenables/thenify

GitHub
2 watchersOpen source

Last release:

thenify turns callback-based functions into promise-based functions. It supports preserving multiple callback arguments as an array or object (via options), can optionally allow both callback and promise styles, and converts thrown async errors into promise rejections.

Project status

  • Maintenance status: Repository activity appears quiet/dormant, with the most recent upstream push in 2020-10-25 and the latest listed update (3.3.1) in 2020-06-17, which is long before today (2026-09-10).
  • Update cadence: Updates were relatively frequent in earlier years (2014 to 2017), but there has been a multi-year gap after 2020, suggesting no current steady cadence of changes.

AI summary generated

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

Recent updates

  • 3.3.1

    Version 3.3.1 updates thenify’s internal wrapper generation. The main change is removing dynamic code generation (eval) and replacing it with a closure-based wrapper, plus tests for unusual function name handling.

    Security
  • 3.3.0

    Release 3.3.0 introduces new `thenify` options for controlling how multiple callback arguments are mapped into the resolved value. The code changes add `options.multiArgs` and `options.withCallback`, plus corresponding tests and documentation updates, while the provided release notes contain no details (none were supplied by the publisher).

    Features
  • 3.2.1

    Release 3.2.1 was published on 2016-10-10, but no release notes were provided by the publisher. Because there is no documented change log, the specific functional, compatibility, and security impacts of this upgrade cannot be determined from the release notes alone.

  • 3.2.0

    Release 3.2.0 has no provided release notes. The code changes are small but include a significant dependency swap that changes how the library selects a Promise implementation at runtime.

    BreakingFeatures
  • 3.1.1

    Release 3.1.1 makes a small change to how thenify generates the wrapper function used for promises, specifically around sanitizing the source function name. Release notes are missing, so behavior and compatibility changes are inferred from the code diff.

    Breaking
  • 3.1.0

    Release 3.1.0 has no publisher-provided release notes. The code changes add a new API for backward compatible callback usage and refactor the wrapper generation logic to support this dual calling style.

    Features
  • 3.0.0

    Version 3.0.0 refactors the thenify API and adds/updates tests. The main functional change is the thenify function signature and how the generated wrapper function name is determined.

  • 2.0.0

    Release 2.0.0 was published on 2014-12-17, but no release notes were provided. As a result, this analysis cannot identify specific new features, breaking changes, bug fixes, security updates, or migration steps from the release notes alone.