Skip to content

Latest commit

 

History

History
70 lines (45 loc) · 2.31 KB

CHANGELOG.md

File metadata and controls

70 lines (45 loc) · 2.31 KB

0.9.1

  • 🔧 [fixed] component was not disposed when parent node is removed from a page (#46)

0.9.0

/* (old) sync call */
<div data-bazooka="init-time">
    will be called on `Bazooka.refresh()` / `Bazooka.watch()`
</div>

/* (new) async call */
<div data-bazooka="init-time" data-baz-async="viewport">
    will be called when in viewport
</div>

0.8.0

  • ❌ [removed] Baz.h.getAttrs(node). Use Baz.h.getAttrs(prefix, node) or Baz.h.getAttrs(prefix)(node) instead (deprecated since 0.4.1)
  • 🔧 [fixed] parsing pretty/multiline JSON (like {\n"a": 1\n}) by Baz.h.getAttrs:
// node = <div data-baz-json='{\n"a": 1\n}' />

Baz.h.getAttrs('baz', node).json
// prior 0.8.0
//    => '{\n"a": 1\n}'

// after 0.8.0
//    => { "a": 1 }

0.7.0

Hot Reload

  • ➕ [added] return dispose functions from bazFunc
  • ➕ [added] Bazooka.rebind to update already bound bazFuncs
  • ➕ [added] BazookaWrapper.prototype.HMRState to preserve state between hot reloads

0.6.1

  • 🔧 [changed] rethrow first exception from Bazooka.refresh

0.6.0

  • ➕ [added] wrapped bazFunc calls into try/catch

0.5.0

  • ❌ [removed] MutationObserver and Function.prototype.bind polyfills

0.4.1

  • ⚠️ [deprecated] Baz.h.getAttrs(node). Use Baz.h.getAttrs(prefix, node) or Baz.h.getAttrs(prefix)(node) instead

0.4.0

  • 🔧 [fixed] data-bazooka value with multiple whitespaces
  • ➕ [added] support for components without bazFunc
  • ➕ [added] BazookaWrapper.prototype.getComponents

0.3.0

  • ➕ [added] support for binding multiple bazComponents to a single node
  • ❌ [removed] automatic bazComponent loading via require(). Use Baz.register() instead