@j178/prek 0.4.3 → 0.4.5

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 +106 -0
  2. package/README.md +5 -8
  3. package/package.json +18 -18
package/CHANGELOG.md CHANGED
@@ -1,5 +1,111 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.5
4
+
5
+ Released on 2026-06-15.
6
+
7
+ ### ✨Highlights
8
+
9
+ 0.4.5 completes `prek`'s pre-commit language coverage. With R, Conda, Perl,
10
+ and coursier now supported, `prek` supports every language available in
11
+ pre-commit, plus `prek`-only modern languages such as Bun and Deno.
12
+
13
+ This is full feature parity with pre-commit. The last major compatibility gap
14
+ is closed, and `prek` is now on the path to 1.0.
15
+
16
+ ### 💚 Sponsorship
17
+
18
+ If `prek` saves time for you or your team, please consider sponsoring the
19
+ project on [GitHub Sponsors](https://github.com/sponsors/j178). It helps keep
20
+ new features, performance work, and maintenance moving.
21
+
22
+ ### Enhancements
23
+
24
+ - Add `Perl` language support ([#2201](https://github.com/j178/prek/pull/2201))
25
+ - Add `R` language support ([#2206](https://github.com/j178/prek/pull/2206))
26
+ - Add `Conda` language support ([#2203](https://github.com/j178/prek/pull/2203))
27
+ - Add `coursier` language support ([#2194](https://github.com/j178/prek/pull/2194))
28
+ - Add group filters to list ([#2152](https://github.com/j178/prek/pull/2152))
29
+ - Remove legacy repo path support ([#2150](https://github.com/j178/prek/pull/2150))
30
+ - Skip cloning fully filtered remote repos ([#2151](https://github.com/j178/prek/pull/2151))
31
+
32
+ ### Performance
33
+
34
+ - Avoid building JSON trees in syntax hooks ([#2156](https://github.com/j178/prek/pull/2156))
35
+ - Scan mixed line endings without line vector ([#2160](https://github.com/j178/prek/pull/2160))
36
+ - Skip file scan for always-run no-filename hooks ([#2155](https://github.com/j178/prek/pull/2155))
37
+ - Use fixed buffer for EOF scan ([#2163](https://github.com/j178/prek/pull/2163))
38
+ - Use fixed buffer for private key scan ([#2164](https://github.com/j178/prek/pull/2164))
39
+
40
+ ### Bug fixes
41
+
42
+ - Fix pretty-format-json CRLF handling ([#2210](https://github.com/j178/prek/pull/2210))
43
+ - Handle missing blobs in diff snapshots ([#2211](https://github.com/j178/prek/pull/2211))
44
+ - Ignore coursier channel from working repo ([#2202](https://github.com/j178/prek/pull/2202))
45
+
46
+ ### Contributors
47
+
48
+ - @j178
49
+
50
+ ## 0.4.4
51
+
52
+ Released on 2026-06-04.
53
+
54
+ ### Highlights
55
+
56
+ 0.4.4 makes `prek run` easier to watch and easier to slice.
57
+
58
+ Hook stream output now shows a small live preview under the running hook in the
59
+ progress UI. Long-running hooks no longer look stuck while they are producing
60
+ logs, and failed hooks are easier to diagnose because recent output is already
61
+ visible before the final result.
62
+
63
+ The new group selector lets a single config support different workflows. Tag
64
+ hooks with `groups`, then select or exclude those groups at run time:
65
+
66
+ ```yaml
67
+ repos:
68
+ - repo: local
69
+ hooks:
70
+ - id: format
71
+ name: Format Python
72
+ language: system
73
+ entry: ruff format
74
+ groups: [format, ci]
75
+
76
+ - id: lint
77
+ name: Lint Python
78
+ language: system
79
+ entry: ruff check
80
+ groups: [lint, ci]
81
+ ```
82
+
83
+ ```bash
84
+ prek run --all-files --group ci
85
+ prek run --all-files --no-group format
86
+ ```
87
+
88
+ This is useful when local development, CI, slow validation, or project-specific
89
+ checks need different hook sets without splitting the config.
90
+
91
+ ### Enhancements
92
+
93
+ - Add hook group filters to `prek run` ([#2141](https://github.com/j178/prek/pull/2141))
94
+ - Delay hook output preview rendering ([#2140](https://github.com/j178/prek/pull/2140))
95
+ - Stream hook output in progress UI ([#2136](https://github.com/j178/prek/pull/2136))
96
+
97
+ ### Bug fixes
98
+
99
+ - Fix intent-to-add stash restore ([#2143](https://github.com/j178/prek/pull/2143))
100
+
101
+ ### Documentation
102
+
103
+ - Document hook stage file input ([#2147](https://github.com/j178/prek/pull/2147))
104
+
105
+ ### Contributors
106
+
107
+ - @j178
108
+
3
109
  ## 0.4.3
4
110
 
5
111
  Released on 2026-05-27.
package/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
  [![prek](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/j178/prek/master/docs/assets/badge-v0.json)](https://github.com/j178/prek)
9
9
  [![PyPI version](https://img.shields.io/pypi/v/prek.svg)](https://pypi.python.org/pypi/prek)
10
10
  [![codecov](https://codecov.io/github/j178/prek/graph/badge.svg?token=MP6TY24F43)](https://codecov.io/github/j178/prek)
11
- [![PyPI Downloads](https://img.shields.io/pypi/dm/prek?logo=python)](https://pepy.tech/projects/prek)
11
+ [![PyPI Downloads](https://static.pepy.tech/personalized-badge/prek?period=monthly&units=INTERNATIONAL_SYSTEM&left_color=GREY&right_color=BLUE&left_text=downloads%2Fmonth)](https://pepy.tech/projects/prek)
12
12
  [![Discord](https://img.shields.io/discord/1403581202102878289?logo=discord)](https://discord.gg/3NRJUqJz86)
13
13
 
14
14
  </div>
@@ -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.3/prek-installer.sh | sh
63
+ curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.4.5/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.3/prek-installer.ps1 | iex"
73
+ powershell -ExecutionPolicy ByPass -c "irm https://github.com/j178/prek/releases/download/v0.4.5/prek-installer.ps1 | iex"
77
74
  ```
78
75
 
79
76
  <!-- --8<-- [end: windows-standalone-install] -->
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@j178/prek",
3
- "version": "0.4.3",
3
+ "version": "0.4.5",
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.3",
30
- "@j178/prek-darwin-x64": "0.4.3",
31
- "@j178/prek-linux-arm64-gnu": "0.4.3",
32
- "@j178/prek-linux-arm64-musl": "0.4.3",
33
- "@j178/prek-android-arm64": "0.4.3",
34
- "@j178/prek-linux-arm-gnueabihf": "0.4.3",
35
- "@j178/prek-linux-arm-musleabihf": "0.4.3",
36
- "@j178/prek-linux-armv7-musleabihf": "0.4.3",
37
- "@j178/prek-linux-ia32-gnu": "0.4.3",
38
- "@j178/prek-linux-ia32-musl": "0.4.3",
39
- "@j178/prek-linux-riscv64-gnu": "0.4.3",
40
- "@j178/prek-linux-s390x-gnu": "0.4.3",
41
- "@j178/prek-linux-x64-gnu": "0.4.3",
42
- "@j178/prek-linux-x64-musl": "0.4.3",
43
- "@j178/prek-win32-arm64-msvc": "0.4.3",
44
- "@j178/prek-win32-ia32-msvc": "0.4.3",
45
- "@j178/prek-win32-x64-msvc": "0.4.3"
29
+ "@j178/prek-darwin-arm64": "0.4.5",
30
+ "@j178/prek-darwin-x64": "0.4.5",
31
+ "@j178/prek-linux-arm64-gnu": "0.4.5",
32
+ "@j178/prek-linux-arm64-musl": "0.4.5",
33
+ "@j178/prek-android-arm64": "0.4.5",
34
+ "@j178/prek-linux-arm-gnueabihf": "0.4.5",
35
+ "@j178/prek-linux-arm-musleabihf": "0.4.5",
36
+ "@j178/prek-linux-armv7-musleabihf": "0.4.5",
37
+ "@j178/prek-linux-ia32-gnu": "0.4.5",
38
+ "@j178/prek-linux-ia32-musl": "0.4.5",
39
+ "@j178/prek-linux-riscv64-gnu": "0.4.5",
40
+ "@j178/prek-linux-s390x-gnu": "0.4.5",
41
+ "@j178/prek-linux-x64-gnu": "0.4.5",
42
+ "@j178/prek-linux-x64-musl": "0.4.5",
43
+ "@j178/prek-win32-arm64-msvc": "0.4.5",
44
+ "@j178/prek-win32-ia32-msvc": "0.4.5",
45
+ "@j178/prek-win32-x64-msvc": "0.4.5"
46
46
  }
47
47
  }