@j178/prek 0.2.27 → 0.2.29

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 CHANGED
@@ -1,5 +1,82 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.29
4
+
5
+ Released on 2026-01-16.
6
+
7
+ ### Highlights
8
+
9
+ `files` / `exclude` now support globs (including glob lists), making config filters much easier to read and maintain than heavily-escaped regex.
10
+
11
+ Before (regex):
12
+
13
+ ```yaml
14
+ files: "^(src/.*\\.rs$|crates/[^/]+/src/.*\\.rs$)"
15
+ ```
16
+
17
+ After (glob list):
18
+
19
+ ```yaml
20
+ files:
21
+ glob:
22
+ - src/**/*.rs
23
+ - crates/**/src/**/*.rs
24
+ ```
25
+
26
+ ### Enhancements
27
+
28
+ - Add `check-json5` as builtin hooks ([#1367](https://github.com/j178/prek/pull/1367))
29
+ - Add glob list support for file patterns (`files` and `exclude`) ([#1197](https://github.com/j178/prek/pull/1197))
30
+
31
+ ### Bug fixes
32
+
33
+ - Fix missing commit hash from version info ([#1352](https://github.com/j178/prek/pull/1352))
34
+ - Remove git env vars from `uv pip install` subprocess ([#1355](https://github.com/j178/prek/pull/1355))
35
+ - Set `TERM=dumb` under PTY to prevent capability-probe hangs ([#1363](https://github.com/j178/prek/pull/1363))
36
+
37
+ ### Documentation
38
+
39
+ - Add `home-assistant/core` to the users of prek ([#1350](https://github.com/j178/prek/pull/1350))
40
+ - Document builtin hooks ([#1370](https://github.com/j178/prek/pull/1370))
41
+ - Explain project configuration scope ([#1373](https://github.com/j178/prek/pull/1373))
42
+
43
+ ### Contributors
44
+
45
+ - @Goldziher
46
+ - @yihong0618
47
+ - @j178
48
+ - @shaanmajid
49
+ - @ulgens
50
+
51
+ ## 0.2.28
52
+
53
+ Released on 2026-01-13.
54
+
55
+ ### Enhancements
56
+
57
+ - Avoid running `git diff` for skipped hooks ([#1335](https://github.com/j178/prek/pull/1335))
58
+ - More accurate command line length limit calculation ([#1348](https://github.com/j178/prek/pull/1348))
59
+ - Raise platform command line length upper limit ([#1347](https://github.com/j178/prek/pull/1347))
60
+ - Use `/bin/sh` in generated git hook scripts ([#1333](https://github.com/j178/prek/pull/1333))
61
+
62
+ ### Bug fixes
63
+
64
+ - Avoid rewriting if config is up-to-date ([#1346](https://github.com/j178/prek/pull/1346))
65
+
66
+ ### Documentation
67
+
68
+ - Add `ty` to the users of prek ([#1342](https://github.com/j178/prek/pull/1342))
69
+ - Add `ruff` to the users of prek ([#1334](https://github.com/j178/prek/pull/1334))
70
+ - Complete configuration document ([#1338](https://github.com/j178/prek/pull/1338))
71
+ - Document UV environment variable inheritance in prek ([#1339](https://github.com/j178/prek/pull/1339))
72
+
73
+ ### Contributors
74
+
75
+ - @copilot-swe-agent
76
+ - @MatthewMckee4
77
+ - @yihong0618
78
+ - @j178
79
+
3
80
  ## 0.2.27
4
81
 
5
82
  Released on 2026-01-07.
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  <div align="center">
2
2
 
3
3
  <h1>
4
- <img width="180" alt="prek" src="./docs/assets/logo.webp" />
4
+ <img width="180" alt="prek" src="https://raw.githubusercontent.com/j178/prek/master/docs/assets/logo.webp" />
5
5
  <br/>prek
6
6
  </h1>
7
7
 
@@ -58,7 +58,7 @@ On Linux and macOS:
58
58
 
59
59
  <!-- linux-standalone-install:start -->
60
60
  ```bash
61
- curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.2.27/prek-installer.sh | sh
61
+ curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.2.29/prek-installer.sh | sh
62
62
  ```
63
63
  <!-- linux-standalone-install:end -->
64
64
 
@@ -66,7 +66,7 @@ On Windows:
66
66
 
67
67
  <!-- windows-standalone-install:start -->
68
68
  ```powershell
69
- powershell -ExecutionPolicy ByPass -c "irm https://github.com/j178/prek/releases/download/v0.2.27/prek-installer.ps1 | iex"
69
+ powershell -ExecutionPolicy ByPass -c "irm https://github.com/j178/prek/releases/download/v0.2.29/prek-installer.ps1 | iex"
70
70
  ```
71
71
  <!-- windows-standalone-install:end -->
72
72
 
@@ -257,7 +257,7 @@ jobs:
257
257
  prek:
258
258
  runs-on: ubuntu-latest
259
259
  steps:
260
- - uses: actions/checkout@v5
260
+ - uses: actions/checkout@v6
261
261
  - uses: j178/prek-action@v1
262
262
  ```
263
263
 
@@ -318,6 +318,9 @@ prek is pretty new, but it is already being used or recommend by some projects a
318
318
  - [fastapi/fastapi](https://github.com/fastapi/fastapi/pull/14572)
319
319
  - [fastapi/typer](https://github.com/fastapi/typer/pull/1453)
320
320
  - [fastapi/asyncer](https://github.com/fastapi/asyncer/pull/437)
321
+ - [astral-sh/ruff](https://github.com/astral-sh/ruff/pull/22505)
322
+ - [astral-sh/ty](https://github.com/astral-sh/ty/pull/2469)
323
+ - [home-assistant/core](https://github.com/home-assistant/core/pull/160427)
321
324
  - [DetachHead/basedpyright](https://github.com/DetachHead/basedpyright/pull/1413)
322
325
  - [OpenLineage/OpenLineage](https://github.com/OpenLineage/OpenLineage/pull/3965)
323
326
  - [authlib/authlib](https://github.com/authlib/authlib/pull/804)
@@ -23,7 +23,7 @@
23
23
  "hasInstallScript": true,
24
24
  "license": "MIT",
25
25
  "name": "@j178/prek",
26
- "version": "0.2.27"
26
+ "version": "0.2.29"
27
27
  },
28
28
  "node_modules/@isaacs/balanced-match": {
29
29
  "engines": {
@@ -515,5 +515,5 @@
515
515
  }
516
516
  },
517
517
  "requires": true,
518
- "version": "0.2.27"
518
+ "version": "0.2.29"
519
519
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "artifactDownloadUrl": "https://github.com/j178/prek/releases/download/v0.2.27",
2
+ "artifactDownloadUrl": "https://github.com/j178/prek/releases/download/v0.2.29",
3
3
  "author": "j178 <hi@j178.dev>",
4
4
  "bin": {
5
5
  "prek": "run-prek.js"
@@ -210,7 +210,7 @@
210
210
  "zipExt": ".tar.gz"
211
211
  }
212
212
  },
213
- "version": "0.2.27",
213
+ "version": "0.2.29",
214
214
  "volta": {
215
215
  "node": "18.14.1",
216
216
  "npm": "9.5.0"