Bump github.com/BurntSushi/toml from 0.3.1 to 0.4.1 #28

Merged
dependabot[bot] merged 1 commits from dependabot/go_modules/github.com/BurntSushi/toml-0.4.1 into master 2021-09-06 18:05:30 +03:00
dependabot[bot] commented 2021-09-06 15:28:24 +03:00 (Migrated from github.com)

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

Release notes

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

Release v0.4.1

This fixes a cyclic module dependency issue with github.com/BurntSushi/toml-test that prevented some people from updating. See #313 for some details.

v0.4.0

After some time of inactivity this package is now maintained again.

This release should support alll of TOML 1.0 and has various bugfixes and a few small improvements.

This requires Go 1.13 or newer; older Go versions will no longer work.

TOML 1.0 support

Previously this library implemented TOML 0.3; now all of TOML 1.0 is supported:

  • Support dotted keys (a.b = 1, a = {b.c = 2}).

  • Mixed arrays: in previous TOML versions array values all had to be of the same type; you can now freely mix types, including inline tables.

  • Support hex (0x2f9a), binary (0b0110), and octal (0o777) literals, and support nan and inf for floats.

  • Support local datetimes, dates, and times. These are dates and times without a timezone and are parsed in the local timezone.

  • Allow accidental whitespace between backslash and newline in the line continuation operator in multi-line basic strings.

There should be no incompatibilities as such; all existing valid TOML files should continue to work. However, the parser previously allowed the following invalid values:

  • It would allow literal control characters in strings.

  • It would allow leading zeroes in decimal ints and floats.

Neither of these was ever valid TOML, and are explicitly forbidden by the specification. But the library erroneously permitted them.

