Update dependency flutter_dotenv to v6 - #23
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
renovate
Bot
force-pushed
the
renovate/flutter_dotenv-6.x
branch
from
October 27, 2025 14:08
cf9a315 to
fa3f9fe
Compare
renovate
Bot
force-pushed
the
renovate/flutter_dotenv-6.x
branch
from
February 2, 2026 16:40
fa3f9fe to
d6bc0fb
Compare
renovate
Bot
force-pushed
the
renovate/flutter_dotenv-6.x
branch
from
February 12, 2026 13:34
d6bc0fb to
baab953
Compare
renovate
Bot
force-pushed
the
renovate/flutter_dotenv-6.x
branch
from
March 13, 2026 12:39
baab953 to
51eb439
Compare
renovate
Bot
force-pushed
the
renovate/flutter_dotenv-6.x
branch
from
March 31, 2026 17:55
51eb439 to
82b71e6
Compare
renovate
Bot
force-pushed
the
renovate/flutter_dotenv-6.x
branch
from
May 12, 2026 02:54
82b71e6 to
bda6c4a
Compare
renovate
Bot
force-pushed
the
renovate/flutter_dotenv-6.x
branch
from
June 1, 2026 23:59
bda6c4a to
0ad33a8
Compare
renovate
Bot
force-pushed
the
renovate/flutter_dotenv-6.x
branch
from
August 26, 2026 23:07
0ad33a8 to
a2b5f0f
Compare
renovate
Bot
force-pushed
the
renovate/flutter_dotenv-6.x
branch
from
September 7, 2026 19:43
a2b5f0f to
d78e091
Compare
renovate
Bot
force-pushed
the
renovate/flutter_dotenv-6.x
branch
from
September 8, 2026 02:50
d78e091 to
39b8bb6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^5.1.0→^6.0.0Release Notes
java-james/flutter_dotenv (flutter_dotenv)
v6.0.1Compare Source
isEveryDefined()now throwsNotInitializedErrorbeforeload(), consistent with all other read APIsassert()with explicitif/throwingetInt(),getDouble(), andgetBool()so null-safety checks are enforced in release buildsload(isOptional: true)no longer discards successfully loaded base file when an override file is missing or empty (fixes #70, #93, #101, #125)clean()now resetsisInitializedtofalse, so accessingenvafterclean()correctly throwsNotInitializedErrorNotInitializedError,FileNotFoundError,EmptyEnvFileError) now include informative messages intoString()instead of the unhelpfulInstance of 'ClassName'(fixes #72, #127; improves diagnostics for #59, #89)FileNotFoundErrorandEmptyEnvFileErrornow carry the filename when availableNote on error message improvements
NotInitializedError,FileNotFoundError, andEmptyEnvFileErrornow overridetoString()with actionable messages (e.g.,FileNotFoundError: Environment file ".env" not found. Ensure the file exists and is listed under assets in pubspec.yaml.). This is not a breaking change — the class names and hierarchy are unchanged, so existingon FileNotFoundErrorcatch clauses continue to work.FileNotFoundErrornow accepts an optional positionalfilenameparameter, andEmptyEnvFileErroraccepts an optional namedfilenameparameter; both default tonullfor backward compatibility.Note on release-build behavior change
In debug mode, behavior is unchanged —
AssertionErrorwas thrown before,AssertionErroris thrown now.In release mode, calling
getInt(),getDouble(), orgetBool()with a missing variable and no fallback previously threw aTypeError(from the null-check operator!) becauseassert()was stripped. It now correctly throwsAssertionErrorwith a descriptive message. If your release-mode code catcheson TypeErroraround these methods, update it to catchon AssertionError(oron Error) instead.Breaking change:
clean()now resets initialization statePreviously, calling
clean()only cleared the env map but leftisInitialized == true. Now it also setsisInitialized = false. Code that callsclean()and then immediately accessesdotenv.envwithout reloading will now throwNotInitializedError. The fix is to callload()orloadFromString()again afterclean().v6.0.0Compare Source
Breaking changes
Renamed:
⚠️ Update your code to call
testLoad→loadFromStringThe method has been renamed to better reflect that it can be used outside of test environments.
loadFromString()instead oftestLoad().Behavior change: Empty file handling with
isOptional = truePreviously, if the env file was empty and
isOptionalwastrue, the method would throw.Now, in this case, it no longer throws and simply returns an empty env.
Supported SDK range change: Dropped support for the pre release
2.12.0-0. Now supports2.12.0onwards.Configuration
📅 Schedule: (in timezone Asia/Jerusalem)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.