Skip to content
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

build: bump github.com/BurntSushi/toml from 0.3.1 to 0.4.0 #118

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Jul 19, 2023

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

Release notes

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

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.

  • Don't panic in encoder on unsupported types; return an error instead.

  • Don't panic on unclosed inline arrays.

... (truncated)

Commits
  • 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
  • 01bfc69 Merge pull request #304 from BurntSushi/tag
  • 765ab8d Move the tag/untag code for toml-test-{en,de}coder to internal/tag
  • df5bf7f Merge pull request #303 from BurntSushi/ml-end
  • 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.0.
- [Release notes](https://github.com/BurntSushi/toml/releases)
- [Commits](BurntSushi/toml@v0.3.1...v0.4.0)

---
updated-dependencies:
- dependency-name: github.com/BurntSushi/toml
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants