@j178/prek 0.4.13 → 0.5.0

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 +100 -0
  2. package/README.md +3 -3
  3. package/package.json +18 -18
package/CHANGELOG.md CHANGED
@@ -1,5 +1,105 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.5.0
4
+
5
+ Released on 2026-08-27.
6
+
7
+ ### Highlights
8
+
9
+ #### Choose where hook toolchains come from
10
+
11
+ `language_version` now accepts a source `preference` alongside the version
12
+ `request`, letting you control where prek looks for a compatible toolchain when
13
+ it creates a hook environment. Use `managed` (the default) or `system` to choose
14
+ which source prek tries first while still allowing fallback and downloads. Use
15
+ `only-managed` or `only-system` to require one source.
16
+
17
+ For example, this local Ruff hook requires a Python 3.12 toolchain managed by
18
+ prek:
19
+
20
+ ```yaml
21
+ repos:
22
+ - repo: local
23
+ hooks:
24
+ - id: ruff
25
+ name: ruff
26
+ language: python
27
+ entry: ruff check
28
+ additional_dependencies: [ruff]
29
+ language_version:
30
+ request: "3.12"
31
+ preference: only-managed
32
+ ```
33
+
34
+ With `only-managed`, prek reuses a compatible toolchain from its managed store
35
+ or downloads one when needed. It never falls back to Python from `PATH`, an OS
36
+ package manager, or a version manager, so toolchain selection does not depend on
37
+ the developer or CI machine's external environment.
38
+
39
+ Existing scalar values such as `language_version: "3.12"` continue to work. See
40
+ [toolchain management and `language_version`](https://prek.j178.dev/0.5.0/languages/#toolchain-management-and-language_version)
41
+ for the full source-selection behavior. ([#2613](https://github.com/j178/prek/pull/2613))
42
+
43
+ ### Breaking changes
44
+
45
+ The breaking changes in this release are mostly small cleanups, and most users should not be affected.
46
+
47
+ - Group names can no longer start with `@`. This prefix is now reserved for special group selectors such as the new `@ungrouped` selector. ([#2617](https://github.com/j178/prek/pull/2617))
48
+ - `PREK_MAX_CONCURRENCY` has been removed. Use `PREK_CONCURRENT_HOOKS` and `PREK_CONCURRENT_BATCHES` to control hook and per-hook batch concurrency separately. ([#2620](https://github.com/j178/prek/pull/2620))
49
+ - The top-level `prek init-template-dir` command has been removed. Use `prek util init-template-dir`, or `prek init-templatedir` for drop-in compatibility with `pre-commit`. ([#2623](https://github.com/j178/prek/pull/2623))
50
+ - `prek auto-update` has been removed. Use `prek update`, or `prek autoupdate` for drop-in compatibility with `pre-commit`. ([#2619](https://github.com/j178/prek/pull/2619))
51
+
52
+ ### Enhancements
53
+
54
+ - Add configurable toolchain source preferences ([#2613](https://github.com/j178/prek/pull/2613))
55
+ - Allow explicit `language: python` to opt out of fast-path hooks ([#2608](https://github.com/j178/prek/pull/2608))
56
+ - Group `run` and `update` options in CLI help ([#2629](https://github.com/j178/prek/pull/2629))
57
+ - Preserve terminal theme contrast for status labels ([#2592](https://github.com/j178/prek/pull/2592))
58
+ - Add `@ungrouped` group selector ([#2617](https://github.com/j178/prek/pull/2617))
59
+ - Retry uv installation with static musl binary ([#2600](https://github.com/j178/prek/pull/2600))
60
+ - Support `{hook_repo}` placeholder in hook `entry` ([#2602](https://github.com/j178/prek/pull/2602))
61
+
62
+ ### Bug fixes
63
+
64
+ - Expose the git work tree to hooks running outside the git root ([#2579](https://github.com/j178/prek/pull/2579))
65
+ - Isolate local hook environment installation ([#2615](https://github.com/j178/prek/pull/2615))
66
+ - Preserve hook config deserialization error locations ([#2573](https://github.com/j178/prek/pull/2573))
67
+ - Resolve hook log files from their config directory ([#2580](https://github.com/j178/prek/pull/2580))
68
+ - Track explicit config paths as absolute paths ([#2574](https://github.com/j178/prek/pull/2574))
69
+
70
+ ### Documentation
71
+
72
+ - Document prek run architecture ([#2630](https://github.com/j178/prek/pull/2630))
73
+ - Publish versioned documentation ([#2626](https://github.com/j178/prek/pull/2626))
74
+
75
+ ### Contributors
76
+
77
+ - @jeromeheissler
78
+ - @gurgeous
79
+ - @j178
80
+
81
+ ## 0.4.14
82
+
83
+ Released on 2026-08-17.
84
+
85
+ ### Enhancements
86
+
87
+ - Support check-yaml unsafe mode ([#2546](https://github.com/j178/prek/pull/2546))
88
+
89
+ ### Performance
90
+
91
+ - Reuse allocations in common filters ([#2548](https://github.com/j178/prek/pull/2548))
92
+
93
+ ### Bug fixes
94
+
95
+ - Accept non-finite floats in check-yaml ([#2545](https://github.com/j178/prek/pull/2545))
96
+ - Allow comment-heavy YAML in check-yaml ([#2554](https://github.com/j178/prek/pull/2554))
97
+ - Sanitize captured terminal output before replay ([#2552](https://github.com/j178/prek/pull/2552))
98
+
99
+ ### Contributors
100
+
101
+ - @j178
102
+
3
103
  ## 0.4.13
4
104
 
5
105
  Released on 2026-08-10.
package/README.md CHANGED
@@ -59,7 +59,7 @@ On Linux and macOS:
59
59
  <!-- --8<-- [start: linux-standalone-install] -->
60
60
 
61
61
  ```bash
62
- curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.4.13/prek-installer.sh | sh
62
+ curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.5.0/prek-installer.sh | sh
63
63
  ```
64
64
 
65
65
  <!-- --8<-- [end: linux-standalone-install] -->
@@ -69,7 +69,7 @@ On Windows:
69
69
  <!-- --8<-- [start: windows-standalone-install] -->
70
70
 
71
71
  ```powershell
72
- powershell -ExecutionPolicy ByPass -c "irm https://github.com/j178/prek/releases/download/v0.4.13/prek-installer.ps1 | iex"
72
+ powershell -ExecutionPolicy ByPass -c "irm https://github.com/j178/prek/releases/download/v0.5.0/prek-installer.ps1 | iex"
73
73
  ```
74
74
 
75
75
  <!-- --8<-- [end: windows-standalone-install] -->
@@ -152,7 +152,7 @@ cargo binstall prek
152
152
 
153
153
  <!-- --8<-- [start: cargo-install] -->
154
154
 
155
- Build from source using Cargo (Rust 1.95+ is required):
155
+ Build from source using Cargo (Rust 1.96+ is required):
156
156
 
157
157
  ```bash
158
158
  cargo install --locked prek
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@j178/prek",
3
- "version": "0.4.13",
3
+ "version": "0.5.0",
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.13",
30
- "@j178/prek-darwin-x64": "0.4.13",
31
- "@j178/prek-linux-arm64-gnu": "0.4.13",
32
- "@j178/prek-linux-arm64-musl": "0.4.13",
33
- "@j178/prek-android-arm64": "0.4.13",
34
- "@j178/prek-linux-arm-gnueabihf": "0.4.13",
35
- "@j178/prek-linux-arm-musleabihf": "0.4.13",
36
- "@j178/prek-linux-armv7-musleabihf": "0.4.13",
37
- "@j178/prek-linux-ia32-gnu": "0.4.13",
38
- "@j178/prek-linux-ia32-musl": "0.4.13",
39
- "@j178/prek-linux-riscv64-gnu": "0.4.13",
40
- "@j178/prek-linux-s390x-gnu": "0.4.13",
41
- "@j178/prek-linux-x64-gnu": "0.4.13",
42
- "@j178/prek-linux-x64-musl": "0.4.13",
43
- "@j178/prek-win32-arm64-msvc": "0.4.13",
44
- "@j178/prek-win32-ia32-msvc": "0.4.13",
45
- "@j178/prek-win32-x64-msvc": "0.4.13"
29
+ "@j178/prek-darwin-arm64": "0.5.0",
30
+ "@j178/prek-darwin-x64": "0.5.0",
31
+ "@j178/prek-linux-arm64-gnu": "0.5.0",
32
+ "@j178/prek-linux-arm64-musl": "0.5.0",
33
+ "@j178/prek-android-arm64": "0.5.0",
34
+ "@j178/prek-linux-arm-gnueabihf": "0.5.0",
35
+ "@j178/prek-linux-arm-musleabihf": "0.5.0",
36
+ "@j178/prek-linux-armv7-musleabihf": "0.5.0",
37
+ "@j178/prek-linux-ia32-gnu": "0.5.0",
38
+ "@j178/prek-linux-ia32-musl": "0.5.0",
39
+ "@j178/prek-linux-riscv64-gnu": "0.5.0",
40
+ "@j178/prek-linux-s390x-gnu": "0.5.0",
41
+ "@j178/prek-linux-x64-gnu": "0.5.0",
42
+ "@j178/prek-linux-x64-musl": "0.5.0",
43
+ "@j178/prek-win32-arm64-msvc": "0.5.0",
44
+ "@j178/prek-win32-ia32-msvc": "0.5.0",
45
+ "@j178/prek-win32-x64-msvc": "0.5.0"
46
46
  }
47
47
  }