Back to Explore

tapjs/signal-exit

GitHub
1 watchersOpen source

Last release: 7/29/2023

signal-exit is a Node.js utility for running an event handler when a process exits, including when execution ends, process.exit is called, process.kill sends a signal, or a fatal external signal is received. It provides an onExit API that receives (code, signal) and can be used to reliably observe exit reasons, with options like alwaysLast to control handler ordering.

Project status

  • The source appears maintained, with a recent upstream push on 2025-10-25, even though the most recent documented tagged updates in the provided list are from 2023-07-29.
  • Update cadence looks low based on the provided data, with updates spanning 2023-05-10 to 2023-07-29, and no additional update entries shown after that.

AI summary generated Today

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

Recent updates

  • v4.1.0

    7/29/2023

    This release (v4.1.0) introduces new behavior for signal handling, where an onExit listener can indicate the signal was handled. The release notes field provided by the publisher is empty, so these changes appear not to be documented there.

    BreakingFeatures
  • v4.0.3

    7/29/2023

    Release v4.0.3 does not include any publisher-provided release notes. The code changes are limited to small internal logic adjustments in src/index.ts, plus version bumps in package.json and package-lock.json.

  • v4.0.2

    5/10/2023

    Release v4.0.2 was published on 2023-05-10, but no release notes were provided by the publisher. As a result, there is no documented information about new features, fixes, breaking changes, or dependency updates in this release.

  • v4.0.1

    4/16/2023

    Release v4.0.1 contains a small behavioral change in signal handling logic within the SignalExit implementation. The code adds a compatibility workaround to avoid interfering with older signal-exit versions when both are present in the same process. Release notes were not provided, so the behavioral impact is inferred from the diff.

  • v4.0.0

    4/16/2023

    v4.0.0 is a major rewrite of signal-exit in TypeScript, and changes the package layout to ship compiled output under dist with explicit ESM/CJS/browser export entries. The public API shape changes as well, moving from the historical callable default export to named exports (notably onExit), and changing how signals are exposed. Release notes in the provided input were empty, so these behavioral and API changes appear to be undocumented there.

  • v3.0.7

    2/3/2022

    No release notes were provided for v3.0.7. The diff shows a small runtime behavior change in index.js, plus lockfile and test fixture updates.

  • v3.0.6

    11/18/2021

    v3.0.6 contains mostly internal changes to how the library validates and interacts with Node's process object, plus updates to the test/tooling setup. No release notes were provided, so these behavioral adjustments are not documented.

  • v3.0.5

    9/29/2021

    v3.0.5 makes a small runtime change in index.js for non-Node environments, and bumps the package version from 3.0.4 to 3.0.5. Release notes were not provided, so it is unclear what the maintainer intended to change beyond the observed code and dependency updates.

  • v3.0.4

    9/15/2021

    Release v3.0.4 contains mainly internal changes to how the library interacts with the Node `process` object, plus new tests covering scenarios where `global.process` becomes null or is removed. It also bumps several development dependencies used for testing and linting.

    Breaking
  • v3.0.3

    3/26/2020

    Release v3.0.3 was published on 2020-03-26, but the publisher did not provide any release notes. As a result, there is no actionable information here about new features, bug fixes, breaking changes, or dependency updates.