Skip to content

v1.0.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 26 Feb 11:49
6a0b897

DotEnv v1.0.0

Diff since v0.3.1

In this release, the entire codebase has been completely rewritten, and the old API replaced too.

Old API

  • load([path = ".env"]; override=false): Modify ENV with the contents of path, optionally overriding existing values
  • config([path = ".env"]; override=false): Alias for load
  • parse(<source>): parse a .env file to a Dict{String, String}

New API

  • load!([target = ENV], path = ".env"; override=false): parse the .env file path and modify target, optionally overriding existing values
  • unload!([target = ENV], path = ".env"): undoes the equivalent load!
  • config(<source/path>; env, override): pure version of load! (used in the implementation of load!) essentially, returns a combined env dict
  • parse(<source>): parse a .env file to a Dict{String, String}

Quick (and dirty) comparison table

Old API New API
load load!
config load!
unload!
config
parse parse