@j178/prek 0.5.3 → 0.5.4
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 +54 -3
- package/README.md +7 -7
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,56 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.5.4
|
|
4
|
+
|
|
5
|
+
Released on 2026-09-28.
|
|
6
|
+
|
|
7
|
+
### Highlights
|
|
8
|
+
|
|
9
|
+
#### Faster builtin hooks
|
|
10
|
+
|
|
11
|
+
In our end-to-end benchmark, prek is about 38% faster than 0.5.3, with some builtin
|
|
12
|
+
hooks up to 273% faster (`check-yaml`: 273%, `check-json`: 80%,
|
|
13
|
+
`check-merge-conflict`: 71%).
|
|
14
|
+
|
|
15
|
+
### Enhancements
|
|
16
|
+
|
|
17
|
+
- Add `include_deleted` to allow hooks to include deleted files ([#2733](https://github.com/j178/prek/pull/2733))
|
|
18
|
+
- Add `--check` and simplify `end-of-file-fixer` ([#2764](https://github.com/j178/prek/pull/2764))
|
|
19
|
+
- Add `--check` to `file-contents-sorter` ([#2765](https://github.com/j178/prek/pull/2765))
|
|
20
|
+
- Add `--check` to `requirements-txt-fixer` ([#2766](https://github.com/j178/prek/pull/2766))
|
|
21
|
+
- Add `--check` to `trailing-whitespace` ([#2763](https://github.com/j178/prek/pull/2763))
|
|
22
|
+
- Expose and document `prek util generate-shell-completion` ([#2727](https://github.com/j178/prek/pull/2727))
|
|
23
|
+
- Support `hide_status` in project and user configuration ([#2760](https://github.com/j178/prek/pull/2760))
|
|
24
|
+
- Support look-around regex in builtin pattern hooks ([#2732](https://github.com/j178/prek/pull/2732))
|
|
25
|
+
|
|
26
|
+
### Performance
|
|
27
|
+
|
|
28
|
+
- Cache the resolved Git executable on macOS ([#2726](https://github.com/j178/prek/pull/2726))
|
|
29
|
+
- Combine and cache Git repository path queries ([#2724](https://github.com/j178/prek/pull/2724))
|
|
30
|
+
- Optimize common builtin hook execution ([#2768](https://github.com/j178/prek/pull/2768))
|
|
31
|
+
- Optimize scanning in `mixed-line-ending` and `trailing-whitespace` ([#2769](https://github.com/j178/prek/pull/2769))
|
|
32
|
+
- Scan `check-merge-conflict` files in fixed-size blocks ([#2781](https://github.com/j178/prek/pull/2781))
|
|
33
|
+
- Use SIMD UTF-8 validation in `check-json`, `check-toml`, and `check-yaml` ([#2770](https://github.com/j178/prek/pull/2770))
|
|
34
|
+
|
|
35
|
+
### Bug fixes
|
|
36
|
+
|
|
37
|
+
- Retry transient rename failures on Windows ([#2756](https://github.com/j178/prek/pull/2756))
|
|
38
|
+
- Use PATH to resolve prek in completion scripts ([#2719](https://github.com/j178/prek/pull/2719))
|
|
39
|
+
|
|
40
|
+
### Documentation
|
|
41
|
+
|
|
42
|
+
- Clarify the flow and scope of usage guides ([#2710](https://github.com/j178/prek/pull/2710))
|
|
43
|
+
- Reorganize usage guides and reference documentation ([#2709](https://github.com/j178/prek/pull/2709))
|
|
44
|
+
|
|
45
|
+
### Other changes
|
|
46
|
+
|
|
47
|
+
- Sync latest identify tags ([#2762](https://github.com/j178/prek/pull/2762))
|
|
48
|
+
|
|
49
|
+
### Contributors
|
|
50
|
+
|
|
51
|
+
- @github-actions
|
|
52
|
+
- @j178
|
|
53
|
+
|
|
3
54
|
## 0.5.3
|
|
4
55
|
|
|
5
56
|
Released on 2026-09-13.
|
|
@@ -1578,7 +1629,7 @@ In this release, prek adds a new special repo type `repo: builtin` that lets you
|
|
|
1578
1629
|
It basically gives you another way to use the existing built‑in fast path for pre‑commit‑hooks, but without needing to point to an external repo.
|
|
1579
1630
|
Since prek doesn’t have to clone anything or set up a virtual environment, `repo: builtin` hooks work even in air‑gapped environments.
|
|
1580
1631
|
|
|
1581
|
-
For more details, see: https://prek.j178.dev/
|
|
1632
|
+
For more details, see: https://prek.j178.dev/built-in-hooks/
|
|
1582
1633
|
|
|
1583
1634
|
### Enhancements
|
|
1584
1635
|
|
|
@@ -2002,7 +2053,7 @@ This is a huge milestone release that introduces **Workspace Mode** — first‑
|
|
|
2002
2053
|
It auto‑discovers nested projects, runs hooks in project scope, and provides flexible selectors to target specific projects and hooks.
|
|
2003
2054
|
This makes `prek` a powerful tool for managing pre-commit hooks in complex repository structures.
|
|
2004
2055
|
|
|
2005
|
-
For more details, see [Workspace Mode](https://prek.j178.dev/
|
|
2056
|
+
For more details, see [Workspace Mode](https://prek.j178.dev/monorepos/). If you encounter any issues, please report them at [Issues](https://github.com/j178/prek/issues).
|
|
2006
2057
|
|
|
2007
2058
|
**Note**: If you ran `prek install` in a repo before, you gonna need to run `prek install` again to replace the old git hook scripts for the workspace mode to work.
|
|
2008
2059
|
|
|
@@ -2111,7 +2162,7 @@ This is a huge milestone release that introduces **Workspace Mode** — first‑
|
|
|
2111
2162
|
|
|
2112
2163
|
**Note**: If you ran `prek install` in a repo before, you gonna need to run `prek install` again to replace the old git hook scripts for the workspace mode to work.
|
|
2113
2164
|
|
|
2114
|
-
For more details, see [Workspace Mode](https://prek.j178.dev/
|
|
2165
|
+
For more details, see [Workspace Mode](https://prek.j178.dev/monorepos/). If you encounter any issues, please report them at [Issues](https://github.com/j178/prek/issues).
|
|
2115
2166
|
|
|
2116
2167
|
Special thanks to @potiuk for all the help and feedback in designing and testing this feature!
|
|
2117
2168
|
|
package/README.md
CHANGED
|
@@ -40,10 +40,10 @@ Although prek is pretty new, it’s already powering real‑world projects like
|
|
|
40
40
|
- A single binary with no dependencies, does not require Python or any other runtime.
|
|
41
41
|
- [Faster](https://prek.j178.dev/benchmark/) than `pre-commit` and more efficient in disk space usage.
|
|
42
42
|
- Fully compatible with the original pre-commit configurations and hooks.
|
|
43
|
-
- Built-in support for monorepos (i.e. [workspace mode](https://prek.j178.dev/
|
|
43
|
+
- Built-in support for monorepos (i.e. [workspace mode](https://prek.j178.dev/monorepos/)), including concurrent execution for independent same-depth projects.
|
|
44
44
|
- Integration with [`uv`](https://github.com/astral-sh/uv) for managing Python virtual environments and dependencies.
|
|
45
45
|
- Improved toolchain installations for Python, Node.js, Bun, Go, Rust and Ruby, shared between hooks.
|
|
46
|
-
- [Built-in](https://prek.j178.dev/
|
|
46
|
+
- [Built-in](https://prek.j178.dev/built-in-hooks/) Rust-native implementation of some common hooks.
|
|
47
47
|
|
|
48
48
|
<!-- --8<-- [end:features] -->
|
|
49
49
|
|
|
@@ -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.5.
|
|
62
|
+
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.5.4/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.5.
|
|
72
|
+
powershell -ExecutionPolicy ByPass -c "irm https://github.com/j178/prek/releases/download/v0.5.4/prek-installer.ps1 | iex"
|
|
73
73
|
```
|
|
74
74
|
|
|
75
75
|
<!-- --8<-- [end: windows-standalone-install] -->
|
|
@@ -353,15 +353,15 @@ prek self update
|
|
|
353
353
|
- Hook environments and toolchains are shared across hooks instead of being duplicated per repository, which reduces both install time and cache size.
|
|
354
354
|
- Repository fetches and independent hook environment setup run in parallel, hooks can run concurrently by [`priority`](https://prek.j178.dev/reference/configuration/#priority) using reusable [aliases](https://prek.j178.dev/reference/configuration/#priorities), and independent workspace projects at the same directory depth can run concurrently.
|
|
355
355
|
- It uses [`uv`](https://github.com/astral-sh/uv) for creating Python virtualenvs and installing dependencies, which is known for its speed and efficiency.
|
|
356
|
-
- For supported hooks from `pre-commit-hooks`, the [automatic fast path](https://prek.j178.dev/
|
|
356
|
+
- For supported hooks from `pre-commit-hooks`, the [automatic fast path](https://prek.j178.dev/built-in-hooks/#use-the-automatic-fast-path) runs built-in Rust implementations without requiring any configuration changes.
|
|
357
357
|
- The prek-only `repo: builtin` mode provides offline, zero-setup hooks, including native `deny-pattern` and `require-pattern` alternatives for common `pygrep` checks.
|
|
358
358
|
|
|
359
359
|
### prek is easier to work with
|
|
360
360
|
|
|
361
361
|
- No need to install Python or any other runtime just to use `prek`; it is a single binary.
|
|
362
|
-
- Its [language support](https://prek.j178.dev/
|
|
362
|
+
- Its [language support](https://prek.j178.dev/reference/language-support/) covers every language available in `pre-commit`, plus Bun, Deno, mise, and PHP, and it automatically installs managed toolchains when needed for Python, Node.js, Bun, Deno, Go, mise, Rust, and Ruby.
|
|
363
363
|
- It supports native [`prek.toml`](https://prek.j178.dev/configuration/) in addition to pre-commit YAML, and [`prek util yaml-to-toml`](https://prek.j178.dev/reference/cli/#prek-util-yaml-to-toml) helps migrate existing configs.
|
|
364
|
-
- Built-in support for [workspaces](https://prek.j178.dev/
|
|
364
|
+
- Built-in support for [workspaces](https://prek.j178.dev/monorepos/) means monorepos can keep separate configs per project and still run everything from one command, while independent same-depth projects run concurrently without mixing file scopes.
|
|
365
365
|
- [`prek install`](https://prek.j178.dev/reference/cli/#prek-install) and [`prek uninstall`](https://prek.j178.dev/reference/cli/#prek-uninstall) honor repo-local and worktree-local `core.hooksPath`.
|
|
366
366
|
- Hook [`groups`](https://prek.j178.dev/reference/configuration/#groups) let one config define workflows such as CI, linting, or formatting; `--group`, `--require-group`, and `--no-group` select them at runtime.
|
|
367
367
|
- [`prek run`](https://prek.j178.dev/reference/cli/#prek-run) can select or skip multiple projects and hooks, target tracked files with repeatable `--glob` or `--directory` filters, pass explicit paths with `--files`, and preview the selection with `--dry-run`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@j178/prek",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
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,14 +26,14 @@
|
|
|
26
26
|
"LICENSE"
|
|
27
27
|
],
|
|
28
28
|
"optionalDependencies": {
|
|
29
|
-
"@j178/prek-darwin-arm64": "0.5.
|
|
30
|
-
"@j178/prek-darwin-x64": "0.5.
|
|
31
|
-
"@j178/prek-linux-arm64-gnu": "0.5.
|
|
32
|
-
"@j178/prek-linux-arm64-musl": "0.5.
|
|
33
|
-
"@j178/prek-android-arm64": "0.5.
|
|
34
|
-
"@j178/prek-linux-x64-gnu": "0.5.
|
|
35
|
-
"@j178/prek-linux-x64-musl": "0.5.
|
|
36
|
-
"@j178/prek-win32-arm64-msvc": "0.5.
|
|
37
|
-
"@j178/prek-win32-x64-msvc": "0.5.
|
|
29
|
+
"@j178/prek-darwin-arm64": "0.5.4",
|
|
30
|
+
"@j178/prek-darwin-x64": "0.5.4",
|
|
31
|
+
"@j178/prek-linux-arm64-gnu": "0.5.4",
|
|
32
|
+
"@j178/prek-linux-arm64-musl": "0.5.4",
|
|
33
|
+
"@j178/prek-android-arm64": "0.5.4",
|
|
34
|
+
"@j178/prek-linux-x64-gnu": "0.5.4",
|
|
35
|
+
"@j178/prek-linux-x64-musl": "0.5.4",
|
|
36
|
+
"@j178/prek-win32-arm64-msvc": "0.5.4",
|
|
37
|
+
"@j178/prek-win32-x64-msvc": "0.5.4"
|
|
38
38
|
}
|
|
39
39
|
}
|