@j178/prek 0.4.4 → 0.4.6

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 +80 -0
  2. package/README.md +6 -8
  3. package/package.json +18 -18
package/CHANGELOG.md CHANGED
@@ -1,5 +1,85 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.6
4
+
5
+ Released on 2026-07-01.
6
+
7
+ ### Enhancements
8
+
9
+ - Verify managed toolchain downloads before installation ([#2229](https://github.com/j178/prek/pull/2229))
10
+ - Add `PREK_DOCKER_NO_INIT` to opt-out Docker `--init` ([#2242](https://github.com/j178/prek/pull/2242))
11
+ - Improve subprocess error messages ([#2257](https://github.com/j178/prek/pull/2257))
12
+ - Split run concurrency knobs: `PREK_CONCURRENT_HOOKS` and `PREK_CONCURRENT_BATCHES` ([#2276](https://github.com/j178/prek/pull/2276))
13
+
14
+ ### Performance
15
+
16
+ - Avoid allocating markdown extensions per file ([#2245](https://github.com/j178/prek/pull/2245))
17
+ - Avoid unchanged config tracking writes ([#2247](https://github.com/j178/prek/pull/2247))
18
+ - Delay trailing whitespace output buffer ([#2244](https://github.com/j178/prek/pull/2244))
19
+ - Prefilter VCS permalink lines ([#2253](https://github.com/j178/prek/pull/2253))
20
+ - Skip unnecessary submodule updates during hook repo clone ([#2255](https://github.com/j178/prek/pull/2255))
21
+
22
+ ### Documentation
23
+
24
+ - Document `language_version` inferring for Python and Go ([#2241](https://github.com/j178/prek/pull/2241))
25
+
26
+ ### Other changes
27
+
28
+ - Refactor env var handling ([#2277](https://github.com/j178/prek/pull/2277))
29
+ - Use `serde-saphyr` for YAML string quoting ([#2228](https://github.com/j178/prek/pull/2228))
30
+
31
+ ### Contributors
32
+
33
+ - @shaanmajid
34
+ - @j178
35
+
36
+ ## 0.4.5
37
+
38
+ Released on 2026-06-15.
39
+
40
+ ### ✨Highlights
41
+
42
+ 0.4.5 completes `prek`'s pre-commit language coverage. With R, Conda, Perl,
43
+ and coursier now supported, `prek` supports every language available in
44
+ pre-commit, plus `prek`-only modern languages such as Bun and Deno.
45
+
46
+ This is full feature parity with pre-commit. The last major compatibility gap
47
+ is closed, and `prek` is now on the path to 1.0.
48
+
49
+ ### 💚 Sponsorship
50
+
51
+ If `prek` saves time for you or your team, please consider sponsoring the
52
+ project on [GitHub Sponsors](https://github.com/sponsors/j178). It helps keep
53
+ new features, performance work, and maintenance moving.
54
+
55
+ ### Enhancements
56
+
57
+ - Add `Perl` language support ([#2201](https://github.com/j178/prek/pull/2201))
58
+ - Add `R` language support ([#2206](https://github.com/j178/prek/pull/2206))
59
+ - Add `Conda` language support ([#2203](https://github.com/j178/prek/pull/2203))
60
+ - Add `coursier` language support ([#2194](https://github.com/j178/prek/pull/2194))
61
+ - Add group filters to list ([#2152](https://github.com/j178/prek/pull/2152))
62
+ - Remove legacy repo path support ([#2150](https://github.com/j178/prek/pull/2150))
63
+ - Skip cloning fully filtered remote repos ([#2151](https://github.com/j178/prek/pull/2151))
64
+
65
+ ### Performance
66
+
67
+ - Avoid building JSON trees in syntax hooks ([#2156](https://github.com/j178/prek/pull/2156))
68
+ - Scan mixed line endings without line vector ([#2160](https://github.com/j178/prek/pull/2160))
69
+ - Skip file scan for always-run no-filename hooks ([#2155](https://github.com/j178/prek/pull/2155))
70
+ - Use fixed buffer for EOF scan ([#2163](https://github.com/j178/prek/pull/2163))
71
+ - Use fixed buffer for private key scan ([#2164](https://github.com/j178/prek/pull/2164))
72
+
73
+ ### Bug fixes
74
+
75
+ - Fix pretty-format-json CRLF handling ([#2210](https://github.com/j178/prek/pull/2210))
76
+ - Handle missing blobs in diff snapshots ([#2211](https://github.com/j178/prek/pull/2211))
77
+ - Ignore coursier channel from working repo ([#2202](https://github.com/j178/prek/pull/2202))
78
+
79
+ ### Contributors
80
+
81
+ - @j178
82
+
3
83
  ## 0.4.4
4
84
 
5
85
  Released on 2026-06-04.
package/README.md CHANGED
@@ -18,16 +18,13 @@
18
18
  [pre-commit](https://pre-commit.com/) is a framework to run hooks written in many languages, and it manages the
19
19
  language toolchain and dependencies for running the hooks.
20
20
 
21
- *prek* is a reimagined version of pre-commit, built in Rust.
21
+ prek is a reimagined version of pre-commit, built in Rust.
22
22
  It is designed to be a faster, dependency-free and drop-in alternative for it,
23
23
  while also providing some additional long-requested features.
24
24
 
25
25
  <!-- --8<-- [end: description] -->
26
26
 
27
- > [!NOTE]
28
- > Although prek is pretty new, it’s already powering real‑world projects like [CPython](https://github.com/python/cpython), [Apache Airflow](https://github.com/apache/airflow), [FastAPI](https://github.com/fastapi/fastapi), and more projects are picking it up—see [Who is using prek?](#who-is-using-prek). If you’re looking for an alternative to `pre-commit`, please give it a try—we’d love your feedback!
29
- >
30
- > Please note that some languages are not yet supported for full drop‑in parity with `pre-commit`. See [Language Support](https://prek.j178.dev/languages/) for current status.
27
+ Although prek is pretty new, it’s already powering real‑world projects like [CPython](https://github.com/python/cpython), [Apache Airflow](https://github.com/apache/airflow), [FastAPI](https://github.com/fastapi/fastapi), and more projects are picking it up—see [Who is using prek?](#who-is-using-prek). If you’re looking for an alternative to `pre-commit`, please give it a try—we’d love your feedback!
31
28
 
32
29
  <!-- --8<-- [start:features] -->
33
30
 
@@ -63,7 +60,7 @@ On Linux and macOS:
63
60
  <!-- --8<-- [start: linux-standalone-install] -->
64
61
 
65
62
  ```bash
66
- curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.4.4/prek-installer.sh | sh
63
+ curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.4.6/prek-installer.sh | sh
67
64
  ```
68
65
 
69
66
  <!-- --8<-- [end: linux-standalone-install] -->
@@ -73,7 +70,7 @@ On Windows:
73
70
  <!-- --8<-- [start: windows-standalone-install] -->
74
71
 
75
72
  ```powershell
76
- powershell -ExecutionPolicy ByPass -c "irm https://github.com/j178/prek/releases/download/v0.4.4/prek-installer.ps1 | iex"
73
+ powershell -ExecutionPolicy ByPass -c "irm https://github.com/j178/prek/releases/download/v0.4.6/prek-installer.ps1 | iex"
77
74
  ```
78
75
 
79
76
  <!-- --8<-- [end: windows-standalone-install] -->
@@ -305,7 +302,7 @@ jobs:
305
302
  prek:
306
303
  runs-on: ubuntu-latest
307
304
  steps:
308
- - uses: actions/checkout@v6
305
+ - uses: actions/checkout@v7
309
306
  - uses: j178/prek-action@v2
310
307
  ```
311
308
 
@@ -373,6 +370,7 @@ prek self update
373
370
 
374
371
  ### prek includes security-focused safeguards
375
372
 
373
+ - For supported managed toolchain downloads, `prek` verifies the downloaded archive or installer checksum before extracting or installing it, helping ensure the integrity of downloaded toolchains.
376
374
  - [`prek auto-update`](https://prek.j178.dev/reference/cli/#prek-auto-update) supports `--cooldown-days`, so you can keep newly published releases on hold for a cooling-off period before adopting them.
377
375
  - [`prek auto-update`](https://prek.j178.dev/reference/cli/#prek-auto-update) validates pinned SHA revisions against the fetched upstream refs, including impostor-commit detection, and keeps `# frozen:` comments in sync with the configured commit.
378
376
  - [`prek auto-update --check`](https://prek.j178.dev/reference/cli/#prek-auto-update--check) is useful in CI when you want updates or frozen-reference mismatches to fail the job without rewriting the config.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@j178/prek",
3
- "version": "0.4.4",
3
+ "version": "0.4.6",
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.4",
30
- "@j178/prek-darwin-x64": "0.4.4",
31
- "@j178/prek-linux-arm64-gnu": "0.4.4",
32
- "@j178/prek-linux-arm64-musl": "0.4.4",
33
- "@j178/prek-android-arm64": "0.4.4",
34
- "@j178/prek-linux-arm-gnueabihf": "0.4.4",
35
- "@j178/prek-linux-arm-musleabihf": "0.4.4",
36
- "@j178/prek-linux-armv7-musleabihf": "0.4.4",
37
- "@j178/prek-linux-ia32-gnu": "0.4.4",
38
- "@j178/prek-linux-ia32-musl": "0.4.4",
39
- "@j178/prek-linux-riscv64-gnu": "0.4.4",
40
- "@j178/prek-linux-s390x-gnu": "0.4.4",
41
- "@j178/prek-linux-x64-gnu": "0.4.4",
42
- "@j178/prek-linux-x64-musl": "0.4.4",
43
- "@j178/prek-win32-arm64-msvc": "0.4.4",
44
- "@j178/prek-win32-ia32-msvc": "0.4.4",
45
- "@j178/prek-win32-x64-msvc": "0.4.4"
29
+ "@j178/prek-darwin-arm64": "0.4.6",
30
+ "@j178/prek-darwin-x64": "0.4.6",
31
+ "@j178/prek-linux-arm64-gnu": "0.4.6",
32
+ "@j178/prek-linux-arm64-musl": "0.4.6",
33
+ "@j178/prek-android-arm64": "0.4.6",
34
+ "@j178/prek-linux-arm-gnueabihf": "0.4.6",
35
+ "@j178/prek-linux-arm-musleabihf": "0.4.6",
36
+ "@j178/prek-linux-armv7-musleabihf": "0.4.6",
37
+ "@j178/prek-linux-ia32-gnu": "0.4.6",
38
+ "@j178/prek-linux-ia32-musl": "0.4.6",
39
+ "@j178/prek-linux-riscv64-gnu": "0.4.6",
40
+ "@j178/prek-linux-s390x-gnu": "0.4.6",
41
+ "@j178/prek-linux-x64-gnu": "0.4.6",
42
+ "@j178/prek-linux-x64-musl": "0.4.6",
43
+ "@j178/prek-win32-arm64-msvc": "0.4.6",
44
+ "@j178/prek-win32-ia32-msvc": "0.4.6",
45
+ "@j178/prek-win32-x64-msvc": "0.4.6"
46
46
  }
47
47
  }