domql 1.4.21 → 1.4.22

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.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "DOM rendering Javascript framework at early stage.",
4
4
  "private": false,
5
5
  "author": "rackai",
6
- "version": "1.4.21",
6
+ "version": "1.4.22",
7
7
  "repository": "https://github.com/rackai/domql",
8
8
  "publishConfig": {
9
9
  "registry": "https://registry.npmjs.org"
@@ -45,7 +45,7 @@ const create = (element, parent, key, options = {}) => {
45
45
 
46
46
  // if PARENT is not given
47
47
  if (!parent) parent = root
48
- if (isNode(parent)) parent = root[`${key}_parent`] = { node: parent }
48
+ if (isNode(parent)) parent = root[`${key}_parent`] = { key: ':root', node: parent }
49
49
 
50
50
  // if element is STRING
51
51
  if (isString(element) || isNumber(element)) {
@@ -39,6 +39,7 @@ export default {
39
39
  __proto: {},
40
40
  __ifFragment: {},
41
41
  __ifFalsy: {},
42
+ __text: {},
42
43
  key: {},
43
44
  tag: {},
44
45
  parent: {},