@j178/prek 0.2.8 → 0.2.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 +25 -0
- package/README.md +18 -5
- package/npm-shrinkwrap.json +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.9
|
|
4
|
+
|
|
5
|
+
Released on 2025-10-16.
|
|
6
|
+
|
|
7
|
+
### Enhancements
|
|
8
|
+
|
|
9
|
+
- Lazily check hook env health ([#897](https://github.com/j178/prek/pull/897))
|
|
10
|
+
- Implement `check-symlinks` as builtin hook ([#895](https://github.com/j178/prek/pull/895))
|
|
11
|
+
- Implement `detect-private-key` as builtin hook ([#893](https://github.com/j178/prek/pull/893))
|
|
12
|
+
|
|
13
|
+
### Bug fixes
|
|
14
|
+
|
|
15
|
+
- Download files to scratch directory to avoid cross-filesystem rename ([#889](https://github.com/j178/prek/pull/889))
|
|
16
|
+
- Fix golang hook install local dependencies ([#902](https://github.com/j178/prek/pull/902))
|
|
17
|
+
- Ignore the user-set `UV_MANAGED_PYTHON` ([#900](https://github.com/j178/prek/pull/900))
|
|
18
|
+
|
|
19
|
+
### Other changes
|
|
20
|
+
|
|
21
|
+
- Add package metadata for cargo-binstall ([#882](https://github.com/j178/prek/pull/882))
|
|
22
|
+
|
|
23
|
+
### Contributors
|
|
24
|
+
|
|
25
|
+
- @j178
|
|
26
|
+
- @lmmx
|
|
27
|
+
|
|
3
28
|
## 0.2.8
|
|
4
29
|
|
|
5
30
|
Released on 2025-10-14.
|
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ while also providing some additional long-requested features.
|
|
|
30
30
|
## Features
|
|
31
31
|
|
|
32
32
|
- 🚀 A single binary with no dependencies, does not require Python or any other runtime.
|
|
33
|
-
- ⚡
|
|
33
|
+
- ⚡ [Faster](https://prek.j178.dev/benchmark/) than `pre-commit` and uses only half the disk space.
|
|
34
34
|
- 🔄 Fully compatible with the original pre-commit configurations and hooks.
|
|
35
35
|
- 🏗️ Built-in support for monorepos (i.e. [workspace mode](https://prek.j178.dev/workspace/)).
|
|
36
36
|
- 🐍 Integration with [`uv`](https://github.com/astral-sh/uv) for managing Python virtual environments and dependencies.
|
|
@@ -60,9 +60,9 @@ For configuring `.pre-commit-config.yaml` and writing hooks, you can refer to th
|
|
|
60
60
|
<!-- why:start -->
|
|
61
61
|
## Why prek?
|
|
62
62
|
|
|
63
|
-
### prek is
|
|
63
|
+
### prek is faster
|
|
64
64
|
|
|
65
|
-
- It is
|
|
65
|
+
- It is [multiple times faster](https://prek.j178.dev/benchmark/) than `pre-commit` and takes up half the disk space.
|
|
66
66
|
- It redesigned how hook environments and toolchains are managed, they are all shared between hooks, which reduces the disk space usage and speeds up the installation process.
|
|
67
67
|
- Repositories are cloned in parallel, and hooks are installed in parallel if their dependencies are disjoint.
|
|
68
68
|
- It uses [`uv`](https://github.com/astral-sh/uv) for creating Python virtualenvs and installing dependencies, which is known for its speed and efficiency.
|
|
@@ -108,7 +108,7 @@ On Linux and macOS:
|
|
|
108
108
|
|
|
109
109
|
<!-- linux-standalone-install:start -->
|
|
110
110
|
```bash
|
|
111
|
-
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.2.
|
|
111
|
+
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.2.9/prek-installer.sh | sh
|
|
112
112
|
```
|
|
113
113
|
<!-- linux-standalone-install:end -->
|
|
114
114
|
|
|
@@ -116,7 +116,7 @@ On Windows:
|
|
|
116
116
|
|
|
117
117
|
<!-- windows-standalone-install:start -->
|
|
118
118
|
```powershell
|
|
119
|
-
powershell -ExecutionPolicy ByPass -c "irm https://github.com/j178/prek/releases/download/v0.2.
|
|
119
|
+
powershell -ExecutionPolicy ByPass -c "irm https://github.com/j178/prek/releases/download/v0.2.9/prek-installer.ps1 | iex"
|
|
120
120
|
```
|
|
121
121
|
<!-- windows-standalone-install:end -->
|
|
122
122
|
|
|
@@ -166,6 +166,19 @@ mise use prek
|
|
|
166
166
|
|
|
167
167
|
</details>
|
|
168
168
|
|
|
169
|
+
<details>
|
|
170
|
+
<summary>Cargo binstall</summary>
|
|
171
|
+
|
|
172
|
+
<!-- cargo-binstall:start -->
|
|
173
|
+
Install pre-compiled binaries from GitHub using Cargo binstall (Rust 1.89+ is required):
|
|
174
|
+
|
|
175
|
+
```bash
|
|
176
|
+
cargo binstall prek --git https://github.com/j178/prek
|
|
177
|
+
```
|
|
178
|
+
<!-- cargo-binstall:end -->
|
|
179
|
+
|
|
180
|
+
</details>
|
|
181
|
+
|
|
169
182
|
<details>
|
|
170
183
|
<summary>Cargo</summary>
|
|
171
184
|
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"hasInstallScript": true,
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"name": "@j178/prek",
|
|
26
|
-
"version": "0.2.
|
|
26
|
+
"version": "0.2.9"
|
|
27
27
|
},
|
|
28
28
|
"node_modules/@isaacs/balanced-match": {
|
|
29
29
|
"engines": {
|
|
@@ -896,5 +896,5 @@
|
|
|
896
896
|
}
|
|
897
897
|
},
|
|
898
898
|
"requires": true,
|
|
899
|
-
"version": "0.2.
|
|
899
|
+
"version": "0.2.9"
|
|
900
900
|
}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"artifactDownloadUrl": "https://github.com/j178/prek/releases/download/v0.2.
|
|
2
|
+
"artifactDownloadUrl": "https://github.com/j178/prek/releases/download/v0.2.9",
|
|
3
3
|
"author": "j178 <hi@j178.dev>",
|
|
4
4
|
"bin": {
|
|
5
5
|
"prek": "run-prek.js"
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"major": 2,
|
|
24
24
|
"series": 31
|
|
25
25
|
},
|
|
26
|
-
"homepage": "https://
|
|
26
|
+
"homepage": "https://prek.j178.dev/",
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"name": "@j178/prek",
|
|
29
29
|
"preferUnplugged": true,
|
|
@@ -224,7 +224,7 @@
|
|
|
224
224
|
"zipExt": ".tar.gz"
|
|
225
225
|
}
|
|
226
226
|
},
|
|
227
|
-
"version": "0.2.
|
|
227
|
+
"version": "0.2.9",
|
|
228
228
|
"volta": {
|
|
229
229
|
"node": "18.14.1",
|
|
230
230
|
"npm": "9.5.0"
|