@solidjs/web 2.0.0-beta.2 → 2.0.0-beta.3
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 +2 -21
- package/dist/dev.js +3 -22
- package/package.json +4 -4
package/dist/dev.cjs
CHANGED
|
@@ -640,28 +640,9 @@ function resolveSSRNode(node) {}
|
|
|
640
640
|
function escape(html) {}
|
|
641
641
|
|
|
642
642
|
function render(...args) {
|
|
643
|
-
|
|
644
|
-
{
|
|
645
|
-
solidJs.setOnUnhandledAsync(() => {
|
|
646
|
-
unhandledAsync = true;
|
|
647
|
-
});
|
|
648
|
-
}
|
|
643
|
+
solidJs.enforceLoadingBoundary(true);
|
|
649
644
|
const result = render$1(...args);
|
|
650
|
-
|
|
651
|
-
solidJs.setOnUnhandledAsync(null);
|
|
652
|
-
if (unhandledAsync) {
|
|
653
|
-
const message = "Async content was used in JSX without a <Loading> boundary. " + "Wrap async content in <Loading> to show a fallback while loading.";
|
|
654
|
-
result();
|
|
655
|
-
const container = args[1];
|
|
656
|
-
container.textContent = "";
|
|
657
|
-
const msg = document.createElement("pre");
|
|
658
|
-
msg.style.cssText = "color:#e53e3e;background:#fff5f5;border:2px solid #e53e3e;" + "border-radius:4px;padding:16px;margin:16px;font-family:monospace;" + "white-space:pre-wrap;word-break:break-word;";
|
|
659
|
-
msg.textContent = message;
|
|
660
|
-
container.appendChild(msg);
|
|
661
|
-
console.error(message);
|
|
662
|
-
return () => {};
|
|
663
|
-
}
|
|
664
|
-
}
|
|
645
|
+
solidJs.enforceLoadingBoundary(false);
|
|
665
646
|
return result;
|
|
666
647
|
}
|
|
667
648
|
const isServer = false;
|
package/dist/dev.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createRenderEffect, createMemo as createMemo$1, sharedConfig, untrack, runWithOwner, flatten, createRoot, omit, $DEVCOMP, enableHydration,
|
|
1
|
+
import { createRenderEffect, createMemo as createMemo$1, sharedConfig, untrack, runWithOwner, flatten, createRoot, omit, $DEVCOMP, enableHydration, enforceLoadingBoundary } from 'solid-js';
|
|
2
2
|
export { Errored, For, Hydration, Loading, Match, NoHydration, Show, Switch, createComponent, getOwner, merge as mergeProps, untrack } from 'solid-js';
|
|
3
3
|
import { createMemo } from '@solidjs/signals';
|
|
4
4
|
|
|
@@ -639,28 +639,9 @@ function resolveSSRNode(node) {}
|
|
|
639
639
|
function escape(html) {}
|
|
640
640
|
|
|
641
641
|
function render(...args) {
|
|
642
|
-
|
|
643
|
-
{
|
|
644
|
-
setOnUnhandledAsync(() => {
|
|
645
|
-
unhandledAsync = true;
|
|
646
|
-
});
|
|
647
|
-
}
|
|
642
|
+
enforceLoadingBoundary(true);
|
|
648
643
|
const result = render$1(...args);
|
|
649
|
-
|
|
650
|
-
setOnUnhandledAsync(null);
|
|
651
|
-
if (unhandledAsync) {
|
|
652
|
-
const message = "Async content was used in JSX without a <Loading> boundary. " + "Wrap async content in <Loading> to show a fallback while loading.";
|
|
653
|
-
result();
|
|
654
|
-
const container = args[1];
|
|
655
|
-
container.textContent = "";
|
|
656
|
-
const msg = document.createElement("pre");
|
|
657
|
-
msg.style.cssText = "color:#e53e3e;background:#fff5f5;border:2px solid #e53e3e;" + "border-radius:4px;padding:16px;margin:16px;font-family:monospace;" + "white-space:pre-wrap;word-break:break-word;";
|
|
658
|
-
msg.textContent = message;
|
|
659
|
-
container.appendChild(msg);
|
|
660
|
-
console.error(message);
|
|
661
|
-
return () => {};
|
|
662
|
-
}
|
|
663
|
-
}
|
|
644
|
+
enforceLoadingBoundary(false);
|
|
664
645
|
return result;
|
|
665
646
|
}
|
|
666
647
|
const isServer = false;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solidjs/web",
|
|
3
3
|
"description": "Solid's web runtime for the browser and the server",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.3",
|
|
5
5
|
"author": "Ryan Carniato",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://solidjs.com",
|
|
@@ -75,11 +75,11 @@
|
|
|
75
75
|
"seroval-plugins": "^1.1.0"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
|
-
"solid-js": "^2.0.0-beta.
|
|
79
|
-
"@solidjs/signals": "^0.
|
|
78
|
+
"solid-js": "^2.0.0-beta.3",
|
|
79
|
+
"@solidjs/signals": "^0.13.3"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"solid-js": "2.0.0-beta.
|
|
82
|
+
"solid-js": "2.0.0-beta.3"
|
|
83
83
|
},
|
|
84
84
|
"scripts": {
|
|
85
85
|
"build": "npm-run-all -nl build:*",
|