@reckona/mreact-router 0.0.169 → 0.0.171
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/client.d.ts.map +1 -1
- package/dist/client.js +7 -2
- package/dist/client.js.map +1 -1
- package/package.json +11 -11
- package/src/client.ts +7 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reckona/mreact-router",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.171",
|
|
4
4
|
"description": "File-system app router, SSR, actions, and deployment adapters for mreact.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jsx",
|
|
@@ -105,20 +105,20 @@
|
|
|
105
105
|
},
|
|
106
106
|
"dependencies": {
|
|
107
107
|
"typescript": "^6.0.3",
|
|
108
|
-
"@reckona/mreact": "0.0.
|
|
109
|
-
"@reckona/mreact-compat": "0.0.
|
|
110
|
-
"@reckona/mreact-compiler": "0.0.
|
|
111
|
-
"@reckona/mreact-
|
|
112
|
-
"@reckona/mreact-
|
|
113
|
-
"@reckona/mreact-
|
|
114
|
-
"@reckona/mreact-reactive-dom": "0.0.
|
|
115
|
-
"@reckona/mreact-shared": "0.0.
|
|
116
|
-
"@reckona/mreact-server": "0.0.
|
|
108
|
+
"@reckona/mreact": "0.0.171",
|
|
109
|
+
"@reckona/mreact-compat": "0.0.171",
|
|
110
|
+
"@reckona/mreact-compiler": "0.0.171",
|
|
111
|
+
"@reckona/mreact-query": "0.0.171",
|
|
112
|
+
"@reckona/mreact-reactive-core": "0.0.171",
|
|
113
|
+
"@reckona/mreact-devtools": "0.0.171",
|
|
114
|
+
"@reckona/mreact-reactive-dom": "0.0.171",
|
|
115
|
+
"@reckona/mreact-shared": "0.0.171",
|
|
116
|
+
"@reckona/mreact-server": "0.0.171"
|
|
117
117
|
},
|
|
118
118
|
"peerDependencies": {
|
|
119
119
|
"vite": ">=8 <9"
|
|
120
120
|
},
|
|
121
121
|
"optionalDependencies": {
|
|
122
|
-
"@reckona/mreact-router-native": "0.0.
|
|
122
|
+
"@reckona/mreact-router-native": "0.0.171"
|
|
123
123
|
}
|
|
124
124
|
}
|
package/src/client.ts
CHANGED
|
@@ -2256,6 +2256,9 @@ export async function buildClientRouteEntrySource(
|
|
|
2256
2256
|
const routeCleanupScopeImport = routeUsesCleanupScope
|
|
2257
2257
|
? `import { withCleanupScope as __mreactWithCleanupScope } from "@reckona/mreact-reactive-core/internal";\n`
|
|
2258
2258
|
: "";
|
|
2259
|
+
const routeReactiveDomMetadataImport = !routeUsesOnlyClientReferenceBoundaries
|
|
2260
|
+
? `import { withEventBindingMetadata as __mreactWithEventBindingMetadata, withPropBindingMetadata as __mreactWithPropBindingMetadata } from "@reckona/mreact-reactive-dom";\n`
|
|
2261
|
+
: "";
|
|
2259
2262
|
const navigationStateDeclaration = clientNavigation
|
|
2260
2263
|
? `const __mreactNavigationState = __mreactGlobal.__mreactNavigationState ??= {
|
|
2261
2264
|
cache: new Map(),
|
|
@@ -2423,7 +2426,9 @@ function __mreactResolveRouteNode(value) {
|
|
|
2423
2426
|
const routeNodeExpression = routeUsesCells
|
|
2424
2427
|
? `__mreactResolveRouteNode(${routeComponentCallExpression})`
|
|
2425
2428
|
: routeComponentCallExpression;
|
|
2426
|
-
const routeHydrationNodeExpression =
|
|
2429
|
+
const routeHydrationNodeExpression = !routeUsesOnlyClientReferenceBoundaries
|
|
2430
|
+
? `__mreactWithPropBindingMetadata(() => __mreactWithEventBindingMetadata(() => __mreactEvaluateHydrationNode(() => ${routeNodeExpression})))`
|
|
2431
|
+
: `__mreactEvaluateHydrationNode(() => ${routeNodeExpression})`;
|
|
2427
2432
|
const boundaryOnlyHydrationBlock = routeRequiresFullHydration
|
|
2428
2433
|
? ""
|
|
2429
2434
|
: `${routeCellHydrationIndent}if (!__mreactHasNonSerializableClientBoundaries(__mreactMarker) && __mreactHydrateClientBoundaries(document, __mreactClientReferences, __mreactClientReferenceComponents)) {
|
|
@@ -2436,7 +2441,7 @@ ${routeCellHydrationIndent}}
|
|
|
2436
2441
|
${routeCellHydrationIndent} return;
|
|
2437
2442
|
${routeCellHydrationIndent}}
|
|
2438
2443
|
`;
|
|
2439
|
-
const entry = `${routeCellEffectImport}${routeCleanupScopeImport}${emitCompatClientReferenceImportBlock(compatClientReferenceNames)}${clientReferenceImportBlock}${routeHydrationCode}
|
|
2444
|
+
const entry = `${routeCellEffectImport}${routeCleanupScopeImport}${routeReactiveDomMetadataImport}${emitCompatClientReferenceImportBlock(compatClientReferenceNames)}${clientReferenceImportBlock}${routeHydrationCode}
|
|
2440
2445
|
|
|
2441
2446
|
const __mreactRouteId = ${JSON.stringify(routeId)};
|
|
2442
2447
|
const __mreactRouteStateSignature = ${JSON.stringify(routeStateSignature)};
|