Skip to content

Releases: bram209/leptosfmt

0.1.32

07 Oct 14:33
Compare
Choose a tag to compare

[0.1.32] - 2024-10-07

Bug Fixes

  • Correctly collect leading and trailing comments (#145)
  • Remove trailing space after doctype closing tag (#147)

Features

  • Support let bindings (#149)

0.1.31

10 Sep 15:19
Compare
Choose a tag to compare

[0.1.31] - 2024-09-10

Breaking

  • Old behavior: tab_spaces represented the # of hard-tabs per indentation level.
  • New behavior: When using tabs for indentation, tab_spaces represents the visual width of a hard-tab (you can configure the display size of a hard-tab in your code editor), but one level of indentation will always result as a single \t character in your source code. The max_width configuration takes the tab_spaces configuration into account when calculating how much remaining space is left.

Bug Fixes

  • [breaking] Use view! indentation settings when formatting syn expression (#141)
  • Use 'tab_spaces' for size of hard tabs instead of hardcoded 4 (#143)
  • Duplicated comments in consecutive macros (#144)

Documentation

  • Improve using with RA section
  • Add link to emacs LSP mode config option

Features

  • Add exclude patterns support (#133)
  • Recursively search parent directories for leptosfmt.toml (#135)

0.1.30

23 Jul 16:40
Compare
Choose a tag to compare

[0.1.30] - 2024-07-23

Bug Fixes

  • Inline unquoted text + expr block combinations (#110)
  • Trailing whitespace issue when using codeblocks (#130)

Continuous Integration

  • Manually trigger changelog workflow

Documentation

  • Directory-based rust-analyzer configuration (#127)
  • Fix default attr_value_brace_style

Features

  • Add option to override macro name (#109)
  • Preserve formatting of unknown macros (#121)
  • Add tailwind support for attr values (#122)
  • Support elements with generics (#128)
  • Customisable self-closing tag behaviour on non-void elements (#123)

Miscellaneous Tasks

  • Update prettyplease and add as git submodule (#119)

0.1.18

22 Dec 09:51
Compare
Choose a tag to compare

[0.1.18] - 2023-12-22

Bug Fixes

  • Don't print new line to stdout (#95)

Features

  • Add indentation style (tabs/spaces) & newline style (LF/CRLF) settings (#90)

Miscellaneous Tasks

  • Rename printer setting spaces to tab_spaces for consistency

0.1.17

10 Oct 10:01
Compare
Choose a tag to compare

[0.1.17] - 2023-10-10

Bug Fixes

  • Ignore rustfmt output on error status (#89)

Features

  • Add rustfmt support: call rustfmt after formatting with leptosfmt (requires stdin) (#88)

0.1.16

09 Oct 20:26
Compare
Choose a tag to compare

[0.1.16] - 2023-10-09

Bug Fixes

  • Retain unicode & raw string formatting (#87)

0.1.15

08 Oct 11:10
Compare
Choose a tag to compare

[0.1.15] - 2023-10-08

Bug Fixes

  • Workaround bug with proc_macro2 regarding multibyte chars (#85)

Features

  • Automatically detect CRLF or LF line endings (#81)

0.1.14

08 Sep 08:29
Compare
Choose a tag to compare

Bug Fixes

  • Softbreak when elem has single raw text child node (#73)
  • exit with code 1 on stdin format error (#78)

Miscellaneous Tasks

  • Remove dbg! statement and enable clippy dbg! lint

0.1.13

27 Aug 11:46
Compare
Choose a tag to compare

[0.1.13] - 2023-08-27

Bug Fixes

  • Formatting comments that include '//' (#68)
  • Dont touch file when there are no formatting changes (#69)

Documentation

  • Add clarification about the usage of non-doc comments (#70)

Features

  • Add check mode (#72)
  • Accept multiple input patterns (#65)

0.1.12

31 Jul 20:18
Compare
Choose a tag to compare

[0.1.12] - 2023-07-31

Bug Fixes

  • View macro indentation issues (#59)

Miscellaneous Tasks

  • Remove dbg! (Closes: #55) (#56)