Skip to content

Releases: marcoroth/herb

v0.9.7

19 Apr 00:16
56e6f00

Choose a tag to compare

Linter

Config

  • Fix rule-level patterns for matching absolute file paths by @marcoroth in #1645

VS Code

  • Upgrade @types/vscode and engine.vscode to v1.100.0 by @marcoroth in #1646

JavaScript

  • Remove registry-url to allow trusted publishing to NPM by @marcoroth in #1647

Dependencies

Commits

Full Changelog: v0.9.6...v0.9.7

v0.9.6

13 Apr 14:53
fac8b7b

Choose a tag to compare

Core

Parser

  • Add transform_conditionals option for postfix conditionals by @marcoroth in #1560
  • Support ternaries with transform_conditionals option by @marcoroth in #1594
  • Only transform Action View helpers using <%= by @marcoroth in #1609

Linter

JavaScript

Ruby

Language Server

  • Report language server version on initialization by @janko in #1622

Dependencies

New Contributors

Commits

Full Changelog: v0.9.5...v0.9.6

v0.9.5

04 Apr 20:53
d501089

Choose a tag to compare

Parser

Engine

Core

  • Introduce isPrismNodeType for Prism node type checks by @marcoroth in #1582

Language Server

Formatter

  • Fix trailing whitespace in <pre> with inline child elements by @hakanensari in #1571

Linter

Config

Dependencies

New Contributors

Commits

Full Changelog: v0.9.4...v0.9.5

v0.9.4

01 Apr 05:36
ff6738a

Choose a tag to compare

Parser

Engine

Linter

New Linter Rules

Updates Rules

  • Fix erb-no-unused-literals to handle all assignments by @marcoroth in #1549
  • Skip attribute values in html-no-unescaped-entities by @marcoroth in #1550
  • Allow content_for and provide in erb-no-unused-expressions by @marcoroth in #1559
  • Allow return/break/next in erb-no-unused-literals by @marcoroth in #1565
  • Respect SVG and MathML in html-no-unknown-tag by @marcoroth in #1568

Formatter

Config

  • New rules should be a enabled without a version key by @marcoroth in #1544

Commits

Full Changelog: v0.9.3...v0.9.4

v0.9.3

30 Mar 04:01
6640d7a

Choose a tag to compare

New Packages

Engine

  • Allow tag.attributes in SecurityValidator by @marcoroth in #1483
  • Strip whitespace between consecutive end tags after expression blocks by @joelhawksley in #1492
  • Fix whitespace not trimmed between -%> and indented control tag by @joelhawksley in #1493
  • Preserve leading whitespace before control tags with inline content by @joelhawksley in #1495

Parser

Linter

Linter Rules

New Rules

Updated Rules

  • Rework strict locals linter rules with new node by @marcoroth in #1430
  • Make html-no-self-closing Action View Helper aware by @marcoroth in #1432
  • Make html-img-require-alt Action View helper aware by @marcoroth in #1438
  • Make erb-no-javascript-tag-helper Action View helper aware by @markokajzer in #1442
  • Make html-no-duplicate-attributes Action View Helpers aware by @marcoroth in #1449
  • Make html-no-duplicate-ids Action View Helpers aware by @marcoroth in #1448
  • Implement actionview-no-unnecessary-tag-attributes autofix by @marcoroth in #1480
  • Make no-output-in-attribute-position tag.attributes aware by @marcoroth in #1481
  • Improve no-void-element-content to detect void blocks by @marcoroth in #1513
  • Don't flag <%%= in actionview-no-silent-helper by @marcoroth in #1534
  • Fix erb-no-unused-literals false positives by @marcoroth in #1538

Linter CLI

Language Server

libherb

Ruby

  • Introduce enforce_actionview_erubi_equality test helper by @marcoroth in #1504
  • Implement Visitor#visit_node and #visit_erb_node by @marcoroth in #1530

Ruby CLI

Playground

Documentation/Internal

Dependencies

Commits

Full Changelog: v0.9.2...v0.9.3

v0.9.2

18 Mar 14:38
ee69f66

Choose a tag to compare

Parser

  • Detect javascript_tag and javascript_include_tag helpers by @marcoroth in #1374

Engine

  • Delegate context-aware expressions to overridable engine methods by @marcoroth in #1421

Dev Tools

  • Allow overlay hint to be customized by ReActionView by @marcoroth in #1420

libherb

Commits

Full Changelog: v0.9.1...v0.9.2

v0.9.1

18 Mar 01:03
d6b1025

Choose a tag to compare

Parser

  • Support Action View tag helpers with inline blocks by @marcoroth in #1404
  • Fix Action View Helpers with positional arguments and block by @marcoroth in #1406

Engine

  • Make sure validate_ruby also works on older Rubies by @marcoroth in #1411
  • Delegate add_expression_block for Erubi compatibility by @marcoroth in #1417

Linter

Linter Rules

New Rules

VS Code / Cursor

Dependencies

Commits

Full Changelog: v0.9.0...v0.9.1

v0.9.0

13 Mar 15:10
f601703

Choose a tag to compare

Herb v0.9

Check out the "What's new in Herb v0.9" post on the Herb Blog.

Herb v0 9 0@2x

Core

  • Fix TS2304: Cannot find name 'TextDecoder' error by @marcoroth in #1175
  • Types: Add discriminated union support across language bindings by @marcoroth in #1154
  • Implement lex_file and parse_file in language bindings by @marcoroth in #1325
  • Expose Herb.parse_puby to parse Ruby with Prism by @marcoroth in #1353

Parser

Engine

Formatter

Linter

Linter Rules

New Rules
Read more

v0.8.10

10 Feb 23:12
124d1cf

Choose a tag to compare

Parser

Engine

Linter

  • Allow nested parens in erb-strict-locals-comment-syntax rule by @marcoroth in #1141

Formatter

Dev Tools

Language Server

libherb

Dependencies

New Contributors

Commits

Full Changelog: v0.8.9...v0.8.10

v0.8.9

27 Jan 05:35
c48e517

Choose a tag to compare

Parser

Linter

  • Catch <%# locals:() %> in erb-strict-locals-comment-syntax by @marcoroth in #1087

Playground

Dependencies

  • Bump rollup from 4.55.1 to 4.55.2 by @dependabot[bot] in #1091
  • Bump prettier from 3.7.4 to 3.8.0 by @dependabot[bot] in #1089
  • Bump vitepress-plugin-group-icons from 1.6.5 to 1.7.1 by @dependabot[bot] in #1092
  • Bump @typescript-eslint/parser from 8.53.0 to 8.53.1 by @dependabot[bot] in #1090
  • Bump @typescript-eslint/eslint-plugin from 8.51.0 to 8.53.1 by @dependabot[bot] in #1093
  • Bump lodash-es from 4.17.21 to 4.17.23 in the npm_and_yarn group across 1 directory by @dependabot[bot] in #1097
  • Bump lodash from 4.17.21 to 4.17.23 in the npm_and_yarn group across 1 directory by @dependabot[bot] in #1098
  • Bump @types/node from 25.0.3 to 25.0.10 by @dependabot[bot] in #1107

Commits

Full Changelog: v0.8.8...v0.8.9