Skip to content

@holoflows/kit 0.3.0

Compare
Choose a tag to compare
@Jack-Works Jack-Works released this 13 May 12:06
· 372 commits to master since this release

You can install it on npm now.

πŸ’₯ Breaking Changes

  1. You need to install webextension-polyfill on Chrome to use @holoflows/kit
  2. The behavior of .querySelector and .querySelectorAll chaining has changed!
- previously: .querySelector('a').querySelector('.b') means `a, b`
+ currently : .querySelector('a').querySelector('.b') means `a b`
  1. Effect forwarding of style has changed.
- previously: style (forward, no-undo, move)
+ currently : style (forward, undo, move)
  1. metadata support for AsyncCall has dropped.
  2. Two new contexts for Context now ('options' and 'debugging')

πŸ†• New

  1. Add .clone, .getElementsByClassName, .getElementsByTagName, .closest(beta) on LiveSelector
  2. Add creating options for DomProxy (See document for details).
  3. New .observer property on DomProxy can help you watch the dom changes.
  4. New .beforeShadow, .afterShadow property on DomProxy can directly attach shadow roots.
  5. New .weakBefore, .weakAfter property on DomProxy can check before and after without creating them implicitly.
  6. Now before and after of DomProxy get typed.
  7. New .once on Watcher class, it will return a promise and resolved when LiveSelector selects enough element then stop watching.
  8. You can omit the warning from Watcher now. (omitWarningForRepeatedKeys)
  9. AutomatedTabTask is configurable now!

πŸ“ƒ Document

We switch to @microsoft/api-documenter to generate our document from code!

πŸ‘©β€πŸ’» Others

  1. timeout and sleep is @internal now (but you can still use them!)

πŸ” Internal

  1. Watcher now use requestIdleCallback (with fallback) to control execute frequency of callback
  2. stopWatch on Watcher is not abstract now.
  3. Watcher is no longer a subclass of NodeJS.EventEmitter.