Skip to content

0.3.0 hotReload() function, use cancellation for interruption, Target -> Files, internalize debounce()and TtyProcess

Choose a tag to compare

@vudaltsov vudaltsov released this 29 Mar 21:02
· 5 commits to 0.3.x since this release

Added

  • hotReload<T>(callable(Cancellation): T): T function as the new top-level PHP API

Changed

  • BC break: Target renamed to Files
  • BC break: ChangeDetector\MtimePolling renamed to ChangeDetector\FileMtimePoller
  • BC break: ChangeDetector::onChanged(Target $target) parameter changed to Files $files

Removed

  • BC break: debounce function (now internal)
  • BC break: Watcher class; use hotReload() instead
  • BC break: Process interface
  • BC break: Process\Tty class (replaced by internal TtyProcess)
  • BC break: ChangeDetector\Finder class (logic merged into Files)