Skip to content

0.2.0 Abstract Process, subscriber ChangeDetector, debounce, rename CLI options

Choose a tag to compare

@vudaltsov vudaltsov released this 27 Mar 23:32
· 4 commits to 0.2.x since this release

Added

  • Process interface with terminate() and await() methods
  • debounce(callable, float): callable helper function
  • --debounce CLI option (default: 0.1s)

Changed

  • BC break: ProcessWithTTY moved to Process\Tty, now implements the Process interface
  • BC break: ChangeDetector contract changed from a pull-based createDetector() to a subscriber model: onChanged(Target, callable): string and cancel(string): void
  • BC break: ChangeDetector\FileMtime renamed to ChangeDetector\MtimePolling
  • BC break: Watcher::watch() parameters changed: ($command, $target) to ($target, $start, $debounce, $cancellation)
  • BC break: --extension CLI option renamed to --ext