@rangojs/router 0.0.0-experimental.tapabs1 → 0.0.0-experimental.tapabs2
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/vite/index.js +1 -1
- package/package.json +1 -1
- package/src/rsc/rsc-rendering.ts +6 -0
package/dist/vite/index.js
CHANGED
|
@@ -2393,7 +2393,7 @@ import { resolve } from "node:path";
|
|
|
2393
2393
|
// package.json
|
|
2394
2394
|
var package_default = {
|
|
2395
2395
|
name: "@rangojs/router",
|
|
2396
|
-
version: "0.0.0-experimental.
|
|
2396
|
+
version: "0.0.0-experimental.tapabs2",
|
|
2397
2397
|
description: "Django-inspired RSC router with composable URL patterns",
|
|
2398
2398
|
keywords: [
|
|
2399
2399
|
"react",
|
package/package.json
CHANGED
package/src/rsc/rsc-rendering.ts
CHANGED
|
@@ -493,7 +493,13 @@ function serveShellHit(
|
|
|
493
493
|
const renderTail = async (
|
|
494
494
|
activeCtx: RequestContext<any>,
|
|
495
495
|
): Promise<ReadableStream<Uint8Array> | { redirect: string }> => {
|
|
496
|
+
const matchStart = INTERNAL_RANGO_DEBUG ? performance.now() : 0;
|
|
496
497
|
const match = await ctx.router.match(request, { env });
|
|
498
|
+
if (INTERNAL_RANGO_DEBUG) {
|
|
499
|
+
console.log(
|
|
500
|
+
`[Server][ppr] shell HIT: tail match done +${Math.round(performance.now() - matchStart)}ms (abs ${Math.round(performance.now())}, started ${Math.round(matchStart)})`,
|
|
501
|
+
);
|
|
502
|
+
}
|
|
497
503
|
if (match.redirect) return { redirect: match.redirect };
|
|
498
504
|
setRequestContextParams(match.params, match.routeName);
|
|
499
505
|
const payload = buildFullPayload(match, ctx, url, activeCtx, handleStore);
|