Bump github.com/BurntSushi/toml from 1.1.0 to 1.2.0 #73

Merged
dependabot[bot] merged 1 commits from dependabot/go_modules/github.com/BurntSushi/toml-1.2.0 into v3 2022-08-28 17:55:33 +03:00
dependabot[bot] commented 2022-07-20 21:32:23 +03:00 (Migrated from github.com)

Bumps github.com/BurntSushi/toml from 1.1.0 to 1.2.0.

Release notes

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

Release 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.

Commits
  • 2e74712 Simplify test case
  • e2f6fa2 Allow using interface{} as map keys when decoding
  • f0ccf71 Merge pull request #358 from kkHAIKE/encode_MarshalText_fix
  • c03a31c Small stylistic updates
  • 6805a3d add test for embed field
  • 0ae83fe replace some Interface() check when encode private embed struct
  • eaf0d98 add test
  • d138d7a change eindirect behave match with indirect from decode
  • 0a9f2b0 Don't panic encoding arrays where the first item is a table, but others aren't
  • 28ff18d Merge pull request #356 from BurntSushi/empty
  • 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)
Bumps [github.com/BurntSushi/toml](https://github.com/BurntSushi/toml) from 1.1.0 to 1.2.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/BurntSushi/toml/releases">github.com/BurntSushi/toml's releases</a>.</em></p> <blockquote> <h2>Release v1.2.0</h2> <p>This release adds a few additional features:</p> <ul> <li> <p>Support encoding and decoding json.Number, making interoperability with JSON when using json.Encoder.UseNumber() easier.</p> </li> <li> <p>Support time.Duration string format; an integer will be interpreted as nanoseconds (like before), but a string like &quot;5h&quot; will be parsed. On encoding the string format is used.</p> </li> <li> <p>The omitempty struct tag now also works for structs with all zero values, for example an empty time.Time. A struct is considered &quot;empty&quot; when <em>all</em> fields (exported <em>and</em> private) are the zero value.</p> </li> <li> <p>Allow using interface{} (or any) as the map key when decoding.</p> </li> </ul> <p>And some fixes:</p> <ul> <li> <p>Fix encoding.TextUnmarshaler not working for map values.</p> </li> <li> <p>Make encoding.TextUnmarshaler and toml.Unmarshaler work if MarshalText() or MarshalTOML() have a pointer receiver.</p> </li> <li> <p>Error out on nil returns from MarshalTOML/MarshalText; before they would get encoded as invalid TOML (keyname =).</p> </li> <li> <p>Fix a panic where it would try to encode array = [{}, 0] as:</p> <pre><code>[[array]] [[array]] </code></pre> <p>Which isn't valid as 0 isn't a table.</p> </li> <li> <p>Some better error reporting for some errors.</p> </li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/BurntSushi/toml/commit/2e74712cdd427078f9816c8f2eb42b538ea41fa8"><code>2e74712</code></a> Simplify test case</li> <li><a href="https://github.com/BurntSushi/toml/commit/e2f6fa240833ba49ae0f81b5701d39784dc878b4"><code>e2f6fa2</code></a> Allow using interface{} as map keys when decoding</li> <li><a href="https://github.com/BurntSushi/toml/commit/f0ccf71c881c464fa1155d9c8d15c6d1ce139680"><code>f0ccf71</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/BurntSushi/toml/issues/358">#358</a> from kkHAIKE/encode_MarshalText_fix</li> <li><a href="https://github.com/BurntSushi/toml/commit/c03a31caf873c5910944dac337e54ea838876464"><code>c03a31c</code></a> Small stylistic updates</li> <li><a href="https://github.com/BurntSushi/toml/commit/6805a3d586fba7aac0e9a7f15e6c2ee0fde53359"><code>6805a3d</code></a> add test for embed field</li> <li><a href="https://github.com/BurntSushi/toml/commit/0ae83fe04ce3ccb185491c3cbe827df0c1531e64"><code>0ae83fe</code></a> replace some Interface() check when encode private embed struct</li> <li><a href="https://github.com/BurntSushi/toml/commit/eaf0d98e8959a5586a50ae2d86946fe6b52e82f1"><code>eaf0d98</code></a> add test</li> <li><a href="https://github.com/BurntSushi/toml/commit/d138d7a2b42ee330000a159838d589875ae49121"><code>d138d7a</code></a> change eindirect behave match with indirect from decode</li> <li><a href="https://github.com/BurntSushi/toml/commit/0a9f2b05b63679ec1b3da2d3344bc2814bf6fcf2"><code>0a9f2b0</code></a> Don't panic encoding arrays where the first item is a table, but others aren't</li> <li><a href="https://github.com/BurntSushi/toml/commit/28ff18dee5e18150c22298f000464d9c1fdfad3b"><code>28ff18d</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/BurntSushi/toml/issues/356">#356</a> from BurntSushi/empty</li> <li>Additional commits viewable in <a href="https://github.com/BurntSushi/toml/compare/v1.1.0...v1.2.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/BurntSushi/toml&package-manager=go_modules&previous-version=1.1.0&new-version=1.2.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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) </details>
github-actions[bot] (Migrated from github.com) reviewed 2022-07-20 21:32:41 +03:00
github-actions[bot] (Migrated from github.com) approved these changes 2022-08-28 17:47:59 +03:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: unistack-org/micro-codec-toml#73
No description provided.