@j178/prek 0.4.9 → 0.4.11

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 +89 -0
  2. package/README.md +2 -2
  3. package/package.json +18 -18
package/CHANGELOG.md CHANGED
@@ -1,5 +1,94 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.11
4
+
5
+ Released on 2026-07-25.
6
+
7
+ ### Highlights
8
+
9
+ - This release adds two new builtin hooks, `deny-pattern` and `require-pattern`,
10
+ as native alternatives for `pygrep` use cases. `deny-pattern` fails when a
11
+ configured pattern is found, while `require-pattern` ensures every selected
12
+ file contains a match. By matching natively without spawning a Python
13
+ subprocess, they run over 4x faster than `pygrep` in benchmarks. Note that
14
+ they use
15
+ [Rust `regex` syntax](https://docs.rs/regex/latest/regex/#syntax), which does
16
+ not support look-around features such as negative lookbehind.
17
+
18
+ - `prek run` now supports `--glob <PATTERN>` to run hooks on tracked files
19
+ matching a glob. It can be repeated or combined with `--files` and
20
+ `--directory`.
21
+
22
+ - Hook priorities now support reusable aliases:
23
+
24
+ ```toml
25
+ [priorities]
26
+ checks = 10
27
+
28
+ [[repos]]
29
+ repo = "builtin"
30
+ hooks = [
31
+ { id = "check-json", priority = "checks" },
32
+ { id = "check-yaml", priority = "checks" },
33
+ ]
34
+ ```
35
+
36
+ This makes parallel scheduling easier to read and maintain.
37
+
38
+ ### Enhancements
39
+
40
+ - Add `deny-pattern` and `require-pattern` builtin hooks ([#2359](https://github.com/j178/prek/pull/2359))
41
+ - Support `--glob` patterns in `prek run` ([#2381](https://github.com/j178/prek/pull/2381))
42
+ - Support reusable aliases for hook priorities ([#2331](https://github.com/j178/prek/pull/2331))
43
+ - Implement `requirements-txt-fixer` as a builtin hook ([#2390](https://github.com/j178/prek/pull/2390))
44
+ - Improve user-facing warnings and errors ([#2380](https://github.com/j178/prek/pull/2380))
45
+ - Install Node hooks through git url ([#2394](https://github.com/j178/prek/pull/2394))
46
+
47
+ ### Performance
48
+
49
+ - Reduce blocking-pool overhead in file hooks ([#2384](https://github.com/j178/prek/pull/2384))
50
+ - Speed up mixed-line-ending scans with memchr2 ([#2391](https://github.com/j178/prek/pull/2391))
51
+
52
+ ### Bug fixes
53
+
54
+ - Honor filenames in builtin hook entry and args ([#2389](https://github.com/j178/prek/pull/2389))
55
+ - Match identify tags across filename parts ([#2399](https://github.com/j178/prek/pull/2399))
56
+ - Preserve hook output order with a shared pipe ([#2385](https://github.com/j178/prek/pull/2385))
57
+ - Preserve system download policy when applying metadata ([#2395](https://github.com/j178/prek/pull/2395))
58
+
59
+ ### Contributors
60
+
61
+ - @j178
62
+ - @chrisoro
63
+
64
+ ## 0.4.10
65
+
66
+ Released on 2026-07-16.
67
+
68
+ ### Enhancements
69
+
70
+ - Add PHP language support ([#2314](https://github.com/j178/prek/pull/2314))
71
+ - Add freeze option to update settings ([#2323](https://github.com/j178/prek/pull/2323))
72
+ - Add tag filters to update configuration ([#2354](https://github.com/j178/prek/pull/2354))
73
+ - Identify 'mts' and 'cts' as TypeScript files ([#2209](https://github.com/j178/prek/pull/2209))
74
+ - Publish Alpine Docker images ([#2352](https://github.com/j178/prek/pull/2352))
75
+ - Support builtin and meta in try-repo ([#2350](https://github.com/j178/prek/pull/2350))
76
+
77
+ ### Bug fixes
78
+
79
+ - Fix Python discovery order ([#2348](https://github.com/j178/prek/pull/2348))
80
+ - Fix Windows progress rendering ([#2328](https://github.com/j178/prek/pull/2328))
81
+ - Preserve configured repo values for updates ([#2324](https://github.com/j178/prek/pull/2324))
82
+ - Scope synthetic `GIT_WORK_TREE` to git commands ([#2356](https://github.com/j178/prek/pull/2356))
83
+
84
+ ### Documentation
85
+
86
+ - Expand common workflows guide ([#2351](https://github.com/j178/prek/pull/2351))
87
+
88
+ ### Contributors
89
+
90
+ - @j178
91
+
3
92
  ## 0.4.9
4
93
 
5
94
  Released on 2026-07-11.
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.9/prek-installer.sh | sh
61
+ curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.4.11/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.9/prek-installer.ps1 | iex"
71
+ powershell -ExecutionPolicy ByPass -c "irm https://github.com/j178/prek/releases/download/v0.4.11/prek-installer.ps1 | iex"
72
72
  ```
73
73
 
74
74
  <!-- --8<-- [end: windows-standalone-install] -->
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@j178/prek",
3
- "version": "0.4.9",
3
+ "version": "0.4.11",
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.9",
30
- "@j178/prek-darwin-x64": "0.4.9",
31
- "@j178/prek-linux-arm64-gnu": "0.4.9",
32
- "@j178/prek-linux-arm64-musl": "0.4.9",
33
- "@j178/prek-android-arm64": "0.4.9",
34
- "@j178/prek-linux-arm-gnueabihf": "0.4.9",
35
- "@j178/prek-linux-arm-musleabihf": "0.4.9",
36
- "@j178/prek-linux-armv7-musleabihf": "0.4.9",
37
- "@j178/prek-linux-ia32-gnu": "0.4.9",
38
- "@j178/prek-linux-ia32-musl": "0.4.9",
39
- "@j178/prek-linux-riscv64-gnu": "0.4.9",
40
- "@j178/prek-linux-s390x-gnu": "0.4.9",
41
- "@j178/prek-linux-x64-gnu": "0.4.9",
42
- "@j178/prek-linux-x64-musl": "0.4.9",
43
- "@j178/prek-win32-arm64-msvc": "0.4.9",
44
- "@j178/prek-win32-ia32-msvc": "0.4.9",
45
- "@j178/prek-win32-x64-msvc": "0.4.9"
29
+ "@j178/prek-darwin-arm64": "0.4.11",
30
+ "@j178/prek-darwin-x64": "0.4.11",
31
+ "@j178/prek-linux-arm64-gnu": "0.4.11",
32
+ "@j178/prek-linux-arm64-musl": "0.4.11",
33
+ "@j178/prek-android-arm64": "0.4.11",
34
+ "@j178/prek-linux-arm-gnueabihf": "0.4.11",
35
+ "@j178/prek-linux-arm-musleabihf": "0.4.11",
36
+ "@j178/prek-linux-armv7-musleabihf": "0.4.11",
37
+ "@j178/prek-linux-ia32-gnu": "0.4.11",
38
+ "@j178/prek-linux-ia32-musl": "0.4.11",
39
+ "@j178/prek-linux-riscv64-gnu": "0.4.11",
40
+ "@j178/prek-linux-s390x-gnu": "0.4.11",
41
+ "@j178/prek-linux-x64-gnu": "0.4.11",
42
+ "@j178/prek-linux-x64-musl": "0.4.11",
43
+ "@j178/prek-win32-arm64-msvc": "0.4.11",
44
+ "@j178/prek-win32-ia32-msvc": "0.4.11",
45
+ "@j178/prek-win32-x64-msvc": "0.4.11"
46
46
  }
47
47
  }