From 6373844495301c1afb94aa6cc55346d3d1f6b184 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 28 Aug 2026 03:43:36 +0000 Subject: [PATCH] chore(release): version packages --- .changeset/run-js-hook-fix.md | 5 ----- .claude-plugin/plugin.json | 2 +- Cargo.toml | 15 ++++++++----- crates/comment-checker/Cargo.toml | 27 +++++++++++++++++------ flake.nix | 2 +- npm/packages/comment-checker/CHANGELOG.md | 4 ++++ npm/packages/comment-checker/package.json | 2 +- package.json | 2 +- 8 files changed, 38 insertions(+), 21 deletions(-) delete mode 100644 .changeset/run-js-hook-fix.md diff --git a/.changeset/run-js-hook-fix.md b/.changeset/run-js-hook-fix.md deleted file mode 100644 index 13ebc26..0000000 --- a/.changeset/run-js-hook-fix.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@systemfsoftware/claude-code-comment-checker": patch ---- - -The `PostToolUse` hook is shipped as compiled `run.js` instead of `run.ts`, so it runs on Deno versions that refuse type-stripping inside `node_modules`. Type-checking is preserved through JSDoc annotations and `checkJs` in `hooks/deno.jsonc`. \ No newline at end of file diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index 8798355..f25ee88 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "comment-checker", - "version": "0.3.0", + "version": "0.3.1", "description": "PostToolUse hook that flags unnecessary comments. Runs comment-checker --strip, then direnv exec if it is missing. Names flake.nix when that is why it is missing.", "author": { "name": "systemfsoftware", diff --git a/Cargo.toml b/Cargo.toml index b513f36..2ce592b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,10 +1,11 @@ + [workspace] members = ["crates/*"] resolver = "2" default-members = ["crates/comment-checker"] [workspace.package] -version = "0.3.0" +version = "0.3.1" edition = "2024" rust-version = "1.85" license = "Apache-2.0" @@ -13,13 +14,17 @@ repository = "https://github.com/systemfsoftware/claude-code-comment-checker" [workspace.lints.rust] unsafe_code = "deny" -[workspace.lints.clippy] -all = { level = "deny", priority = -1 } -pedantic = { level = "warn", priority = -1 } +[workspace.lints.clippy.all] +level = "deny" +priority = -1 + +[workspace.lints.clippy.pedantic] +level = "warn" +priority = -1 [profile.release] opt-level = 3 lto = "fat" codegen-units = 1 strip = "symbols" -panic = "abort" \ No newline at end of file +panic = "abort" diff --git a/crates/comment-checker/Cargo.toml b/crates/comment-checker/Cargo.toml index f608cde..06d124c 100644 --- a/crates/comment-checker/Cargo.toml +++ b/crates/comment-checker/Cargo.toml @@ -1,13 +1,14 @@ + [package] name = "claude-code-comment-checker" -version = "0.3.0" +version = "0.3.1" edition = "2024" rust-version = "1.85" license = "Apache-2.0" description = "Comment checker hook for Claude Code — flags genuinely unnecessary comments, spares justified ones" repository = "https://github.com/systemfsoftware/claude-code-comment-checker" -keywords = ["comments", "tree-sitter", "claude-code", "hook"] -categories = ["command-line-utilities", "development-tools"] +keywords = ["comments","tree-sitter","claude-code","hook"] +categories = ["command-line-utilities","development-tools"] [lib] name = "claude_code_comment_checker" @@ -18,16 +19,28 @@ name = "comment-checker" path = "src/main.rs" [dependencies] -clap = { version = "4", features = ["derive"] } -serde = { version = "1", features = ["derive"] } serde_json = "1" tree-sitter = "0.26" -tree-sitter-language-pack = { version = "1.14", default-features = false } + +[dependencies.clap] +version = "4" +features = ["derive"] + +[dependencies.serde] +version = "1" +features = ["derive"] + +[dependencies.tree-sitter-language-pack] +version = "1.14" +default-features = false [dev-dependencies] proptest = "1" -serde = { version = "1", features = ["derive"] } serde_json = "1" +[dev-dependencies.serde] +version = "1" +features = ["derive"] + [lints] workspace = true diff --git a/flake.nix b/flake.nix index 5154334..a3a17c7 100644 --- a/flake.nix +++ b/flake.nix @@ -21,7 +21,7 @@ overlays = [ (import rust-overlay) ]; }; in f pkgs); - version = "0.3.0"; + version = "0.3.1"; mkCommentChecker = pkgs: let target = { diff --git a/npm/packages/comment-checker/CHANGELOG.md b/npm/packages/comment-checker/CHANGELOG.md index dfcd006..f1309a0 100644 --- a/npm/packages/comment-checker/CHANGELOG.md +++ b/npm/packages/comment-checker/CHANGELOG.md @@ -40,3 +40,7 @@ - This repository is also a Claude Code plugin. Enabling it runs a PostToolUse hook that tries `comment-checker --strip`, then `direnv exec`. If both miss and the project has `flake.nix`, the error tells you to run `direnv allow` or `nix develop`. - `--strip` deletes whole-line flagged comments from the file named in the hook payload. Without the flag, the hook still only reports. After a strip, the message names a code change to make — rename, extract, or tighten a type — instead of asking you to delete the comment. + +## 0.3.1 + + - The `PostToolUse` hook is shipped as compiled `run.js` instead of `run.ts`, so it runs on Deno versions that refuse type-stripping inside `node_modules`. Type-checking is preserved through JSDoc annotations and `checkJs` in `hooks/deno.jsonc`. diff --git a/npm/packages/comment-checker/package.json b/npm/packages/comment-checker/package.json index 46836c6..54cf2f9 100644 --- a/npm/packages/comment-checker/package.json +++ b/npm/packages/comment-checker/package.json @@ -1,6 +1,6 @@ { "name": "@systemfsoftware/claude-code-comment-checker", - "version": "0.3.0", + "version": "0.3.1", "description": "Claude Code PostToolUse hook that blocks unnecessary comments (npm distribution launcher)", "license": "Apache-2.0", "repository": { diff --git a/package.json b/package.json index 3c8e7b4..1c104c5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "claude-code-comment-checker", - "version": "0.3.0", + "version": "0.3.1", "private": true, "type": "module", "packageManager": "pnpm@11.21.0",