Skip to content
This repository has been archived by the owner on Sep 3, 2022. It is now read-only.

Commit

Permalink
Fixed issues with render and vdom.
Browse files Browse the repository at this point in the history
1. Put check in render function for insertion of Fragment directly into DOM. Now throws error.
2. Added back in complete check for read-only properties so that get set as node properties correctly.
3. Put check in patch function to check for onmount prop for when it is registered on the parent VNode that will patch and existing DOM node.
4. Updates all tests to deal with current patch, render and run behavior.
  • Loading branch information
Wobbabits committed Oct 15, 2019
1 parent e06f9d4 commit 42ac086
Show file tree
Hide file tree
Showing 15 changed files with 218 additions and 241 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# composi/core Changelog

## 2.0.1 (October, 15, 2019)

### src/render.js

* Fixed so when render mount function component with onmount hook on existing element, the onmount hook fires.

### src/vdom.js

* Made sure that read-only properties like `list`, `form`, etc. are rendered as attributes.

### text/fragment.html, h.html, render.html, runtime.html

* Fixed tests to hanlde new vdom patching method.

## 2.0.0 (October, 7, 2019)

### src/vdom.js
Expand Down
2 changes: 1 addition & 1 deletion dist/composi-core.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified dist/composi-core.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/composi-core.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 42ac086

Please sign in to comment.