@rangojs/router 0.0.0-experimental.a769fbe7 → 0.0.0-experimental.c3ad1e93
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
CHANGED
|
@@ -1745,7 +1745,7 @@ import { resolve } from "node:path";
|
|
|
1745
1745
|
// package.json
|
|
1746
1746
|
var package_default = {
|
|
1747
1747
|
name: "@rangojs/router",
|
|
1748
|
-
version: "0.0.0-experimental.
|
|
1748
|
+
version: "0.0.0-experimental.c3ad1e93",
|
|
1749
1749
|
description: "Django-inspired RSC router with composable URL patterns",
|
|
1750
1750
|
keywords: [
|
|
1751
1751
|
"react",
|
|
@@ -4981,12 +4981,6 @@ function performanceTracksPlugin() {
|
|
|
4981
4981
|
}
|
|
4982
4982
|
}
|
|
4983
4983
|
registerDebugChannel(debugId);
|
|
4984
|
-
console.log(
|
|
4985
|
-
"[perf-tracks] middleware: created channel for",
|
|
4986
|
-
debugId,
|
|
4987
|
-
"from",
|
|
4988
|
-
existingId ? "client header" : "SSR inject"
|
|
4989
|
-
);
|
|
4990
4984
|
next();
|
|
4991
4985
|
});
|
|
4992
4986
|
}
|
package/package.json
CHANGED
|
@@ -116,14 +116,6 @@ export function createNavigationClient(
|
|
|
116
116
|
const debugChannel = debugId
|
|
117
117
|
? createClientDebugChannel(debugId)
|
|
118
118
|
: undefined;
|
|
119
|
-
if (debugId) {
|
|
120
|
-
console.log(
|
|
121
|
-
"[perf-tracks] client: debugId =",
|
|
122
|
-
debugId,
|
|
123
|
-
"channel =",
|
|
124
|
-
debugChannel ? "created" : "null (no HMR)",
|
|
125
|
-
);
|
|
126
|
-
}
|
|
127
119
|
|
|
128
120
|
/** Start a fresh navigation fetch (no cache / inflight hit). */
|
|
129
121
|
const doFreshFetch = (): Promise<Response> => {
|
package/src/rsc/handler.ts
CHANGED
|
@@ -429,13 +429,8 @@ export function createRSCHandler<
|
|
|
429
429
|
// Dev-only: wire debug channel for React Performance Tracks
|
|
430
430
|
if (process.env.NODE_ENV !== "production") {
|
|
431
431
|
const debugId = request.headers.get(DEBUG_ID_HEADER);
|
|
432
|
-
console.log("[perf-tracks] handler: debugId header =", debugId);
|
|
433
432
|
if (debugId) {
|
|
434
433
|
const channel = createServerDebugChannel(debugId);
|
|
435
|
-
console.log(
|
|
436
|
-
"[perf-tracks] handler: channel =",
|
|
437
|
-
channel ? "created" : "NOT FOUND",
|
|
438
|
-
);
|
|
439
434
|
if (channel) {
|
|
440
435
|
requestContext._debugChannel = channel;
|
|
441
436
|
}
|
|
@@ -69,15 +69,8 @@ export function createServerDebugChannel(debugId: string): {
|
|
|
69
69
|
const channel = registry.channels.get(debugId);
|
|
70
70
|
if (channel) {
|
|
71
71
|
registry.channels.delete(debugId);
|
|
72
|
-
console.log("[perf-tracks] debug channel attached for", debugId);
|
|
73
72
|
return channel;
|
|
74
73
|
}
|
|
75
|
-
console.log(
|
|
76
|
-
"[perf-tracks] no channel found for",
|
|
77
|
-
debugId,
|
|
78
|
-
"channels:",
|
|
79
|
-
registry.channels.size,
|
|
80
|
-
);
|
|
81
74
|
return null;
|
|
82
75
|
}
|
|
83
76
|
|
|
@@ -218,12 +211,6 @@ export function performanceTracksPlugin(): Plugin {
|
|
|
218
211
|
}
|
|
219
212
|
|
|
220
213
|
registerDebugChannel(debugId);
|
|
221
|
-
console.log(
|
|
222
|
-
"[perf-tracks] middleware: created channel for",
|
|
223
|
-
debugId,
|
|
224
|
-
"from",
|
|
225
|
-
existingId ? "client header" : "SSR inject",
|
|
226
|
-
);
|
|
227
214
|
next();
|
|
228
215
|
});
|
|
229
216
|
},
|