- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 530
Comparing changes
Open a pull request
base repository: BurntSushi/toml
base: v1.4.0
head repository: BurntSushi/toml
compare: v1.5.0
- 19 commits
- 215 files changed
- 7 contributors
Commits on May 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a645c7b - Browse repository at this point
Copy the full SHA a645c7bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5bcf186 - Browse repository at this point
Copy the full SHA 5bcf186View commit details
Commits on May 26, 2024
-
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.
Configuration menu - View commit details
-
Copy full SHA for 3cb6f88 - Browse repository at this point
Copy the full SHA 3cb6f88View commit details -
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()
Configuration menu - View commit details
-
Copy full SHA for 092fca1 - Browse repository at this point
Copy the full SHA 092fca1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 14f5b21 - Browse repository at this point
Copy the full SHA 14f5b21View commit details -
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 | ^
Configuration menu - View commit details
-
Copy full SHA for a339e1f - Browse repository at this point
Copy the full SHA a339e1fView commit details
Commits on Jun 4, 2024
-
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
Configuration menu - View commit details
-
Copy full SHA for 7234339 - Browse repository at this point
Copy the full SHA 7234339View commit details
Commits on Jun 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for eb72747 - Browse repository at this point
Copy the full SHA eb72747View commit details
Commits on Oct 28, 2024
-
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 :)
Configuration menu - View commit details
-
Copy full SHA for b7406c0 - Browse repository at this point
Copy the full SHA b7406c0View commit details
Commits on Mar 17, 2025
-
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.
Configuration menu - View commit details
-
Copy full SHA for 2918ee7 - Browse repository at this point
Copy the full SHA 2918ee7View commit details -
Configuration menu - View commit details
-
Copy full SHA for c141a29 - Browse repository at this point
Copy the full SHA c141a29View commit details -
Configuration menu - View commit details
-
Copy full SHA for 211c915 - Browse repository at this point
Copy the full SHA 211c915View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 4664468 - Browse repository at this point
Copy the full SHA 4664468View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8323983 - Browse repository at this point
Copy the full SHA 8323983View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 6f7689d - Browse repository at this point
Copy the full SHA 6f7689dView commit details -
Don't need the exception as my PR to improve it got merged.
Configuration menu - View commit details
-
Copy full SHA for 702f5a6 - Browse repository at this point
Copy the full SHA 702f5a6View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 75a4f17 - Browse repository at this point
Copy the full SHA 75a4f17View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for d10101f - Browse repository at this point
Copy the full SHA d10101fView commit details
Commits on Mar 18, 2025
-
Configuration menu - View commit details
-
Copy full SHA for d97def5 - Browse repository at this point
Copy the full SHA d97def5View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v1.4.0...v1.5.0