Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: BurntSushi/toml
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.4.0
Choose a base ref
...
head repository: BurntSushi/toml
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.5.0
Choose a head ref
  • 19 commits
  • 215 files changed
  • 7 contributors

Commits on May 23, 2024

  1. fuzz: ignore roundtrip err till 1.23 lands (#409)

    manunio authored May 23, 2024
    Copy the full SHA
    a645c7b View commit details
  2. toml-test-decoder: always print floats as decimal

    arp242 committed May 23, 2024
    Copy the full SHA
    5bcf186 View commit details

Commits on May 26, 2024

  1. Add Position.Col (#410)

    Previously it wasn't easy for users to get the Column information; this
    has to be calculated from the Start field, but this isn't convenient.
    
    Also the start column in "column x-y" was off by one, so fix that too as
    a bonus.
    arp242 authored May 26, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    3cb6f88 View commit details
  2. Ensure ParseError.Message is always set (#411)

    ParseError.Error() did:
    
    	msg := pe.Message
    	if msg == "" {
    		msg = pe.err.Error()
    	}
    
    That was fine, but not very useful for people wanting to access the
    Message field themselves, especially since err isn't exported.
    
    For example staticcheck does this to add in the filename, and the error
    is lost, because Message is often blank:
    
    	% staticcheck
    	staticcheck.conf:5:0:  (last key parsed: "dot_import_whitelist") (compile)
    
    We now only use the err field to determine which error usage to display
    in ErrorWithUsage()
    arp242 authored May 26, 2024
    Copy the full SHA
    092fca1 View commit details
  3. Copy the full SHA
    14f5b21 View commit details
  4. Correct position on invalid files ending without value

    Previously it would be on the next line:
    
        % tomlv <(print 'a=')
        Error in '/proc/self/fd/11': toml: error: expected value but found '\n' instead
    
        At line 2, column 3:
    
              1 | a=
              2 |
                    ^
    arp242 committed May 26, 2024
    Copy the full SHA
    a339e1f View commit details

Commits on Jun 4, 2024

  1. Allow custom string types as map keys (#414)

    Because the map keys were converted to []string,
    rv.MapIndex(reflect.ValueOf(mapKey)) would panic as it's the "wrong"
    type (string, instead of the custom string type).
    
    Just keep track of the reflect.Value instead; don't really need to
    convert it to strings.
    
    Fixes #413
    arp242 authored Jun 4, 2024
    Copy the full SHA
    7234339 View commit details

Commits on Jun 15, 2024

  1. Remove broken TOML 1.1 "Unicode keys" feature

    arp242 committed Jun 15, 2024
    Copy the full SHA
    eb72747 View commit details

Commits on Oct 28, 2024

  1. godocs.io isn't working (#427)

    I don't know if this is just a temporary thing, but the existing docs link isn't working today :)
    SvenDowideit authored Oct 28, 2024
    Copy the full SHA
    b7406c0 View commit details

Commits on Mar 17, 2025

  1. Fix metadata: do not reuse result of append (#418)

    The result of multiple append calls can return two slices backed by the
    same backing array. The bug only surfaces under specific conditions when
    the capacity of parser.context is increased by more than 1 due to this
    append call.
    maroux authored Mar 17, 2025
    Copy the full SHA
    2918ee7 View commit details
  2. Test with Go 1.24 in CI

    arp242 committed Mar 17, 2025
    Copy the full SHA
    c141a29 View commit details
  3. Fix typos in comments, tests, error message (#432)

    alexandear authored Mar 17, 2025
    Copy the full SHA
    211c915 View commit details
  4. Fix ErrorWithPosition panic when less than two lines

    Would panic if the TOML had just one line without a newline at the end
    of the file.
    xoltia authored and arp242 committed Mar 17, 2025
    Copy the full SHA
    4664468 View commit details
  5. Remove exception for fuzzer

    arp242 committed Mar 17, 2025
    Copy the full SHA
    8323983 View commit details
  6. Mark meta keys as decoded when using Unmarshaler interface (#426)

    Keys were marked as "Undecoded" in the meta when using UnmarshalTOML
    from the Unmarshaler interface. Unlike Primitive, I don't think this
    makes sense as UnmarshalTOML() explicitly "decodes" the value.
    
    Also mark all values below the table or array, and assume the parent
    UnmarshalTOML() handled this correctly.
    
    Fixes #425
    mvo5 authored Mar 17, 2025
    Copy the full SHA
    6f7689d View commit details
  7. Minor staticcheck fixes

    Don't need the exception as my PR to improve it got merged.
    arp242 committed Mar 17, 2025
    Copy the full SHA
    702f5a6 View commit details
  8. Correct encoding of several layers of embedded structs

    I'm not entirely sure if I understand what's going on here, but this
    seems to fix it.
    
    Fixes #430
    arp242 committed Mar 17, 2025
    Copy the full SHA
    75a4f17 View commit details
  9. Correct encoding of comma when nested inline table ends with map

    The map is in fieldsSub, so when iterating over fieldsDirect the length
    check would think it's "last" and won't write the comma, whereas on the
    second writeFields() call the test would fail and it would (wrongly)
    write the comma.
    
    So just sum the lengths.
    
    Fixes #438
    arp242 committed Mar 17, 2025
    Copy the full SHA
    d10101f View commit details

Commits on Mar 18, 2025

  1. Update toml-test

    arp242 committed Mar 18, 2025
    Copy the full SHA
    d97def5 View commit details
Loading