lahama 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/lahama.js +3 -5
  2. package/package.json +1 -1
package/dist/lahama.js CHANGED
@@ -241,8 +241,8 @@ function createApp({ state, view, reducers = {} }) {
241
241
  subscriptions.push(subs);
242
242
  }
243
243
  function renderApp() {
244
- view(state, emit);
245
- vdom = patchDom();
244
+ const newVdom = view(state, emit);
245
+ vdom = patchDom(vdom, newVdom, parentEl);
246
246
  }
247
247
  return {
248
248
  mount(_parentEl) {
@@ -262,7 +262,5 @@ function createApp({ state, view, reducers = {} }) {
262
262
  },
263
263
  }
264
264
  }
265
- function patchDom(vdom, newVdom, parentEl) {
266
- }
267
265
 
268
- export { createApp, h, hFragment, hString };
266
+ export { DOM_TYPES, createApp, h, hFragment, hString };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lahama",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "",
5
5
  "main": "dist/lahama.js",
6
6
  "files": [