Skip to content
Merged

v0.8.6 #1011

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ GIT
PATH
remote: .
specs:
herb (0.8.5)
herb (0.8.6)

GEM
remote: https://rubygems.org/
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/bindings/java/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ Returns the full version information including Herb, Prism, and JNI details:
import org.herb.Herb;

System.out.println(Herb.version());
// Output: "herb java v0.8.5, libprism v1.7.0, libherb v0.8.5 (Java JNI)"
// Output: "herb java v0.8.6, libprism v1.7.0, libherb v0.8.6 (Java JNI)"
```
:::

Expand All @@ -198,7 +198,7 @@ Returns just the Herb library version:
import org.herb.Herb;

System.out.println(Herb.herbVersion());
// Output: "0.8.5"
// Output: "0.8.6"
```
:::

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/bindings/rust/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Add the dependency to your `Cargo.toml`:
:::code-group
```toml [Cargo.toml]
[dependencies]
herb = "0.8.5"
herb = "0.8.6"
```
:::

Expand Down
4 changes: 2 additions & 2 deletions docs/docs/bindings/rust/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ Returns the full version information including Herb, Prism, and FFI details:
use herb::version;

println!("{}", version());
// Output: "herb rust v0.8.5, libprism v1.7.0, libherb v0.8.5 (Rust FFI)"
// Output: "herb rust v0.8.6, libprism v1.7.0, libherb v0.8.6 (Rust FFI)"
```
:::

Expand All @@ -242,7 +242,7 @@ Returns just the Herb library version:
use herb::herb_version;

println!("{}", herb_version());
// Output: "0.8.5"
// Output: "0.8.6"
```
:::

