smart-restart

Like nodemon but only watches require()d files. Like piping but easy to use with node-inspector.

MIT License

Downloads
1.3K
Stars
6

Bot releases are hidden (Show)

smart-restart - v2.6.1 Latest Release

Published by jedwards1211 5 months ago

2.6.1 (2024-05-22)

Bug Fixes

  • tolerate modules without parents (9dc9915)
smart-restart - v2.6.0

Published by jedwards1211 5 months ago

2.6.0 (2024-05-15)

Bug Fixes

  • hmr: deregister a module's own hot reload callbacks when it gets replaced (e7f497b)
  • ModuleGraph: handle cycles, I forgot to add the check (6d0b75e), closes #37
  • tolerate module id === parent.id (857b460)

Features

  • support module.hot.accept (d9b8008)
smart-restart - v2.6.0-beta.4

Published by jedwards1211 5 months ago

2.6.0-beta.4 (2024-05-15)

Bug Fixes

  • hmr: deregister a module's own hot reload callbacks when it gets replaced (e7f497b)
smart-restart - v2.6.0-beta.3

Published by jedwards1211 5 months ago

2.6.0-beta.3 (2024-05-15)

Bug Fixes

  • tolerate module id === parent.id (857b460)
smart-restart - v2.6.0-beta.2

Published by jedwards1211 5 months ago

2.6.0-beta.2 (2024-05-15)

Bug Fixes

  • ModuleGraph: handle cycles, I forgot to add the check (6d0b75e), closes #37
smart-restart - v2.6.0-beta.1

Published by jedwards1211 5 months ago

2.6.0-beta.1 (2024-05-12)

Features

  • support module.hot.accept (d9b8008)
smart-restart - v2.5.4

Published by jedwards1211 5 months ago

2.5.4 (2024-05-10)

Bug Fixes

  • fix mistake in TS conversion that prevented all restarting (d540e16)
smart-restart - v2.5.3

Published by jedwards1211 5 months ago

2.5.3 (2024-05-09)

Bug Fixes

  • log inspected errors, not just errors' message or stack (79b3e3c)
smart-restart - v2.5.2

Published by jedwards1211 over 1 year ago

2.5.2 (2023-04-05)

Bug Fixes

  • error when dynamic importing ESM (321b89b)
smart-restart - v2.5.1

Published by jedwards1211 about 2 years ago

2.5.1 (2022-08-05)

Bug Fixes

smart-restart - v2.5.0

Published by jedwards1211 over 4 years ago

2.5.0 (2020-07-17)

Features

  • add default export, TypeScript and Flow type defs (4632337)
  • add TypeScript definitions (a1d4359)
smart-restart - v2.4.0

Published by jedwards1211 over 4 years ago

New Features

  • support exit message from child process
smart-restart - v.2.3.0

Published by jedwards1211 over 4 years ago

New Features

  • support restartOnExit option
smart-restart - v2.2.0

Published by jedwards1211 over 5 years ago

2.2.0 (2019-05-07)

Features

  • add onChildSpawned option (8fd6b7f)
smart-restart - v2.0.2

Published by jedwards1211 over 5 years ago

Bug Fixes

  • debounce restarting and clearing require cache
  • clear entire require cache instead of just specifically chosen files
  • wait for child process to end even with SIGKILL
smart-restart - v2.0.1

Published by jedwards1211 over 5 years ago

Bug Fixes

  • Restarting wasn't working properly after child errored out or exited normally, fixed
smart-restart - v2.0.0

Published by jedwards1211 over 5 years ago

Bug Fixes

  • Wait for child to exit before restarting, to prevent "an inspector is already running on port 9229"
    type errors

New Features

  • Add killSignal option to customize signal used to kill the process when restarting
  • Add deleteRequireCache option: (absolute) files in this array and the files they import will
    not trigger a restart when changed, but instead smart-restart will delete these files from the
    require cache (so that if you require them again, it will load the newer version)

Breaking Changes

  • restartOnExit has been renamed to restartOnError, since it doesn't restart when the process
    exits normally