Update module github.com/BurntSushi/toml to v1.5.0
This PR contains the following updates:
| Package | Change | Age | Confidence |
|---|---|---|---|
| github.com/BurntSushi/toml | v1.2.1 -> v1.5.0 |
Release Notes
BurntSushi/toml (github.com/BurntSushi/toml)
v1.5.0
Mostly some small bugfixes, with a few small new features:
-
Add Position.Col, to mark the column an error occurred (#โ410)
-
Print more detailed errors in the
tomlvCLI. -
Ensure ParseError.Message is always set (#โ411)
-
Allow custom string types as map keys (#โ414)
-
Mark meta keys as decoded when using Unmarshaler interface (#โ426)
-
Fix encoding when nested inline table ends with map (#โ438)
-
Fix encoding of several layers of embedded structs (#โ430)
-
Fix ErrorWithPosition panic when there is no newline in the TOML document (#โ433)
v1.4.0
This version requires Go 1.18
-
Add toml.Marshal() (#โ405)
-
Require 2-digit hour (#โ320)
-
Wrap UnmarshalTOML() and UnmarshalText() return values in ParseError for position information (#โ398)
-
Fix inline tables with dotted keys inside inline arrays (e.g.
k=[{a.b=1}]) (#โ400)
v1.3.2
Fix reading BURNTSUSHI_TOML_110 again ๐
The fix for 1.3.1 caused a race issue with multiple decodes being run in parallel.
v1.3.1
This fixes two small bugs:
-
The
BURNTSUSHI_TOML_110environment variable would be checked on package import, rather than Decode().This meant that setting
os.Setenv("BURNTSUSHI_TOML_110", "")had no effect, as it happens after the import. -
Fix order of
Meta.Keys()for inline tables (this has been an issue since support for inline tables was added).
v1.3.0
New features:
-
Support upcoming TOML 1.1
While it looks like TOML 1.1 is mostly stable and I don't expect any further major changes, there are NO compatibility guarantees as it is NOT yet released and anything can still change.
To use it, set the
BURNTSUSHI_TOML_110environment variable to any value, which can be done either withos.SetEnv()or by the user running a program.A full list is changes is available in the TOML ChangeLog; the two most notable ones are that newlines and trailing commas are now allowed in inline tables, and Unicode in bare keys can now be used โ this is now a valid document:
lรซttรซrs = { รค = "a with diaeresis", รจ = "e with accent grave", } -
Allow MarshalTOML and MarshalText to be used on the document type itself, instead of only fields (#โ383).
Bufixes:
Configuration
๐ Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
๐ฆ Automerge: Disabled by config. Please merge this manually once you are satisfied.
โป Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
๐ Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.