Expand Down
6 changes: 3 additions & 3 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
"fetch:contributors": "mkdir -p .vitepress/data/ && gh api -X get https://api.github.com/repos/marcoroth/herb/contributors > .vitepress/data/contributors.json"
},
"dependencies": {
"@herb-tools/browser": "0.8.5",
"@herb-tools/core": "0.8.5",
"@herb-tools/node": "0.8.5",
"@herb-tools/browser": "0.8.6",
"@herb-tools/core": "0.8.6",
"@herb-tools/node": "0.8.6",
"medium-zoom": "^1.1.0"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions javascript/packages/browser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@herb-tools/browser",
"version": "0.8.5",
"version": "0.8.6",
"description": "WebAssembly-based HTML-aware ERB parser for browsers.",
"type": "module",
"license": "MIT",
Expand Down Expand Up @@ -34,7 +34,7 @@
}
},
"dependencies": {
"@herb-tools/core": "0.8.5"
"@herb-tools/core": "0.8.6"
},
"files": [
"package.json",
Expand Down
2 changes: 1 addition & 1 deletion javascript/packages/browser/test/browser.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe("@herb-tools/browser", () => {
test("version() returns a string", async () => {
const version = Herb.version
expect(typeof version).toBe("string")
expect(version).toBe("@herb-tools/[email protected].5, @herb-tools/[email protected].5, [email protected], [email protected].5 (WebAssembly)")
expect(version).toBe("@herb-tools/[email protected].6, @herb-tools/[email protected].6, [email protected], [email protected].6 (WebAssembly)")
})

test("parse() can process a simple template", async () => {
Expand Down
2 changes: 1 addition & 1 deletion javascript/packages/config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ bun add @herb-tools/config
The configuration is stored in a `.herb.yml` file in the project root:

```yaml [.herb.yml]
version: 0.8.5
version: 0.8.6

linter:
enabled: true
Expand Down
4 changes: 2 additions & 2 deletions javascript/packages/config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@herb-tools/config",
"version": "0.8.5",
"version": "0.8.6",
"description": "Shared configuration utilities for Herb tools",
"license": "MIT",
"homepage": "https://herb-tools.dev",
Expand Down Expand Up @@ -30,7 +30,7 @@
}
},
"dependencies": {
"@herb-tools/core": "0.8.5",
"@herb-tools/core": "0.8.6",
"yaml": "^2.8.2"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion javascript/packages/config/src/config-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# GitHub Repo: https://github.com/marcoroth/herb
#

version: 0.8.5
version: 0.8.6

# files:
# # Additional patterns beyond the defaults (**.html, **.rhtml, **.html.erb, etc.)
Expand Down
20 changes: 10 additions & 10 deletions javascript/packages/config/test/config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ describe("@herb-tools/config", () => {
})

test("can be instantiated", () => {
const config = new Config(testDir, { version: "0.8.5" })
const config = new Config(testDir, { version: "0.8.6" })
expect(config).toBeInstanceOf(Config)
})

test("sets correct config path", () => {
const config = new Config(testDir, { version: "0.8.5" })
const config = new Config(testDir, { version: "0.8.6" })
expect(config.path).toBe(join(testDir, ".herb.yml"))
})
})
Expand All @@ -66,14 +66,14 @@ describe("@herb-tools/config", () => {

test("returns true when config file exists", () => {
const configPath = join(testDir, ".herb.yml")
writeFileSync(configPath, "version: 0.8.5\n")
writeFileSync(configPath, "version: 0.8.6\n")

expect(Config.exists(testDir)).toBe(true)
})

test("handles explicit .herb.yml path", () => {
const configPath = join(testDir, ".herb.yml")
writeFileSync(configPath, "version: 0.8.5\n")
writeFileSync(configPath, "version: 0.8.6\n")

expect(Config.exists(configPath)).toBe(true)
})
Expand All @@ -83,7 +83,7 @@ describe("@herb-tools/config", () => {
test("reads raw YAML content from config file", () => {
const configPath = join(testDir, ".herb.yml")
const yamlContent = dedent`
version: 0.8.5
version: 0.8.6
linter:
enabled: true
rules:
Expand All @@ -98,7 +98,7 @@ describe("@herb-tools/config", () => {

test("handles explicit .herb.yml path", () => {
const configPath = join(testDir, ".herb.yml")
const yamlContent = "version: 0.8.5\n"
const yamlContent = "version: 0.8.6\n"
writeFileSync(configPath, yamlContent)

const rawYaml = Config.readRawYaml(configPath)
Expand Down Expand Up @@ -191,7 +191,7 @@ describe("@herb-tools/config", () => {
describe("Config.applyMutationToYamlString", () => {
test("applies mutation to existing YAML", () => {
const existingYaml = dedent`
version: 0.8.5
version: 0.8.6
linter:
enabled: true
`
Expand All @@ -206,15 +206,15 @@ describe("@herb-tools/config", () => {

const updatedYaml = Config.applyMutationToYamlString(existingYaml, mutation)

expect(updatedYaml).toContain("version: 0.8.5")
expect(updatedYaml).toContain("version: 0.8.6")
expect(updatedYaml).toContain("enabled: true")
expect(updatedYaml).toContain("html-tag-name-lowercase:")
expect(updatedYaml).toContain("enabled: false")
})

test("merges rules without overwriting existing rules", () => {
const existingYaml = dedent`
version: 0.8.5
version: 0.8.6
linter:
rules:
html-img-require-alt:
Expand All @@ -237,7 +237,7 @@ describe("@herb-tools/config", () => {

test("updates existing rule configuration", () => {
const existingYaml = dedent`
version: 0.8.5
version: 0.8.6
linter:
rules:
html-tag-name-lowercase:
Expand Down
2 changes: 1 addition & 1 deletion javascript/packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@herb-tools/core",
"version": "0.8.5",
"version": "0.8.6",
"description": "Core module exporting shared interfaces, AST node definitions, and common utilities for Herb",
"license": "MIT",
"homepage": "https://herb-tools.dev",
Expand Down
4 changes: 2 additions & 2 deletions javascript/packages/dev-tools/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@herb-tools/dev-tools",
"version": "0.8.5",
"version": "0.8.6",
"description": "Development tools for visual debugging in HTML+ERB templates",
"type": "module",
"license": "MIT",
Expand Down Expand Up @@ -30,7 +30,7 @@
}
},
"dependencies": {
"@herb-tools/core": "0.8.5"
"@herb-tools/core": "0.8.6"
},
"files": [
"package.json",
Expand Down
10 changes: 5 additions & 5 deletions javascript/packages/formatter/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@herb-tools/formatter",
"version": "0.8.5",
"version": "0.8.6",
"description": "Auto-formatter for HTML+ERB templates with intelligent indentation, line wrapping, and ERB-aware pretty-printing.",
"license": "MIT",
"homepage": "https://herb-tools.dev",
Expand Down Expand Up @@ -35,10 +35,10 @@
}
},
"dependencies": {
"@herb-tools/config": "0.8.5",
"@herb-tools/core": "0.8.5",
"@herb-tools/printer": "0.8.5",
"@herb-tools/rewriter": "0.8.5"
"@herb-tools/config": "0.8.6",
"@herb-tools/core": "0.8.6",
"@herb-tools/printer": "0.8.6",
"@herb-tools/rewriter": "0.8.6"
},
"files": [
"package.json",
Expand Down
4 changes: 2 additions & 2 deletions javascript/packages/herb-language-server/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "herb-language-server",
"description": "Placeholder package to reserve the herb-language-server name on NPM; use @herb-tools/language-server instead.",
"version": "0.8.5",
"version": "0.8.6",
"author": "Marco Roth",
"license": "MIT",
"engines": {
Expand Down Expand Up @@ -45,6 +45,6 @@
"dist/"
],
"dependencies": {
"@herb-tools/language-server": "0.8.5"
"@herb-tools/language-server": "0.8.6"
}
}
6 changes: 3 additions & 3 deletions javascript/packages/highlighter/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@herb-tools/highlighter",
"version": "0.8.5",
"version": "0.8.6",
"description": "Syntax highlighter and diagnostic renderer for HTML+ERB templates.",
"license": "MIT",
"homepage": "https://herb-tools.dev",
Expand Down Expand Up @@ -35,8 +35,8 @@
"prepublishOnly": "yarn clean && yarn build && yarn test"
},
"dependencies": {
"@herb-tools/core": "0.8.5",
"@herb-tools/node-wasm": "0.8.5"
"@herb-tools/core": "0.8.6",
"@herb-tools/node-wasm": "0.8.6"
},
"files": [
"package.json",
Expand Down
10 changes: 5 additions & 5 deletions javascript/packages/language-server/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@herb-tools/language-server",
"description": "Herb HTML+ERB Language Tools and Language Server Protocol integration.",
"version": "0.8.5",
"version": "0.8.6",
"author": "Marco Roth",
"license": "MIT",
"engines": {
Expand Down Expand Up @@ -45,10 +45,10 @@
"dist/"
],
"dependencies": {
"@herb-tools/config": "0.8.5",
"@herb-tools/formatter": "0.8.5",
"@herb-tools/linter": "0.8.5",
"@herb-tools/node-wasm": "0.8.5",
"@herb-tools/config": "0.8.6",
"@herb-tools/formatter": "0.8.6",
"@herb-tools/linter": "0.8.6",
"@herb-tools/node-wasm": "0.8.6",
"dedent": "^1.7.0",
"vscode-languageserver": "^9.0.1",
"vscode-languageserver-textdocument": "^1.0.12"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ describe('AutofixService', () => {
'html-tag-name-lowercase': { enabled: false }
}
}
}, { projectPath: '/test', version: '0.8.5' })
}, { projectPath: '/test', version: '0.8.6' })

autofixService.setConfig(config)

Expand All @@ -113,7 +113,7 @@ describe('AutofixService', () => {
it('should rebuild linter when config changes', async () => {
const config1 = Config.fromObject({
linter: { enabled: true }
}, { projectPath: '/test', version: '0.8.5' })
}, { projectPath: '/test', version: '0.8.6' })

autofixService.setConfig(config1)

Expand All @@ -130,7 +130,7 @@ describe('AutofixService', () => {
'html-tag-name-lowercase': { enabled: false }
}
}
}, { projectPath: '/test', version: '0.8.5' })
}, { projectPath: '/test', version: '0.8.6' })

autofixService.setConfig(config2)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ describe("LinterService", () => {
settings.projectConfig = {
path: "/test/.herb.yml",
config: {
version: "0.8.5",
version: "0.8.6",
linter: {
enabled: true,
rules: {
Expand Down
4 changes: 2 additions & 2 deletions javascript/packages/linter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ npx @herb-tools/linter --format=simple --github

**Example: `--github` (GitHub annotations + detailed format)**
```
::error file=template.html.erb,line=3,col=3,title=html-img-require-alt • @herb-tools/[email protected].5::Missing required `alt` attribute on `<img>` tag [html-img-require-alt]%0A%0A%0Atemplate.html.erb:3:3%0A%0A 1 │ <div>%0A 2 │ <span>Test content</span>%0A → 3 │ <img src="test.jpg">%0A │ ~~~%0A 4 │ </div>%0A
::error file=template.html.erb,line=3,col=3,title=html-img-require-alt • @herb-tools/[email protected].6::Missing required `alt` attribute on `<img>` tag [html-img-require-alt]%0A%0A%0Atemplate.html.erb:3:3%0A%0A 1 │ <div>%0A 2 │ <span>Test content</span>%0A → 3 │ <img src="test.jpg">%0A │ ~~~%0A 4 │ </div>%0A

[error] Missing required `alt` attribute on `<img>` tag [html-img-require-alt]

Expand All @@ -234,7 +234,7 @@ template.html.erb:3:3

**Example: `--format=simple --github` (GitHub annotations + simple format)**
```
::error file=template.html.erb,line=3,col=3,title=html-img-require-alt • @herb-tools/[email protected].5::Missing required `alt` attribute on `<img>` tag [html-img-require-alt]%0A%0A%0Atemplate.html.erb:3:3%0A%0A 1 │ <div>%0A 2 │ <span>Test content</span>%0A → 3 │ <img src="test.jpg">%0A │ ~~~%0A 4 │ </div>%0A
::error file=template.html.erb,line=3,col=3,title=html-img-require-alt • @herb-tools/[email protected].6::Missing required `alt` attribute on `<img>` tag [html-img-require-alt]%0A%0A%0Atemplate.html.erb:3:3%0A%0A 1 │ <div>%0A 2 │ <span>Test content</span>%0A → 3 │ <img src="test.jpg">%0A │ ~~~%0A 4 │ </div>%0A

template.html.erb:
3:3 ✗ Missing required `alt` attribute on `<img>` tag [html-img-require-alt]
Expand Down
Loading
Loading