diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b7b1f0ba..5ed1c98af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,39 @@ # Changelog +## [1.45.0](https://github.com/jdx/hk/compare/v1.44.3..v1.45.0) - 2026-05-04 + +### 🚀 Features + +- **(builtins)** add `buildifier` format and lint built-ins by [@plx](https://github.com/plx) in [#896](https://github.com/jdx/hk/pull/896) + +### 🐛 Bug Fixes + +- **(step)** only auto-batch when rendered command exceeds ARG_MAX by [@jdx](https://github.com/jdx) in [#901](https://github.com/jdx/hk/pull/901) + +### 📚 Documentation + +- thank Namespace for GitHub Actions runner support by [@jdx](https://github.com/jdx) in [#895](https://github.com/jdx/hk/pull/895) + +### 🔍 Other Changes + +- **(ci)** use !cancelled() instead of always() for final job by [@jdx](https://github.com/jdx) in [#906](https://github.com/jdx/hk/pull/906) +- **(docs)** remove shrill.en.dev analytics script by [@jdx](https://github.com/jdx) in [#903](https://github.com/jdx/hk/pull/903) +- remove rust-cache from release jobs by [@jdx](https://github.com/jdx) in [#893](https://github.com/jdx/hk/pull/893) +- invert CLAUDE.md/AGENTS.md so AGENTS.md is canonical by [@jdx](https://github.com/jdx) in [#905](https://github.com/jdx/hk/pull/905) +- set dev profile debug to 1 by [@jdx](https://github.com/jdx) in [#907](https://github.com/jdx/hk/pull/907) + +### 📦️ Dependency Updates + +- update anthropics/claude-code-action digest to fefa07e by [@renovate[bot]](https://github.com/renovate[bot]) in [#897](https://github.com/jdx/hk/pull/897) +- update jdx/mise-action digest to 1648a78 by [@renovate[bot]](https://github.com/renovate[bot]) in [#898](https://github.com/jdx/hk/pull/898) +- update apple-actions/import-codesign-certs action to v7 by [@renovate[bot]](https://github.com/renovate[bot]) in [#900](https://github.com/jdx/hk/pull/900) +- update autofix-ci/action action to v1.3.4 by [@renovate[bot]](https://github.com/renovate[bot]) in [#899](https://github.com/jdx/hk/pull/899) +- lock file maintenance by [@renovate[bot]](https://github.com/renovate[bot]) in [#908](https://github.com/jdx/hk/pull/908) + +### New Contributors + +- @plx made their first contribution in [#896](https://github.com/jdx/hk/pull/896) + ## [1.44.3](https://github.com/jdx/hk/compare/v1.44.2..v1.44.3) - 2026-04-30 ### 🐛 Bug Fixes diff --git a/Cargo.lock b/Cargo.lock index bf9d777d5..7bcd54d01 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1065,7 +1065,7 @@ checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" [[package]] name = "hk" -version = "1.44.3" +version = "1.45.0" dependencies = [ "arc-swap", "chrono", diff --git a/Cargo.toml b/Cargo.toml index a4d731aa5..c126534af 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ license = "MIT" name = "hk" repository = "https://github.com/jdx/hk" rust-version = "1.88.0" -version = "1.44.3" +version = "1.45.0" [[bin]] name = "generate-docs" diff --git a/docs/builtins.md b/docs/builtins.md index 28973d220..7812c49e8 100644 --- a/docs/builtins.md +++ b/docs/builtins.md @@ -11,8 +11,8 @@ hk provides 90+ pre-configured linters and formatters through the `Builtins` mod Import and use builtins in your `hk.pkl`: ```pkl -amends "package://github.com/jdx/hk/releases/download/v1.44.3/hk@1.44.3#/Config.pkl" -import "package://github.com/jdx/hk/releases/download/v1.44.3/hk@1.44.3#/Builtins.pkl" +amends "package://github.com/jdx/hk/releases/download/v1.45.0/hk@1.45.0#/Config.pkl" +import "package://github.com/jdx/hk/releases/download/v1.45.0/hk@1.45.0#/Builtins.pkl" hooks { ["pre-commit"] { diff --git a/docs/cli/commands.json b/docs/cli/commands.json index fd8720e2b..9e50c3ccc 100644 --- a/docs/cli/commands.json +++ b/docs/cli/commands.json @@ -4799,7 +4799,7 @@ "config": { "props": {} }, - "version": "1.44.3", + "version": "1.45.0", "usage": "Usage: hk [OPTIONS] ", "complete": {}, "about": "A tool for managing git hooks" diff --git a/docs/cli/index.md b/docs/cli/index.md index 4c8dabeeb..388997b93 100644 --- a/docs/cli/index.md +++ b/docs/cli/index.md @@ -4,7 +4,7 @@ **Usage**: `hk [FLAGS] ` -**Version**: 1.44.3 +**Version**: 1.45.0 - **Usage**: `hk [FLAGS] ` diff --git a/docs/configuration.md b/docs/configuration.md index 6e53a79e5..8b09dc1df 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -44,8 +44,8 @@ Set [`HK_FILE`](/environment_variables#hk-file) to override the search and use a Here's a basic `hk.pkl` file: ```pkl -amends "package://github.com/jdx/hk/releases/download/v1.44.3/hk@1.44.3#/Config.pkl" -import "package://github.com/jdx/hk/releases/download/v1.44.3/hk@1.44.3#/Builtins.pkl" +amends "package://github.com/jdx/hk/releases/download/v1.45.0/hk@1.45.0#/Config.pkl" +import "package://github.com/jdx/hk/releases/download/v1.45.0/hk@1.45.0#/Builtins.pkl" local linters = new Mapping { // linters can be manually defined @@ -208,8 +208,8 @@ The hkrc file follows the same format as `hk.pkl` and can be used to define glob Example hkrc file: ```pkl -amends "package://github.com/jdx/hk/releases/download/v1.44.3/hk@1.44.3#/Config.pkl" -import "package://github.com/jdx/hk/releases/download/v1.44.3/hk@1.44.3#/Builtins.pkl" +amends "package://github.com/jdx/hk/releases/download/v1.45.0/hk@1.45.0#/Config.pkl" +import "package://github.com/jdx/hk/releases/download/v1.45.0/hk@1.45.0#/Builtins.pkl" local linters { ["prettier"] = Builtins.prettier @@ -242,7 +242,7 @@ Add steps to your hkrc. hk merges them into every project's hooks — steps with ```pkl // ~/.config/hk/config.pkl -amends "package://github.com/jdx/hk/releases/download/v1.44.3/hk@1.44.3#/Config.pkl" +amends "package://github.com/jdx/hk/releases/download/v1.45.0/hk@1.45.0#/Config.pkl" hooks { ["pre-commit"] { @@ -335,7 +335,7 @@ Git config supports both multivar entries (multiple values with the same key) an User-specific defaults can be set in `~/.config/hk/config.pkl`: ```pkl -amends "package://github.com/jdx/hk/releases/download/v1.44.3/hk@1.44.3#/Config.pkl" +amends "package://github.com/jdx/hk/releases/download/v1.45.0/hk@1.45.0#/Config.pkl" jobs = 4 fail_fast = false diff --git a/docs/getting_started.md b/docs/getting_started.md index 3ab18917d..74ba0fa5f 100644 --- a/docs/getting_started.md +++ b/docs/getting_started.md @@ -105,8 +105,8 @@ Separately from global *hooks*, you can also create a global *config* file that This will generate a `hk.pkl` file in the root of the repository, here's an example `hk.pkl` with eslint and prettier linters: ```pkl -amends "package://github.com/jdx/hk/releases/download/v1.44.3/hk@1.44.3#/Config.pkl" -import "package://github.com/jdx/hk/releases/download/v1.44.3/hk@1.44.3#/Builtins.pkl" +amends "package://github.com/jdx/hk/releases/download/v1.45.0/hk@1.45.0#/Config.pkl" +import "package://github.com/jdx/hk/releases/download/v1.45.0/hk@1.45.0#/Builtins.pkl" local linters = new Mapping { // linters can be manually defined diff --git a/docs/mise_integration.md b/docs/mise_integration.md index 2340899fa..9f86e7e75 100644 --- a/docs/mise_integration.md +++ b/docs/mise_integration.md @@ -43,7 +43,7 @@ parsing, parallel execution, and more. Just run mise in `hk.pkl` like any other command: ```pkl -amends "package://github.com/jdx/hk/releases/download/v1.44.3/hk@1.44.3#/Config.pkl" +amends "package://github.com/jdx/hk/releases/download/v1.45.0/hk@1.45.0#/Config.pkl" `pre-commit` { ["prelint"] { diff --git a/docs/pkl_introduction.md b/docs/pkl_introduction.md index c7facb30b..b1eeea39f 100644 --- a/docs/pkl_introduction.md +++ b/docs/pkl_introduction.md @@ -175,7 +175,7 @@ This is a multi-line comment Every `hk.pkl` should start with this line which essentially schema validates the config and provides base classes: ```pkl -amends "package://github.com/jdx/hk/releases/download/v1.44.3/hk@1.44.3#/Config.pkl" +amends "package://github.com/jdx/hk/releases/download/v1.45.0/hk@1.45.0#/Config.pkl" ``` ### Imports diff --git a/docs/public/custom-linters.pkl b/docs/public/custom-linters.pkl index 22d7ee845..ef2b6391c 100644 --- a/docs/public/custom-linters.pkl +++ b/docs/public/custom-linters.pkl @@ -3,8 +3,8 @@ /// * Demonstrates platform-specific commands /// * Uses conditions and workspace indicators /// * Shows test configuration -amends "package://github.com/jdx/hk/releases/download/v1.44.3/hk@1.44.3#/Config.pkl" -import "package://github.com/jdx/hk/releases/download/v1.44.3/hk@1.44.3#/Builtins.pkl" +amends "package://github.com/jdx/hk/releases/download/v1.45.0/hk@1.45.0#/Config.pkl" +import "package://github.com/jdx/hk/releases/download/v1.45.0/hk@1.45.0#/Builtins.pkl" local custom_linters = new Mapping { // Custom SQL formatter diff --git a/docs/public/javascript-project.pkl b/docs/public/javascript-project.pkl index 9bad3f6a9..1c383c936 100644 --- a/docs/public/javascript-project.pkl +++ b/docs/public/javascript-project.pkl @@ -3,8 +3,8 @@ /// * Uses eslint for linting /// * Runs type checking with tsc /// * Enables automatic fixes in pre-commit -amends "package://github.com/jdx/hk/releases/download/v1.44.3/hk@1.44.3#/Config.pkl" -import "package://github.com/jdx/hk/releases/download/v1.44.3/hk@1.44.3#/Builtins.pkl" +amends "package://github.com/jdx/hk/releases/download/v1.45.0/hk@1.45.0#/Config.pkl" +import "package://github.com/jdx/hk/releases/download/v1.45.0/hk@1.45.0#/Builtins.pkl" // Configure environment for all tools env { diff --git a/docs/public/monorepo.pkl b/docs/public/monorepo.pkl index 7e07ef171..c2a3239e7 100644 --- a/docs/public/monorepo.pkl +++ b/docs/public/monorepo.pkl @@ -3,8 +3,8 @@ /// * Backend: Rust /// * Infrastructure: Terraform /// * Uses groups to organize steps by component -amends "package://github.com/jdx/hk/releases/download/v1.44.3/hk@1.44.3#/Config.pkl" -import "package://github.com/jdx/hk/releases/download/v1.44.3/hk@1.44.3#/Builtins.pkl" +amends "package://github.com/jdx/hk/releases/download/v1.45.0/hk@1.45.0#/Config.pkl" +import "package://github.com/jdx/hk/releases/download/v1.45.0/hk@1.45.0#/Builtins.pkl" // Frontend linters (JavaScript/TypeScript) local frontend = new Group { diff --git a/docs/public/python-project.pkl b/docs/public/python-project.pkl index 7d42f6472..e409737ed 100644 --- a/docs/public/python-project.pkl +++ b/docs/public/python-project.pkl @@ -4,8 +4,8 @@ /// * Uses mypy for type checking /// * Sorts imports with isort /// * Validates with flake8 -amends "package://github.com/jdx/hk/releases/download/v1.44.3/hk@1.44.3#/Config.pkl" -import "package://github.com/jdx/hk/releases/download/v1.44.3/hk@1.44.3#/Builtins.pkl" +amends "package://github.com/jdx/hk/releases/download/v1.45.0/hk@1.45.0#/Config.pkl" +import "package://github.com/jdx/hk/releases/download/v1.45.0/hk@1.45.0#/Builtins.pkl" local python_linters = new Mapping { // Ruff is a fast Python linter diff --git a/docs/reference/examples/custom-linters.md b/docs/reference/examples/custom-linters.md index abb9c6133..b6650aa4e 100644 --- a/docs/reference/examples/custom-linters.md +++ b/docs/reference/examples/custom-linters.md @@ -7,8 +7,8 @@ /// * Uses conditions and workspace indicators /// * Shows test configuration -amends "package://github.com/jdx/hk/releases/download/v1.44.3/hk@1.44.3#/Config.pkl" -import "package://github.com/jdx/hk/releases/download/v1.44.3/hk@1.44.3#/Builtins.pkl" +amends "package://github.com/jdx/hk/releases/download/v1.45.0/hk@1.45.0#/Config.pkl" +import "package://github.com/jdx/hk/releases/download/v1.45.0/hk@1.45.0#/Builtins.pkl" local custom_linters = new Mapping { // Custom SQL formatter diff --git a/docs/reference/examples/javascript-project.md b/docs/reference/examples/javascript-project.md index 6a92f3b79..bb108ac21 100644 --- a/docs/reference/examples/javascript-project.md +++ b/docs/reference/examples/javascript-project.md @@ -7,8 +7,8 @@ /// * Runs type checking with tsc /// * Enables automatic fixes in pre-commit -amends "package://github.com/jdx/hk/releases/download/v1.44.3/hk@1.44.3#/Config.pkl" -import "package://github.com/jdx/hk/releases/download/v1.44.3/hk@1.44.3#/Builtins.pkl" +amends "package://github.com/jdx/hk/releases/download/v1.45.0/hk@1.45.0#/Config.pkl" +import "package://github.com/jdx/hk/releases/download/v1.45.0/hk@1.45.0#/Builtins.pkl" // Configure environment for all tools env { diff --git a/docs/reference/examples/monorepo.md b/docs/reference/examples/monorepo.md index 83de7e7a9..ed3c67ff9 100644 --- a/docs/reference/examples/monorepo.md +++ b/docs/reference/examples/monorepo.md @@ -7,8 +7,8 @@ /// * Infrastructure: Terraform /// * Uses groups to organize steps by component -amends "package://github.com/jdx/hk/releases/download/v1.44.3/hk@1.44.3#/Config.pkl" -import "package://github.com/jdx/hk/releases/download/v1.44.3/hk@1.44.3#/Builtins.pkl" +amends "package://github.com/jdx/hk/releases/download/v1.45.0/hk@1.45.0#/Config.pkl" +import "package://github.com/jdx/hk/releases/download/v1.45.0/hk@1.45.0#/Builtins.pkl" // Frontend linters (JavaScript/TypeScript) local frontend = new Group { diff --git a/docs/reference/examples/python-project.md b/docs/reference/examples/python-project.md index 12c1cff9a..73f559549 100644 --- a/docs/reference/examples/python-project.md +++ b/docs/reference/examples/python-project.md @@ -8,8 +8,8 @@ /// * Sorts imports with isort /// * Validates with flake8 -amends "package://github.com/jdx/hk/releases/download/v1.44.3/hk@1.44.3#/Config.pkl" -import "package://github.com/jdx/hk/releases/download/v1.44.3/hk@1.44.3#/Builtins.pkl" +amends "package://github.com/jdx/hk/releases/download/v1.45.0/hk@1.45.0#/Config.pkl" +import "package://github.com/jdx/hk/releases/download/v1.45.0/hk@1.45.0#/Builtins.pkl" local python_linters = new Mapping { // Ruff is a fast Python linter diff --git a/hk-example.pkl b/hk-example.pkl index 0b3152e63..261baf353 100644 --- a/hk-example.pkl +++ b/hk-example.pkl @@ -1,5 +1,5 @@ -amends "package://github.com/jdx/hk/releases/download/v1.44.3/hk@1.44.3#/Config.pkl" -import "package://github.com/jdx/hk/releases/download/v1.44.3/hk@1.44.3#/Builtins.pkl" +amends "package://github.com/jdx/hk/releases/download/v1.45.0/hk@1.45.0#/Config.pkl" +import "package://github.com/jdx/hk/releases/download/v1.45.0/hk@1.45.0#/Builtins.pkl" local linters = new Mapping { // some linters are built into hk diff --git a/hk.pkl b/hk.pkl index d869dcb13..2caac3387 100644 --- a/hk.pkl +++ b/hk.pkl @@ -1,4 +1,4 @@ -// amends "package://github.com/jdx/hk/releases/download/v1.44.3/hk@1.44.3#/Config.pkl" +// amends "package://github.com/jdx/hk/releases/download/v1.45.0/hk@1.45.0#/Config.pkl" amends "pkl/Config.pkl" import "pkl/Builtins.pkl" diff --git a/hk.usage.kdl b/hk.usage.kdl index 05e5e0936..65489f26f 100644 --- a/hk.usage.kdl +++ b/hk.usage.kdl @@ -1,6 +1,6 @@ name hk bin hk -version "1.44.3" +version "1.45.0" about "A tool for managing git hooks" usage "Usage: hk [OPTIONS] " flag --hkrc help="Path to user configuration file (deprecated: use ~/.config/hk/config.pkl or hk.local.pkl)" hide=#true global=#true {