@solidjs/signals 0.10.1 → 0.10.2
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/dist/dev.js +2 -0
- package/dist/node.cjs +16 -14
- package/dist/prod.js +16 -14
- package/package.json +1 -1
package/dist/dev.js
CHANGED
|
@@ -858,6 +858,7 @@ function disposeChildren(node, self = false, zombie) {
|
|
|
858
858
|
} else {
|
|
859
859
|
node._firstChild = null;
|
|
860
860
|
node._nextSibling = null;
|
|
861
|
+
node._childCount = 0;
|
|
861
862
|
}
|
|
862
863
|
runDisposal(node, zombie);
|
|
863
864
|
}
|
|
@@ -1019,6 +1020,7 @@ function recompute(el, create = false) {
|
|
|
1019
1020
|
el._pendingFirstChild = el._firstChild;
|
|
1020
1021
|
el._disposal = null;
|
|
1021
1022
|
el._firstChild = null;
|
|
1023
|
+
el._childCount = 0;
|
|
1022
1024
|
}
|
|
1023
1025
|
}
|
|
1024
1026
|
const isOptimisticDirty = !!(el._flags & REACTIVE_OPTIMISTIC_DIRTY);
|
package/dist/node.cjs
CHANGED
|
@@ -816,11 +816,12 @@ function disposeChildren(e, t = false, n) {
|
|
|
816
816
|
} else {
|
|
817
817
|
e.Pe = null;
|
|
818
818
|
e.Ae = null;
|
|
819
|
+
e.We = 0;
|
|
819
820
|
}
|
|
820
821
|
runDisposal(e, n);
|
|
821
822
|
}
|
|
822
823
|
function runDisposal(e, t) {
|
|
823
|
-
let n = t ? e.
|
|
824
|
+
let n = t ? e.Ee : e.je;
|
|
824
825
|
if (!n) return;
|
|
825
826
|
if (Array.isArray(n)) {
|
|
826
827
|
for (let e = 0; e < n.length; e++) {
|
|
@@ -830,10 +831,10 @@ function runDisposal(e, t) {
|
|
|
830
831
|
} else {
|
|
831
832
|
n.call(n);
|
|
832
833
|
}
|
|
833
|
-
t ? (e.
|
|
834
|
+
t ? (e.Ee = null) : (e.je = null);
|
|
834
835
|
}
|
|
835
836
|
function getNextChildId(e) {
|
|
836
|
-
if (e.id != null) return formatId(e.id, e.
|
|
837
|
+
if (e.id != null) return formatId(e.id, e.We++);
|
|
837
838
|
throw new Error("Cannot get child id from owner without an id");
|
|
838
839
|
}
|
|
839
840
|
function formatId(e, t) {
|
|
@@ -850,9 +851,9 @@ function getOwner() {
|
|
|
850
851
|
}
|
|
851
852
|
function onCleanup(e) {
|
|
852
853
|
if (!Q) return e;
|
|
853
|
-
if (!Q.
|
|
854
|
-
else if (Array.isArray(Q.
|
|
855
|
-
else Q.
|
|
854
|
+
if (!Q.je) Q.je = e;
|
|
855
|
+
else if (Array.isArray(Q.je)) Q.je.push(e);
|
|
856
|
+
else Q.je = [Q.je, e];
|
|
856
857
|
return e;
|
|
857
858
|
}
|
|
858
859
|
function createOwner(e) {
|
|
@@ -863,11 +864,11 @@ function createOwner(e) {
|
|
|
863
864
|
u: t?.t ? t.u : t,
|
|
864
865
|
Pe: null,
|
|
865
866
|
Ae: null,
|
|
866
|
-
|
|
867
|
+
je: null,
|
|
867
868
|
oe: t?.oe ?? A,
|
|
868
869
|
Ne: t?.Ne || w,
|
|
869
|
-
|
|
870
|
-
|
|
870
|
+
We: 0,
|
|
871
|
+
Ee: null,
|
|
871
872
|
Ce: null,
|
|
872
873
|
i: t,
|
|
873
874
|
dispose(e = true) {
|
|
@@ -965,10 +966,11 @@ function recompute(t, n = false) {
|
|
|
965
966
|
if (t.ne || i === h) disposeChildren(t);
|
|
966
967
|
else {
|
|
967
968
|
markDisposal(t);
|
|
968
|
-
t.
|
|
969
|
+
t.Ee = t.je;
|
|
969
970
|
t.Ce = t.Pe;
|
|
970
|
-
t.
|
|
971
|
+
t.je = null;
|
|
971
972
|
t.Pe = null;
|
|
973
|
+
t.We = 0;
|
|
972
974
|
}
|
|
973
975
|
}
|
|
974
976
|
const s = !!(t.m & f);
|
|
@@ -1077,10 +1079,10 @@ function computed(t, n, r) {
|
|
|
1077
1079
|
Se: r?.equals != null ? r.equals : isEqual,
|
|
1078
1080
|
Re: !!r?.pureWrite,
|
|
1079
1081
|
He: r?.unobserved,
|
|
1080
|
-
|
|
1082
|
+
je: null,
|
|
1081
1083
|
oe: Q?.oe ?? A,
|
|
1082
1084
|
Ne: Q?.Ne ?? w,
|
|
1083
|
-
|
|
1085
|
+
We: 0,
|
|
1084
1086
|
H: t,
|
|
1085
1087
|
le: n,
|
|
1086
1088
|
o: 0,
|
|
@@ -1098,7 +1100,7 @@ function computed(t, n, r) {
|
|
|
1098
1100
|
ce: a,
|
|
1099
1101
|
$: O,
|
|
1100
1102
|
fe: y,
|
|
1101
|
-
|
|
1103
|
+
Ee: null,
|
|
1102
1104
|
Ce: null,
|
|
1103
1105
|
we: null,
|
|
1104
1106
|
ne: null
|
package/dist/prod.js
CHANGED
|
@@ -815,11 +815,12 @@ function disposeChildren(e, t = false, n) {
|
|
|
815
815
|
} else {
|
|
816
816
|
e.Ce = null;
|
|
817
817
|
e.Ne = null;
|
|
818
|
+
e.ve = 0;
|
|
818
819
|
}
|
|
819
820
|
runDisposal(e, n);
|
|
820
821
|
}
|
|
821
822
|
function runDisposal(e, t) {
|
|
822
|
-
let n = t ? e.
|
|
823
|
+
let n = t ? e.we : e.be;
|
|
823
824
|
if (!n) return;
|
|
824
825
|
if (Array.isArray(n)) {
|
|
825
826
|
for (let e = 0; e < n.length; e++) {
|
|
@@ -829,10 +830,10 @@ function runDisposal(e, t) {
|
|
|
829
830
|
} else {
|
|
830
831
|
n.call(n);
|
|
831
832
|
}
|
|
832
|
-
t ? (e.
|
|
833
|
+
t ? (e.we = null) : (e.be = null);
|
|
833
834
|
}
|
|
834
835
|
function getNextChildId(e) {
|
|
835
|
-
if (e.id != null) return formatId(e.id, e.
|
|
836
|
+
if (e.id != null) return formatId(e.id, e.ve++);
|
|
836
837
|
throw new Error("Cannot get child id from owner without an id");
|
|
837
838
|
}
|
|
838
839
|
function formatId(e, t) {
|
|
@@ -849,9 +850,9 @@ function getOwner() {
|
|
|
849
850
|
}
|
|
850
851
|
function onCleanup(e) {
|
|
851
852
|
if (!context) return e;
|
|
852
|
-
if (!context.
|
|
853
|
-
else if (Array.isArray(context.
|
|
854
|
-
else context.
|
|
853
|
+
if (!context.be) context.be = e;
|
|
854
|
+
else if (Array.isArray(context.be)) context.be.push(e);
|
|
855
|
+
else context.be = [context.be, e];
|
|
855
856
|
return e;
|
|
856
857
|
}
|
|
857
858
|
function createOwner(e) {
|
|
@@ -862,11 +863,11 @@ function createOwner(e) {
|
|
|
862
863
|
u: t?.t ? t.u : t,
|
|
863
864
|
Ce: null,
|
|
864
865
|
Ne: null,
|
|
865
|
-
|
|
866
|
+
be: null,
|
|
866
867
|
se: t?.se ?? globalQueue,
|
|
867
868
|
Ve: t?.Ve || defaultContext,
|
|
868
|
-
|
|
869
|
-
|
|
869
|
+
ve: 0,
|
|
870
|
+
we: null,
|
|
870
871
|
De: null,
|
|
871
872
|
i: t,
|
|
872
873
|
dispose(e = true) {
|
|
@@ -965,10 +966,11 @@ function recompute(e, t = false) {
|
|
|
965
966
|
if (e.ne || n === EFFECT_TRACKED) disposeChildren(e);
|
|
966
967
|
else {
|
|
967
968
|
markDisposal(e);
|
|
968
|
-
e.
|
|
969
|
+
e.we = e.be;
|
|
969
970
|
e.De = e.Ce;
|
|
970
|
-
e.
|
|
971
|
+
e.be = null;
|
|
971
972
|
e.Ce = null;
|
|
973
|
+
e.ve = 0;
|
|
972
974
|
}
|
|
973
975
|
}
|
|
974
976
|
const i = !!(e.S & REACTIVE_OPTIMISTIC_DIRTY);
|
|
@@ -1077,10 +1079,10 @@ function computed(e, t, n) {
|
|
|
1077
1079
|
_e: n?.equals != null ? n.equals : isEqual,
|
|
1078
1080
|
We: !!n?.pureWrite,
|
|
1079
1081
|
ke: n?.unobserved,
|
|
1080
|
-
|
|
1082
|
+
be: null,
|
|
1081
1083
|
se: context?.se ?? globalQueue,
|
|
1082
1084
|
Ve: context?.Ve ?? defaultContext,
|
|
1083
|
-
|
|
1085
|
+
ve: 0,
|
|
1084
1086
|
L: e,
|
|
1085
1087
|
le: t,
|
|
1086
1088
|
o: 0,
|
|
@@ -1098,7 +1100,7 @@ function computed(e, t, n) {
|
|
|
1098
1100
|
ae: STATUS_UNINITIALIZED,
|
|
1099
1101
|
J: clock,
|
|
1100
1102
|
ce: NOT_PENDING,
|
|
1101
|
-
|
|
1103
|
+
we: null,
|
|
1102
1104
|
De: null,
|
|
1103
1105
|
Se: null,
|
|
1104
1106
|
ne: null
|