Godotenv Versions Save

A Go port of Ruby's dotenv library (Loads environment variables from .env files)

v1.5.1

1 year ago

Version 1.5 came with a whole new parser, and with a new parser comes new bugs.

Things that were broken in 1.5 that are now fixed:

  • unquoted variables with interior whitespace no longer split on the first space (and then break the following line if you have one)
  • inline comments now work again for both quoted and unquoted variables
  • export statement filtering was made more robust and matched earlier versions behaviour
  • FOO.BAR key names are permitted again (i have no idea why you'd do it, but it's explicitly supported in ruby dotenv files)

There's one breaking change: earlier versions of this library would allow unterminated quoted variables in some instances and return a value (ie FOO="bar would set env of FOO: '"bar'), this now returns an error.

What's Changed

Full Changelog: https://github.com/joho/godotenv/compare/v1.5.0...v1.5.1

v0.0.0-testingreleases

1 year ago

v1.5.0

1 year ago

The big news this release is that godotenv finally, after much procrastination in review, supports multiline variables (fixes #64). Big shoutout to @x1unix for the bulk of the work on the original PR and also to @coolaj86 and @austinsasko for some very helpful review and tweaks.

Also added a -o overload flag (thanks @2tef)

What's Changed

New Contributors

Full Changelog: https://github.com/joho/godotenv/compare/v1.4.0...v1.5.0

v1.5.0-beta.0

1 year ago

#64 has been fixed

What's Changed

New Contributors

Full Changelog: https://github.com/joho/godotenv/compare/v1.4.0...v1.5.0-beta.0

v1.4.0

2 years ago

It's been a long road

Sorry all, it's been a long time between releases. I have small children now!

Biggest changes are: #133 Fix missing newline on exported files @gnarlex #109 Export ints without quotes @mniak #70 Support keynames starting with export @hairyhenderson

I'll try and come back and amend the release with other PR contributors, but thank you to everyone who sent patches in.

Next release will include multiline variables.

v1.3.0

5 years ago

Added in this version:

  • Support for variable expansion. Thanks @sachaos, @egorse, and @lucastetreault (#46 #47 #54 #58)

v1.2.0

6 years ago

Added in this version:

  • Added Marshal, Unmarshal, and Write methods to write .env files back to disk (or string) #35 #41 #42 thanks @alexquick
  • Added Parse(r io.Reader) to read env out of streams #36 thanks @pda
  • Small parsing fixes #34 thanks @alexquick
  • Some repository quality of life stuff #33 thanks @crash7

v1

7 years ago

v1.1

7 years ago

Semver release as requested in #23

Includes

  • Adding Overload method to overwrite existing ENV #13
  • Change Read to always return what's read rather than what's read that isn't already in ENV #8
  • Handle more errors #22