Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
Release 0.18.0
Elijah Potter043830446ac3
diff --git a/.github/workflows/build_harper_binaries.yml b/.github/workflows/build_harper_binaries.ymlindex a6222aae6..16fd74fab 100644--- a/.github/workflows/build_harper_binaries.yml+++ b/.github/workflows/build_harper_binaries.yml@@ -1,4 +1,4 @@-name: Release+name: Build Binarieson:push:diff --git a/.github/workflows/release_harper_binaries.yml b/.github/workflows/release_harper_binaries.ymlnew file mode 100644index 000000000..18d48064a--- /dev/null+++ b/.github/workflows/release_harper_binaries.yml@@ -0,0 +1,118 @@+name: Release Binaries++on:+ push:+ tags:+ - "v*"++jobs:+ release:+ name: Release ${{ matrix.platform.project }} - ${{ matrix.platform.release_for }}+ if: github.event.pull_request.draft == false+ strategy:+ matrix:+ platform:+ - release_for: Windows-x86_64+ os: windows-latest+ target: x86_64-pc-windows-msvc+ project: harper-ls+ bin: harper-ls.exe+ name: harper-ls-x86_64-pc-windows-msvc.zip+ command: build+ - release_for: macOS-x86_64+ os: macOS-latest+ target: x86_64-apple-darwin+ project: harper-ls+ bin: harper-ls+ name: harper-ls-x86_64-apple-darwin.tar.gz+ command: build+ - release_for: macOS-aarch64+ os: macOS-latest+ target: aarch64-apple-darwin+ project: harper-ls+ bin: harper-ls+ name: harper-ls-aarch64-apple-darwin.tar.gz+ command: build+ - release_for: Linux-x86_64-GNU+ os: ubuntu-20.04+ target: x86_64-unknown-linux-gnu+ project: harper-ls+ bin: harper-ls+ name: harper-ls-x86_64-unknown-linux-gnu.tar.gz+ command: build+ - release_for: Linux-aarch64-GNU+ os: ubuntu-20.04+ target: aarch64-unknown-linux-gnu+ project: harper-ls+ bin: harper-ls+ name: harper-ls-aarch64-unknown-linux-gnu.tar.gz+ command: build++ - release_for: Windows-x86_64+ os: windows-latest+ target: x86_64-pc-windows-msvc+ project: harper-cli+ bin: harper-cli.exe+ name: harper-cli-x86_64-pc-windows-msvc.zip+ command: build+ - release_for: macOS-x86_64+ os: macOS-latest+ target: x86_64-apple-darwin+ project: harper-cli+ bin: harper-cli+ name: harper-cli-x86_64-apple-darwin.tar.gz+ command: build+ - release_for: macOS-aarch64+ os: macOS-latest+ target: aarch64-apple-darwin+ project: harper-cli+ bin: harper-cli+ name: harper-cli-aarch64-apple-darwin.tar.gz+ command: build+ - release_for: Linux-x86_64-GNU+ os: ubuntu-20.04+ target: x86_64-unknown-linux-gnu+ project: harper-cli+ bin: harper-cli+ name: harper-cli-x86_64-unknown-linux-gnu.tar.gz+ command: build+ - release_for: Linux-aarch64-GNU+ os: ubuntu-20.04+ target: aarch64-unknown-linux-gnu+ project: harper-cli+ bin: harper-cli+ name: harper-cli-aarch64-unknown-linux-gnu.tar.gz+ command: build++ runs-on: ${{ matrix.platform.os }}+ steps:+ - name: Checkout+ uses: actions/checkout@v4+ - name: Build binary+ uses: houseabsolute/actions-rust-cross@v0+ with:+ command: ${{ matrix.platform.command }}+ target: ${{ matrix.platform.target }}+ args: "--locked --release --bin ${{ matrix.platform.project }}"+ strip: true+ - name: Package as archive+ shell: bash+ run: |+ cd target/${{ matrix.platform.target }}/release+ if [[ "${{ matrix.platform.os }}" == "windows-latest" ]]; then+ 7z a ../../../${{ matrix.platform.name }} ${{ matrix.platform.bin }}+ else+ tar czvf ../../../${{ matrix.platform.name }} ${{ matrix.platform.bin }}+ fi+ cd -+ - uses: ncipollo/release-action@v1+ with:+ artifacts: ${{ matrix.platform.name }}+ allowUpdates: true+ draft: true+ - name: Upload Artifacts+ uses: actions/upload-artifact@v4+ with:+ name: ${{ matrix.platform.bin }}-${{ matrix.platform.target }}+ path: ${{ matrix.platform.name }}+diff --git a/.github/workflows/release_vscode_plugin.yml b/.github/workflows/release_vscode_plugin.ymlnew file mode 100644index 000000000..2210cc561--- /dev/null+++ b/.github/workflows/release_vscode_plugin.yml@@ -0,0 +1,77 @@+name: Release VS Code Plugin++on:+ push:+ tags:+ - "v*"++jobs:+ package:+ name: Package - ${{ matrix.platform.code_target }}+ if: github.event.pull_request.draft == false+ strategy:+ matrix:+ platform:+ - os: windows-latest+ rust_target: x86_64-pc-windows-msvc+ code_target: win32-x64+ - os: macOS-latest+ rust_target: x86_64-apple-darwin+ code_target: darwin-x64+ - os: macOS-latest+ rust_target: aarch64-apple-darwin+ code_target: darwin-arm64+ - os: ubuntu-20.04+ rust_target: x86_64-unknown-linux-gnu+ code_target: linux-x64+ - os: ubuntu-20.04+ rust_target: aarch64-unknown-linux-gnu+ code_target: linux-arm64+ runs-on: ${{ matrix.platform.os }}+ steps:+ - uses: actions/checkout@v4+ - uses: extractions/setup-just@v2+ - uses: actions/setup-node@v4+ with:+ node-version: 20+ - name: Build harper-ls+ uses: houseabsolute/actions-rust-cross@v0+ with:+ target: ${{ matrix.platform.rust_target }}+ args: "--locked --release --bin harper-ls"+ strip: true+ - name: Package extension+ id: package_extension+ shell: bash+ run: |+ bin_dir="packages/vscode-plugin/bin"+ release_dir="target/${{ matrix.platform.rust_target }}/release"++ mkdir "$bin_dir"++ if [[ "${{ matrix.platform.os }}" == "windows-latest" ]]; then+ cp "${release_dir}/harper-ls.exe" "$bin_dir"+ else+ cp "${release_dir}/harper-ls" "$bin_dir"+ fi++ just package-vscode ${{ matrix.platform.code_target }}+ echo artifact=$(echo packages/vscode-plugin/*.vsix) >> $GITHUB_OUTPUT+ - uses: ncipollo/release-action@v1+ with:+ artifacts: "./packages/vscode-plugin/*.vsix"+ allowUpdates: true+ draft: true+ - name: Publish to OpenVSX+ uses: HaaLeo/publish-vscode-extension@v1+ with:+ pat: ${{ secrets.OPEN_VSX_TOKEN }}+ packagePath: "./packages/vscode-plugin/"+ extensionFile: ${{ steps.package_extension.outputs.artifact }}+ - name: Publish to the Visual Studio Marketplace+ uses: HaaLeo/publish-vscode-extension@v1+ with:+ pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}+ packagePath: "./packages/vscode-plugin/"+ extensionFile: ${{ steps.package_extension.outputs.artifact }}+ registryUrl: https://marketplace.visualstudio.comdiff --git a/Cargo.lock b/Cargo.lockindex e475126bf..e5a6da720 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -612,7 +612,7 @@ dependencies = [[[package]]name = "harper-comments"-version = "0.17.0"+version = "0.18.0"dependencies = ["harper-core","harper-html",@@ -641,7 +641,7 @@ dependencies = [[[package]]name = "harper-core"-version = "0.17.0"+version = "0.18.0"dependencies = ["blanket","criterion",@@ -667,7 +667,7 @@ dependencies = [[[package]]name = "harper-html"-version = "0.17.0"+version = "0.18.0"dependencies = ["harper-core","harper-tree-sitter",@@ -678,7 +678,7 @@ dependencies = [[[package]]name = "harper-literate-haskell"-version = "0.17.0"+version = "0.18.0"dependencies = ["harper-comments","harper-core",@@ -689,7 +689,7 @@ dependencies = [[[package]]name = "harper-ls"-version = "0.17.0"+version = "0.18.0"dependencies = ["anyhow","clap",@@ -714,7 +714,7 @@ dependencies = [[[package]]name = "harper-tree-sitter"-version = "0.17.0"+version = "0.18.0"dependencies = ["harper-core","tree-sitter",@@ -722,7 +722,7 @@ dependencies = [[[package]]name = "harper-typst"-version = "0.17.0"+version = "0.18.0"dependencies = ["harper-core","itertools 0.14.0",diff --git a/harper-cli/Cargo.toml b/harper-cli/Cargo.tomlindex b2a5c8a51..80938d3c2 100644--- a/harper-cli/Cargo.toml+++ b/harper-cli/Cargo.toml@@ -10,10 +10,10 @@ repository = "https://github.com/automattic/harper"anyhow = "1.0.95"ariadne = "0.4.1"clap = { version = "4.5.27", features = ["derive"] }-harper-literate-haskell = { path = "../harper-literate-haskell", version = "0.17.0" }-harper-core = { path = "../harper-core", version = "0.17.0" }-harper-comments = { path = "../harper-comments", version = "0.17.0" }-harper-typst = { path = "../harper-typst", version = "0.17.0" }+harper-literate-haskell = { path = "../harper-literate-haskell", version = "0.18.0" }+harper-core = { path = "../harper-core", version = "0.18.0" }+harper-comments = { path = "../harper-comments", version = "0.18.0" }+harper-typst = { path = "../harper-typst", version = "0.18.0" }serde = { version = "1.0.214", features = ["derive"] }serde_json = "1.0.137"diff --git a/harper-comments/Cargo.toml b/harper-comments/Cargo.tomlindex 8d8726ea4..2932e3bad 100644--- a/harper-comments/Cargo.toml+++ b/harper-comments/Cargo.toml@@ -1,6 +1,6 @@[package]name = "harper-comments"-version = "0.17.0"+version = "0.18.0"edition = "2021"description = "The language checker for developers."license = "Apache-2.0"@@ -8,9 +8,9 @@ readme = "README.md"repository = "https://github.com/automattic/harper"[dependencies]-harper-core = { path = "../harper-core", version = "0.17.0" }-harper-html = { path = "../harper-html", version = "0.17.0" }-harper-tree-sitter = { path = "../harper-tree-sitter", version = "0.17.0" }+harper-core = { path = "../harper-core", version = "0.18.0" }+harper-html = { path = "../harper-html", version = "0.18.0" }+harper-tree-sitter = { path = "../harper-tree-sitter", version = "0.18.0" }tree-sitter = "0.20.10"tree-sitter-rust = "0.20.4"tree-sitter-typescript = "0.20.3"diff --git a/harper-core/Cargo.toml b/harper-core/Cargo.tomlindex 4ae24b4bc..f96006819 100644--- a/harper-core/Cargo.toml+++ b/harper-core/Cargo.toml@@ -1,6 +1,6 @@[package]name = "harper-core"-version = "0.17.0"+version = "0.18.0"edition = "2021"description = "The language checker for developers."license = "Apache-2.0"diff --git a/harper-html/Cargo.toml b/harper-html/Cargo.tomlindex 7547af09f..86b0771d5 100644--- a/harper-html/Cargo.toml+++ b/harper-html/Cargo.toml@@ -1,14 +1,14 @@[package]name = "harper-html"-version = "0.17.0"+version = "0.18.0"edition = "2021"description = "The language checker for developers."license = "Apache-2.0"repository = "https://github.com/automattic/harper"[dependencies]-harper-core = { path = "../harper-core", version = "0.17.0" }-harper-tree-sitter = { path = "../harper-tree-sitter", version = "0.17.0" }+harper-core = { path = "../harper-core", version = "0.18.0" }+harper-tree-sitter = { path = "../harper-tree-sitter", version = "0.18.0" }tree-sitter-html = "0.19.0"tree-sitter = "0.20.10"diff --git a/harper-literate-haskell/Cargo.toml b/harper-literate-haskell/Cargo.tomlindex 51622f4e0..e4d9fc62f 100644--- a/harper-literate-haskell/Cargo.toml+++ b/harper-literate-haskell/Cargo.toml@@ -1,14 +1,14 @@[package]name = "harper-literate-haskell"-version = "0.17.0"+version = "0.18.0"edition = "2021"description = "The language checker for developers."license = "Apache-2.0"repository = "https://github.com/automattic/harper"[dependencies]-harper-core = { path = "../harper-core", version = "0.17.0" }-harper-tree-sitter = { path = "../harper-tree-sitter", version = "0.17.0" }-harper-comments = { path = "../harper-comments", version = "0.17.0" }+harper-core = { path = "../harper-core", version = "0.18.0" }+harper-tree-sitter = { path = "../harper-tree-sitter", version = "0.18.0" }+harper-comments = { path = "../harper-comments", version = "0.18.0" }itertools = "0.14.0"paste = "1.0.14"diff --git a/harper-ls/Cargo.toml b/harper-ls/Cargo.tomlindex 883b554e8..4e973bdd5 100644--- a/harper-ls/Cargo.toml+++ b/harper-ls/Cargo.toml@@ -1,6 +1,6 @@[package]name = "harper-ls"-version = "0.17.0"+version = "0.18.0"edition = "2021"description = "The language checker for developers."license = "Apache-2.0"@@ -8,11 +8,11 @@ readme = "README.md"repository = "https://github.com/automattic/harper"[dependencies]-harper-literate-haskell = { path = "../harper-literate-haskell", version = "0.17.0" }-harper-core = { path = "../harper-core", version = "0.17.0", features = ["concurrent"] }-harper-comments = { path = "../harper-comments", version = "0.17.0" }-harper-typst = { path = "../harper-typst", version = "0.17.0" }-harper-html = { path = "../harper-html", version = "0.17.0" }+harper-literate-haskell = { path = "../harper-literate-haskell", version = "0.18.0" }+harper-core = { path = "../harper-core", version = "0.18.0", features = ["concurrent"] }+harper-comments = { path = "../harper-comments", version = "0.18.0" }+harper-typst = { path = "../harper-typst", version = "0.18.0" }+harper-html = { path = "../harper-html", version = "0.18.0" }tower-lsp = "0.20.0"tokio = { version = "1.43.0", features = ["fs", "rt", "rt-multi-thread", "macros", "io-std", "io-util", "net"] }clap = { version = "4.5.27", features = ["derive"] }diff --git a/harper-tree-sitter/Cargo.toml b/harper-tree-sitter/Cargo.tomlindex 91747ebd6..3710698cf 100644--- a/harper-tree-sitter/Cargo.toml+++ b/harper-tree-sitter/Cargo.toml@@ -1,11 +1,11 @@[package]name = "harper-tree-sitter"-version = "0.17.0"+version = "0.18.0"edition = "2021"description = "The language checker for developers."license = "Apache-2.0"repository = "https://github.com/automattic/harper"[dependencies]-harper-core = { path = "../harper-core", version = "0.17.0" }+harper-core = { path = "../harper-core", version = "0.18.0" }tree-sitter = "0.20.10"diff --git a/harper-typst/Cargo.toml b/harper-typst/Cargo.tomlindex 3e9d42b79..5c0754e31 100644--- a/harper-typst/Cargo.toml+++ b/harper-typst/Cargo.toml@@ -1,13 +1,13 @@[package]name = "harper-typst"-version = "0.17.0"+version = "0.18.0"edition = "2021"description = "The language checker for developers."license = "Apache-2.0"repository = "https://github.com/automattic/harper"[dependencies]-harper-core = { path = "../harper-core", version = "0.17.0" }+harper-core = { path = "../harper-core", version = "0.18.0" }typst-syntax = { version = "0.12.0" }ordered-float = { version = "4.6.0", features = ["serde"] }itertools = "0.14.0"diff --git a/harper-wasm/Cargo.toml b/harper-wasm/Cargo.tomlindex a9b0a459d..fcc4a6cbc 100644--- a/harper-wasm/Cargo.toml+++ b/harper-wasm/Cargo.toml@@ -14,7 +14,7 @@ console_error_panic_hook = "0.1.7"tracing = "0.1.41"tracing-wasm = "0.2.1"wasm-bindgen = "0.2.97"-harper-core = { path = "../harper-core", version = "0.17.0", features = ["concurrent"] }+harper-core = { path = "../harper-core", version = "0.18.0", features = ["concurrent"] }once_cell = "1.20.2"serde-wasm-bindgen = "0.6.5"serde_json = "1.0.137"diff --git a/packages/harper.js/package.json b/packages/harper.js/package.jsonindex 4c99b924f..c2aea1500 100644--- a/packages/harper.js/package.json+++ b/packages/harper.js/package.json@@ -1,6 +1,6 @@{"name": "harper.js",- "version": "0.17.0",+ "version": "0.18.0","license": "Apache-2.0","author": "Elijah Potter","description": "The grammar checker for developers.",diff --git a/packages/vscode-plugin/package.json b/packages/vscode-plugin/package.jsonindex e04cde5a4..de2425c1d 100644--- a/packages/vscode-plugin/package.json+++ b/packages/vscode-plugin/package.json@@ -2,7 +2,7 @@"name": "harper","displayName": "Harper","description": "The grammar checker for developers",- "version": "0.17.0",+ "version": "0.18.0","private": true,"author": "Elijah Potter","publisher": "elijah-potter",