All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
4.0.3 - 2023-03-12
- Fixed a bug where blank lines were being inserted into filter nodes accidentally.
4.0.2 - 2023-03-09
- Require
prettier_print
1.2.1
or higher to fix the infinite loop bug. - Maintain blank lines in nested nodes.
4.0.1 - 2023-03-07
- We now keep blank lines around in the source template. (Multiple blank lines are squished down to a single blank line.)
- We now actually parse the Ruby code written in
%=
tags. This fixed a couple of bugs and allows us to better format the output. For example,%p= 1+1
will now be formatted as%p= 1 + 1
. If the output fails to parse it falls back to the previous behavior of just printing the Ruby code as-is.
4.0.0 - 2023-03-07
- Required syntax_tree version 6.0.0 or higher.
- Fixed up hash attribute parser to handle multiline hashes using Syntax Tree itself.
3.0.0 - 2022-12-23
- Required syntax_tree version 5.0.1 or higher.
- Drop internal pattern matching in order to support Ruby implementations that don't support it.
2.0.0 - 2022-10-18
- Support for Ruby 2.7.0, not just 2.7.3
- Require syntax_tree 4.0.1 or higher.
- Require prettier_print 1.0.0 or higher.
- Nodes must now be formatted with a
SyntaxTree::Haml::Formatter
.
1.3.2 - 2022-09-19
- Properly support unescaping plain and script.
1.3.1 - 2022-08-01
- Use Syntax Tree to handle properly quoting strings.
1.3.0 - 2022-07-22
- Support changing the preferred quote through the single quotes plugin.
1.2.1 - 2022-07-22
- Fix formatting for when empty
%div
or%div
with no attributes and just children is present.
1.2.0 - 2022-05-13
- An optional
maxwidth
second argument toSyntaxTree::Haml.format
.
1.1.0 - 2022-04-22
- Support for Ruby 2.7 added back.
1.0.1 - 2022-03-31
- Fix up usage of the
SyntaxTree.register_handler
method.
1.0.0 - 2022-03-31
- Hook into Syntax Tree 2.0.0 to provide CLI support.
0.1.0 - 2022-03-31
- 🎉 Initial release! 🎉