@solidjs/signals 0.9.10 → 0.9.11

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 CHANGED
@@ -215,9 +215,7 @@ function assignOrMergeLane(el, sourceLane) {
215
215
  if (sourceRoot._parentLane && findLane(sourceRoot._parentLane) === existingRoot) {
216
216
  el._optimisticLane = sourceLane;
217
217
  } else if (existingRoot._parentLane && findLane(existingRoot._parentLane) === sourceRoot);
218
- else {
219
- mergeLanes(sourceRoot, existingRoot);
220
- }
218
+ else mergeLanes(sourceRoot, existingRoot);
221
219
  }
222
220
  return;
223
221
  }
@@ -1745,6 +1743,7 @@ function applyState(next, state, keyFn, all) {
1745
1743
  if (
1746
1744
  !previousValue ||
1747
1745
  !isWrappable(previousValue) ||
1746
+ !isWrappable(nextValue) ||
1748
1747
  (keyFn(previousValue) != null && keyFn(previousValue) !== keyFn(nextValue))
1749
1748
  ) {
1750
1749
  tracked && setSignal(tracked, void 0);
package/dist/node.cjs CHANGED
@@ -206,9 +206,7 @@ function assignOrMergeLane(e, t) {
206
206
  if (n.D && findLane(n.D) === i) {
207
207
  e.M = t;
208
208
  } else if (i.D && findLane(i.D) === n);
209
- else {
210
- mergeLanes(n, i);
211
- }
209
+ else mergeLanes(n, i);
212
210
  }
213
211
  return;
214
212
  }
@@ -1637,7 +1635,7 @@ function applyState(e, t, n, r) {
1637
1635
  const d = unwrap(getOverrideValue(s, o, u, c));
1638
1636
  let p = unwrap(e[c]);
1639
1637
  if (d === p) continue;
1640
- if (!d || !isWrappable(d) || (n(d) != null && n(d) !== n(p))) {
1638
+ if (!d || !isWrappable(d) || !isWrappable(p) || (n(d) != null && n(d) !== n(p))) {
1641
1639
  t && setSignal(t, void 0);
1642
1640
  a && setSignal(a, isWrappable(p) ? wrap(p, i) : p);
1643
1641
  } else applyState(p, wrap(d, i), n, r);
package/dist/prod.js CHANGED
@@ -205,9 +205,7 @@ function assignOrMergeLane(e, t) {
205
205
  if (n.H && findLane(n.H) === r) {
206
206
  e.W = t;
207
207
  } else if (r.H && findLane(r.H) === n);
208
- else {
209
- mergeLanes(n, r);
210
- }
208
+ else mergeLanes(n, r);
211
209
  }
212
210
  return;
213
211
  }
@@ -1644,7 +1642,7 @@ function applyState(e, t, n, i) {
1644
1642
  const E = unwrap(getOverrideValue(o, s, u, a));
1645
1643
  let T = unwrap(e[a]);
1646
1644
  if (E === T) continue;
1647
- if (!E || !isWrappable(E) || (n(E) != null && n(E) !== n(T))) {
1645
+ if (!E || !isWrappable(E) || !isWrappable(T) || (n(E) != null && n(E) !== n(T))) {
1648
1646
  t && setSignal(t, void 0);
1649
1647
  f && setSignal(f, isWrappable(T) ? wrap(T, r) : T);
1650
1648
  } else applyState(T, wrap(E, r), n, i);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidjs/signals",
3
- "version": "0.9.10",
3
+ "version": "0.9.11",
4
4
  "description": "",
5
5
  "author": "Ryan Carniato",
6
6
  "license": "MIT",