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

Commit a3a8291

Browse files
committed
Minor updates to h, createVNode and patch functions.
1. Simplified childNodes assignment in h function. 2. Removed unnecessary parameter in createVNode call. 3. createVNode now has default values of null for key and flag parameters. 4. Updated tests to reflect changes in h function. 5. Instead of assigning default value to createVNode function inside its body, moved assignment as default value in the call signature itself. 6. Marked flag parameter as optional.
1 parent ce3645e commit a3a8291

13 files changed

+51
-16
lines changed

CHANGELOG.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,40 @@
11
# composi/core Changelog
22

3-
## 1.6.1 (June 15, 2019)
3+
## 1.6.3 (July 4, 2019)
4+
5+
### h.js
6+
7+
* Simplified `childNodes` assignment.
8+
* Removed unnecessary parameter in `createVNode` call.
9+
* `createVNode` now has default values of `null` for `key` and `flag` parameters.
10+
11+
### tests/h.html
12+
13+
* Updated tests to reflect changes in `h.js`.
14+
15+
16+
### src/vdom.js
17+
18+
* Improved old and new VNode comparison in `patch` so that `onupdate` lifecycle hook only fires when the props have changed.
19+
20+
### src/vnode.js
21+
22+
* Instead of assigning default value to `createVNode` function inside its body, moved assignment as default value in the call signature itself.
23+
* Marked flag parameter as optional.
24+
25+
26+
## 1.6.2 (June 15, 2019)
427

528
### test/render.html
629

730
* Added delay for render test that needed a longer delay before accessing the updated DOM.
831

32+
## 1.6.2 (June 11, 2019)
33+
34+
### package.json, package-lock.json
35+
36+
* Updated merge-objects dependency version.
37+
938
## 1.6.1 (June 7, 2019)
1039

1140
### src/render.js

dist/composi-core.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/composi-core.js.gz

43 Bytes
Binary file not shown.

dist/composi-core.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)