Releases: joho/godotenv
Release refs/tags/v1.6.0-pre.1
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
- Add whitespace tests. by @cjyar in #210
- Bump actions/setup-go from 3 to 4 by @dependabot in #207
- Update cmd.go by @Adamsbite in #221
- Fix panic because of wrong function by @lotusirous in #223
- chore: fix typo by @ALX99 in #231
- Re-add global env variable substitution by @Envek in #227
New Contributors
- @cjyar made their first contribution in #210
- @Adamsbite made their first contribution in #221
- @lotusirous made their first contribution in #223
- @ALX99 made their first contribution in #231
- @Envek made their first contribution in #227
Full Changelog: v1.5.1...v1.6.0-pre.1
Fix parser regressions from multiline support
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 behaviourFOO.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: v1.5.0...v1.5.1
v1.5.0 - multiline variables
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
- Try and fix go get in CI for power8 by @joho in #157
- Fix typos in comments and extend README by @alexandear in #177
- tune README by @bikbah in #170
- Remove renovate, add dependabot by @joho in #183
- Setup codeql by @joho in #186
- Bump actions/checkout from 2 to 3 by @dependabot in #184
- Bump actions/setup-go from 2 to 3 by @dependabot in #185
- Add darwin arm64 build by @statik in #174
- Sort Go import in README by @Doarakko in #193
- Fix godoc formatting by @joho in #197
- fix tiny details by @2tef in #199
- Multiline string support by @x1unix in #156
- Update CI to test go 1.20 by @joho in #201
- fix whitespace with gofmt by @2tef in #203
- add overload flag by @2tef in #200
New Contributors
- @x1unix made their first contribution in #118
- @alexandear made their first contribution in #177
- @bikbah made their first contribution in #170
- @dependabot made their first contribution in #184
- @statik made their first contribution in #174
- @Doarakko made their first contribution in #193
- @2tef made their first contribution in #199
- @dreygur made their first contribution in #202
Full Changelog: v1.4.0...v1.5.0
Multiline value support (pre-release)
#64 has been fixed
What's Changed
- Try and fix go get in CI for power8 by @joho in #157
- Fix typos in comments and extend README by @alexandear in #177
- tune README by @bikbah in #170
- Remove renovate, add dependabot by @joho in #183
- Setup codeql by @joho in #186
- Bump actions/checkout from 2 to 3 by @dependabot in #184
- Bump actions/setup-go from 2 to 3 by @dependabot in #185
- Add darwin arm64 build by @statik in #174
- Sort Go import in README by @Doarakko in #193
- Fix godoc formatting by @joho in #197
- fix tiny details by @2tef in #199
- Multiline string support by @x1unix in #156
New Contributors
- @x1unix made their first contribution in #118
- @alexandear made their first contribution in #177
- @bikbah made their first contribution in #170
- @dependabot made their first contribution in #184
- @statik made their first contribution in #174
- @Doarakko made their first contribution in #193
- @2tef made their first contribution in #199
Full Changelog: v1.4.0...v1.5.0-beta.0
Release refs/tags/v0.0.0-testingreleases
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
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
Add Marshal, Write, and Parse(reader)
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
Initial Release
v1 v1