unstale

npm / exit-hook

exit-hook

What changed in exit-hook 3 to 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

5 breaking3 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

exit-hook 54 changes

Breaking changes 1

Fixes and other changes 3

  • The async exit path flushes stdout and stderr before exiting, helping ensure pending output is written.

    5.1.0release notes

  • Fixes gracefulExit() so it honors explicit exit codes.

    5.0.1release notes

  • exit-hook now respects process.exitCode.

    5.0.0release notes

exit-hook 42 changes

Breaking changes 2

  • Node.js 18 is now required to use exit-hook.

    4.0.0release notes

  • The minimumWait option was renamed to wait; it specifies how long the onExit function is expected to take.

    4.0.0release notes

exit-hook 32 changes

Breaking changes 2

  • Node.js 12.20 is now required to run the package.

    3.0.0release notes

  • The package is now pure ESM, changing how developers import and use it.

    3.0.0release notes