Skip to content

Releases: marcoroth/herb

v0.10.1

24 Apr 07:27
f681767

Choose a tag to compare

Changes

Commits

Full Changelog: v0.10.0...v0.10.1

v0.10.0

24 Apr 04:51
abeecad

Choose a tag to compare

Herb v0.10

Herb v0 10 0@2x

Ruby

Herb

Engine

  • Compile-time optimizations for Action View tag helpers by @marcoroth in #1613
  • Add parser_options passthrough and engine config support by @marcoroth in #1657

Config

Dev Tools

  • Show warnings for Compile-Time Optimization Mismatches by @marcoroth in #1660

Commits

Full Changelog: v0.9.7...v0.10.0

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