@j178/prek 0.3.8 → 0.3.9

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.
package/CHANGELOG.md CHANGED
@@ -1,11 +1,69 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.9
4
+
5
+ Released on 2026-04-13.
6
+
7
+ ### Highlight
8
+
9
+ `prek auto-update` is now stricter about pinned revisions and more useful in CI.
10
+ It now keeps `rev` and `# frozen:` comments in sync, can detect
11
+ [impostor commits](https://docs.zizmor.sh/audits/#impostor-commit) when validating pinned SHAs,
12
+ and lets you use `prek auto-update --check` to fail on both available updates and frozen-ref
13
+ mismatches without rewriting the config.
14
+
15
+ Examples:
16
+
17
+ ```console
18
+ $ prek auto-update
19
+ # updates revs and repairs stale `# frozen:` comments
20
+
21
+ $ prek auto-update --freeze
22
+ # writes frozen SHAs with matching `# frozen: <tag>` comments
23
+
24
+ $ prek auto-update --check
25
+ # exits non-zero when updates are available, a `# frozen:` comment is stale,
26
+ # or a pinned SHA does not belong to the fetched upstream refs
27
+ ```
28
+
29
+ ### Enhancements
30
+
31
+ - Check and sync frozen comments during auto-update ([#1896](https://github.com/j178/prek/pull/1896))
32
+ - Handle impostor commits in auto-update ([#1919](https://github.com/j178/prek/pull/1919))
33
+ - Add experimental `language: dotnet` support ([#1871](https://github.com/j178/prek/pull/1871))
34
+ - Honor repo and worktree `core.hooksPath` ([#1892](https://github.com/j178/prek/pull/1892))
35
+ - Add `prek run --no-fail-fast` to override config file ([#1859](https://github.com/j178/prek/pull/1859))
36
+ - Add `forbid-new-submodules` as builtin hook ([#1853](https://github.com/j178/prek/pull/1853))
37
+ - Clean stale patch files in `cache gc` ([#1877](https://github.com/j178/prek/pull/1877))
38
+ - Display auto-update results by config entry ([#1922](https://github.com/j178/prek/pull/1922))
39
+ - Restrict patch directory permissions ([#1876](https://github.com/j178/prek/pull/1876))
40
+ - Show tag names in `auto-update --freeze` output ([#1916](https://github.com/j178/prek/pull/1916))
41
+ - Use a bitset for hook stages ([#1860](https://github.com/j178/prek/pull/1860))
42
+
43
+ ### Bug fixes
44
+
45
+ - Canonicalize CWD and GIT_ROOT paths ([#1878](https://github.com/j178/prek/pull/1878))
46
+ - Ensure quotes are added for non-string revisions in `auto-update` ([#1936](https://github.com/j178/prek/pull/1936))
47
+
48
+ ### Documentation
49
+
50
+ - Update docs for case of hooks modifying files with a non-zero exit code ([#1879](https://github.com/j178/prek/pull/1879))
51
+
52
+ ### Contributors
53
+
54
+ - @RicardoVercetti
55
+ - @nathanjmcdougall
56
+ - @renovate
57
+ - @sadjow
58
+ - @j178
59
+
3
60
  ## 0.3.8
4
61
 
5
62
  Released on 2026-03-23.
6
63
 
7
64
  ### Enhancements
8
65
 
66
+ - Add experimental `language: deno` support ([#1516](https://github.com/j178/prek/pull/1516))
9
67
  - Add `pretty-format-json` as builtin hook ([#915](https://github.com/j178/prek/pull/915))
10
68
  - Add `check-vcs-permalinks` as builtin hook ([#1842](https://github.com/j178/prek/pull/1842))
11
69
  - Add `check-illegal-windows-names` as builtin hook ([#1841](https://github.com/j178/prek/pull/1841))
@@ -24,6 +82,7 @@ Released on 2026-03-23.
24
82
  ### Contributors
25
83
 
26
84
  - @j178
85
+ - @shaanmajid
27
86
  - @mvanhorn
28
87
  - @feliblo
29
88
  - @Tiryoh
@@ -672,7 +731,7 @@ Want to show your project runs on prek? Add our README badge to your docs or rep
672
731
  - Add `prek cache size` command ([#1183](https://github.com/j178/prek/pull/1183))
673
732
  - Support orphan projects ([#1129](https://github.com/j178/prek/pull/1129))
674
733
  - Fallback to `manual` stage for hooks specified directly in command line ([#1185](https://github.com/j178/prek/pull/1185))
675
- - Make go module cache read-writeable (thus deletable) ([#1164](https://github.com/j178/prek/pull/1164))
734
+ - Make go module cache read-writable (thus deletable) ([#1164](https://github.com/j178/prek/pull/1164))
676
735
  - Provide more information when validating configs and manifests ([#1182](https://github.com/j178/prek/pull/1182))
677
736
  - Improve error message for invalid number of arguments to hook-impl ([#1196](https://github.com/j178/prek/pull/1196))
678
737
 
package/README.md CHANGED
@@ -1,7 +1,11 @@
1
1
  <div align="center">
2
2
 
3
+ <h1>
3
4
  <img width="180" alt="prek" src="https://raw.githubusercontent.com/j178/prek/master/docs/assets/logo.webp" />
4
- <h1>prek</h1>
5
+
6
+ prek
7
+
8
+ </h1>
5
9
 
6
10
  [![prek](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/j178/prek/master/docs/assets/badge-v0.json)](https://github.com/j178/prek)
7
11
  [![PyPI version](https://img.shields.io/pypi/v/prek.svg)](https://pypi.python.org/pypi/prek)
@@ -61,7 +65,7 @@ On Linux and macOS:
61
65
  <!-- --8<-- [start: linux-standalone-install] -->
62
66
 
63
67
  ```bash
64
- curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.3.8/prek-installer.sh | sh
68
+ curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.3.9/prek-installer.sh | sh
65
69
  ```
66
70
 
67
71
  <!-- --8<-- [end: linux-standalone-install] -->
@@ -71,7 +75,7 @@ On Windows:
71
75
  <!-- --8<-- [start: windows-standalone-install] -->
72
76
 
73
77
  ```powershell
74
- powershell -ExecutionPolicy ByPass -c "irm https://github.com/j178/prek/releases/download/v0.3.8/prek-installer.ps1 | iex"
78
+ powershell -ExecutionPolicy ByPass -c "irm https://github.com/j178/prek/releases/download/v0.3.9/prek-installer.ps1 | iex"
75
79
  ```
76
80
 
77
81
  <!-- --8<-- [end: windows-standalone-install] -->
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "artifactDownloadUrls": [
3
- "https://github.com/j178/prek/releases/download/v0.3.8"
3
+ "https://github.com/j178/prek/releases/download/v0.3.9"
4
4
  ],
5
5
  "author": "j178 <hi@j178.dev>",
6
6
  "bin": {
@@ -13,7 +13,7 @@
13
13
  "detect-libc": "^2.1.2",
14
14
  "rimraf": "^6.1.3"
15
15
  },
16
- "description": "Better `pre-commit`, re-engineered in Rust",
16
+ "description": "A Git hook manager written in Rust, designed as a drop-in alternative to pre-commit.",
17
17
  "devDependencies": {
18
18
  "prettier": "^3.8.1"
19
19
  },
@@ -212,7 +212,7 @@
212
212
  "zipExt": ".tar.gz"
213
213
  }
214
214
  },
215
- "version": "0.3.8",
215
+ "version": "0.3.9",
216
216
  "volta": {
217
217
  "node": "18.14.1",
218
218
  "npm": "9.5.0"