@react-native/dev-middleware
Advanced tools
Comparing version 0.78.0-rc.4 to 0.78.0-rc.5
@@ -92,2 +92,13 @@ "use strict"; | ||
break; | ||
case "fusebox_console_notice": | ||
logger?.info( | ||
"\n" + | ||
"\u001B[7m" + | ||
" \u001B[1m💡 JavaScript logs have moved!\u001B[22m They can now be " + | ||
"viewed in React Native DevTools. Tip: Type \u001B[1mj\u001B[22m in " + | ||
"the terminal to open (requires Google Chrome or Microsoft Edge)." + | ||
"\u001B[27m" + | ||
"\n" | ||
); | ||
break; | ||
} | ||
@@ -94,0 +105,0 @@ reporter?.logEvent(event); |
@@ -43,2 +43,3 @@ "use strict"; | ||
const FILE_PREFIX = "file://"; | ||
let fuseboxConsoleNoticeLogged = false; | ||
const REACT_NATIVE_RELOADABLE_PAGE_ID = "-1"; | ||
@@ -381,2 +382,3 @@ class Device { | ||
if (this.#pageHasCapability(page, "nativePageReloads")) { | ||
this.#logFuseboxConsoleNotice(); | ||
continue; | ||
@@ -814,3 +816,10 @@ } | ||
} | ||
#logFuseboxConsoleNotice() { | ||
if (fuseboxConsoleNoticeLogged) { | ||
return; | ||
} | ||
this.#deviceEventReporter?.logFuseboxConsoleNotice(); | ||
fuseboxConsoleNoticeLogged = true; | ||
} | ||
} | ||
exports.default = Device; |
@@ -52,4 +52,5 @@ /** | ||
): void; | ||
logFuseboxConsoleNotice(): void; | ||
} | ||
declare const $$EXPORT_DEFAULT_DECLARATION$$: typeof DeviceEventReporter; | ||
export default $$EXPORT_DEFAULT_DECLARATION$$; |
@@ -162,2 +162,7 @@ "use strict"; | ||
} | ||
logFuseboxConsoleNotice() { | ||
this.#eventReporter.logEvent({ | ||
type: "fusebox_console_notice", | ||
}); | ||
} | ||
#logExpiredCommand(pendingCommand) { | ||
@@ -164,0 +169,0 @@ this.#eventReporter.logEvent({ |
@@ -82,4 +82,5 @@ /** | ||
any | ||
| { type: "fusebox_console_notice" } | ||
| /** | ||
* > 92 | ...DebuggerSessionIDs, | ||
* > 95 | ...DebuggerSessionIDs, | ||
* | ^^^^^^^^^^^^^^^^^^^^^ Unsupported feature: Translating "object types with spreads in the middle or at the end" is currently not supported. | ||
@@ -86,0 +87,0 @@ **/ |
{ | ||
"name": "@react-native/dev-middleware", | ||
"version": "0.78.0-rc.4", | ||
"version": "0.78.0-rc.5", | ||
"description": "Dev server middleware for React Native", | ||
@@ -26,3 +26,3 @@ "keywords": [ | ||
"@isaacs/ttlcache": "^1.4.1", | ||
"@react-native/debugger-frontend": "0.78.0-rc.4", | ||
"@react-native/debugger-frontend": "0.78.0-rc.5", | ||
"chrome-launcher": "^0.15.2", | ||
@@ -29,0 +29,0 @@ "chromium-edge-launcher": "^0.2.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
105753
2415
+ Added@react-native/debugger-frontend@0.78.0-rc.5(transitive)
- Removed@react-native/debugger-frontend@0.78.0-rc.4(transitive)