Merge commit '3c60637c1a27da8ba66888de518d58d5707801f2' as 'repos/effect-smol'
This commit is contained in:
9
repos/effect-smol/.changeset/empty-env-values-missing.md
Normal file
9
repos/effect-smol/.changeset/empty-env-values-missing.md
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
"effect": patch
|
||||
---
|
||||
|
||||
Treat empty strings as missing values in built-in `ConfigProvider`s by default.
|
||||
|
||||
`ConfigProvider.fromEnv`, `ConfigProvider.fromDotEnvContents`, `ConfigProvider.fromDotEnv`, `ConfigProvider.fromUnknown`, and `ConfigProvider.fromDir` now treat literal empty strings as absent values when loaded as values, allowing `Config.withDefault` and `Config.option` to recover. Container discovery still reflects the source structure. Pass `preserveEmptyStrings: true` to restore the previous behavior.
|
||||
|
||||
`ConfigProvider.fromDotEnv({ expandVariables: true })` now expands variables consistently with `ConfigProvider.fromDotEnvContents`.
|
||||
Reference in New Issue
Block a user