@j178/prek 0.4.10 → 0.4.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CHANGELOG.md +98 -0
  2. package/README.md +4 -4
  3. package/package.json +18 -18
package/CHANGELOG.md CHANGED
@@ -1,5 +1,103 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.12
4
+
5
+ Released on 2026-08-03.
6
+
7
+ ### Enhancements
8
+
9
+ - Add `--require-group` for hook group intersections ([#2472](https://github.com/j178/prek/pull/2472))
10
+ - Align fast-path and builtin pre-commit hooks ([#2433](https://github.com/j178/prek/pull/2433))
11
+ - Do not shuffle file list for verbose output ([#2431](https://github.com/j178/prek/pull/2431))
12
+ - Improve top-level command descriptions ([#2429](https://github.com/j178/prek/pull/2429))
13
+ - Install `uv` from Astral CDN and drop source racing ([#2455](https://github.com/j178/prek/pull/2455))
14
+ - Make `prek install --force` bypass external hooks paths ([#2437](https://github.com/j178/prek/pull/2437))
15
+ - Show builtin hook flags in verbose list output ([#2427](https://github.com/j178/prek/pull/2427))
16
+ - Verify uv release archive checksums ([#2456](https://github.com/j178/prek/pull/2456))
17
+
18
+ ### Performance
19
+
20
+ - Precompute file tags in parallel ([#2440](https://github.com/j178/prek/pull/2440))
21
+ - Skip diffs after known hook modifications ([#2447](https://github.com/j178/prek/pull/2447))
22
+ - Skip worktree diffs for read-only languages ([#2432](https://github.com/j178/prek/pull/2432))
23
+ - Track builtin hook file changes directly ([#2404](https://github.com/j178/prek/pull/2404))
24
+
25
+ ### Bug fixes
26
+
27
+ - Use full object IDs in diff snapshots ([#2448](https://github.com/j178/prek/pull/2448))
28
+
29
+ ### Documentation
30
+
31
+ - Add a multi-repository configuration example ([#2434](https://github.com/j178/prek/pull/2434))
32
+ - Rewrite benchmark documentation ([#2469](https://github.com/j178/prek/pull/2469))
33
+
34
+ ### Contributors
35
+
36
+ - @j178
37
+ - @BitWeaverDev
38
+ - @allanlewis
39
+
40
+ ## 0.4.11
41
+
42
+ Released on 2026-07-25.
43
+
44
+ ### Highlights
45
+
46
+ - This release adds two new builtin hooks, `deny-pattern` and `require-pattern`,
47
+ as native alternatives for `pygrep` use cases. `deny-pattern` fails when a
48
+ configured pattern is found, while `require-pattern` ensures every selected
49
+ file contains a match. By matching natively without spawning a Python
50
+ subprocess, they run over 4x faster than `pygrep` in benchmarks. Note that
51
+ they use
52
+ [Rust `regex` syntax](https://docs.rs/regex/latest/regex/#syntax), which does
53
+ not support look-around features such as negative lookbehind.
54
+
55
+ - `prek run` now supports `--glob <PATTERN>` to run hooks on tracked files
56
+ matching a glob. It can be repeated or combined with `--files` and
57
+ `--directory`.
58
+
59
+ - Hook priorities now support reusable aliases:
60
+
61
+ ```toml
62
+ [priorities]
63
+ checks = 10
64
+
65
+ [[repos]]
66
+ repo = "builtin"
67
+ hooks = [
68
+ { id = "check-json", priority = "checks" },
69
+ { id = "check-yaml", priority = "checks" },
70
+ ]
71
+ ```
72
+
73
+ This makes parallel scheduling easier to read and maintain.
74
+
75
+ ### Enhancements
76
+
77
+ - Add `deny-pattern` and `require-pattern` builtin hooks ([#2359](https://github.com/j178/prek/pull/2359))
78
+ - Support `--glob` patterns in `prek run` ([#2381](https://github.com/j178/prek/pull/2381))
79
+ - Support reusable aliases for hook priorities ([#2331](https://github.com/j178/prek/pull/2331))
80
+ - Implement `requirements-txt-fixer` as a builtin hook ([#2390](https://github.com/j178/prek/pull/2390))
81
+ - Improve user-facing warnings and errors ([#2380](https://github.com/j178/prek/pull/2380))
82
+ - Install Node hooks through git url ([#2394](https://github.com/j178/prek/pull/2394))
83
+
84
+ ### Performance
85
+
86
+ - Reduce blocking-pool overhead in file hooks ([#2384](https://github.com/j178/prek/pull/2384))
87
+ - Speed up mixed-line-ending scans with memchr2 ([#2391](https://github.com/j178/prek/pull/2391))
88
+
89
+ ### Bug fixes
90
+
91
+ - Honor filenames in builtin hook entry and args ([#2389](https://github.com/j178/prek/pull/2389))
92
+ - Match identify tags across filename parts ([#2399](https://github.com/j178/prek/pull/2399))
93
+ - Preserve hook output order with a shared pipe ([#2385](https://github.com/j178/prek/pull/2385))
94
+ - Preserve system download policy when applying metadata ([#2395](https://github.com/j178/prek/pull/2395))
95
+
96
+ ### Contributors
97
+
98
+ - @j178
99
+ - @chrisoro
100
+
3
101
  ## 0.4.10
4
102
 
5
103
  Released on 2026-07-16.
package/README.md CHANGED
@@ -58,7 +58,7 @@ On Linux and macOS:
58
58
  <!-- --8<-- [start: linux-standalone-install] -->
59
59
 
60
60
  ```bash
61
- curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.4.10/prek-installer.sh | sh
61
+ curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.4.12/prek-installer.sh | sh
62
62
  ```
63
63
 
64
64
  <!-- --8<-- [end: linux-standalone-install] -->
@@ -68,7 +68,7 @@ On Windows:
68
68
  <!-- --8<-- [start: windows-standalone-install] -->
69
69
 
70
70
  ```powershell
71
- powershell -ExecutionPolicy ByPass -c "irm https://github.com/j178/prek/releases/download/v0.4.10/prek-installer.ps1 | iex"
71
+ powershell -ExecutionPolicy ByPass -c "irm https://github.com/j178/prek/releases/download/v0.4.12/prek-installer.ps1 | iex"
72
72
  ```
73
73
 
74
74
  <!-- --8<-- [end: windows-standalone-install] -->
@@ -300,8 +300,8 @@ jobs:
300
300
  prek:
301
301
  runs-on: ubuntu-latest
302
302
  steps:
303
- - uses: actions/checkout@v7
304
- - uses: j178/prek-action@v2
303
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
304
+ - uses: j178/prek-action@5337cb91e0fa35a7ff31b9ca345126d8bbbcdf16 # v2
305
305
  ```
306
306
 
307
307
  This action installs prek and runs `prek run --all-files` on your repository.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@j178/prek",
3
- "version": "0.4.10",
3
+ "version": "0.4.12",
4
4
  "description": "A fast Git hook manager written in Rust, designed as a drop-in alternative to pre-commit, reimagined.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -26,22 +26,22 @@
26
26
  "LICENSE"
27
27
  ],
28
28
  "optionalDependencies": {
29
- "@j178/prek-darwin-arm64": "0.4.10",
30
- "@j178/prek-darwin-x64": "0.4.10",
31
- "@j178/prek-linux-arm64-gnu": "0.4.10",
32
- "@j178/prek-linux-arm64-musl": "0.4.10",
33
- "@j178/prek-android-arm64": "0.4.10",
34
- "@j178/prek-linux-arm-gnueabihf": "0.4.10",
35
- "@j178/prek-linux-arm-musleabihf": "0.4.10",
36
- "@j178/prek-linux-armv7-musleabihf": "0.4.10",
37
- "@j178/prek-linux-ia32-gnu": "0.4.10",
38
- "@j178/prek-linux-ia32-musl": "0.4.10",
39
- "@j178/prek-linux-riscv64-gnu": "0.4.10",
40
- "@j178/prek-linux-s390x-gnu": "0.4.10",
41
- "@j178/prek-linux-x64-gnu": "0.4.10",
42
- "@j178/prek-linux-x64-musl": "0.4.10",
43
- "@j178/prek-win32-arm64-msvc": "0.4.10",
44
- "@j178/prek-win32-ia32-msvc": "0.4.10",
45
- "@j178/prek-win32-x64-msvc": "0.4.10"
29
+ "@j178/prek-darwin-arm64": "0.4.12",
30
+ "@j178/prek-darwin-x64": "0.4.12",
31
+ "@j178/prek-linux-arm64-gnu": "0.4.12",
32
+ "@j178/prek-linux-arm64-musl": "0.4.12",
33
+ "@j178/prek-android-arm64": "0.4.12",
34
+ "@j178/prek-linux-arm-gnueabihf": "0.4.12",
35
+ "@j178/prek-linux-arm-musleabihf": "0.4.12",
36
+ "@j178/prek-linux-armv7-musleabihf": "0.4.12",
37
+ "@j178/prek-linux-ia32-gnu": "0.4.12",
38
+ "@j178/prek-linux-ia32-musl": "0.4.12",
39
+ "@j178/prek-linux-riscv64-gnu": "0.4.12",
40
+ "@j178/prek-linux-s390x-gnu": "0.4.12",
41
+ "@j178/prek-linux-x64-gnu": "0.4.12",
42
+ "@j178/prek-linux-x64-musl": "0.4.12",
43
+ "@j178/prek-win32-arm64-msvc": "0.4.12",
44
+ "@j178/prek-win32-ia32-msvc": "0.4.12",
45
+ "@j178/prek-win32-x64-msvc": "0.4.12"
46
46
  }
47
47
  }