solid-js 1.8.9 → 1.8.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.
Files changed (45) hide show
  1. package/dist/dev.js +307 -544
  2. package/dist/server.js +75 -170
  3. package/dist/solid.js +265 -471
  4. package/h/dist/h.js +8 -34
  5. package/h/jsx-runtime/dist/jsx.js +1 -1
  6. package/h/jsx-runtime/types/index.d.ts +8 -11
  7. package/h/types/hyperscript.d.ts +11 -11
  8. package/html/dist/html.js +94 -216
  9. package/html/types/lit.d.ts +33 -47
  10. package/package.json +1 -1
  11. package/store/dist/dev.js +42 -117
  12. package/store/dist/server.js +8 -19
  13. package/store/dist/store.js +39 -108
  14. package/store/types/index.d.ts +7 -21
  15. package/store/types/modifiers.d.ts +3 -6
  16. package/store/types/mutable.d.ts +2 -5
  17. package/store/types/server.d.ts +4 -12
  18. package/store/types/store.d.ts +61 -218
  19. package/types/index.d.ts +10 -75
  20. package/types/reactive/array.d.ts +4 -12
  21. package/types/reactive/observable.d.ts +17 -25
  22. package/types/reactive/scheduler.d.ts +6 -9
  23. package/types/reactive/signal.d.ts +142 -233
  24. package/types/render/Suspense.d.ts +5 -5
  25. package/types/render/component.d.ts +33 -64
  26. package/types/render/flow.d.ts +31 -43
  27. package/types/render/hydration.d.ts +13 -13
  28. package/types/server/index.d.ts +2 -57
  29. package/types/server/reactive.d.ts +42 -73
  30. package/types/server/rendering.d.ts +96 -167
  31. package/universal/dist/dev.js +12 -28
  32. package/universal/dist/universal.js +12 -28
  33. package/universal/types/index.d.ts +1 -3
  34. package/universal/types/universal.d.ts +1 -0
  35. package/web/dist/dev.cjs +3 -3
  36. package/web/dist/dev.js +84 -623
  37. package/web/dist/server.cjs +25 -17
  38. package/web/dist/server.js +117 -217
  39. package/web/dist/storage.js +3 -3
  40. package/web/dist/web.cjs +3 -3
  41. package/web/dist/web.js +83 -617
  42. package/web/types/client.d.ts +2 -2
  43. package/web/types/core.d.ts +1 -10
  44. package/web/types/index.d.ts +10 -27
  45. package/web/types/server-mock.d.ts +32 -47
package/web/dist/web.cjs CHANGED
@@ -333,7 +333,7 @@ function assignProp(node, prop, value, prev, isSVG, skipRef) {
333
333
  let isCE, isProp, isChildProp, propAlias, forceProp;
334
334
  if (prop === "style") return style(node, value, prev);
335
335
  if (prop === "classList") return classList(node, value, prev);
336
- if (value === prev && (prop !== "value" || prop !== "checked")) return prev;
336
+ if (value === prev) return prev;
337
337
  if (prop === "ref") {
338
338
  if (!skipRef) value(node);
339
339
  } else if (prop.slice(0, 3) === "on:") {
@@ -416,7 +416,7 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
416
416
  if (multi) {
417
417
  let node = current[0];
418
418
  if (node && node.nodeType === 3) {
419
- node.data = value;
419
+ node.data !== value && (node.data = value);
420
420
  } else node = document.createTextNode(value);
421
421
  current = cleanChildren(parent, current, marker, node);
422
422
  } else {
@@ -534,7 +534,7 @@ function NoHydration(props) {
534
534
  function Hydration(props) {
535
535
  return props.children;
536
536
  }
537
- function voidFn() {}
537
+ const voidFn = () => undefined;
538
538
  const RequestContext = Symbol();
539
539
  function innerHTML(parent, content) {
540
540
  !solidJs.sharedConfig.context && (parent.innerHTML = content);