Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Latest commit

 

History

History
68 lines (40 loc) · 1.98 KB

CHANGELOG.md

File metadata and controls

68 lines (40 loc) · 1.98 KB

None

  • Don't override values already set in the environment

    Given a hypothetical program load-env, which uses one of our loadEnv functions on stdin:

    Previously,

    FOO=bar load-env <<EOM
    FOO=bat
    EOM
    

    would override FOO to bat when load-env ran. But now, it will see FOO is already bar and leave it.

    This is better behavior under the assumption that a .env file is meant to specify defaults in the case of nothing explicit. When there are explicit values in the environment, it's most likely that our user indeed wants them respected.

  • Packaging and documentation updates
  • Traverse up parent directories to find the .env file
  • Packaging updates
  • Parse variables names more strictly
  • Don't fail on an empty file
  • Ignore any invalid lines, not specifically things that look like comments
  • Don't throw an exception if the .env file is missing
  • Variable names can contain underscores
  • Drop support for GHC < 7.8

Initial release.