Other changes

  • Set up Go modules.

  • Allow escaping the \, and allow triple-quotes strings to end with a quote (e.g. x="""x"""").

  • All control characters inside strings are properly escaped when encoding.

  • Support encoding nested anonymous structs.

  • Encode toml.Primitive values.

  • You get a more helpful error on UTF-16 files (probably the most common non-UTF-8 compatible encoding). Also read over UTF-16 BOM in UTF-8 files.

  • Call MarshalText and UnmarshalText consistently on all types; before this didn't always happen in some cases.

  • Allow empty quoted keys ("" = 1); silly, but explicitly mentioned as valid.

... (truncated)

Commits
  • 641c3cf Put the github.com/BurntSushi/toml-test in internal/ (#313)
  • 444cd14 Use toml-test@v1.0.0
  • 0bfbb92 Add mention of changelog in README
  • 642b87a Move toml.LocalDatetime to internal package
  • 5f40317 Update documentation
  • 8162ef3 Update to latest toml-test
  • ebe1404 Merge pull request #307 from BurntSushi/local-datetime
  • fa10b4c Deal with local datetimes, dates, and times better
  • ccff24e Merge pull request #306 from BurntSushi/array
  • 7d6f80f Allow mixed values in arrays
  • 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 0.3.1 to 0.4.1. <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 v0.4.1</h2> <p>This fixes a cyclic module dependency issue with github.com/BurntSushi/toml-test that prevented some people from updating. See <a href="https://github-redirect.dependabot.com/BurntSushi/toml/issues/313">#313</a> for some details.</p> <h2>v0.4.0</h2> <p>After some time of inactivity this package is now maintained again.</p> <p>This release should support alll of TOML 1.0 and has various bugfixes and a few small improvements.</p> <p>This requires Go 1.13 or newer; older Go versions will no longer work.</p> <h2>TOML 1.0 support</h2> <p>Previously this library implemented TOML 0.3; now all of TOML 1.0 is supported:</p> <ul> <li> <p>Support dotted keys (<code>a.b = 1</code>, <code>a = {b.c = 2}</code>).</p> </li> <li> <p>Mixed arrays: in previous TOML versions array values all had to be of the same type; you can now freely mix types, including inline tables.</p> </li> <li> <p>Support hex (<code>0x2f9a</code>), binary (<code>0b0110</code>), and octal (<code>0o777</code>) literals, and support <code>nan</code> and <code>inf</code> for floats.</p> </li> <li> <p>Support local datetimes, dates, and times. These are dates and times without a timezone and are parsed in the local timezone.</p> </li> <li> <p>Allow accidental whitespace between backslash and newline in the line continuation operator in multi-line basic strings.</p> </li> </ul> <p>There should be no incompatibilities as such; all existing <em>valid</em> TOML files should continue to work. However, the parser previously allowed the following invalid values:</p> <ul> <li> <p>It would allow literal control characters in strings.</p> </li> <li> <p>It would allow leading zeroes in decimal ints and floats.</p> </li> </ul> <p>Neither of these was ever valid TOML, and are explicitly forbidden by the specification. But the library erroneously permitted them.</p> <h2>Other changes</h2> <ul> <li> <p>Set up Go modules.</p> </li> <li> <p>Allow escaping the <code>\</code>, and allow triple-quotes strings to end with a quote (e.g. <code>x=&quot;&quot;&quot;x&quot;&quot;&quot;&quot;</code>).</p> </li> <li> <p>All control characters inside strings are properly escaped when encoding.</p> </li> <li> <p>Support encoding nested anonymous structs.</p> </li> <li> <p>Encode toml.Primitive values.</p> </li> <li> <p>You get a more helpful error on UTF-16 files (probably the most common non-UTF-8 compatible encoding). Also read over UTF-16 BOM in UTF-8 files.</p> </li> <li> <p>Call <code>MarshalText</code> and <code>UnmarshalText</code> consistently on all types; before this didn't always happen in some cases.</p> </li> <li> <p>Allow empty quoted keys (<code>&quot;&quot; = 1</code>); silly, but explicitly mentioned as valid.</p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/BurntSushi/toml/commit/641c3cf2148ad11ca058c000eab0453dd5d67954"><code>641c3cf</code></a> Put the github.com/BurntSushi/toml-test in internal/ (<a href="https://github-redirect.dependabot.com/BurntSushi/toml/issues/313">#313</a>)</li> <li><a href="https://github.com/BurntSushi/toml/commit/444cd1471c3010e774aad3dd1035d62f939c1704"><code>444cd14</code></a> Use toml-test@v1.0.0</li> <li><a href="https://github.com/BurntSushi/toml/commit/0bfbb92ba853b34856ece0f1d20b33daa7f5f1f0"><code>0bfbb92</code></a> Add mention of changelog in README</li> <li><a href="https://github.com/BurntSushi/toml/commit/642b87ad9aaf6804f7f9a3f475baf9dd362df027"><code>642b87a</code></a> Move toml.LocalDatetime to internal package</li> <li><a href="https://github.com/BurntSushi/toml/commit/5f4031736986dabcffed423134efd6157576f8c0"><code>5f40317</code></a> Update documentation</li> <li><a href="https://github.com/BurntSushi/toml/commit/8162ef318b13b9a91087bdfec14e4e4c37e8174d"><code>8162ef3</code></a> Update to latest toml-test</li> <li><a href="https://github.com/BurntSushi/toml/commit/ebe1404fc680a89e43605f720106b16be2ba141c"><code>ebe1404</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/BurntSushi/toml/issues/307">#307</a> from BurntSushi/local-datetime</li> <li><a href="https://github.com/BurntSushi/toml/commit/fa10b4c00b35f4044fe4dee7280b5dfdde0b4b4e"><code>fa10b4c</code></a> Deal with local datetimes, dates, and times better</li> <li><a href="https://github.com/BurntSushi/toml/commit/ccff24ee44630d4d73f8cb07677584e87eb253c9"><code>ccff24e</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/BurntSushi/toml/issues/306">#306</a> from BurntSushi/array</li> <li><a href="https://github.com/BurntSushi/toml/commit/7d6f80f5a09e372e694f9ec0af3b141ae411eebc"><code>7d6f80f</code></a> Allow mixed values in arrays</li> <li>Additional commits viewable in <a href="https://github.com/BurntSushi/toml/compare/v0.3.1...v0.4.1">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=0.3.1&new-version=0.4.1)](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>
vtolstov commented 2021-09-06 18:02:18 +03:00 (Migrated from github.com)

@dependabot recreate

@dependabot recreate
vtolstov commented 2021-09-06 18:05:28 +03:00 (Migrated from github.com)

@dependabot squash and merge

@dependabot squash and merge
Sign in to join this conversation.
No reviewers
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#28
No description provided.