Skip to content

Releases: google/keep-sorted

v0.7.1

20 Aug 21:06
c71803f
Compare
Choose a tag to compare

What's Changed

  • fix: Stop panicking when the start directive skips directly to the end directive. by @JeffFaer in #92

Full Changelog: v0.7.0...v0.7.1

v0.7.0

15 Aug 14:25
ee5e55f
Compare
Choose a tag to compare

What's Changed

  • feat: Change newline_separated support multiple newlines by @joesun-google in #84
  • refactor: Make keep-sorted debug output a bit more useful for figuring out why things were sorted a certain way. by @JeffFaer in #88
  • Revert "blocks: add double single quote block recognition (#78)" by @JeffFaer in #89
  • chore: Prepare for v0.7.0. by @JeffFaer in #90

New Contributors

Full Changelog: v0.6.1...v0.7.0

v0.6.1

08 Apr 19:53
3f9cf7d
Compare
Choose a tag to compare

What's Changed

  • chore: Add a workflow to automatically build and upload binaries for releases. by @JeffFaer in #74
  • blocks: add double single quote block recognition by @katexochen in #78
  • fix: Return a non-zero error code if there are any warnings during fix. by @JeffFaer in #81

New Contributors

  • @tenF made their first contribution in #71

Full Changelog: v0.6.0...v0.6.1

v0.6.0

18 Mar 15:22
df93c27
Compare
Choose a tag to compare

What's Changed

  • Add usage string and document stdin/stdout behavior. by @nanaze in #51
  • fix: Continue to group nested keep-sorted blocks together if both group=yes and block=yes are set. by @JeffFaer in #53
  • fix: Ignore leading whitespace after applying ignore_prefixes. by @JeffFaer in #55
  • fix: Do not automatically remove unmatched start/end directives when fixing. by @JeffFaer in #56
  • feat: Add a --version flag to keep-sorted. by @JeffFaer in #57
  • fix: Make ignore_prefixes, sticky_prefixes, group_prefixes case insensitive when case=no. by @JeffFaer in #59
  • fix: Make prefix_order case insensitive when case=no. by @JeffFaer in #60
  • feat: Add a new by_regex option. by @JeffFaer in #62

New Contributors

Full Changelog: v0.5.1...v0.6.0

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