Releases: joho/godotenv
Release list
v1.6.0-pre.4
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
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
hasQuotePrefixreturn 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
envvariable 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
- @parkerbxyz made their first contribution in #251
- @Yanhu007 made their first contribution in #261
- @SAY-5 made their first contribution in #262
- @bocajim made their first contribution in #245
- @t3mp14r3 made their first contribution in #235
- @ghaninia made their first contribution in #198
- @kvokka made their first contribution in #243
- @guettli made their first contribution in #254
- @ignatij made their first contribution in #240
Full Changelog: v1.6.0-pre.2...v1.6.0-pre.3
Release refs/tags/v1.6.0-pre.2
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
- 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
- fix: if a line contains multiple # characters, there will be issues w… by @astak16 in #238
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
- @astak16 made their first contribution in #238
Full Changelog: v1.5.1...v1.6.0-pre.2
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
exportstatement filtering was made more robust and matched earlier versions behaviourFOO.BARkey 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 <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
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.
