Skip to content

Comments

chore(deps): upgrade dotenv to v17.2.3 and remove unused loadDotEnvFile utility#13259

Merged
czubocha merged 1 commit intomainfrom
dotenv-upgrade
Jan 15, 2026
Merged

chore(deps): upgrade dotenv to v17.2.3 and remove unused loadDotEnvFile utility#13259
czubocha merged 1 commit intomainfrom
dotenv-upgrade

Conversation

@czubocha
Copy link
Contributor

Upgrade dotenv to v17 and remove dead code

Summary

Upgrades dotenv from ^16.6.1 to ^17.2.3 and removes unused dead code.

Changes

Dependency Upgrade

  • dotenv: ^16.6.1^17.2.3

Breaking Change Mitigation

The only breaking change in dotenv v17.0.0 is that quiet now defaults to false, causing informational runtime logs like:

[[email protected]] injecting env (1) from .env -- tip: ...

Added quiet: true to all dotenv.config() calls to suppress these logs.

Dead Code Removal

Removed the unused loadDotEnvFile function which was exported but never consumed:

  • Removed function definition from packages/sf-core/src/utils/fs/index.js (46 lines)
  • Removed from exports in packages/sf-core/src/utils/fs/index.js
  • Removed from imports/exports in packages/sf-core/src/utils/index.js
  • Removed now-unused dotenv import from packages/sf-core/src/utils/fs/index.js

Files Changed

File Change
packages/sf-core/package.json Upgraded dotenv dependency
packages/sf-core/src/lib/resolvers/env.js Added quiet: true to 2 calls
packages/sf-core/src/utils/fs/index.js Removed loadDotEnvFile + unused import
packages/sf-core/src/utils/index.js Removed loadDotEnvFile from imports/exports

@Mmarzex
Copy link
Contributor

Mmarzex commented Jan 15, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@czubocha czubocha changed the title chore(deps): upgrade eslint chore(deps): upgrade dotenv to v17.2.3 and remove unused loadDotEnvFile utility Jan 15, 2026
@czubocha czubocha requested a review from eahefnawy January 15, 2026 03:36
@czubocha czubocha merged commit 8e9a6ba into main Jan 15, 2026
10 checks passed
@czubocha czubocha deleted the dotenv-upgrade branch January 15, 2026 11:21
@github-actions github-actions bot locked and limited conversation to collaborators Jan 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants