Back to Explore

RyanZim/universalify

GitHub
1 watchersOpen source

Last release: 11/1/2023

universalify is a Node.js utility that converts functions that use callbacks or promises so they can be used with either style. It provides helpers like `fromCallback` and `fromPromise` to adapt a function’s last callback `(error, result)` or returned Promise into a universal function.

Project status

  • Actively maintained status is unclear from the evidence provided, with the last recorded upstream push on 2023-11-01 and the most recent published update (2.0.1) also on 2023-11-01.
  • Apparent update cadence is low, there is a large gap between the 2.0.0 update (2020-07-25) and the 2.0.1 update (2023-11-01), suggesting maintenance rather than frequent evolution.

AI summary generated Today

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

Recent updates

  • 2.0.1

    11/1/2023

    Release v2.0.1 is described as a performance-only update. The code diff confirms micro-optimizations in the promise/callback adapters, plus CI and test coverage configuration updates.

  • 2.0.0

    7/25/2020

    v2.0.0 focuses on improving universalify.fromCallback behavior and performance. It also adds a regression test to ensure falsy error values (example: 0) correctly reject the promise.

    Breaking
  • v1.0.0

    3/6/2020

    v1.0.0 primarily modernizes the universalify implementation and drops older Node support. Release notes only call out dropping Node 4, 6, and 8, but the code changes also tighten the declared engine requirement and update dev tooling.

    Breaking
  • v0.2.0

    2/19/2020

    v0.2.0 contains a targeted bugfix for the universalify wrapper that supports promise-returning functions with both promises and callbacks. The main behavioral change ensures that when a callback is provided, it is not forwarded as an argument to the underlying promise function.

  • v0.1.2

    6/20/2018

    Release v0.1.2 primarily adds an engines field to package.json, which constrains supported Node.js versions for package installation. The diff also includes CI and documentation updates (Travis matrix changes, Coveralls integration, and new badges) that are not mentioned in the release notes.

    Breaking
  • v0.1.1

    7/20/2017

    v0.1.1 is a bugfix release for universalify.fromPromise(). It changes how errors are handled when the provided callback throws, so that callback-thrown errors no longer trigger an extra callback invocation.

    Breaking
  • v0.1.0

    4/22/2017

    This release updates how universalified functions are represented by ensuring their `name` attribute is preserved. It is intended to improve compatibility with code or tooling that relies on function names.