@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.
@@ -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.tapabs1",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rangojs/router",
3
- "version": "0.0.0-experimental.tapabs1",
3
+ "version": "0.0.0-experimental.tapabs2",
4
4
  "description": "Django-inspired RSC router with composable URL patterns",
5
5
  "keywords": [
6
6
  "react",
@@ -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);