deno_std icon indicating copy to clipboard operation
deno_std copied to clipboard

refactor(dotenv): avoid recursive `expand()`

Open timreichen opened this issue 3 weeks ago • 1 comments

This PR refactors the expand() fn so it uses a loop instead of calling it recursively. This makes it much more readable.

timreichen avatar Dec 01 '25 08:12 timreichen

Codecov Report

:white_check_mark: All modified and coverable lines are covered by tests. :white_check_mark: Project coverage is 94.10%. Comparing base (2f99801) to head (1d17d2a). :warning: Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6892      +/-   ##
==========================================
- Coverage   94.11%   94.10%   -0.01%     
==========================================
  Files         582      582              
  Lines       42752    42747       -5     
  Branches     6808     6806       -2     
==========================================
- Hits        40236    40229       -7     
- Misses       2466     2467       +1     
- Partials       50       51       +1     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

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

codecov[bot] avatar Dec 01 '25 08:12 codecov[bot]

BTW it looks like deno run --env-file does not support default value substitution in variable expansion

kt3k avatar Dec 15 '25 02:12 kt3k