arcology-network / consensus-engine

Consensus Service
0 stars 0 forks source link

Bump github.com/BurntSushi/toml from 0.3.1 to 1.2.1 #123

Open dependabot[bot] opened 2 years ago

dependabot[bot] commented 2 years ago

Bumps github.com/BurntSushi/toml from 0.3.1 to 1.2.1.

Release notes

Sourced from github.com/BurntSushi/toml's releases.

v1.2.1

This release fixes the omitempty struct tag on an uncomparable type panicking.

v1.2.0

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:

    [[array]]
    [[array]]
    

    Which isn't valid as 0 isn't a table.

  • Some better error reporting for some errors.

v1.1.0

Just a few bugfixes:

  • Skip fields with toml:"-" even when they're unsupported types. Previously something like this would fail to encode due to func being an unsupported type:

    struct {
        Str  string `toml:"str"
        Func func() `toml:"-"`
    }
    
  • Multiline strings can't end with \. This is valid:

    # Valid
    key = """ foo \
    """
    

    Invalid

    key = """ foo \ """

... (truncated)

Commits
  • 74c008f Test Go 1.19; gofmt 1.19
  • 8de7f4a Update tests a little bit and add comment
  • 8bbca55 add a check for uncomparable empty structs
  • 17ef72d Tweak docs to use Go 1.19 syntax
  • 1ba7f5b Merge pull request #367 from zhsj/fix-32
  • 473c10f Fix test on 32 bit arch
  • 360c9e3 Don't return error on uncomparable types: just silently ignore like before
  • 929b0a7 Merge pull request #361 from BurntSushi/p-omitempty
  • 8d9ffad Don't panic with 'omitempty' and uncomparable type
  • 2e74712 Simplify test case
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
dependabot[bot] commented 2 years ago

Dependabot tried to add @melekes and @tessr as reviewers to this PR, but received the following error from GitHub:

POST https://api.github.com/repos/arcology-network/consensus-engine/pulls/123/requested_reviewers: 422 - Reviews may only be requested from collaborators. One or more of the users or teams you specified is not a collaborator of the arcology-network/consensus-engine repository. // See: https://docs.github.com/rest/reference/pulls#request-reviewers-for-a-pull-request
dependabot[bot] commented 2 years ago

The following labels could not be found: T:dependencies.