@viewfly/core 1.0.0-alpha.17 → 1.0.0-alpha.18

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.
@@ -1680,12 +1680,10 @@ function updateNativeNodeProperties(nativeRenderer, newAtom, oldAtom, parentComp
1680
1680
  let unBindRefs;
1681
1681
  let bindRefs;
1682
1682
  newAtom.child = oldAtom.child;
1683
- let updatedSubComponent = false;
1684
1683
  for (const [key, value] of changes.remove) {
1685
1684
  if (key === 'children') {
1686
1685
  cleanElementChildren(oldAtom, nativeRenderer);
1687
1686
  newAtom.child = null;
1688
- updatedSubComponent = true;
1689
1687
  continue;
1690
1688
  }
1691
1689
  if (key === 'class') {
@@ -1723,7 +1721,6 @@ function updateNativeNodeProperties(nativeRenderer, newAtom, oldAtom, parentComp
1723
1721
  rootHost: context.rootHost
1724
1722
  });
1725
1723
  }
1726
- updatedSubComponent = true;
1727
1724
  continue;
1728
1725
  }
1729
1726
  if (key === 'class') {
@@ -1760,7 +1757,6 @@ function updateNativeNodeProperties(nativeRenderer, newAtom, oldAtom, parentComp
1760
1757
  if (key === 'children') {
1761
1758
  newAtom.child = createChildChain(value, isSvg);
1762
1759
  buildElementChildren(newAtom, nativeRenderer, parentComponent, context);
1763
- updatedSubComponent = true;
1764
1760
  continue;
1765
1761
  }
1766
1762
  if (key === 'class') {
@@ -1786,11 +1782,6 @@ function updateNativeNodeProperties(nativeRenderer, newAtom, oldAtom, parentComp
1786
1782
  }
1787
1783
  nativeRenderer.setProperty(nativeNode, key, value, isSvg);
1788
1784
  }
1789
- if (!updatedSubComponent) {
1790
- parentComponent.changedSubComponents.forEach(child => {
1791
- updateView(nativeRenderer, child);
1792
- });
1793
- }
1794
1785
  applyRefs(unBindRefs, nativeNode, false);
1795
1786
  applyRefs(bindRefs, nativeNode, true);
1796
1787
  }
package/bundles/index.js CHANGED
@@ -1682,12 +1682,10 @@ function updateNativeNodeProperties(nativeRenderer, newAtom, oldAtom, parentComp
1682
1682
  let unBindRefs;
1683
1683
  let bindRefs;
1684
1684
  newAtom.child = oldAtom.child;
1685
- let updatedSubComponent = false;
1686
1685
  for (const [key, value] of changes.remove) {
1687
1686
  if (key === 'children') {
1688
1687
  cleanElementChildren(oldAtom, nativeRenderer);
1689
1688
  newAtom.child = null;
1690
- updatedSubComponent = true;
1691
1689
  continue;
1692
1690
  }
1693
1691
  if (key === 'class') {
@@ -1725,7 +1723,6 @@ function updateNativeNodeProperties(nativeRenderer, newAtom, oldAtom, parentComp
1725
1723
  rootHost: context.rootHost
1726
1724
  });
1727
1725
  }
1728
- updatedSubComponent = true;
1729
1726
  continue;
1730
1727
  }
1731
1728
  if (key === 'class') {
@@ -1762,7 +1759,6 @@ function updateNativeNodeProperties(nativeRenderer, newAtom, oldAtom, parentComp
1762
1759
  if (key === 'children') {
1763
1760
  newAtom.child = createChildChain(value, isSvg);
1764
1761
  buildElementChildren(newAtom, nativeRenderer, parentComponent, context);
1765
- updatedSubComponent = true;
1766
1762
  continue;
1767
1763
  }
1768
1764
  if (key === 'class') {
@@ -1788,11 +1784,6 @@ function updateNativeNodeProperties(nativeRenderer, newAtom, oldAtom, parentComp
1788
1784
  }
1789
1785
  nativeRenderer.setProperty(nativeNode, key, value, isSvg);
1790
1786
  }
1791
- if (!updatedSubComponent) {
1792
- parentComponent.changedSubComponents.forEach(child => {
1793
- updateView(nativeRenderer, child);
1794
- });
1795
- }
1796
1787
  applyRefs(unBindRefs, nativeNode, false);
1797
1788
  applyRefs(bindRefs, nativeNode, true);
1798
1789
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viewfly/core",
3
- "version": "1.0.0-alpha.17",
3
+ "version": "1.0.0-alpha.18",
4
4
  "description": "Viewfly is a simple and easy-to-use JavaScript framework with an intuitive development experience.",
5
5
  "main": "./bundles/index.js",
6
6
  "module": "./bundles/index.esm.js",
@@ -50,7 +50,7 @@
50
50
  "bugs": {
51
51
  "url": "https://github.com/viewfly/viewfly.git/issues"
52
52
  },
53
- "gitHead": "4fd97b73e7808b45660f2b802f4b327a67366a7e",
53
+ "gitHead": "b66ca589f7662cd518fc2e5955b3e3ff9de83f94",
54
54
  "dependencies": {
55
55
  "reflect-metadata": "^0.2.2"
56
56
  }
@@ -1,17 +0,0 @@
1
- #!/bin/sh
2
- basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
-
4
- case `uname` in
5
- *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
- esac
7
-
8
- if [ -z "$NODE_PATH" ]; then
9
- export NODE_PATH="/Users/tanbo/Documents/lib/viewfly/node_modules/.pnpm/rimraf@3.0.2/node_modules/rimraf/node_modules:/Users/tanbo/Documents/lib/viewfly/node_modules/.pnpm/rimraf@3.0.2/node_modules:/Users/tanbo/Documents/lib/viewfly/node_modules/.pnpm/node_modules"
10
- else
11
- export NODE_PATH="/Users/tanbo/Documents/lib/viewfly/node_modules/.pnpm/rimraf@3.0.2/node_modules/rimraf/node_modules:/Users/tanbo/Documents/lib/viewfly/node_modules/.pnpm/rimraf@3.0.2/node_modules:/Users/tanbo/Documents/lib/viewfly/node_modules/.pnpm/node_modules:$NODE_PATH"
12
- fi
13
- if [ -x "$basedir/node" ]; then
14
- exec "$basedir/node" "$basedir/../rimraf/bin.js" "$@"
15
- else
16
- exec node "$basedir/../rimraf/bin.js" "$@"
17
- fi
@@ -1,17 +0,0 @@
1
- #!/bin/sh
2
- basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
-
4
- case `uname` in
5
- *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
- esac
7
-
8
- if [ -z "$NODE_PATH" ]; then
9
- export NODE_PATH="/Users/tanbo/Documents/lib/viewfly/node_modules/.pnpm/rollup@3.29.4/node_modules/rollup/dist/bin/node_modules:/Users/tanbo/Documents/lib/viewfly/node_modules/.pnpm/rollup@3.29.4/node_modules/rollup/dist/node_modules:/Users/tanbo/Documents/lib/viewfly/node_modules/.pnpm/rollup@3.29.4/node_modules/rollup/node_modules:/Users/tanbo/Documents/lib/viewfly/node_modules/.pnpm/rollup@3.29.4/node_modules:/Users/tanbo/Documents/lib/viewfly/node_modules/.pnpm/node_modules"
10
- else
11
- export NODE_PATH="/Users/tanbo/Documents/lib/viewfly/node_modules/.pnpm/rollup@3.29.4/node_modules/rollup/dist/bin/node_modules:/Users/tanbo/Documents/lib/viewfly/node_modules/.pnpm/rollup@3.29.4/node_modules/rollup/dist/node_modules:/Users/tanbo/Documents/lib/viewfly/node_modules/.pnpm/rollup@3.29.4/node_modules/rollup/node_modules:/Users/tanbo/Documents/lib/viewfly/node_modules/.pnpm/rollup@3.29.4/node_modules:/Users/tanbo/Documents/lib/viewfly/node_modules/.pnpm/node_modules:$NODE_PATH"
12
- fi
13
- if [ -x "$basedir/node" ]; then
14
- exec "$basedir/node" "$basedir/../rollup/dist/bin/rollup" "$@"
15
- else
16
- exec node "$basedir/../rollup/dist/bin/rollup" "$@"
17
- fi
@@ -1,17 +0,0 @@
1
- #!/bin/sh
2
- basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
-
4
- case `uname` in
5
- *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
- esac
7
-
8
- if [ -z "$NODE_PATH" ]; then
9
- export NODE_PATH="/Users/tanbo/Documents/lib/viewfly/node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/bin/node_modules:/Users/tanbo/Documents/lib/viewfly/node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/node_modules:/Users/tanbo/Documents/lib/viewfly/node_modules/.pnpm/typescript@5.4.5/node_modules:/Users/tanbo/Documents/lib/viewfly/node_modules/.pnpm/node_modules"
10
- else
11
- export NODE_PATH="/Users/tanbo/Documents/lib/viewfly/node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/bin/node_modules:/Users/tanbo/Documents/lib/viewfly/node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/node_modules:/Users/tanbo/Documents/lib/viewfly/node_modules/.pnpm/typescript@5.4.5/node_modules:/Users/tanbo/Documents/lib/viewfly/node_modules/.pnpm/node_modules:$NODE_PATH"
12
- fi
13
- if [ -x "$basedir/node" ]; then
14
- exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/bin/tsc" "$@"
15
- else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/bin/tsc" "$@"
17
- fi
@@ -1,17 +0,0 @@
1
- #!/bin/sh
2
- basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
-
4
- case `uname` in
5
- *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
- esac
7
-
8
- if [ -z "$NODE_PATH" ]; then
9
- export NODE_PATH="/Users/tanbo/Documents/lib/viewfly/node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/bin/node_modules:/Users/tanbo/Documents/lib/viewfly/node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/node_modules:/Users/tanbo/Documents/lib/viewfly/node_modules/.pnpm/typescript@5.4.5/node_modules:/Users/tanbo/Documents/lib/viewfly/node_modules/.pnpm/node_modules"
10
- else
11
- export NODE_PATH="/Users/tanbo/Documents/lib/viewfly/node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/bin/node_modules:/Users/tanbo/Documents/lib/viewfly/node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/node_modules:/Users/tanbo/Documents/lib/viewfly/node_modules/.pnpm/typescript@5.4.5/node_modules:/Users/tanbo/Documents/lib/viewfly/node_modules/.pnpm/node_modules:$NODE_PATH"
12
- fi
13
- if [ -x "$basedir/node" ]; then
14
- exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/bin/tsserver" "$@"
15
- else
16
- exec node "$basedir/../../../../../node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/bin/tsserver" "$@"
17
- fi