v0.4.3
Added
- Language Server: Add
textDocument/rangeFormattingsupport to language server by @marcoroth in #319 - Parser: Add support for
TOKEN_NBSPin HTML content by @marcoroth in #321 - Parser: Add support for
TOKEN_ATin HTML content by @marcoroth in #322 - Formatter: Add HTML attribute quote normalization by @marcoroth in #337
- Linter: Add new
LexerRuleandSourceRuletypes alongsideParserRuleby @marcoroth in #328 - Linter: Allow a new
LintContextto be passed to linter rules by @marcoroth in #340 - Playground: Add Format Button for editor by @marcoroth in #344
New Linter Rules
- Add
erb-prefer-image-tag-helperlinter rule by @nicogaldamez in #307 - Add
erb-requires-trailing-newlinelinter rule by @marcoroth in #329 - Add
html-aria-level-must-be-validlinter rule by @marcoroth in #338 and #343
Changed
- Parser: Allow newlines before closing
>in HTML tags by @marcoroth in #315 - Parser: Allow HTML Attribute Names to have a period in the attribute name by @marcoroth in #324
- Parser: Add support for
@token in HTML attribute names by @marcoroth in #325 - Formatter: Improve range formatting to preserve minimum indentation by @marcoroth in #320
- Formatter: Preserve newlines between top-level nodes by @marcoroth in #323
- Ruby: Add non-zero exit code when
herb analyzefinds issues by @marcoroth in #332 - Lexer: Improve lexer UTF-8 character support and extract UTF-8 utilities by @marcoroth in #330
Fixed
- Language Server: Fix
FormattingServicewhen settings are not available by @marcoroth in #316 - Formatter: Fix case where formatter would output
% %>by @marcoroth in #314 - Formatter: Fix ERB whitespace formatting in inline contexts by @marcoroth in #326
- Formatter: Fix ERB quote misplacement in HTML attributes by @marcoroth in #331
- Formatter: Fix inline element and ERB conditional attributes formatting by @marcoroth in #336
- Formatter: Support formatting
case/instatements by @marcoroth in #345
Internal
- Upgrade Ruby to
3.4.5by @marcoroth in #109 - Downgrade to Ruby
3.4.1by @marcoroth in #333 - Add NX affected back by @marcoroth in #221
- Revert "Add NX affected back" by @marcoroth in #339
- Remove unused argument in
LinterService.lintDocumentby @marcoroth in #341
Dependencies
- Bump @eslint/plugin-kit from 0.3.3 to 0.3.4 in the npm_and_yarn group across 1 directory by @dependabot[bot] in #311
New Contributors
- @nicogaldamez made their first contribution in #307
Commits
Full Changelog: v0.4.2...v0.4.3