solid-js 1.8.13 → 1.8.15
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 +7 -6
- package/dist/dev.js +16 -11
- package/dist/solid.cjs +7 -6
- package/dist/solid.js +16 -11
- package/h/jsx-runtime/types/jsx.d.ts +7 -2
- package/package.json +3 -3
- package/types/jsx.d.ts +7 -2
- package/web/dist/dev.cjs +1 -1
- package/web/dist/dev.js +1 -1
- package/web/dist/web.cjs +1 -1
- package/web/dist/web.js +1 -1
package/dist/dev.cjs
CHANGED
|
@@ -1673,22 +1673,23 @@ function Suspense(props) {
|
|
|
1673
1673
|
if (sharedConfig.context && sharedConfig.load) {
|
|
1674
1674
|
const key = sharedConfig.context.id + sharedConfig.context.count;
|
|
1675
1675
|
let ref = sharedConfig.load(key);
|
|
1676
|
-
if (ref
|
|
1676
|
+
if (ref) {
|
|
1677
|
+
if (typeof ref !== "object" || ref.status !== "success") p = ref;else sharedConfig.gather(key);
|
|
1678
|
+
}
|
|
1677
1679
|
if (p && p !== "$$f") {
|
|
1678
1680
|
const [s, set] = createSignal(undefined, {
|
|
1679
1681
|
equals: false
|
|
1680
1682
|
});
|
|
1681
1683
|
flicker = s;
|
|
1682
1684
|
p.then(() => {
|
|
1685
|
+
if (sharedConfig.done) return set();
|
|
1683
1686
|
sharedConfig.gather(key);
|
|
1684
1687
|
setHydrateContext(ctx);
|
|
1685
1688
|
set();
|
|
1686
1689
|
setHydrateContext();
|
|
1687
|
-
}
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
return set();
|
|
1691
|
-
}
|
|
1690
|
+
}, err => {
|
|
1691
|
+
error = err;
|
|
1692
|
+
set();
|
|
1692
1693
|
});
|
|
1693
1694
|
}
|
|
1694
1695
|
}
|
package/dist/dev.js
CHANGED
|
@@ -1852,23 +1852,28 @@ function Suspense(props) {
|
|
|
1852
1852
|
if (sharedConfig.context && sharedConfig.load) {
|
|
1853
1853
|
const key = sharedConfig.context.id + sharedConfig.context.count;
|
|
1854
1854
|
let ref = sharedConfig.load(key);
|
|
1855
|
-
if (ref
|
|
1855
|
+
if (ref) {
|
|
1856
|
+
if (typeof ref !== "object" || ref.status !== "success") p = ref;
|
|
1857
|
+
else sharedConfig.gather(key);
|
|
1858
|
+
}
|
|
1856
1859
|
if (p && p !== "$$f") {
|
|
1857
1860
|
const [s, set] = createSignal(undefined, {
|
|
1858
1861
|
equals: false
|
|
1859
1862
|
});
|
|
1860
1863
|
flicker = s;
|
|
1861
|
-
p.then(
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1864
|
+
p.then(
|
|
1865
|
+
() => {
|
|
1866
|
+
if (sharedConfig.done) return set();
|
|
1867
|
+
sharedConfig.gather(key);
|
|
1868
|
+
setHydrateContext(ctx);
|
|
1869
|
+
set();
|
|
1870
|
+
setHydrateContext();
|
|
1871
|
+
},
|
|
1872
|
+
err => {
|
|
1873
|
+
error = err;
|
|
1874
|
+
set();
|
|
1870
1875
|
}
|
|
1871
|
-
|
|
1876
|
+
);
|
|
1872
1877
|
}
|
|
1873
1878
|
}
|
|
1874
1879
|
const listContext = useContext(SuspenseListContext);
|
package/dist/solid.cjs
CHANGED
|
@@ -1609,22 +1609,23 @@ function Suspense(props) {
|
|
|
1609
1609
|
if (sharedConfig.context && sharedConfig.load) {
|
|
1610
1610
|
const key = sharedConfig.context.id + sharedConfig.context.count;
|
|
1611
1611
|
let ref = sharedConfig.load(key);
|
|
1612
|
-
if (ref
|
|
1612
|
+
if (ref) {
|
|
1613
|
+
if (typeof ref !== "object" || ref.status !== "success") p = ref;else sharedConfig.gather(key);
|
|
1614
|
+
}
|
|
1613
1615
|
if (p && p !== "$$f") {
|
|
1614
1616
|
const [s, set] = createSignal(undefined, {
|
|
1615
1617
|
equals: false
|
|
1616
1618
|
});
|
|
1617
1619
|
flicker = s;
|
|
1618
1620
|
p.then(() => {
|
|
1621
|
+
if (sharedConfig.done) return set();
|
|
1619
1622
|
sharedConfig.gather(key);
|
|
1620
1623
|
setHydrateContext(ctx);
|
|
1621
1624
|
set();
|
|
1622
1625
|
setHydrateContext();
|
|
1623
|
-
}
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
return set();
|
|
1627
|
-
}
|
|
1626
|
+
}, err => {
|
|
1627
|
+
error = err;
|
|
1628
|
+
set();
|
|
1628
1629
|
});
|
|
1629
1630
|
}
|
|
1630
1631
|
}
|
package/dist/solid.js
CHANGED
|
@@ -1761,23 +1761,28 @@ function Suspense(props) {
|
|
|
1761
1761
|
if (sharedConfig.context && sharedConfig.load) {
|
|
1762
1762
|
const key = sharedConfig.context.id + sharedConfig.context.count;
|
|
1763
1763
|
let ref = sharedConfig.load(key);
|
|
1764
|
-
if (ref
|
|
1764
|
+
if (ref) {
|
|
1765
|
+
if (typeof ref !== "object" || ref.status !== "success") p = ref;
|
|
1766
|
+
else sharedConfig.gather(key);
|
|
1767
|
+
}
|
|
1765
1768
|
if (p && p !== "$$f") {
|
|
1766
1769
|
const [s, set] = createSignal(undefined, {
|
|
1767
1770
|
equals: false
|
|
1768
1771
|
});
|
|
1769
1772
|
flicker = s;
|
|
1770
|
-
p.then(
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1773
|
+
p.then(
|
|
1774
|
+
() => {
|
|
1775
|
+
if (sharedConfig.done) return set();
|
|
1776
|
+
sharedConfig.gather(key);
|
|
1777
|
+
setHydrateContext(ctx);
|
|
1778
|
+
set();
|
|
1779
|
+
setHydrateContext();
|
|
1780
|
+
},
|
|
1781
|
+
err => {
|
|
1782
|
+
error = err;
|
|
1783
|
+
set();
|
|
1779
1784
|
}
|
|
1780
|
-
|
|
1785
|
+
);
|
|
1781
1786
|
}
|
|
1782
1787
|
}
|
|
1783
1788
|
const listContext = useContext(SuspenseListContext);
|
|
@@ -1890,11 +1890,16 @@ export namespace JSX {
|
|
|
1890
1890
|
textLength?: FunctionMaybe<number | string>;
|
|
1891
1891
|
lengthAdjust?: FunctionMaybe<"spacing" | "spacingAndGlyphs">;
|
|
1892
1892
|
}
|
|
1893
|
+
/**
|
|
1894
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/SVG/Element/use
|
|
1895
|
+
*/
|
|
1893
1896
|
interface UseSVGAttributes<T>
|
|
1894
|
-
extends
|
|
1897
|
+
extends CoreSVGAttributes<T>,
|
|
1898
|
+
StylableSVGAttributes,
|
|
1895
1899
|
ConditionalProcessingSVGAttributes,
|
|
1900
|
+
GraphicsElementSVGAttributes<T>,
|
|
1901
|
+
PresentationSVGAttributes,
|
|
1896
1902
|
ExternalResourceSVGAttributes,
|
|
1897
|
-
StylableSVGAttributes,
|
|
1898
1903
|
TransformableSVGAttributes {
|
|
1899
1904
|
x?: FunctionMaybe<number | string>;
|
|
1900
1905
|
y?: FunctionMaybe<number | string>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "solid-js",
|
|
3
3
|
"description": "A declarative JavaScript library for building user interfaces.",
|
|
4
|
-
"version": "1.8.
|
|
4
|
+
"version": "1.8.15",
|
|
5
5
|
"author": "Ryan Carniato",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://solidjs.com",
|
|
@@ -166,8 +166,8 @@
|
|
|
166
166
|
},
|
|
167
167
|
"./web/storage": {
|
|
168
168
|
"types": "./web/storage/types/index.d.ts",
|
|
169
|
-
"import": "./web/storage/dist/
|
|
170
|
-
"require": "./web/storage/dist/
|
|
169
|
+
"import": "./web/storage/dist/storage.js",
|
|
170
|
+
"require": "./web/storage/dist/storage.cjs"
|
|
171
171
|
},
|
|
172
172
|
"./web/dist/*": "./web/dist/*",
|
|
173
173
|
"./web/types/*": "./web/types/*",
|
package/types/jsx.d.ts
CHANGED
|
@@ -1967,11 +1967,16 @@ export namespace JSX {
|
|
|
1967
1967
|
textLength?: number | string;
|
|
1968
1968
|
lengthAdjust?: "spacing" | "spacingAndGlyphs";
|
|
1969
1969
|
}
|
|
1970
|
+
/**
|
|
1971
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/SVG/Element/use
|
|
1972
|
+
*/
|
|
1970
1973
|
interface UseSVGAttributes<T>
|
|
1971
|
-
extends
|
|
1974
|
+
extends CoreSVGAttributes<T>,
|
|
1975
|
+
StylableSVGAttributes,
|
|
1972
1976
|
ConditionalProcessingSVGAttributes,
|
|
1977
|
+
GraphicsElementSVGAttributes<T>,
|
|
1978
|
+
PresentationSVGAttributes,
|
|
1973
1979
|
ExternalResourceSVGAttributes,
|
|
1974
|
-
StylableSVGAttributes,
|
|
1975
1980
|
TransformableSVGAttributes {
|
|
1976
1981
|
x?: number | string;
|
|
1977
1982
|
y?: number | string;
|
package/web/dist/dev.cjs
CHANGED
|
@@ -482,7 +482,7 @@ function normalizeIncomingArray(normalized, array, current, unwrap) {
|
|
|
482
482
|
let dynamic = false;
|
|
483
483
|
for (let i = 0, len = array.length; i < len; i++) {
|
|
484
484
|
let item = array[i],
|
|
485
|
-
prev = current && current[
|
|
485
|
+
prev = current && current[normalized.length],
|
|
486
486
|
t;
|
|
487
487
|
if (item == null || item === true || item === false) ; else if ((t = typeof item) === "object" && item.nodeType) {
|
|
488
488
|
normalized.push(item);
|
package/web/dist/dev.js
CHANGED
|
@@ -950,7 +950,7 @@ function normalizeIncomingArray(normalized, array, current, unwrap) {
|
|
|
950
950
|
let dynamic = false;
|
|
951
951
|
for (let i = 0, len = array.length; i < len; i++) {
|
|
952
952
|
let item = array[i],
|
|
953
|
-
prev = current && current[
|
|
953
|
+
prev = current && current[normalized.length],
|
|
954
954
|
t;
|
|
955
955
|
if (item == null || item === true || item === false);
|
|
956
956
|
else if ((t = typeof item) === "object" && item.nodeType) {
|
package/web/dist/web.cjs
CHANGED
|
@@ -477,7 +477,7 @@ function normalizeIncomingArray(normalized, array, current, unwrap) {
|
|
|
477
477
|
let dynamic = false;
|
|
478
478
|
for (let i = 0, len = array.length; i < len; i++) {
|
|
479
479
|
let item = array[i],
|
|
480
|
-
prev = current && current[
|
|
480
|
+
prev = current && current[normalized.length],
|
|
481
481
|
t;
|
|
482
482
|
if (item == null || item === true || item === false) ; else if ((t = typeof item) === "object" && item.nodeType) {
|
|
483
483
|
normalized.push(item);
|
package/web/dist/web.js
CHANGED
|
@@ -938,7 +938,7 @@ function normalizeIncomingArray(normalized, array, current, unwrap) {
|
|
|
938
938
|
let dynamic = false;
|
|
939
939
|
for (let i = 0, len = array.length; i < len; i++) {
|
|
940
940
|
let item = array[i],
|
|
941
|
-
prev = current && current[
|
|
941
|
+
prev = current && current[normalized.length],
|
|
942
942
|
t;
|
|
943
943
|
if (item == null || item === true || item === false);
|
|
944
944
|
else if ((t = typeof item) === "object" && item.nodeType) {
|