slsa-github-generator
slsa-github-generator copied to clipboard
fix(deps): update module github.com/pelletier/go-toml to v2
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| github.com/pelletier/go-toml | v1.9.5 -> v2.2.3 |
[!WARNING] Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
pelletier/go-toml (github.com/pelletier/go-toml)
v2.2.3
What's Changed
What's new
- Allow
int,uint, andfloatas map keys by @daniel-weisse in https://github.com/pelletier/go-toml/pull/958
Performance
- Remove unstable.Parser allocation when creating Decoder by @mvdan in https://github.com/pelletier/go-toml/pull/953
Fixed bugs
- Fix reflect.Pointer backward compatibility by @xxxVitoxxx in https://github.com/pelletier/go-toml/pull/956
Documentation
- Fix readme typo by @testwill in https://github.com/pelletier/go-toml/pull/951
Other changes
- go.mod: bump minimum language version to 1.21 by @mvdan in https://github.com/pelletier/go-toml/pull/949
- Bump testing to go 1.23 by @pelletier in https://github.com/pelletier/go-toml/pull/961
New Contributors
- @mvdan made their first contribution in https://github.com/pelletier/go-toml/pull/949
- @testwill made their first contribution in https://github.com/pelletier/go-toml/pull/951
- @xxxVitoxxx made their first contribution in https://github.com/pelletier/go-toml/pull/956
Full Changelog: https://github.com/pelletier/go-toml/compare/v2.2.2...v2.2.3
v2.2.2
What's Changed
Fixed bugs
- Fix race condition when tracking keys that have already been seen by @sysulq in https://github.com/pelletier/go-toml/pull/947
New Contributors
- @sysulq made their first contribution in https://github.com/pelletier/go-toml/pull/947
Full Changelog: https://github.com/pelletier/go-toml/compare/v2.2.1...v2.2.2
v2.2.1
What's Changed
Fixed bugs
- Encode: fix indentation when marshalling slices as array tables by @daniel-weisse in https://github.com/pelletier/go-toml/pull/944
New Contributors
- @daniel-weisse made their first contribution in https://github.com/pelletier/go-toml/pull/944
Full Changelog: https://github.com/pelletier/go-toml/compare/v2.2.0...v2.2.1
v2.2.0
What's Changed
What's new
- Encode: support pointers to embedded structs by @dangra in https://github.com/pelletier/go-toml/pull/924
- Encode: support
json.Numbertype by @dangra in https://github.com/pelletier/go-toml/pull/923 - Decode: unstable/Unmarshal interface by @rszyma in https://github.com/pelletier/go-toml/pull/940
Fixed bugs
- Decode: fix reuse of slice for array tables by @pelletier in https://github.com/pelletier/go-toml/pull/934
Documentation
- Fix typo in README by @jwilk in https://github.com/pelletier/go-toml/pull/925
- Fix indentation of README examples by @rdbo in https://github.com/pelletier/go-toml/pull/928
- Fix marshaler typos by @pelletier in https://github.com/pelletier/go-toml/pull/927
Other changes
- Go 1.22 support by @pelletier in https://github.com/pelletier/go-toml/pull/935
New Contributors
- @dangra made their first contribution in https://github.com/pelletier/go-toml/pull/924
- @jwilk made their first contribution in https://github.com/pelletier/go-toml/pull/925
- @rdbo made their first contribution in https://github.com/pelletier/go-toml/pull/928
- @rszyma made their first contribution in https://github.com/pelletier/go-toml/pull/940
Full Changelog: https://github.com/pelletier/go-toml/compare/v2.1.1...v2.2.0
v2.1.1
What's Changed
Fixed bugs
- Fix unmarshaling of nested non-exported struct by @pelletier in https://github.com/pelletier/go-toml/pull/917
New Contributors
- @arp242 made their first contribution in https://github.com/pelletier/go-toml/pull/907
- @mpldr made their first contribution in https://github.com/pelletier/go-toml/pull/911
Full Changelog: https://github.com/pelletier/go-toml/compare/v2.1.0...v2.1.1
v2.1.0
This new minor release brings back the commented struct field tag from go-toml v1. It makes it easier to generate default or example configuration files. For instance:
type TLS struct {
Cipher string `toml:"cipher"`
Version string `toml:"version"`
}
type Config struct {
Host string `toml:"host" comment:"Host IP to connect to."`
Port int `toml:"port" comment:"Port of the remote server."`
Tls TLS `toml:"TLS,commented" comment:"Encryption parameters (optional)"`
}
example := Config{
Host: "127.0.0.1",
Port: 4242,
Tls: TLS{
Cipher: "AEAD-AES128-GCM-SHA256",
Version: "TLS 1.3",
},
}
out, err := toml.Marshal(example)
generates this TOML document:
### Host IP to connect to.
host = '127.0.0.1'
### Port of the remote server.
port = 4242
### Encryption parameters (optional)
### [TLS]
### cipher = 'AEAD-AES128-GCM-SHA256'
### version = 'TLS 1.3'
This feature was often mentioned as a blocker to upgrading from go-toml v1. Hopefully bringing it back in scope will help folks make the transition!
An other noteworthy improvement is on type mismatch errors. They now include the human-readable context, and include the struct field name of the faulty value if applicable.
Before:
toml: cannot store TOML string into a Go int
After:
1| [server]
2| path = "/my/path"
3| port = "bad"
| ~~~~~ cannot decode TOML string into struct field toml_test.Server.Port of type int
What's Changed
What's new
- Encoder: add back the commented option by @pelletier in https://github.com/pelletier/go-toml/pull/893
Fixed bugs
- Decode: fix panic when parsing '0' as a float by @ocean2811 in https://github.com/pelletier/go-toml/pull/887
- Encode: fix ignored indent of array tables by @pelletier in https://github.com/pelletier/go-toml/pull/889
- Unstable/parser: add raw to integers by @pelletier in https://github.com/pelletier/go-toml/pull/890
- Decode: improve errors on integers and strings by @pelletier in https://github.com/pelletier/go-toml/pull/891
- Decode: fix wrong indention for comments on tables by @Felixoid in https://github.com/pelletier/go-toml/pull/892
Other changes
- Add support for
Go 1.21by @michalbiesek in https://github.com/pelletier/go-toml/pull/885
New Contributors
- @michalbiesek made their first contribution in https://github.com/pelletier/go-toml/pull/885
- @ocean2811 made their first contribution in https://github.com/pelletier/go-toml/pull/887
Full Changelog: https://github.com/pelletier/go-toml/compare/v2.0.9...v2.1.0
v2.0.9
What's Changed
Fixed bugs
- Encode: fix support for arrays by @MrJetBOX in https://github.com/pelletier/go-toml/pull/876
- Decode: assign empty struct to empty defined sections by @dbarrosop in https://github.com/pelletier/go-toml/pull/879
Other changes
- build(deps): bump github.com/stretchr/testify from 1.8.3 to 1.8.4 by @dependabot in https://github.com/pelletier/go-toml/pull/877
New Contributors
- @MrJetBOX made their first contribution in https://github.com/pelletier/go-toml/pull/876
- @dbarrosop made their first contribution in https://github.com/pelletier/go-toml/pull/879
Full Changelog: https://github.com/pelletier/go-toml/compare/v2.0.8...v2.0.9
v2.0.8
What's Changed
What's new
- Support MarshalText/UnmarshalText for map keys by @gordon-klotho in https://github.com/pelletier/go-toml/pull/863
- Experimental: comments support in unstable/Parser by @pelletier in https://github.com/pelletier/go-toml/pull/860
Fixed bugs
- Decode: fix decode into unsettable structs by @pelletier in https://github.com/pelletier/go-toml/pull/868
Documentation
- Add example on how to use TextUnmarshaler by @pelletier in https://github.com/pelletier/go-toml/pull/867
New Contributors
- @manunio made their first contribution in https://github.com/pelletier/go-toml/pull/861
- @gordon-klotho made their first contribution in https://github.com/pelletier/go-toml/pull/863
Full Changelog: https://github.com/pelletier/go-toml/compare/v2.0.7...v2.0.8
v2.0.7
What's Changed
Fixed bugs
- Encode: fix inline table first key value whitespace by @cuonglm in https://github.com/pelletier/go-toml/pull/837
- Decode: allow integers to be unmarshaled into floats by @PotatoesFall in https://github.com/pelletier/go-toml/pull/841
- Decode: fix error reporting of type mismatch on inline tables by @pelletier in https://github.com/pelletier/go-toml/pull/853
- Decode: fix panic when unmarshaling into a map twice by @pelletier in https://github.com/pelletier/go-toml/pull/854
Documentation
- Fix typos by @deining in https://github.com/pelletier/go-toml/pull/849
New Contributors
- @DavidKorczynski made their first contribution in https://github.com/pelletier/go-toml/pull/831
- @cuonglm made their first contribution in https://github.com/pelletier/go-toml/pull/837
- @PotatoesFall made their first contribution in https://github.com/pelletier/go-toml/pull/841
- @deining made their first contribution in https://github.com/pelletier/go-toml/pull/849
Full Changelog: https://github.com/pelletier/go-toml/compare/v2.0.6...v2.0.7
v2.0.6
What's Changed
What's new
- Expose parser API as unstable by @pelletier in https://github.com/pelletier/go-toml/pull/827
Performance
- Reduce init time allocation when declaring types used for reflect by @dolmen in https://github.com/pelletier/go-toml/pull/821
Other changes
- refactor: Use typeMismatchError rather than raw string error by @jidicula in https://github.com/pelletier/go-toml/pull/826
- build(deps): bump github.com/stretchr/testify from 1.8.0 to 1.8.1 by @dependabot in https://github.com/pelletier/go-toml/pull/825
- build(deps): bump actions/setup-go from 2 to 3 by @dependabot in https://github.com/pelletier/go-toml/pull/820
New Contributors
- @dolmen made their first contribution in https://github.com/pelletier/go-toml/pull/821
Full Changelog: https://github.com/pelletier/go-toml/compare/v2.0.5...v2.0.6
v2.0.5
What's Changed
Fixed bugs
- Fix reflect.Pointer backward compatibility by @pelletier in https://github.com/pelletier/go-toml/pull/813
Full Changelog: https://github.com/pelletier/go-toml/compare/v2.0.4...v2.0.5
v2.0.4
This version has compatibility issues with Go <= 1.17. Though go-toml doesn't officially support Go less than 2 versions old, a new version has been released with a backward-compatible fix: https://github.com/pelletier/go-toml/releases/tag/v2.0.5.
What's Changed
Fixed bugs
- Decode: don't crash on embedded nil pointers by @pelletier in https://github.com/pelletier/go-toml/pull/808
- Add back missing build tag needed for Go 1.16 and earlier by @piotrbulinski in https://github.com/pelletier/go-toml/pull/809
- Decode: don't break on non-struct embed field by @pelletier in https://github.com/pelletier/go-toml/pull/810
New Contributors
- @piotrbulinski made their first contribution in https://github.com/pelletier/go-toml/pull/809
Full Changelog: https://github.com/pelletier/go-toml/compare/v2.0.3...v2.0.4
v2.0.3
What's Changed
Fixed bugs
- Encode: define and fix newlines behavior when using omitempty by @pelletier in https://github.com/pelletier/go-toml/pull/798
- Encode: don't inherit omitempty by @pelletier in https://github.com/pelletier/go-toml/pull/803
- Decode: error on array table mismatched type by @pelletier in https://github.com/pelletier/go-toml/pull/804
Other changes
- build(deps): bump github.com/stretchr/testify from 1.7.2 to 1.8.0 by @dependabot in https://github.com/pelletier/go-toml/pull/793 https://github.com/pelletier/go-toml/pull/794 https://github.com/pelletier/go-toml/pull/795
- Go 1.19 by @pelletier in https://github.com/pelletier/go-toml/pull/802
Full Changelog: https://github.com/pelletier/go-toml/compare/v2.0.2...v2.0.3
v2.0.2
What's Changed
Fixed bugs
- Encode: add bound check for uint64 > math.Int64 by @pelletier in https://github.com/pelletier/go-toml/pull/785
Other changes
- Build arm + arm64 binaries for linux and windows by @pelletier in https://github.com/pelletier/go-toml/pull/790
Full Changelog: https://github.com/pelletier/go-toml/compare/v2.0.1...v2.0.2
v2.0.1
What's Changed
Fixed bugs
- Encode: fix embedded struct with explicit field name by @pelletier in https://github.com/pelletier/go-toml/pull/773
- Encode: fix multiline comment by @pelletier in https://github.com/pelletier/go-toml/pull/775
- Encode: support comment on array tables by @pelletier in https://github.com/pelletier/go-toml/pull/776
- Decode: check max uint on 32 bit platforms by @pelletier in https://github.com/pelletier/go-toml/pull/778
Documentation
- Typo in README.md fix by @fnork in https://github.com/pelletier/go-toml/pull/770
New Contributors
- @fnork made their first contribution in https://github.com/pelletier/go-toml/pull/770
Full Changelog: https://github.com/pelletier/go-toml/compare/v2.0.0...v2.0.1
v2.0.0
It is finally here! go-toml v2 is now stable. :tada:
Only just over one year after I started working on it. This version of go-toml has been rebuilt from the ground up. It respects the latest TOML specification. Countless bugs have been fixed. It behaves more like the standard library. And it is much faster. Special attention was given to keeping the public API to a minimum. Continuing the strict policy of backward compatibility, the next breaking change will be in another 5 years!
Thank you to everybody who contributed to this new version, as well as folks willing to try out the intermediate beta versions. Shout out to @moorereason for reporting many issues during the development process using differential fuzzing, as well as @bep for running a beta on the popular Hugo project!
There is still some work that could be done to improve the performance of the library (https://github.com/pelletier/go-toml/pull/758 and https://github.com/pelletier/go-toml/pull/669 for instance). But I am confident that the library is in a good-enough place at the moment for folks to reap the benefits of the rewrite. The major feature removal is the sort-of-AST that v1 provided. It allowed manipulating an arbitrary document and writing it back out. This was done to cut down the scope of the project, removing a feature that had unclear use-cases. The v2 parser creates some intermediate AST so that if somebody is up to design a Document API the tools should be available to do so. Please reach out if you are interested!
The readme contains a list of differences between v1 and v2 to be aware of when upgrading. Please report any issue you may have with the new version in the bug tracker 🐞, provide feedback, and ask questions in Discussions 💬. With this release, go-toml v1 will not be receiving any updates. This is required to keep maintenance of the project to a minimum.
Hopefully, this change doesn't break your thing!
Full commit log: https://github.com/pelletier/go-toml/compare/c9a09d8695a83a55cd171d147b09fdf10270e503...v2
Thank you contributors: @pelletier @oschwald @moorereason @xwjdsh @kkHAIKE @RiyaJohn @jidicula @zostay @mmorel-35.
Configuration
📅 Schedule: Branch creation - "before 4am on the first day of the month" (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.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.