solid-js 1.3.0-rc.2 → 1.3.1
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.cjs +34 -10
- package/dist/dev.js +33 -11
- package/dist/server.cjs +9 -1
- package/dist/server.js +8 -2
- package/dist/solid.cjs +28 -9
- package/dist/solid.js +27 -10
- package/package.json +5 -5
- package/store/dist/dev.cjs +3 -5
- package/store/dist/dev.js +3 -5
- package/store/dist/store.cjs +2 -4
- package/store/dist/store.js +2 -4
- package/store/types/index.d.ts +1 -1
- package/store/types/modifiers.d.ts +3 -3
- package/store/types/mutable.d.ts +3 -3
- package/store/types/server.d.ts +3 -38
- package/store/types/store.d.ts +27 -55
- package/types/index.d.ts +1 -1
- package/types/jsx.d.ts +1 -0
- package/types/reactive/signal.d.ts +18 -3
- package/types/server/index.d.ts +1 -1
- package/types/server/reactive.d.ts +2 -0
- package/web/dist/dev.cjs +13 -37
- package/web/dist/dev.js +1 -1
- package/web/dist/server.cjs +24 -36
- package/web/dist/server.js +14 -6
- package/web/dist/web.cjs +13 -37
- package/web/dist/web.js +1 -1
- package/web/types/client.d.ts +1 -1
package/web/dist/web.cjs
CHANGED
|
@@ -451,7 +451,7 @@ function cleanChildren(parent, current, marker, replacement) {
|
|
|
451
451
|
if (!inserted && !i) isParent ? parent.replaceChild(node, el) : parent.insertBefore(node, marker);else isParent && parent.removeChild(el);
|
|
452
452
|
} else inserted = true;
|
|
453
453
|
}
|
|
454
|
-
} else parent.insertBefore(node, marker);
|
|
454
|
+
} else if (current instanceof Node) parent.replaceChild(node, current);else parent.insertBefore(node, marker);
|
|
455
455
|
return [node];
|
|
456
456
|
}
|
|
457
457
|
function gatherHydratable(element, root) {
|
|
@@ -550,75 +550,51 @@ function Dynamic(props) {
|
|
|
550
550
|
|
|
551
551
|
Object.defineProperty(exports, 'ErrorBoundary', {
|
|
552
552
|
enumerable: true,
|
|
553
|
-
get: function () {
|
|
554
|
-
return solidJs.ErrorBoundary;
|
|
555
|
-
}
|
|
553
|
+
get: function () { return solidJs.ErrorBoundary; }
|
|
556
554
|
});
|
|
557
555
|
Object.defineProperty(exports, 'For', {
|
|
558
556
|
enumerable: true,
|
|
559
|
-
get: function () {
|
|
560
|
-
return solidJs.For;
|
|
561
|
-
}
|
|
557
|
+
get: function () { return solidJs.For; }
|
|
562
558
|
});
|
|
563
559
|
Object.defineProperty(exports, 'Index', {
|
|
564
560
|
enumerable: true,
|
|
565
|
-
get: function () {
|
|
566
|
-
return solidJs.Index;
|
|
567
|
-
}
|
|
561
|
+
get: function () { return solidJs.Index; }
|
|
568
562
|
});
|
|
569
563
|
Object.defineProperty(exports, 'Match', {
|
|
570
564
|
enumerable: true,
|
|
571
|
-
get: function () {
|
|
572
|
-
return solidJs.Match;
|
|
573
|
-
}
|
|
565
|
+
get: function () { return solidJs.Match; }
|
|
574
566
|
});
|
|
575
567
|
Object.defineProperty(exports, 'Show', {
|
|
576
568
|
enumerable: true,
|
|
577
|
-
get: function () {
|
|
578
|
-
return solidJs.Show;
|
|
579
|
-
}
|
|
569
|
+
get: function () { return solidJs.Show; }
|
|
580
570
|
});
|
|
581
571
|
Object.defineProperty(exports, 'Suspense', {
|
|
582
572
|
enumerable: true,
|
|
583
|
-
get: function () {
|
|
584
|
-
return solidJs.Suspense;
|
|
585
|
-
}
|
|
573
|
+
get: function () { return solidJs.Suspense; }
|
|
586
574
|
});
|
|
587
575
|
Object.defineProperty(exports, 'SuspenseList', {
|
|
588
576
|
enumerable: true,
|
|
589
|
-
get: function () {
|
|
590
|
-
return solidJs.SuspenseList;
|
|
591
|
-
}
|
|
577
|
+
get: function () { return solidJs.SuspenseList; }
|
|
592
578
|
});
|
|
593
579
|
Object.defineProperty(exports, 'Switch', {
|
|
594
580
|
enumerable: true,
|
|
595
|
-
get: function () {
|
|
596
|
-
return solidJs.Switch;
|
|
597
|
-
}
|
|
581
|
+
get: function () { return solidJs.Switch; }
|
|
598
582
|
});
|
|
599
583
|
Object.defineProperty(exports, 'createComponent', {
|
|
600
584
|
enumerable: true,
|
|
601
|
-
get: function () {
|
|
602
|
-
return solidJs.createComponent;
|
|
603
|
-
}
|
|
585
|
+
get: function () { return solidJs.createComponent; }
|
|
604
586
|
});
|
|
605
587
|
Object.defineProperty(exports, 'effect', {
|
|
606
588
|
enumerable: true,
|
|
607
|
-
get: function () {
|
|
608
|
-
return solidJs.createRenderEffect;
|
|
609
|
-
}
|
|
589
|
+
get: function () { return solidJs.createRenderEffect; }
|
|
610
590
|
});
|
|
611
591
|
Object.defineProperty(exports, 'getOwner', {
|
|
612
592
|
enumerable: true,
|
|
613
|
-
get: function () {
|
|
614
|
-
return solidJs.getOwner;
|
|
615
|
-
}
|
|
593
|
+
get: function () { return solidJs.getOwner; }
|
|
616
594
|
});
|
|
617
595
|
Object.defineProperty(exports, 'mergeProps', {
|
|
618
596
|
enumerable: true,
|
|
619
|
-
get: function () {
|
|
620
|
-
return solidJs.mergeProps;
|
|
621
|
-
}
|
|
597
|
+
get: function () { return solidJs.mergeProps; }
|
|
622
598
|
});
|
|
623
599
|
exports.Aliases = Aliases;
|
|
624
600
|
exports.Assets = Assets;
|
package/web/dist/web.js
CHANGED
|
@@ -448,7 +448,7 @@ function cleanChildren(parent, current, marker, replacement) {
|
|
|
448
448
|
if (!inserted && !i) isParent ? parent.replaceChild(node, el) : parent.insertBefore(node, marker);else isParent && parent.removeChild(el);
|
|
449
449
|
} else inserted = true;
|
|
450
450
|
}
|
|
451
|
-
} else parent.insertBefore(node, marker);
|
|
451
|
+
} else if (current instanceof Node) parent.replaceChild(node, current);else parent.insertBefore(node, marker);
|
|
452
452
|
return [node];
|
|
453
453
|
}
|
|
454
454
|
function gatherHydratable(element, root) {
|
package/web/types/client.d.ts
CHANGED
|
@@ -53,7 +53,7 @@ export function dynamicProperty(props: unknown, key: string): unknown;
|
|
|
53
53
|
export function hydrate(
|
|
54
54
|
fn: () => JSX.Element,
|
|
55
55
|
node: MountableElement,
|
|
56
|
-
options
|
|
56
|
+
options?: { renderId?: string }
|
|
57
57
|
): () => void;
|
|
58
58
|
export function getHydrationKey(): string;
|
|
59
59
|
export function getNextElement(template?: HTMLTemplateElement): Element;
|