From 4aaf3e8790db996264e2aa0edc805c39da97a1f0 Mon Sep 17 00:00:00 2001 From: Oleksii Bulenok Date: Thu, 20 Aug 2026 14:20:45 +0200 Subject: [PATCH] fix after rebase --- patches/react-native-dotenv@3.4.11.patch | 20 -------------------- patches/react-native-dotenv@3.4.11.patch.md | 4 ---- pnpm-workspace.yaml | 1 - 3 files changed, 25 deletions(-) delete mode 100644 patches/react-native-dotenv@3.4.11.patch delete mode 100644 patches/react-native-dotenv@3.4.11.patch.md diff --git a/patches/react-native-dotenv@3.4.11.patch b/patches/react-native-dotenv@3.4.11.patch deleted file mode 100644 index 00a71aa9e2..0000000000 --- a/patches/react-native-dotenv@3.4.11.patch +++ /dev/null @@ -1,20 +0,0 @@ -diff --git a/index.js b/index.js -index 49b3650..a690ec8 100644 ---- a/index.js -+++ b/index.js -@@ -153,6 +153,15 @@ module.exports = function(api, options = {}) { - const key = path.toComputedKey() - if (t.isStringLiteral(key)) { - const importedId = key.value -+ // Metro uses Jest workers to transform application code. Do not -+ // leak the build worker's ID into the application runtime, where -+ // libraries can mistake it for an actual test environment. -+ if ( -+ importedId === 'JEST_WORKER_ID' || -+ importedId === 'VITEST_WORKER_ID' -+ ) { -+ return -+ } - const value = (env && importedId in env) ? env[importedId] : process.env[importedId] - if (value !== undefined) { - path.replaceWith(t.valueToNode(value)) diff --git a/patches/react-native-dotenv@3.4.11.patch.md b/patches/react-native-dotenv@3.4.11.patch.md deleted file mode 100644 index 9a9a891f7a..0000000000 --- a/patches/react-native-dotenv@3.4.11.patch.md +++ /dev/null @@ -1,4 +0,0 @@ -# react-native-dotenv@3.4.11.patch - -Avoid inlining Metro's `JEST_WORKER_ID` or `VITEST_WORKER_ID` into application -code, which causes libraries such as react-native-mmkv to use test-only mocks. diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 9f9d0bc9c0..42d50ee1b4 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -40,7 +40,6 @@ patchedDependencies: 'expo-updates@57.0.10': patches/expo-updates@57.0.10.patch expo@57.0.8: patches/expo@57.0.8.patch 'react-native-date-picker@5.0.13': patches/react-native-date-picker@5.0.13.patch - 'react-native-dotenv@3.4.11': patches/react-native-dotenv@3.4.11.patch 'react-native-drawer-layout@4.2.3': patches/react-native-drawer-layout@4.2.3.patch 'react-native-keyboard-controller@1.21.9': patches/react-native-keyboard-controller@1.21.9.patch 'react-native-pager-view@6.8.0': patches/react-native-pager-view@6.8.0.patch