Back to Explore

tapjs/signal-exit

GitHub
1 watchersOpen source

Last release:

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

  • Maintenance status: The most recent observed updates were published in 2023-07-29 (v4.1.0 and v4.0.3), and there is a long gap to today (2026-06-09). While there is an upstream repository push on 2025-10-25, there is no evidence here of corresponding updates being released after 2023, so the project appears largely quiet or in maintenance mode.
  • Update cadence: Releases clustered in 2023-04 to 2023-07, including a major rewrite at v4.0.0, then no further published updates are shown in the provided history beyond mid-2023, indicating a low cadence in recent years.

AI summary generated

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

Recent updates

  • v4.1.0

    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

    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

    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

    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

    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

    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

    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

    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

    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

    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.