Back to Explore

thenables/thenify

GitHub
1 watchersOpen source

Last release: 6/17/2020

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

  • The repo appears largely unmaintained, with the last upstream push recorded on 2020-10-25, and the most recent published update in the provided history being 3.3.1 on 2020-06-17.
  • Apparent update cadence is very low (at least from the available record, gaps span several years: 3.3.1 in 2020, then 3.3.0 in 2017, then 3.2.1 in 2016).

AI summary generated Today

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

Recent updates

  • 3.3.1

    6/17/2020

    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

    5/19/2017

    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

    10/10/2016

    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

    2/1/2016

    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

    10/20/2015

    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

    1/6/2015

    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

    12/25/2014

    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

    12/17/2014

    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.