Skip to content

Releases: joho/godotenv

v1.6.0-pre.4

v1.6.0-pre.4 Pre-release
Pre-release

Choose a tag to compare

@joho joho released this 25 May 00:55
97a2850

Small CI fixes after leaving main broken on the pre-release 3 changes.

What's Changed

  • Definitively commit to allowing hyphens (again) by @joho in #264
  • Point CI to new windows tag by @joho in #265

Full Changelog: v1.6.0-pre.3...v1.6.0-pre.4

v1.6.0-pre.3

v1.6.0-pre.3 Pre-release
Pre-release

Choose a tag to compare

@joho joho released this 20 May 04:25
32bfb2c

Ideally last pre before 1.6.0 actually goes out.

The new sentinel errors from #228 us fmt.Errorf and errors.Is from 1.13 so there is a small bump in supported version.

CI only tests last 5 versions so the floor set in go.mod is "best effort" (ie if I hear it's broken, i'll update go.mod rather than change anything)

What's Changed

  • Fix typo in hasQuotePrefix return variable by @parkerbxyz in #251
  • refactor: replace recursion with loop in getStatementStart by @Yanhu007 in #261
  • fix: don't treat closing quote as escaped after an escaped backslash by @SAY-5 in #262
  • Fixed backwards compatibility with godotenv 1.4.0 allowing hyphens in variable names. by @bocajim in #245
  • bugfix: fix an int parsing bug in godotenv.Marshal by @t3mp14r3 in #235
  • The env variable is already defined but has been declared again by @ghaninia in #198
  • Fix Precedence & Conventions in README.md by @kvokka in #243
  • Update README to reflect Go version requirement by @guettli in #254
  • simplify Replace(..,-1) by ReplaceAll for strings and bytes by @lotusirous in #252
  • Bump actions/checkout from 3 to 4 by @dependabot[bot] in #216
  • CI and Versioning updates by @joho in #263
  • docs: add usage for tool dependency in go1.24 by @ignatij in #240
  • Bump thatisuday/go-cross-build from 1.0.2 to 1.1.0 by @dependabot[bot] in #188

New Contributors

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

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

Pre-release

Choose a tag to compare

@joho joho released this 16 Dec 04:17
3a7a190

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

Pre-release

Choose a tag to compare

@joho joho released this 31 Oct 22:27
a7f6c4c

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

Choose a tag to compare

@github-actions github-actions released this 05 Feb 21:51
3fc4292

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

Choose a tag to compare

@joho joho released this 04 Feb 00:12
b311b26

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)

Pre-release

Choose a tag to compare

@joho joho released this 27 Jan 02:55
cc9e9b7

#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

Choose a tag to compare

@github-actions github-actions released this 05 Feb 21:50
cc9e9b7
Multiline string support (#156)

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

Signed-off-by: x1unix <denis0051@gmail.com>

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

Signed-off-by: x1unix <denis0051@gmail.com>

* 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 <austintyler0239@yahoo.com>

* 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 <denis0051@gmail.com>
Co-authored-by: x1unix <denis0051@gmail.com>
Co-authored-by: Austin Sasko <austintyler0239@yahoo.com>

Housekeeping release

Choose a tag to compare

@joho joho released this 24 Sep 11:18
ddf83eb

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

Choose a tag to compare

@joho joho released this 11 Sep 09:08
23d116a

Added in this version: