Skip to content

0.0.12

Choose a tag to compare

@cmsj cmsj released this 09 Sep 14:38
· 487 commits to main since this release

Added

  • hs.streamdeck
  • hs.canvas
  • Simple onboarding UI
  • Async variant of hs.eventtap.keyStrokes()
  • hs.screen now has a watcher for display configuration changes
  • hs.geometry methods from v1 are now present on corresponding basic types (HSRect, HSPoint, HSSize)
  • fetch()
  • There is now an advanced setting for enabling garbage collection logging, if you're trying to track down a memory leak issue
  • HSHotkey objects now support "repeat" events when a key is being held down
  • Ctrl-N and Ctrl-P can now be used to navigate through the results list in an hs.chooser window
  • The first 10 results in an hs.chooser window now have keyboard shortcuts

Changed

  • require() no longer simply reads and evaluates JS files. It is now a CommonJS compatible module loader
  • loaded Spoons are now exposed via hs.spoons
  • The included command line binary is now named hs2 rather than hs, to avoid conflicting with a HS v1 install
  • hs.timer methods now support chaining

Fixed

  • Various functions in hs.window are now actually bound to the hs.window object and can thus be used
  • hs.camera watcher is no longer incorrectly garbage collected shortly after initialisation
  • hs.audiodevice watcher is no longer incorrectly garbage collected shortly after initialisation
  • hs.eventtap.keyStroke/keyStrokes are no longer affected by modifier keys being held down on a keyboard
  • Improved performance of hs.window.allWindows() and visibleWindows()
  • Improved hs.osascript performance by caching connection to the XPC helper