From 4c6a26c051a8b8f9a57685f3103515acdd801c64 Mon Sep 17 00:00:00 2001 From: ConnorQi01 Date: Wed, 8 Apr 2026 09:14:47 +0800 Subject: [PATCH 1/2] chore: remove misleading Node 10 TODO comments --- .prettierignore | 2 ++ src/debugger/appWorker.ts | 3 ++- src/debugger/forkedAppWorker.ts | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 .prettierignore diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 000000000..66b7e9e07 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,2 @@ +OPTIMIZATION_PLAN_2026-04-07.md +OPTIMIZATION_TODO.md diff --git a/src/debugger/appWorker.ts b/src/debugger/appWorker.ts index 94f512426..83a473b83 100644 --- a/src/debugger/appWorker.ts +++ b/src/debugger/appWorker.ts @@ -63,7 +63,8 @@ Object.defineProperty(process, "versions", { value: undefined }); -// TODO: Replace by url.fileURLToPath method when Node 10 LTS become deprecated +// Polyfill for url.fileURLToPath - needed because this code runs in user's RN environment +// where we cannot use import/require. Keep this implementation. function fileUrlToPath(url) { if (process.platform === 'win32') { return url.toString().replace('file:///', ''); diff --git a/src/debugger/forkedAppWorker.ts b/src/debugger/forkedAppWorker.ts index e760e2d94..691599e15 100644 --- a/src/debugger/forkedAppWorker.ts +++ b/src/debugger/forkedAppWorker.ts @@ -203,7 +203,8 @@ export class ForkedAppWorker implements IDebuggeeWorker { return promise; } - // TODO: Replace by url.pathToFileURL method when Node 10 LTS become deprecated + // Simple and reliable implementation for converting file path to file:// URL + // Keep this instead of using url.pathToFileURL() to avoid URL encoding issues public pathToFileUrl(url: string): string { const filePrefix = process.platform === "win32" ? "file:///" : "file://"; return filePrefix + url; From ac411000505ae0c694c60213e3d27a4176b77e57 Mon Sep 17 00:00:00 2001 From: ConnorQi01 Date: Wed, 8 Apr 2026 09:57:19 +0800 Subject: [PATCH 2/2] chore: remove .prettierignore --- .prettierignore | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 .prettierignore diff --git a/.prettierignore b/.prettierignore deleted file mode 100644 index 66b7e9e07..000000000 --- a/.prettierignore +++ /dev/null @@ -1,2 +0,0 @@ -OPTIMIZATION_PLAN_2026-04-07.md -OPTIMIZATION_TODO.md