Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8deb625

Browse files
jdxmise-en-dev
andauthored
chore: release v1.18.1 (jdx#354)
## [1.18.1](https://github.com/jdx/hk/compare/v1.18.0..v1.18.1) - 2025-10-05 ### πŸ› Bug Fixes - prevent race condition when files are deleted between collection and execution by [@jdx](https://github.com/jdx) in [jdx#353](jdx#353) <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Release 1.18.1 with a fix for a file-deletion race condition and synchronized version refs across code, docs, and CLI metadata. > > - **Release 1.18.1** > - **Bug Fix**: Prevent race when files are deleted between collection and execution (`CHANGELOG.md`). > - **Version Bump**: Update `1.18.0` β†’ `1.18.1` in `Cargo.toml`, `Cargo.lock`, CLI specs (`docs/cli/commands.json`, `docs/cli/index.md`, `hk.usage.kdl`), docs and examples (`docs/*.md`, `docs/public/*.pkl`, `docs/reference/**`), templates (`hk-example.pkl`, `src/cli/init.rs`), project config (`hk.pkl` comment), and error/help text (`src/config.rs`). > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 90e8fcd. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> Co-authored-by: mise-en-dev <[email protected]>
1 parent 3c356b8 commit 8deb625

24 files changed

+55
-49
lines changed

β€ŽCHANGELOG.mdβ€Ž

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [1.18.1](https://github.com/jdx/hk/compare/v1.18.0..v1.18.1) - 2025-10-05
4+
5+
### πŸ› Bug Fixes
6+
7+
- prevent race condition when files are deleted between collection and execution by [@jdx](https://github.com/jdx) in [#353](https://github.com/jdx/hk/pull/353)
8+
39
## [1.18.0](https://github.com/jdx/hk/compare/v1.17.0..v1.18.0) - 2025-10-05
410

511
### πŸš€ Features

β€ŽCargo.lockβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€ŽCargo.tomlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ resolver = "2"
44

55
[package]
66
name = "hk"
7-
version = "1.18.0"
7+
version = "1.18.1"
88
edition = "2024"
99
description = "A tool for managing git hooks"
1010
license = "MIT"

β€Ždocs/builtins.mdβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ hk provides 70+ pre-configured linters and formatters through the `Builtins` mod
1111
Import and use builtins in your `hk.pkl`:
1212

1313
```pkl
14-
amends "package://github.com/jdx/hk/releases/download/v1.18.0/[email protected].0#/Config.pkl"
15-
import "package://github.com/jdx/hk/releases/download/v1.18.0/[email protected].0#/Builtins.pkl"
14+
amends "package://github.com/jdx/hk/releases/download/v1.18.1/[email protected].1#/Config.pkl"
15+
import "package://github.com/jdx/hk/releases/download/v1.18.1/[email protected].1#/Builtins.pkl"
1616
1717
hooks {
1818
["pre-commit"] {

β€Ždocs/cli/commands.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2605,7 +2605,7 @@
26052605
"config": {
26062606
"props": {}
26072607
},
2608-
"version": "1.18.0",
2608+
"version": "1.18.1",
26092609
"usage": "Usage: hk [OPTIONS] <COMMAND>",
26102610
"complete": {},
26112611
"about": "A tool for managing git hooks"

β€Ždocs/cli/index.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
**Usage**: `hk [FLAGS] <SUBCOMMAND>`
44

5-
**Version**: 1.18.0
5+
**Version**: 1.18.1
66

77
- **Usage**: `hk [FLAGS] <SUBCOMMAND>`
88

β€Ždocs/configuration.mdβ€Ž

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ hk is configured via `hk.pkl` which is written in [pkl-lang](https://pkl-lang.or
1111
Here's a basic `hk.pkl` file:
1212

1313
```pkl
14-
amends "package://github.com/jdx/hk/releases/download/v1.18.0/[email protected].0#/Config.pkl"
15-
import "package://github.com/jdx/hk/releases/download/v1.18.0/[email protected].0#/Builtins.pkl"
14+
amends "package://github.com/jdx/hk/releases/download/v1.18.1/[email protected].1#/Config.pkl"
15+
import "package://github.com/jdx/hk/releases/download/v1.18.1/[email protected].1#/Builtins.pkl"
1616
1717
local linters = new Mapping<String, Step> {
1818
// linters can be manually defined
@@ -105,7 +105,7 @@ exclude = "node_modules"
105105
106106
// Exclude using regex pattern (for complex matching)
107107
// First import Types.pkl to use the Regex helper
108-
import "package://github.com/jdx/hk/releases/download/v1.18.0/[email protected].0#/Types.pkl"
108+
import "package://github.com/jdx/hk/releases/download/v1.18.1/[email protected].1#/Types.pkl"
109109
exclude = Types.Regex(#".*\.(test|spec)\.(js|ts)$"#)
110110
```
111111

@@ -497,8 +497,8 @@ Notes:
497497
The `Regex()` helper function is available by importing Types.pkl:
498498

499499
```pkl
500-
amends "package://github.com/jdx/hk/releases/download/v1.18.0/[email protected].0#/Config.pkl"
501-
import "package://github.com/jdx/hk/releases/download/v1.18.0/[email protected].0#/Types.pkl"
500+
amends "package://github.com/jdx/hk/releases/download/v1.18.1/[email protected].1#/Config.pkl"
501+
import "package://github.com/jdx/hk/releases/download/v1.18.1/[email protected].1#/Types.pkl"
502502
503503
// Use it like:
504504
exclude = Types.Regex(#".*\.test\.js$"#)
@@ -743,8 +743,8 @@ The hkrc file follows the same format as `hk.pkl` and can be used to define glob
743743
Example hkrc file:
744744

745745
```pkl
746-
amends "package://github.com/jdx/hk/releases/download/v1.18.0/[email protected].0#/Config.pkl"
747-
import "package://github.com/jdx/hk/releases/download/v1.18.0/[email protected].0#/Builtins.pkl"
746+
amends "package://github.com/jdx/hk/releases/download/v1.18.1/[email protected].1#/Config.pkl"
747+
import "package://github.com/jdx/hk/releases/download/v1.18.1/[email protected].1#/Builtins.pkl"
748748
749749
local linters {
750750
["prettier"] = Builtins.prettier

β€Ždocs/getting_started.mdβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ The global configuration file follows the same format as `hk.pkl` and can be use
4747
This will generate a `hk.pkl` file in the root of the repository, here's an example `hk.pkl` with eslint and prettier linters:
4848

4949
```pkl
50-
amends "package://github.com/jdx/hk/releases/download/v1.18.0/[email protected].0#/Config.pkl"
51-
import "package://github.com/jdx/hk/releases/download/v1.18.0/[email protected].0#/Builtins.pkl"
50+
amends "package://github.com/jdx/hk/releases/download/v1.18.1/[email protected].1#/Config.pkl"
51+
import "package://github.com/jdx/hk/releases/download/v1.18.1/[email protected].1#/Builtins.pkl"
5252
5353
local linters = new Mapping<String, Step> {
5454
// linters can be manually defined

β€Ždocs/mise_integration.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ parsing, parallel execution, and more.
3939
Just run mise in `hk.pkl` like any other command:
4040

4141
```pkl
42-
amends "package://github.com/jdx/hk/releases/download/v1.18.0/[email protected].0#/Config.pkl"
42+
amends "package://github.com/jdx/hk/releases/download/v1.18.1/[email protected].1#/Config.pkl"
4343
4444
`pre-commit` {
4545
["prelint"] {

β€Ždocs/pkl_introduction.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ This is a multi-line comment
173173
Every `hk.pkl` should start with this line which essentially schema validates the config and provides base classes:
174174

175175
```pkl
176-
amends "package://github.com/jdx/hk/releases/download/v1.18.0/[email protected].0#/Config.pkl"
176+
amends "package://github.com/jdx/hk/releases/download/v1.18.1/[email protected].1#/Config.pkl"
177177
```
178178

179179
### Imports

0 commit comments

Comments
Β (0)