Skip to content

BREAKING(dotenv): remove deprecated loaders - #7335

Open
tomas-zijdemans wants to merge 2 commits into
denoland:mainfrom
tomas-zijdemans:breaking/dotenv-remove-loaders
Open

tomas-zijdemans wants to merge 2 commits into
denoland:mainfrom
tomas-zijdemans:breaking/dotenv-remove-loaders

Conversation

@tomas-zijdemans

@tomas-zijdemans tomas-zijdemans commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Removes load(), loadSync(), LoadOptions and the @std/dotenv/load export, as agreed in #7246. parse() and stringify() stay, and the migration notes in mod.ts stay too.

Version. The @deprecated tags say "removed in 0.227.0", but that assumed the deprecation would ship as 0.226.0. It shipped as 0.225.8, because deprecation titles bump the patch. On a 0.x package a BREAKING title bumps the minor, so this lands as 0.226.0. Nobody gets surprised by it: ^0.225.8 doesn't match 0.226.0. If you'd rather keep the notice literal, the release PR can set 0.227.0 instead. Fine by me either way.

Tests. mod_test.ts held the only tests for parse() reading from the process env, since they went through loadSync(). I moved three of those cases to parse_test.ts:

  • an env var set to "" expands to ""
  • no env access is needed when nothing expands from the process env
  • expanding without env access throws NotCapable

Tested with env -u NO_COLOR deno task ok.

I used Claude Code to help investigate and write this change.

@tomas-zijdemans
tomas-zijdemans force-pushed the breaking/dotenv-remove-loaders branch from ac193c8 to ee1735a Compare September 26, 2026 11:19
@github-actions github-actions Bot removed the http label Sep 26, 2026
@codecov

codecov Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.04%. Comparing base (f834d02) to head (b6f83e4).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7335   +/-   ##
=======================================
  Coverage   95.04%   95.04%           
=======================================
  Files         619      618    -1     
  Lines       52012    51960   -52     
  Branches     9450     9438   -12     
=======================================
- Hits        49434    49385   -49     
+ Misses       2031     2029    -2     
+ Partials      547      546    -1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

These cases previously ran through loadSync() in mod_test.ts.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant