-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(deps): update module github.com/burntsushi/toml to v1 #316
Open
renovate
wants to merge
1
commit into
main
Choose a base branch
from
renovate/github.com-burntsushi-toml-1.x
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
renovate
bot
added
the
type: chore
work needed to keep the product and development running smoothly
label
Jan 24, 2022
renovate
bot
force-pushed
the
renovate/github.com-burntsushi-toml-1.x
branch
from
January 24, 2022 18:28
d0f1cf2
to
cd44cdc
Compare
renovate
bot
force-pushed
the
renovate/github.com-burntsushi-toml-1.x
branch
from
January 27, 2022 19:31
cd44cdc
to
eb8edd7
Compare
renovate
bot
force-pushed
the
renovate/github.com-burntsushi-toml-1.x
branch
from
March 3, 2022 09:10
eb8edd7
to
a1055ff
Compare
renovate
bot
force-pushed
the
renovate/github.com-burntsushi-toml-1.x
branch
from
March 8, 2022 22:15
a1055ff
to
8163461
Compare
renovate
bot
force-pushed
the
renovate/github.com-burntsushi-toml-1.x
branch
from
April 4, 2022 23:58
8163461
to
6968b7b
Compare
renovate
bot
force-pushed
the
renovate/github.com-burntsushi-toml-1.x
branch
from
April 7, 2022 13:16
6968b7b
to
fbf924b
Compare
renovate
bot
force-pushed
the
renovate/github.com-burntsushi-toml-1.x
branch
from
April 7, 2022 16:29
fbf924b
to
6036e3a
Compare
renovate
bot
force-pushed
the
renovate/github.com-burntsushi-toml-1.x
branch
from
April 18, 2022 21:16
6036e3a
to
f2e4b15
Compare
renovate
bot
force-pushed
the
renovate/github.com-burntsushi-toml-1.x
branch
from
April 29, 2022 19:18
f2e4b15
to
04cd2f2
Compare
renovate
bot
force-pushed
the
renovate/github.com-burntsushi-toml-1.x
branch
from
July 11, 2022 23:53
2fc9214
to
682d9f3
Compare
renovate
bot
force-pushed
the
renovate/github.com-burntsushi-toml-1.x
branch
from
July 20, 2022 14:50
682d9f3
to
04cfee3
Compare
renovate
bot
force-pushed
the
renovate/github.com-burntsushi-toml-1.x
branch
from
November 20, 2022 17:50
04cfee3
to
d4a87d0
Compare
renovate
bot
force-pushed
the
renovate/github.com-burntsushi-toml-1.x
branch
from
May 30, 2023 17:41
d4a87d0
to
ad12935
Compare
renovate
bot
force-pushed
the
renovate/github.com-burntsushi-toml-1.x
branch
from
June 6, 2023 14:45
ad12935
to
bb64050
Compare
renovate
bot
force-pushed
the
renovate/github.com-burntsushi-toml-1.x
branch
from
June 8, 2023 14:54
bb64050
to
1a03599
Compare
renovate
bot
force-pushed
the
renovate/github.com-burntsushi-toml-1.x
branch
from
May 23, 2024 16:17
1a03599
to
aea347e
Compare
renovate
bot
changed the title
fix(deps): update module github.com/burntsushi/toml to v1
fix(deps): update module github.com/burntsushi/toml to v1 - autoclosed
Oct 16, 2024
renovate
bot
changed the title
fix(deps): update module github.com/burntsushi/toml to v1 - autoclosed
fix(deps): update module github.com/burntsushi/toml to v1
Oct 16, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
stale
type: bug
code to address defects in shipped code
type: chore
work needed to keep the product and development running smoothly
0 participants
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v0.4.1
->v1.4.0
Release Notes
BurntSushi/toml (github.com/BurntSushi/toml)
v1.4.0
Compare Source
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
Compare Source
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
Compare Source
This fixes two small bugs:
The
BURNTSUSHI_TOML_110
environment 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
Compare Source
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_110
environment 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:
Allow MarshalTOML and MarshalText to be used on the document type itself, instead of only fields (#383).
Bufixes:
\
escapes at the end of line weren't processed correctly in multiline strings (#372).Read over UTF-8 BOM (#381).
omitempty
struct tag did not work for pointer values (#371).Fix encoding anonymous structs on 32bit systems (#374).
v1.2.1
Compare Source
This release fixes the
omitempty
struct tag on an uncomparable type panicking.v1.2.0
Compare Source
This release adds a few additional features:
Support encoding and decoding json.Number, making interoperability with JSON when using json.Encoder.UseNumber() easier.
Support time.Duration string format; an integer will be interpreted as nanoseconds (like before), but a string like "5h" will be parsed. On encoding the string format is used.
The omitempty struct tag now also works for structs with all zero values, for example an empty time.Time. A struct is considered "empty" when all fields (exported and private) are the zero value.
Allow using interface{} (or any) as the map key when decoding.
And some fixes:
Fix encoding.TextUnmarshaler not working for map values.
Make encoding.TextUnmarshaler and toml.Unmarshaler work if MarshalText() or MarshalTOML() have a pointer receiver.
Error out on nil returns from MarshalTOML/MarshalText; before they would get encoded as invalid TOML (keyname =).
Fix a panic where it would try to encode array = [{}, 0] as:
Which isn't valid as 0 isn't a table.
Some better error reporting for some errors.
v1.1.0
Compare Source
Just a few bugfixes:
Skip fields with
toml:"-"
even when they're unsupported types. Previously something like this would fail to encode due tofunc
being an unsupported type:Multiline strings can't end with
\
. This is valid:Valid
Invalid
TOMLMarshaler
. Previously they would always include quoting (e.g."value"
), while the entire point of this interface is to bypass that.v1.0.0
Compare Source
This release adds much more detailed errors, support for the
toml.Marshaler
interface, and several fixes.There is no special meaning in the jump to v1.0; the 0.x releases were always treated as if they're 1.x with regards to compatibility; the versioning scheme for this library predates the release of modules.
New features
Error reporting is much improved; the reported position of errors should now always be correct and the library can print more detailed errors (#299, #332)
Decode always return a
toml.ParseError
, which has three methods:Error()
behaves as before and shows a single concise line with the error.ErrorWithPosition()
shows the same error, but also shows the line the error occurred at, similar to e.g. clang or the Rust compiler.ErrorWithUsage()
is the same asErrorWithPosition()
, but may also show a longer usage guidance message. This isn't always present (in which case it behaves identical toErrorWithPosition()
), but it should be present for most common mistakes and sources of confusion.Which error the correct one to use is depends on your application and preferences; in general I would recommend using at least
ErrorWithPosition()
for user-facing errors, as it's much more helpful for users of any skill level. If your users are likely to be non-technical thenErrorWithUsage()
is probably a good idea; I did my best to avoid technical jargon such as "newline" and phrase things in a way that's understandable by most people not intimately familiar with these sort of things.Additionally, the TOML key that fialed should now always be reported in all errors.
Add
toml.Marshaler
interface. This can be used if you want full control over how something is marshalled as TOML, similar tojson.Marshaler
etc. This takes precedence overencoding.TextMarshaler
. (#327)Allow TOML integers to be decoded to a Go float (#325)
Previously
int = 42
could only be decoded to anint*
type; now this can also be decoded in afloat
type as long as it can be represented without loss of data.Fixes
Key.String() is now quoted when needed (#333)
Fix decoding of nested structs on 32bit platforms (#314)
Empty slices are now always
[]T{}
rather than nil, which was the behaviour in v0.3.1 and before. While they are identical for most purposes, encoding/json encodes them different ([]
vs.null
), making it an (accidentally) incompatible change (#339)Configuration
📅 Schedule: Branch creation - "before 3am on tuesday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.