Skip to content

Releases: pappasam/toml-sort

Fix bug involving weird sort order of nested tables

14 Aug 15:43
Compare
Choose a tag to compare

Also, tidies up the containers special case, handling in one place
and simplifying the type interface to only be Item

Fix Container Bug

14 Aug 03:55
Compare
Choose a tag to compare

An edge case involving AoT's returns a Container, not an Item, while recursing. This PR re-adds the Union[Item, Container] handling and adds a test for the case.

It also improves the README.

Option to not print header

13 Aug 14:29
Compare
Choose a tag to compare

Add command line option to not print a document's leading comments.

Also, simplifies / shortens the help message (it was too long before)

Standardize cli help strings

13 Aug 03:07
Compare
Choose a tag to compare
v0.12.1

Bump version

Preserve top-level comments

13 Aug 02:54
Compare
Choose a tag to compare

Comments at the beginning of the TOML document are preserved. These are considered the document "header" and are not associated the ordered elements. Comments throughout the document cannot be consistently ordered.

I may add a command line option to enable / disable this in the future. It's a simple feature toggle.

Performance enhancements

12 Aug 22:55
Compare
Choose a tag to compare

Stops creating unnecessary lists for each recursive element; just returns an iterable now

Simplify help message when no arguments passed

12 Aug 22:46
Compare
Choose a tag to compare

Previous behavior was broken, now it works simply without trying to print out full message

Replace --ignore-non-tables with --all

12 Aug 22:21
Compare
Choose a tag to compare
 Make not sorting non-table keys the default with --all

 Replaces the --ignore-non-tables option with the --all option (its
 opposite).

Fix indentation, remove option for super tables

08 Aug 19:56
16c10e6
Compare
Choose a tag to compare

Indentation now standardized, super tables option unnecessary

Fix AOT Parsing, option for Super Tables!

08 Aug 03:38
873b77d
Compare
Choose a tag to compare
  • Parses AoT's correctly
  • Adds option to include Super Table headers, for those who want them