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.
1.2.1 - 2023-03-09
- Fixed a bug where having line suffixes on the final line without a breakable could cause an infinite loop.
1.2.0 - 2022-12-23
- You can now supply the base indentation level for the output buffer.
1.1.0 - 2022-11-08
prettier_printnow works with Ractors.
1.0.2 - 2022-10-19
- Fix trailing whitespace stripping to not including newlines.
1.0.1 - 2022-10-18
breakable_return- should also break parent
1.0.0 - 2022-10-17
breakable_space- a shortcut forbreakablebreakable_empty- a shortcut forbreakable("")breakable_force- a shortcut forbreakable("", force: true)breakable_return- a shortcut forbreakable(" ", indent: false, force: true)- Strings can now be added directly to the output buffer, which means they don't have to be placed into the
Textnode. This cuts down on quite a bit of allocations.
trimnow strips its whitespace usingrstrip!instead of a customgsub!. This means that other forms of whitespace beyond tabs and spaces are included. This shouldn't really impact anyone unless they're using vertical tab or something in combination withtrimand wanted them to stay in.
- There is no longer a
PrettierPrint::DefaultBufferclass. Since there were only ever two implementations, those implementations now no longer share a parent. PrettierPrint::IndentLevelis now entirely gone. This was mostly an implementation detail, and no one should have been relying on it anyway. However, it means that the ability to use nest with a string literal is now gone as well. It can be created again by using seplist though, so the functionality just isn't there in the shortcut version. This means we're able to keep track of indentation as a single integer again, which drastically simplifies the code.
0.1.0 - 2022-05-13
- 🎉 Initial release! 🎉