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.
- package/dist/dev.js +307 -544
- package/dist/server.js +75 -170
- package/dist/solid.js +265 -471
- package/h/dist/h.js +8 -34
- package/h/jsx-runtime/dist/jsx.js +1 -1
- package/h/jsx-runtime/types/index.d.ts +8 -11
- package/h/types/hyperscript.d.ts +11 -11
- package/html/dist/html.js +94 -216
- package/html/types/lit.d.ts +33 -47
- package/package.json +1 -1
- package/store/dist/dev.js +42 -117
- package/store/dist/server.js +8 -19
- package/store/dist/store.js +39 -108
- package/store/types/index.d.ts +7 -21
- package/store/types/modifiers.d.ts +3 -6
- package/store/types/mutable.d.ts +2 -5
- package/store/types/server.d.ts +4 -12
- package/store/types/store.d.ts +61 -218
- package/types/index.d.ts +10 -75
- package/types/reactive/array.d.ts +4 -12
- package/types/reactive/observable.d.ts +17 -25
- package/types/reactive/scheduler.d.ts +6 -9
- package/types/reactive/signal.d.ts +142 -233
- package/types/render/Suspense.d.ts +5 -5
- package/types/render/component.d.ts +33 -64
- package/types/render/flow.d.ts +31 -43
- package/types/render/hydration.d.ts +13 -13
- package/types/server/index.d.ts +2 -57
- package/types/server/reactive.d.ts +42 -73
- package/types/server/rendering.d.ts +96 -167
- package/universal/dist/dev.js +12 -28
- package/universal/dist/universal.js +12 -28
- package/universal/types/index.d.ts +1 -3
- package/universal/types/universal.d.ts +1 -0
- package/web/dist/dev.cjs +3 -3
- package/web/dist/dev.js +84 -623
- package/web/dist/server.cjs +25 -17
- package/web/dist/server.js +117 -217
- package/web/dist/storage.js +3 -3
- package/web/dist/web.cjs +3 -3
- package/web/dist/web.js +83 -617
- package/web/types/client.d.ts +2 -2
- package/web/types/core.d.ts +1 -10
- package/web/types/index.d.ts +10 -27
- 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
|
|
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
|
-
|
|
537
|
+
const voidFn = () => undefined;
|
|
538
538
|
const RequestContext = Symbol();
|
|
539
539
|
function innerHTML(parent, content) {
|
|
540
540
|
!solidJs.sharedConfig.context && (parent.innerHTML = content);
|