Skip to content

Releases: google/keep-sorted

v0.5.1

25 Oct 15:43
ff41f8e
Compare
Choose a tag to compare

What's Changed

  • fix: Calculate the initial indent correctly in a couple edge cases. by @JeffFaer in #45
  • fix: Sort nested keep-sorted blocks a bit more naturally. by @JeffFaer in #47

Full Changelog: v0.5.0...v0.5.1

v0.5.0

27 Sep 17:48
fa250d9
Compare
Choose a tag to compare

WARNING: This release is semi-breaking.

This release adds support for YAML lists ([a, b, c]) for multi-valued options like ignore_prefixes. This allows you to include special characters and spaces in the values for those options. This will break any pre-existing option values that start with a left square bracket [.

It's only semi-breaking because there's a workaround: YAML list support is controlled by a hidden option allow_yaml_lists and keep-sorted now allows you to specify the default options on the command line.

  1. When updating your version of the tool, also change the --default-options to include allow_yaml_lists=no.
    TIP: Run keep-sorted --help to see what the rest of the standard default options are
  2. For the pre-existing option values that are broken by YAML lists either add allow_yaml_lists=yes to the pre-existing directive and fix the value so it's a valid YAML list (e.g. [,* would become ['[', *]) OR add allow_yaml_lists=no to the pre-existing directive
  3. [Optionally] Flip the default of allow_yaml_lists back to yes
  4. [Optionally] Remove any allow_yaml_lists=yes in the codebase

What's Changed

  • chore: Remove unused protobuf dependency. by @JeffFaer in #32
  • feat: Allow default options to be customzied with a flag. by @JeffFaer in #35
  • feat: Surface option parsing warnings via findings. by @JeffFaer in #41
  • feat: Allow for spaces and commas in string-valued options. by @JeffFaer in #29

Full Changelog: v0.4.0...v0.5.0

v0.4.0

05 Mar 17:50
15e6c2f
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.3.1...v0.4.0

v0.3.1

06 Feb 19:51
e6d51e5
Compare
Choose a tag to compare

What's Changed

  • Have pre-commit bootstrap go so that GitHub actions don't need to by @JeffFaer in #21

Full Changelog: v0.3.0...v0.3.1

v0.3.0

23 Jan 16:10
e1b107b
Compare
Choose a tag to compare

What's Changed

numeric=yes

  • Stop panicking when trying to parse numbers bigger than 2^64. by @JeffFaer in #13
  • Fix the big.Int parsing so it works with leading zeros. by @JeffFaer in #16

Nesting

  • Let newlines be considered for grouping if the next non-empty line has the proper indent. by @JeffFaer in #15
  • Allow for nested keep-sorted blocks. by @JeffFaer in #14
  • Keep nested keep-sorted blocks together in the same group, regardless of indentation level. by @JeffFaer in #19

Misc

New Contributors

Full Changelog: v0.2.0...v0.3.0

v0.2.0

23 Jan 16:09
8c6ebc8
Compare
Choose a tag to compare

What's Changed

  • Ensure that golden_test fails if it doesn't find any goldens. by @JeffFaer in #6
  • Tweak the workflow name for go.yml so that the badge is a little more descriptive. by @JeffFaer in #7
  • Only recognize well-known comment markers by @Colecf in #11

New Contributors

Full Changelog: v0.1.1...v0.2.0

v0.1.1

23 Jan 16:09
e5d7293
Compare
Choose a tag to compare

What's Changed

  • Use a slightly different augmentedtree implementation. by @JeffFaer in #4
  • Move golden_test into a proper test directory. by @JeffFaer in #5

Full Changelog: v0.1.0...v0.1.1