@j178/prek 0.3.10 → 0.3.11
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 +42 -0
- package/README.md +11 -10
- package/package.json +19 -18
- package/platforms.json +11 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,47 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.11
|
|
4
|
+
|
|
5
|
+
Released on 2026-04-27.
|
|
6
|
+
|
|
7
|
+
### Highlights
|
|
8
|
+
|
|
9
|
+
Hook entries now have an explicit `shell` option for shell snippets. Set
|
|
10
|
+
`shell: sh`, `bash`, `pwsh`, `powershell`, or `cmd` when an entry should be
|
|
11
|
+
evaluated by that shell; leaving it unset keeps prek's direct argv execution.
|
|
12
|
+
|
|
13
|
+
`prek auto-update` can now filter tag candidates before choosing an update.
|
|
14
|
+
Both options take glob patterns: use `--include-tag` to only consider matching
|
|
15
|
+
tag names, and `--exclude-tag` to skip matching tags such as moving tags or
|
|
16
|
+
prereleases.
|
|
17
|
+
|
|
18
|
+
### Enhancements
|
|
19
|
+
|
|
20
|
+
- Add `auto-update --exclude-repo <repo>` to skip repos ([#1983](https://github.com/j178/prek/pull/1983))
|
|
21
|
+
- Add `auto-update --exit-code` to exit with non-zero on updates ([#2002](https://github.com/j178/prek/pull/2002))
|
|
22
|
+
- Add `auto-update --include-tag <pattern>`/`--exclude-tag <pattern>` to filter tags ([#1984](https://github.com/j178/prek/pull/1984))
|
|
23
|
+
- Adds an explicit `shell` hook option for entries that should run as shell source ([#2004](https://github.com/j178/prek/pull/2004))
|
|
24
|
+
- Make `--hook-dir` optional for hook-impl ([#1989](https://github.com/j178/prek/pull/1989))
|
|
25
|
+
- Skip shim warning when `--script-version` is missing ([#1990](https://github.com/j178/prek/pull/1990))
|
|
26
|
+
|
|
27
|
+
### Bug fixes
|
|
28
|
+
|
|
29
|
+
- Install Ruby executable in gem bin ([#2017](https://github.com/j178/prek/pull/2017))
|
|
30
|
+
- Use dedicated Android npm package ([#1982](https://github.com/j178/prek/pull/1982))
|
|
31
|
+
- Use stable repo keys without breaking cached clones ([#1995](https://github.com/j178/prek/pull/1995))
|
|
32
|
+
|
|
33
|
+
### Documentation
|
|
34
|
+
|
|
35
|
+
- Explain prek name ([#1980](https://github.com/j178/prek/pull/1980))
|
|
36
|
+
- Clarify `pass_filenames` concurrency docs ([#1999](https://github.com/j178/prek/pull/1999))
|
|
37
|
+
- Reorganize documentation references ([#2005](https://github.com/j178/prek/pull/2005))
|
|
38
|
+
- Clarify hook author manifest env docs ([#1991](https://github.com/j178/prek/pull/1991))
|
|
39
|
+
- docs: add Sentry to users list ([#1981](https://github.com/j178/prek/pull/1981))
|
|
40
|
+
|
|
41
|
+
### Contributors
|
|
42
|
+
|
|
43
|
+
- @j178
|
|
44
|
+
|
|
3
45
|
## 0.3.10
|
|
4
46
|
|
|
5
47
|
Released on 2026-04-21.
|
package/README.md
CHANGED
|
@@ -65,7 +65,7 @@ On Linux and macOS:
|
|
|
65
65
|
<!-- --8<-- [start: linux-standalone-install] -->
|
|
66
66
|
|
|
67
67
|
```bash
|
|
68
|
-
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.3.
|
|
68
|
+
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.3.11/prek-installer.sh | sh
|
|
69
69
|
```
|
|
70
70
|
|
|
71
71
|
<!-- --8<-- [end: linux-standalone-install] -->
|
|
@@ -75,7 +75,7 @@ On Windows:
|
|
|
75
75
|
<!-- --8<-- [start: windows-standalone-install] -->
|
|
76
76
|
|
|
77
77
|
```powershell
|
|
78
|
-
powershell -ExecutionPolicy ByPass -c "irm https://github.com/j178/prek/releases/download/v0.3.
|
|
78
|
+
powershell -ExecutionPolicy ByPass -c "irm https://github.com/j178/prek/releases/download/v0.3.11/prek-installer.ps1 | iex"
|
|
79
79
|
```
|
|
80
80
|
|
|
81
81
|
<!-- --8<-- [end: windows-standalone-install] -->
|
|
@@ -357,7 +357,7 @@ prek self update
|
|
|
357
357
|
|
|
358
358
|
- It is [multiple times faster](https://prek.j178.dev/benchmark/) than `pre-commit` while also using less disk space.
|
|
359
359
|
- Hook environments and toolchains are shared across hooks instead of being duplicated per repository, which reduces both install time and cache size.
|
|
360
|
-
- Repositories are fetched in parallel, hook environments are prepared in parallel when their dependencies do not overlap, and hooks can run concurrently by [`priority`](https://prek.j178.dev/configuration/#priority).
|
|
360
|
+
- Repositories are fetched in parallel, hook environments are prepared in parallel when their dependencies do not overlap, and hooks can run concurrently by [`priority`](https://prek.j178.dev/reference/configuration/#priority).
|
|
361
361
|
- It uses [`uv`](https://github.com/astral-sh/uv) for creating Python virtualenvs and installing dependencies, which is known for its speed and efficiency.
|
|
362
362
|
- It implements some common hooks in Rust as [builtins](https://prek.j178.dev/builtin/), which are faster than their Python counterparts.
|
|
363
363
|
- It supports `repo: builtin` for offline, zero-setup hooks, which is not available in `pre-commit`.
|
|
@@ -366,17 +366,17 @@ prek self update
|
|
|
366
366
|
|
|
367
367
|
- No need to install Python or any other runtime just to use `prek`; it is a single binary.
|
|
368
368
|
- `prek` automatically installs the toolchains it needs for supported languages, so you spend less time managing Python versions, Node runtimes, Ruby installs, and similar setup.
|
|
369
|
-
- 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/cli/#prek-util-yaml-to-toml) helps migrate existing configs.
|
|
369
|
+
- 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.
|
|
370
370
|
- Built-in support for [workspaces](https://prek.j178.dev/workspace/) means monorepos can keep separate configs per project and still run everything from one command.
|
|
371
|
-
- [`prek install`](https://prek.j178.dev/cli/#prek-install) and [`prek uninstall`](https://prek.j178.dev/cli/#prek-uninstall) honor repo-local and worktree-local `core.hooksPath`.
|
|
372
|
-
- [`prek run`](https://prek.j178.dev/cli/#prek-run) supports selecting or skipping multiple projects or hooks in workspace mode, instead of only accepting a single optional hook id, and adds quality-of-life improvements such as `--dry-run`, `--directory`, `--last-commit`, and `--no-fail-fast`.
|
|
373
|
-
- [`prek list`](https://prek.j178.dev/cli/#prek-list), [`prek util identify`](https://prek.j178.dev/cli/#prek-util-identify), and [`prek util list-builtins`](https://prek.j178.dev/cli/#prek-util-list-builtins) make it easier to inspect configured hooks, debug file matching, and discover builtins.
|
|
371
|
+
- [`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`.
|
|
372
|
+
- [`prek run`](https://prek.j178.dev/reference/cli/#prek-run) supports selecting or skipping multiple projects or hooks in workspace mode, instead of only accepting a single optional hook id, and adds quality-of-life improvements such as `--dry-run`, `--directory`, `--last-commit`, and `--no-fail-fast`.
|
|
373
|
+
- [`prek list`](https://prek.j178.dev/reference/cli/#prek-list), [`prek util identify`](https://prek.j178.dev/reference/cli/#prek-util-identify), and [`prek util list-builtins`](https://prek.j178.dev/reference/cli/#prek-util-list-builtins) make it easier to inspect configured hooks, debug file matching, and discover builtins.
|
|
374
374
|
|
|
375
375
|
### prek includes security-focused safeguards
|
|
376
376
|
|
|
377
|
-
- [`prek auto-update`](https://prek.j178.dev/cli/#prek-auto-update) supports `--cooldown-days`, so you can keep newly published releases on hold for a cooling-off period before adopting them.
|
|
378
|
-
- [`prek auto-update`](https://prek.j178.dev/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.
|
|
379
|
-
- [`prek auto-update --check`](https://prek.j178.dev/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.
|
|
377
|
+
- [`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.
|
|
378
|
+
- [`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.
|
|
379
|
+
- [`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.
|
|
380
380
|
|
|
381
381
|
For more detailed improvements prek offers, take a look at [Difference from pre-commit](https://prek.j178.dev/diff/).
|
|
382
382
|
|
|
@@ -415,6 +415,7 @@ GitHub stars are current as of April 15, 2026.
|
|
|
415
415
|
- [cachix/devenv](https://github.com/cachix/devenv/pull/2304) <sub>6,665 stars</sub>
|
|
416
416
|
- [pyodide/pyodide](https://github.com/pyodide/pyodide/pull/6182) <sub>14,527 stars</sub>
|
|
417
417
|
- [prowler-cloud/prowler](https://github.com/prowler-cloud/prowler/pull/10601) <sub>13,592 stars</sub>
|
|
418
|
+
- [getsentry/sentry](https://github.com/getsentry/sentry/pull/110808) <sub>43,639 stars</sub>
|
|
418
419
|
|
|
419
420
|
<!-- --8<-- [end: why] -->
|
|
420
421
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@j178/prek",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"description": "A Git hook manager written in Rust, designed as a drop-in alternative to pre-commit.",
|
|
3
|
+
"version": "0.3.11",
|
|
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": {
|
|
7
7
|
"type": "git",
|
|
@@ -26,21 +26,22 @@
|
|
|
26
26
|
"LICENSE"
|
|
27
27
|
],
|
|
28
28
|
"optionalDependencies": {
|
|
29
|
-
"@j178/prek-darwin-arm64": "0.3.
|
|
30
|
-
"@j178/prek-darwin-x64": "0.3.
|
|
31
|
-
"@j178/prek-linux-arm64-gnu": "0.3.
|
|
32
|
-
"@j178/prek-linux-arm64-musl": "0.3.
|
|
33
|
-
"@j178/prek-
|
|
34
|
-
"@j178/prek-linux-arm-
|
|
35
|
-
"@j178/prek-linux-
|
|
36
|
-
"@j178/prek-linux-
|
|
37
|
-
"@j178/prek-linux-ia32-
|
|
38
|
-
"@j178/prek-linux-
|
|
39
|
-
"@j178/prek-linux-
|
|
40
|
-
"@j178/prek-linux-
|
|
41
|
-
"@j178/prek-linux-x64-
|
|
42
|
-
"@j178/prek-
|
|
43
|
-
"@j178/prek-win32-
|
|
44
|
-
"@j178/prek-win32-
|
|
29
|
+
"@j178/prek-darwin-arm64": "0.3.11",
|
|
30
|
+
"@j178/prek-darwin-x64": "0.3.11",
|
|
31
|
+
"@j178/prek-linux-arm64-gnu": "0.3.11",
|
|
32
|
+
"@j178/prek-linux-arm64-musl": "0.3.11",
|
|
33
|
+
"@j178/prek-android-arm64": "0.3.11",
|
|
34
|
+
"@j178/prek-linux-arm-gnueabihf": "0.3.11",
|
|
35
|
+
"@j178/prek-linux-arm-musleabihf": "0.3.11",
|
|
36
|
+
"@j178/prek-linux-armv7-musleabihf": "0.3.11",
|
|
37
|
+
"@j178/prek-linux-ia32-gnu": "0.3.11",
|
|
38
|
+
"@j178/prek-linux-ia32-musl": "0.3.11",
|
|
39
|
+
"@j178/prek-linux-riscv64-gnu": "0.3.11",
|
|
40
|
+
"@j178/prek-linux-s390x-gnu": "0.3.11",
|
|
41
|
+
"@j178/prek-linux-x64-gnu": "0.3.11",
|
|
42
|
+
"@j178/prek-linux-x64-musl": "0.3.11",
|
|
43
|
+
"@j178/prek-win32-arm64-msvc": "0.3.11",
|
|
44
|
+
"@j178/prek-win32-ia32-msvc": "0.3.11",
|
|
45
|
+
"@j178/prek-win32-x64-msvc": "0.3.11"
|
|
45
46
|
}
|
|
46
47
|
}
|
package/platforms.json
CHANGED
|
@@ -45,6 +45,17 @@
|
|
|
45
45
|
],
|
|
46
46
|
"libc": "musl"
|
|
47
47
|
},
|
|
48
|
+
{
|
|
49
|
+
"rustTarget": "aarch64-unknown-linux-musl",
|
|
50
|
+
"packageName": "@j178/prek-android-arm64",
|
|
51
|
+
"binaryName": "prek",
|
|
52
|
+
"os": [
|
|
53
|
+
"android"
|
|
54
|
+
],
|
|
55
|
+
"cpu": [
|
|
56
|
+
"arm64"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
48
59
|
{
|
|
49
60
|
"rustTarget": "armv7-unknown-linux-gnueabihf",
|
|
50
61
|
"packageName": "@j178/prek-linux-arm-gnueabihf",
|