Skip to content

chore(deps-dev): Bump react-native-dotenv from 3.4.12 to 5.0.0 - #788

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/react-native-dotenv-5.0.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/react-native-dotenv-5.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Bumps react-native-dotenv from 3.4.12 to 5.0.0.

Changelog

Sourced from react-native-dotenv's changelog.

5.0.0 (2026-09-21)

Added

  • Add support for dotenv run to share environment variables between build tooling and @env imports, including file precedence, safe mode, and Metro restart requirements.

4.1.1 (2026-07-28)

Changed

  • Log ◇ injected env once per process so Metro does not spam it on every file when api.cache(false).

4.1.0 (2026-07-28)

Added

  • print ◇ injected env (N) from .env (same style as dotenv). Set quiet: true to suppress. (#593)

4.0.0 (2026-07-28)

Fixed

  • BREAKING: process.env.X is only inlined when X is defined in a .env file (plus NODE_ENV / BABEL_ENV / envName). Stops build-tooling leaks into the bundle without hardcoding tool-specific names. Host/CI-only values still work through @env imports (#574). This also fixes Expo Router compatibility — Expo host env vars like EXPO_ROUTER_* are no longer inlined and stomped (#501).

Removed

  • BREAKING: Removed deprecated whitelist and blacklist options. Use allowlist and blocklist instead.
Commits
Maintainer changes

This version was pushed to npm by motdotla, a new releaser for react-native-dotenv since your current version.


@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Nov 2, 2026
@vercel

vercel Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
drafto Ready Ready Preview Nov 30, 2026 11:28pm UTC

@dependabot dependabot Bot added the javascript Pull requests that update javascript code label Nov 2, 2026
@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@JakubAnderwald

Copy link
Copy Markdown
Owner

Major bump analysis: react-native-dotenv

Package: react-native-dotenv (devDependency, apps/desktop only), 3.4.12 → 5.0.0. Transitive: dotenv 17.4.2 → 18.0.9, used only by this package. dotenv@17.4.2 stays in the lockfile for its other consumers.

CI is green on every check: Desktop, Mobile, Lint & Typecheck, Unit & Integration, E2E, Scripts and SonarCloud.

Where we use it

Only as a Babel plugin. Nothing imports it at runtime.

  • apps/desktop/babel.config.js: module:react-native-dotenv with { envName: "APP_ENV", moduleName: "@env", path: ".env", safe: false, allowUndefined: true }
  • apps/desktop/src/lib/config.ts: the only @env importer (SUPABASE_URL, SUPABASE_ANON_KEY, API_URL). Types are in apps/desktop/src/types/env.d.ts.
  • apps/desktop/fastlane/Fastfile (build_and_submit) and docs/operations/builds-and-releases.md depend on one behaviour: process.env overrides the .env file for @env imports. That is how release builds get prod credentials, because the lane injects .env.production into the environment.

Breaking changes relevant to this codebase

None.

  • 4.0.0: process.env.X is only inlined when X is defined in a .env file. This doesn't affect us. Desktop source (src/, index.js, jest setup and tests) has no process.env.X member expressions. All env access goes through @env imports, which the changelog says still see host and CI values.
  • The release-lane precedence is unchanged. I diffed the plugin source of both versions. With safe: false, v5 still builds the @env map as undefObjectAssign(fileEnv, process.env), so process.env still wins. The undefObjectAssign the Fastfile comment cites is still there.
  • I also ran both plugin versions against config.ts's @env import in three scenarios. The inlined values for all 3 vars were identical between 3.4.12 and 5.0.0 every time:
    1. debug build (.env, NODE_ENV=development)
    2. release build (.env.production injected into process.env the way Fastlane does it, NODE_ENV=production)
    3. Jest/CI (no .env, so undefined and API_URL falls back to https://drafto.eu)
  • dotenv 18: the package is now bundled into dist/index.cjs but still require-able. parse() keeps the regex parser by default; the new character-scanner parser is opt-in via { fast: true }, which the plugin doesn't pass. The output identity above covers this too.

Breaking changes NOT relevant

  • 4.0.0 removed the deprecated whitelist and blacklist options. We don't use them; we don't use allowlist or blocklist either.
  • 4.1.0 / 4.1.1 add a one-time stderr line, ◇ injected env (N) from .env, during Metro and Babel runs. This is cosmetic, and quiet: true turns it off if it's unwanted.
  • 5.0.0 adds dotenv run CLI support. It's additive and we don't use it.

Peer dependency impacts

  • None to do. v5 drops v3's @babel/runtime ^7.20.6 peer, which the lockfile was already resolving to 8.0.10, outside that range. Dropping it removes a mismatched peer rather than adding a new one.
  • Lockfile side effect: in the apps/web importer, vite, vitest and @vitejs/plugin-react dedupe onto @emnapi/runtime@1.11.3, a version already in the lockfile, and drop their 1.10.0 variant. Web unit and E2E tests passed on it.

Desktop fossil note

Merging this changes the declared and locked version. It does not change what ships. Desktop releases build only from the primary checkout's fossil node_modules and the factory's replica of it, which are never reinstalled. The fossil currently has react-native-dotenv@3.4.11. So 5.0.0 only runs in CI and worktree Jest until the fossil is retired (#558). The checks above show it inlines the same values when that happens.

This is a pure-JS build-time Babel plugin, with no native code and no React dependency. Unlike the native modules in the known-good table in docs/operations/desktop-build-fossil.md, the gap between declared and fossil versions carries no runtime risk.

Supply chain

Dependabot flags motdotla as a new npm releaser. That is dotenv's own author: the repo moved to the dotenvx org. The commit list shows a 6.0.0 that was reverted; it was never published (npm latest = 5.0.0).

Recommendation: Safe to merge

No code changes needed. The precedence behaviour the release lane depends on is unchanged, checked against the source and by running both versions. Optionally, add quiet: true to the plugin options in apps/desktop/babel.config.js to drop the new stderr line.

@dependabot @github

dependabot Bot commented on behalf of github Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

Dependabot cannot update to the required version. Because of this, Dependabot cannot update this pull request.

1 similar comment
@dependabot @github

dependabot Bot commented on behalf of github Nov 8, 2026

Copy link
Copy Markdown
Contributor Author

Dependabot cannot update to the required version. Because of this, Dependabot cannot update this pull request.

@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/react-native-dotenv-5.0.0 branch from b8407a9 to 457c0b8 Compare November 8, 2026 22:31
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/react-native-dotenv-5.0.0 branch from 457c0b8 to f2ea071 Compare November 9, 2026 07:13
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/react-native-dotenv-5.0.0 branch from f2ea071 to d8054df Compare November 9, 2026 23:17
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/react-native-dotenv-5.0.0 branch from d8054df to bb975c8 Compare November 11, 2026 22:23
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/react-native-dotenv-5.0.0 branch from bb975c8 to a32751d Compare November 13, 2026 14:16
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/react-native-dotenv-5.0.0 branch from a32751d to e0dfc60 Compare November 16, 2026 23:08
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/react-native-dotenv-5.0.0 branch 2 times, most recently from 56be5a4 to 3b9b7da Compare November 19, 2026 20:51
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/react-native-dotenv-5.0.0 branch from 3b9b7da to db50813 Compare November 19, 2026 21:17
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/react-native-dotenv-5.0.0 branch from db50813 to f984e67 Compare November 21, 2026 20:54
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/react-native-dotenv-5.0.0 branch from f984e67 to d219ad7 Compare November 22, 2026 20:22
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/react-native-dotenv-5.0.0 branch from d219ad7 to 2881cca Compare November 23, 2026 11:46
@dependabot @github

dependabot Bot commented on behalf of github Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

Dependabot cannot update to the required version. Because of this, Dependabot cannot update this pull request.

1 similar comment
@dependabot @github

dependabot Bot commented on behalf of github Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

Dependabot cannot update to the required version. Because of this, Dependabot cannot update this pull request.

@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/react-native-dotenv-5.0.0 branch from 2881cca to a638fa6 Compare November 26, 2026 22:40
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/react-native-dotenv-5.0.0 branch from a638fa6 to e6fbc3e Compare November 30, 2026 18:28
Bumps [react-native-dotenv](https://github.com/dotenvx/react-native-dotenv) from 3.4.12 to 5.0.0.
- [Release notes](https://github.com/dotenvx/react-native-dotenv/releases)
- [Changelog](https://github.com/dotenvx/react-native-dotenv/blob/main/CHANGELOG.md)
- [Commits](dotenvx/react-native-dotenv@v3.4.12...v5.0.0)

---
updated-dependencies:
- dependency-name: react-native-dotenv
  dependency-version: 5.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/react-native-dotenv-5.0.0 branch from e6fbc3e to ed0d73d Compare November 30, 2026 23:25

This branch was successfully deployed

1 active deployment
Preview — ed0d73d9 Deployed Nov 30, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code needs-review Needs manual review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant