@proveanything/smartlinks 2.0.52 → 2.0.53
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/docs/API_SUMMARY.md +1 -1
- package/docs/API_SUMMARY.md +1 -1
- package/package.json +1 -1
- package/scripts/doctor.mjs +1 -1
package/dist/docs/API_SUMMARY.md
CHANGED
package/docs/API_SUMMARY.md
CHANGED
package/package.json
CHANGED
package/scripts/doctor.mjs
CHANGED
|
@@ -262,7 +262,7 @@ if (meta.respectsHostTheme) {
|
|
|
262
262
|
const text = readFileSync(bp, 'utf8');
|
|
263
263
|
const routers = ['MemoryRouter', 'HashRouter', 'BrowserRouter'].filter((r) => new RegExp(`\\b${r}\\b`).test(text));
|
|
264
264
|
if (!routers.length) { console.log(`${GREEN}✓${RESET} containers ${DIM}— no router of their own (the host's is used)${RESET}`); break; }
|
|
265
|
-
if (
|
|
265
|
+
if (/\bUNSAFE_LocationContext\b/.test(text)) { console.log(`${GREEN}✓${RESET} containers ${DIM}— own ${routers.join('/')} isolated from the host's router${RESET}`); break; }
|
|
266
266
|
console.log(`${YELLOW}⚠${RESET} containers — ${routers.join('/')} without isolating it from the host's router`);
|
|
267
267
|
warnings.push(`containers bundle renders its own ${routers.join('/')} but never resets the host's router context — inside an R5 host that throws "You cannot render a <Router> inside another <Router>". Wrap it in UNSAFE_LocationContext.Provider + UNSAFE_NavigationContext.Provider value={null} (docs/containers.md), or drop the router and use the host's.`);
|
|
268
268
|
break;
|