@solidjs/web 2.0.0-beta.33 → 2.0.0-beta.34
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 -1
- package/dist/dev.js +7 -1
- package/dist/server.cjs +4 -4
- package/dist/server.js +4 -4
- package/dist/web.cjs +7 -1
- package/dist/web.js +7 -1
- package/frames/dist/server.cjs +3 -3
- package/frames/dist/server.js +3 -3
- package/package.json +3 -3
package/dist/dev.cjs
CHANGED
|
@@ -1177,13 +1177,19 @@ function hydrate$1(code, element, options = {}) {
|
|
|
1177
1177
|
}
|
|
1178
1178
|
};
|
|
1179
1179
|
}
|
|
1180
|
-
const
|
|
1180
|
+
const hyr = globalThis._$HY.r;
|
|
1181
|
+
const rootMapping = hyr && (hyr[options.renderId + "_assets"] || hyr["_assets"]);
|
|
1181
1182
|
if (rootMapping && typeof rootMapping === "object") {
|
|
1182
1183
|
const p = loadModuleAssets(rootMapping);
|
|
1183
1184
|
if (p) {
|
|
1184
1185
|
gatherHydratable(element, options.renderId);
|
|
1186
|
+
const registry = solidJs.sharedConfig.registry;
|
|
1187
|
+
const gather = solidJs.sharedConfig.gather;
|
|
1185
1188
|
let disposer;
|
|
1186
1189
|
p.then(() => {
|
|
1190
|
+
solidJs.sharedConfig.registry = registry;
|
|
1191
|
+
solidJs.sharedConfig.gather = gather;
|
|
1192
|
+
solidJs.sharedConfig.hydrating = true;
|
|
1187
1193
|
try {
|
|
1188
1194
|
disposer = render$1(code, element, [...element.childNodes], options);
|
|
1189
1195
|
} finally {
|
package/dist/dev.js
CHANGED
|
@@ -1176,13 +1176,19 @@ function hydrate$1(code, element, options = {}) {
|
|
|
1176
1176
|
}
|
|
1177
1177
|
};
|
|
1178
1178
|
}
|
|
1179
|
-
const
|
|
1179
|
+
const hyr = globalThis._$HY.r;
|
|
1180
|
+
const rootMapping = hyr && (hyr[options.renderId + "_assets"] || hyr["_assets"]);
|
|
1180
1181
|
if (rootMapping && typeof rootMapping === "object") {
|
|
1181
1182
|
const p = loadModuleAssets(rootMapping);
|
|
1182
1183
|
if (p) {
|
|
1183
1184
|
gatherHydratable(element, options.renderId);
|
|
1185
|
+
const registry = sharedConfig.registry;
|
|
1186
|
+
const gather = sharedConfig.gather;
|
|
1184
1187
|
let disposer;
|
|
1185
1188
|
p.then(() => {
|
|
1189
|
+
sharedConfig.registry = registry;
|
|
1190
|
+
sharedConfig.gather = gather;
|
|
1191
|
+
sharedConfig.hydrating = true;
|
|
1186
1192
|
try {
|
|
1187
1193
|
disposer = render$1(code, element, [...element.childNodes], options);
|
|
1188
1194
|
} finally {
|
package/dist/server.cjs
CHANGED
|
@@ -965,7 +965,7 @@ function renderToString(code, options = {}) {
|
|
|
965
965
|
}, {
|
|
966
966
|
id: renderId
|
|
967
967
|
});
|
|
968
|
-
serializeFragmentAssets("", tracking.boundaryModules, solidJs.sharedConfig.context);
|
|
968
|
+
serializeFragmentAssets("", tracking.boundaryModules, solidJs.sharedConfig.context, renderId);
|
|
969
969
|
solidJs.sharedConfig.context.noHydrate = true;
|
|
970
970
|
serializer.close();
|
|
971
971
|
const head = renderShellHead(headRegistry, nonce, null);
|
|
@@ -1101,7 +1101,7 @@ function renderToStream(code, options = {}) {
|
|
|
1101
1101
|
const serializeRootAssets = () => {
|
|
1102
1102
|
if (rootAssetsSerialized) return;
|
|
1103
1103
|
rootAssetsSerialized = true;
|
|
1104
|
-
serializeFragmentAssets("", tracking.boundaryModules, context);
|
|
1104
|
+
serializeFragmentAssets("", tracking.boundaryModules, context, renderId);
|
|
1105
1105
|
};
|
|
1106
1106
|
let holds = 0;
|
|
1107
1107
|
const flushEnd = () => {
|
|
@@ -2420,10 +2420,10 @@ function renderHeadAssets(emittedAssets, inlineStyles, nonce) {
|
|
|
2420
2420
|
}
|
|
2421
2421
|
return head;
|
|
2422
2422
|
}
|
|
2423
|
-
function serializeFragmentAssets(key, boundaryModules, context) {
|
|
2423
|
+
function serializeFragmentAssets(key, boundaryModules, context, name = key) {
|
|
2424
2424
|
const map = boundaryModules.get(key);
|
|
2425
2425
|
if (!map || !Object.keys(map).length) return;
|
|
2426
|
-
context.serialize(
|
|
2426
|
+
context.serialize(name + "_assets", map);
|
|
2427
2427
|
}
|
|
2428
2428
|
function propagateBoundaryStyles(childKey, parentKey, tracking) {
|
|
2429
2429
|
const childStyles = tracking.getBoundaryStyles(childKey);
|
package/dist/server.js
CHANGED
|
@@ -964,7 +964,7 @@ function renderToString(code, options = {}) {
|
|
|
964
964
|
}, {
|
|
965
965
|
id: renderId
|
|
966
966
|
});
|
|
967
|
-
serializeFragmentAssets("", tracking.boundaryModules, sharedConfig.context);
|
|
967
|
+
serializeFragmentAssets("", tracking.boundaryModules, sharedConfig.context, renderId);
|
|
968
968
|
sharedConfig.context.noHydrate = true;
|
|
969
969
|
serializer.close();
|
|
970
970
|
const head = renderShellHead(headRegistry, nonce, null);
|
|
@@ -1100,7 +1100,7 @@ function renderToStream(code, options = {}) {
|
|
|
1100
1100
|
const serializeRootAssets = () => {
|
|
1101
1101
|
if (rootAssetsSerialized) return;
|
|
1102
1102
|
rootAssetsSerialized = true;
|
|
1103
|
-
serializeFragmentAssets("", tracking.boundaryModules, context);
|
|
1103
|
+
serializeFragmentAssets("", tracking.boundaryModules, context, renderId);
|
|
1104
1104
|
};
|
|
1105
1105
|
let holds = 0;
|
|
1106
1106
|
const flushEnd = () => {
|
|
@@ -2419,10 +2419,10 @@ function renderHeadAssets(emittedAssets, inlineStyles, nonce) {
|
|
|
2419
2419
|
}
|
|
2420
2420
|
return head;
|
|
2421
2421
|
}
|
|
2422
|
-
function serializeFragmentAssets(key, boundaryModules, context) {
|
|
2422
|
+
function serializeFragmentAssets(key, boundaryModules, context, name = key) {
|
|
2423
2423
|
const map = boundaryModules.get(key);
|
|
2424
2424
|
if (!map || !Object.keys(map).length) return;
|
|
2425
|
-
context.serialize(
|
|
2425
|
+
context.serialize(name + "_assets", map);
|
|
2426
2426
|
}
|
|
2427
2427
|
function propagateBoundaryStyles(childKey, parentKey, tracking) {
|
|
2428
2428
|
const childStyles = tracking.getBoundaryStyles(childKey);
|
package/dist/web.cjs
CHANGED
|
@@ -1158,13 +1158,19 @@ function hydrate$1(code, element, options = {}) {
|
|
|
1158
1158
|
});
|
|
1159
1159
|
};
|
|
1160
1160
|
solidJs.sharedConfig.hydrating = true;
|
|
1161
|
-
const
|
|
1161
|
+
const hyr = globalThis._$HY.r;
|
|
1162
|
+
const rootMapping = hyr && (hyr[options.renderId + "_assets"] || hyr["_assets"]);
|
|
1162
1163
|
if (rootMapping && typeof rootMapping === "object") {
|
|
1163
1164
|
const p = loadModuleAssets(rootMapping);
|
|
1164
1165
|
if (p) {
|
|
1165
1166
|
gatherHydratable(element, options.renderId);
|
|
1167
|
+
const registry = solidJs.sharedConfig.registry;
|
|
1168
|
+
const gather = solidJs.sharedConfig.gather;
|
|
1166
1169
|
let disposer;
|
|
1167
1170
|
p.then(() => {
|
|
1171
|
+
solidJs.sharedConfig.registry = registry;
|
|
1172
|
+
solidJs.sharedConfig.gather = gather;
|
|
1173
|
+
solidJs.sharedConfig.hydrating = true;
|
|
1168
1174
|
try {
|
|
1169
1175
|
disposer = render$1(code, element, [...element.childNodes], options);
|
|
1170
1176
|
} finally {
|
package/dist/web.js
CHANGED
|
@@ -1157,13 +1157,19 @@ function hydrate$1(code, element, options = {}) {
|
|
|
1157
1157
|
});
|
|
1158
1158
|
};
|
|
1159
1159
|
sharedConfig.hydrating = true;
|
|
1160
|
-
const
|
|
1160
|
+
const hyr = globalThis._$HY.r;
|
|
1161
|
+
const rootMapping = hyr && (hyr[options.renderId + "_assets"] || hyr["_assets"]);
|
|
1161
1162
|
if (rootMapping && typeof rootMapping === "object") {
|
|
1162
1163
|
const p = loadModuleAssets(rootMapping);
|
|
1163
1164
|
if (p) {
|
|
1164
1165
|
gatherHydratable(element, options.renderId);
|
|
1166
|
+
const registry = sharedConfig.registry;
|
|
1167
|
+
const gather = sharedConfig.gather;
|
|
1165
1168
|
let disposer;
|
|
1166
1169
|
p.then(() => {
|
|
1170
|
+
sharedConfig.registry = registry;
|
|
1171
|
+
sharedConfig.gather = gather;
|
|
1172
|
+
sharedConfig.hydrating = true;
|
|
1167
1173
|
try {
|
|
1168
1174
|
disposer = render$1(code, element, [...element.childNodes], options);
|
|
1169
1175
|
} finally {
|
package/frames/dist/server.cjs
CHANGED
|
@@ -1065,7 +1065,7 @@ function renderToStream(code, options = {}) {
|
|
|
1065
1065
|
const serializeRootAssets = () => {
|
|
1066
1066
|
if (rootAssetsSerialized) return;
|
|
1067
1067
|
rootAssetsSerialized = true;
|
|
1068
|
-
serializeFragmentAssets("", tracking.boundaryModules, context);
|
|
1068
|
+
serializeFragmentAssets("", tracking.boundaryModules, context, renderId);
|
|
1069
1069
|
};
|
|
1070
1070
|
let holds = 0;
|
|
1071
1071
|
const flushEnd = () => {
|
|
@@ -2282,10 +2282,10 @@ function renderHeadAssets(emittedAssets, inlineStyles, nonce) {
|
|
|
2282
2282
|
}
|
|
2283
2283
|
return head;
|
|
2284
2284
|
}
|
|
2285
|
-
function serializeFragmentAssets(key, boundaryModules, context) {
|
|
2285
|
+
function serializeFragmentAssets(key, boundaryModules, context, name = key) {
|
|
2286
2286
|
const map = boundaryModules.get(key);
|
|
2287
2287
|
if (!map || !Object.keys(map).length) return;
|
|
2288
|
-
context.serialize(
|
|
2288
|
+
context.serialize(name + "_assets", map);
|
|
2289
2289
|
}
|
|
2290
2290
|
function propagateBoundaryStyles(childKey, parentKey, tracking) {
|
|
2291
2291
|
const childStyles = tracking.getBoundaryStyles(childKey);
|
package/frames/dist/server.js
CHANGED
|
@@ -1063,7 +1063,7 @@ function renderToStream(code, options = {}) {
|
|
|
1063
1063
|
const serializeRootAssets = () => {
|
|
1064
1064
|
if (rootAssetsSerialized) return;
|
|
1065
1065
|
rootAssetsSerialized = true;
|
|
1066
|
-
serializeFragmentAssets("", tracking.boundaryModules, context);
|
|
1066
|
+
serializeFragmentAssets("", tracking.boundaryModules, context, renderId);
|
|
1067
1067
|
};
|
|
1068
1068
|
let holds = 0;
|
|
1069
1069
|
const flushEnd = () => {
|
|
@@ -2280,10 +2280,10 @@ function renderHeadAssets(emittedAssets, inlineStyles, nonce) {
|
|
|
2280
2280
|
}
|
|
2281
2281
|
return head;
|
|
2282
2282
|
}
|
|
2283
|
-
function serializeFragmentAssets(key, boundaryModules, context) {
|
|
2283
|
+
function serializeFragmentAssets(key, boundaryModules, context, name = key) {
|
|
2284
2284
|
const map = boundaryModules.get(key);
|
|
2285
2285
|
if (!map || !Object.keys(map).length) return;
|
|
2286
|
-
context.serialize(
|
|
2286
|
+
context.serialize(name + "_assets", map);
|
|
2287
2287
|
}
|
|
2288
2288
|
function propagateBoundaryStyles(childKey, parentKey, tracking) {
|
|
2289
2289
|
const childStyles = tracking.getBoundaryStyles(childKey);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solidjs/web",
|
|
3
3
|
"description": "Solid's web runtime: client rendering, hydration, SSR, and DOM-specific control flow (Portal, Dynamic).",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.34",
|
|
5
5
|
"author": "Ryan Carniato",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://solidjs.com",
|
|
@@ -378,10 +378,10 @@
|
|
|
378
378
|
"seroval-plugins": "~1.5.4"
|
|
379
379
|
},
|
|
380
380
|
"peerDependencies": {
|
|
381
|
-
"solid-js": "^2.0.0-beta.
|
|
381
|
+
"solid-js": "^2.0.0-beta.34"
|
|
382
382
|
},
|
|
383
383
|
"devDependencies": {
|
|
384
|
-
"solid-js": "2.0.0-beta.
|
|
384
|
+
"solid-js": "2.0.0-beta.34"
|
|
385
385
|
},
|
|
386
386
|
"scripts": {
|
|
387
387
|
"build": "npm-run-all -nl build:clean types:copy-jsx build:js",
|