Skip to content

Releases: joho/godotenv

Release refs/tags/v1.6.0-pre.2

16 Dec 04:17
3a7a190
Compare
Choose a tag to compare
Pre-release

Another parser bug fixed since the last prerelease, going to give it a little more time before letting 1.6.0 out

What's Changed

New Contributors

Full Changelog: v1.5.1...v1.6.0-pre.2

Release refs/tags/v1.6.0-pre.1

31 Oct 22:27
a7f6c4c
Compare
Choose a tag to compare
Pre-release

Most notable is bringing back global env variable substitution from #227

Will be targeting a proper release mid november if no bugs are raised against the pre-release.

What's Changed

New Contributors

Full Changelog: v1.5.1...v1.6.0-pre.1

Fix parser regressions from multiline support

05 Feb 21:51
3fc4292
Compare
Choose a tag to compare

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

  • Fix bug where internal unquoted whitespace truncates values by @joho in #205

Full Changelog: v1.5.0...v1.5.1

v1.5.0 - multiline variables

04 Feb 00:12
b311b26
Compare
Choose a tag to compare

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: v1.4.0...v1.5.0

Multiline value support (pre-release)

27 Jan 02:55
cc9e9b7
Compare
Choose a tag to compare
Pre-release

#64 has been fixed

What's Changed

New Contributors

Full Changelog: v1.4.0...v1.5.0-beta.0

Release refs/tags/v0.0.0-testingreleases

05 Feb 21:50
cc9e9b7
Compare
Choose a tag to compare
Multiline string support (#156)

* refactor dotenv parser in order to support multi-line variable values declaration

Signed-off-by: x1unix <[email protected]>

* Add multi-line var values test case and update comment test

Signed-off-by: x1unix <[email protected]>

* Expand fixture tests to include multiline strings

* Update go versions to test against

* Switch to GOINSECURE for power8 CI task

* When tests fail, show source version of string (inc special chars)

* Update parser.go

Co-authored-by: Austin Sasko <[email protected]>

* Fix up bad merge

* Add a full fixture for comments for extra piece of mind

* Fix up some lint/staticcheck recommendations

* Test against go 1.19 too

Signed-off-by: x1unix <[email protected]>
Co-authored-by: x1unix <[email protected]>
Co-authored-by: Austin Sasko <[email protected]>

Housekeeping release

24 Sep 11:18
ddf83eb
Compare
Choose a tag to compare

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.

Variable expansion

11 Sep 09:08
23d116a
Compare
Choose a tag to compare

Added in this version:

Add Marshal, Write, and Parse(reader)

20 Sep 05:31
Compare
Choose a tag to compare

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

Small enhancements

30 Mar 04:37
Compare
Choose a tag to compare

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