Skip to content

0.7.0

Compare
Choose a tag to compare
@Jack-Works Jack-Works released this 03 Mar 07:16
· 152 commits to master since this release

0.7.0 (2020-03-03)

Breaking changes

MessageCenter has changed:

Before:

const mc = new MessageCenter(key)
mc.emit(key, data, alsoSendToDocument)

After:

const mc = new MessageCenter(alsoSendToDocument, key)
mc.emit(key, data)

Bug Fixes

  • apply @rollup/plugin-replace rename (b24c0b8)
  • bypass concurrent lock (7e627ee)
  • getTabOrCreate not correctly update tab (c8feb0b)
  • nullish chain in get context (5b2113f)
  • type error when upgrade mitt (79c7c4b)
  • type not portable error (a3c2f65)
  • typo in import decl (0cf93a6)
  • mc: missing instanceKey when dispatch event to document (c4444f9)
  • update jsx renderer (dd105c7)

Features

  • add isEqual to ValueRef (5e52bc5)
  • make ValueRef.isEqual public (f39d05e)

Reverts

  • "chore: to ts 3.7 and enable useDefineForClassFields" (9fb3b34)

0.6.0 (2019-10-11)

Bug Fixes

  • [close #22], add warning for nth on SingleMode (3c8e0eb)
  • AutomatedTabTask not work well with ID 0 (5919900)
  • bugs in AutomatedTabTask, MessageCenter and AsyncCall (cffb695)
  • mixed single mode in ls and watcher; close #18 (45bb024)
  • use ts 3.6 new stricter iterator type to fix AsyncCall's type (dded411)
  • when tab id is 0, go through wrong branch (78af7b5)
  • AsyncCall: false result dropped (49311a7)
  • AsyncCall: options and call stack (3321b73)
  • AsyncCall: reject methods starts with "rpc." (081be1e)
  • AutomatedTabTask: can not use twice (480153e)
  • docs: fix doc inconsistency (cb72dae)
  • LiveSelector: ban mutation on LiveSelector (5477a55)
  • LiveSelector: replace (687e9e4)
  • MessageCenter: async listener (62d6113)
  • MessageCenter: browser.runtime.onMessage.addListener type error (ce69f8a)
  • clone the liveselector to avoid unexpected modify (7509efd)
  • done is undefined (a727f06)
  • ValueRef: called when value has not changed (b1b77d5)
  • Watcher: false positive warning (25b3987)
  • Watcher: fix warning (424f302)
  • Watcher: then() emits wrong value (820aca8)
  • Watcher: type error for EventCallback (b425d1e)

Features

  • add devtools enhance for LiveSelector (450b507)
  • add devtools for DOMProxy (2cca36c)
  • add stopWatchOnDisconnected in debugger (f5bcb41)
  • brand new LiveSelector and Watcher debugger (0637d6a)
  • remove duplicate doms in ls. close #10 (163a195)
  • split AsyncCall as a dependency (5ce733e)
  • Watcher's single mode now relay on LiveSelector (a05cf3b)
  • AsyncCall: new option preferLocalImplementation (6a8182f)
  • AsyncCall: send local stack to remote when calling (170c5f7)
  • AsyncCall: support async generator functions now. (17804bd)
  • AsyncCall: support execute patch mode (3a71bb9)
  • AsyncCall: support Notification now (0a9b884)
  • AsyncCall: transfer Error type (586effd)
  • AutomatedTabTask: support tabID as input (b1d606f)
  • LiveSelector: add a shortcut to .replace(() => arr) (615a4e6)
  • MessageCenter: add off function, let on return a canceller (db4751b)
  • MessageCenter: add serialization (80d32fd)
  • add Watcher.omitWarningForForgetWatch (8c9589f)

Reverts