Skip to content

Releases: mrbar42/node-graceful

v3.1.0

17 Aug 12:54
94f783c
Compare
Choose a tag to compare
npm i -S node-graceful

yarn add node-graceful
  • update TypeScript version
  • migrate to Github Actions and run on node LTS versions (thanks @CallMeLaNN)
  • don't include .ts files in the published package

v3.0.0

25 Nov 15:18
e7733d4
Compare
Choose a tag to compare
npm i -S node-graceful

yarn add node-graceful
  • Typescript rewrite
  • BREAKING minimize API to the exit event only
  • BREAKING remove support for callback in exit event
  • NEW FEATURE allow handling uncaught exceptions
  • NEW FEATURE allow capturing unhandled rejections
  • update README to reflect the new API
  • more rigid tests
  • TS typing now derived from the code
  • optimise published files

Migration to v3

  1. to wait for asynchronous callbacks use Promise constructor
Graceful.on('exit', (done, signal) => { 
  server.close(() => done());
});
// now becomes
Graceful.on('exit', (signal) => { 
  return new Promise((resolve) => {
    server.close(() => resolve());
  });
});
  1. If you were using Graceful to listen to terminating events you can replace them with direct listeners on process.
Graceful.on('SIGTERM', listener)
//now becomes
process.on('SIGTERM', listener)`

v2.0.1

25 Jun 07:18
a5edec7
Compare
Choose a tag to compare

Usage:
npm install -S node-graceful
or
yarn add node-graceful

Changes:

  • fix security vulnerability (Thanks to Github's automated security bot)

v2.0.0: fix non-exiting bug, add tests for missing cases, bump breaking! (#13)

27 May 12:15
8de2af1
Compare
Choose a tag to compare

Usage:
npm install -S node-graceful
or
yarn add node-graceful

Changes:

v0.3.1

24 Mar 06:45
161a16c
Compare
Choose a tag to compare

Usage:
npm install -S node-graceful
or
yarn add node-graceful

Changes:

  • fix Promise type signature #3 (Thanks for the PR @awwong1!)
  • support old & new & typescript module systems
  • add a more strict typescript validation and testing

v0.3.0

09 Mar 22:26
a481985
Compare
Choose a tag to compare

Usage:
npm install node-graceful
or
yarn add node-graceful

Changes:

  • Fixed Typescript typeing detection (#1)
  • use typescript for es5 transpiling

v0.2.4

28 Jan 18:15
705d297
Compare
Choose a tag to compare
  • add Typescript definition file