@j178/prek 0.3.13 → 0.4.1

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 +48 -0
  2. package/README.md +28 -25
  3. package/package.json +18 -18
package/CHANGELOG.md CHANGED
@@ -1,5 +1,53 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.1
4
+
5
+ Released on 2026-05-20.
6
+
7
+ ### Enhancements
8
+
9
+ - Fix pre-push range after rebase ([#2089](https://github.com/j178/prek/pull/2089))
10
+ - Prefer extensions over loose filename tags ([#2092](https://github.com/j178/prek/pull/2092))
11
+ - Skip installs for hooks that will not run ([#2103](https://github.com/j178/prek/pull/2103))
12
+
13
+ ### Performance
14
+
15
+ - Optimize meta hook file scans ([#2106](https://github.com/j178/prek/pull/2106))
16
+ - Reduce run filtering allocations ([#2090](https://github.com/j178/prek/pull/2090))
17
+
18
+ ### Contributors
19
+
20
+ - @j178
21
+
22
+ ## 0.4.0
23
+
24
+ Released on 2026-05-14.
25
+
26
+ ### Breaking changes
27
+
28
+ These are narrow cleanup breaks in behavior that was either temporary or never worked correctly. Most users should not need to change anything.
29
+
30
+ - Generated hook scripts no longer preserve `-q`, `-v`, or `--no-progress` passed to `prek install`. This only affects users who expected those global flags to be baked into installed hooks. ([#1966](https://github.com/j178/prek/pull/1966))
31
+ - `language_version` no longer accepts direct executable paths. Use `language_version: system` for a system toolchain, or use a supported version request instead. This path form did not work reliably before, so existing working configs should be unaffected. ([#1831](https://github.com/j178/prek/pull/1831))
32
+
33
+ ### Enhancements
34
+
35
+ - Expand tilde in `--config`, `--cd`, `--log-file` and `--git-dir` ([#2063](https://github.com/j178/prek/pull/2063))
36
+ - Prevent auto-update cooldown downgrades ([#2055](https://github.com/j178/prek/pull/2055))
37
+ - Use managed npm cache for node hooks ([#2075](https://github.com/j178/prek/pull/2075))
38
+
39
+ ### Bug fixes
40
+
41
+ - Fix npm config env overrides for node hooks ([#2074](https://github.com/j178/prek/pull/2074))
42
+
43
+ ### Documentation
44
+
45
+ - Add cookbook page for enabling Git 2.54 config-based global hooks ([#2061](https://github.com/j178/prek/pull/2061))
46
+
47
+ ### Contributors
48
+
49
+ - @j178
50
+
3
51
  ## 0.3.13
4
52
 
5
53
  Released on 2026-05-06.
package/README.md CHANGED
@@ -1,6 +1,9 @@
1
1
  <div align="center">
2
2
 
3
- <img width="600" alt="prek" src="https://raw.githubusercontent.com/j178/prek/master/docs/assets/logo.png" />
3
+ <picture>
4
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/j178/prek/master/docs/assets/logo-dark.png">
5
+ <img width="600" alt="prek" src="https://raw.githubusercontent.com/j178/prek/master/docs/assets/logo.png" />
6
+ </picture>
4
7
 
5
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)
6
9
  [![PyPI version](https://img.shields.io/pypi/v/prek.svg)](https://pypi.python.org/pypi/prek)
@@ -60,7 +63,7 @@ On Linux and macOS:
60
63
  <!-- --8<-- [start: linux-standalone-install] -->
61
64
 
62
65
  ```bash
63
- curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.3.13/prek-installer.sh | sh
66
+ curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.4.1/prek-installer.sh | sh
64
67
  ```
65
68
 
66
69
  <!-- --8<-- [end: linux-standalone-install] -->
@@ -70,7 +73,7 @@ On Windows:
70
73
  <!-- --8<-- [start: windows-standalone-install] -->
71
74
 
72
75
  ```powershell
73
- powershell -ExecutionPolicy ByPass -c "irm https://github.com/j178/prek/releases/download/v0.3.13/prek-installer.ps1 | iex"
76
+ powershell -ExecutionPolicy ByPass -c "irm https://github.com/j178/prek/releases/download/v0.4.1/prek-installer.ps1 | iex"
74
77
  ```
75
78
 
76
79
  <!-- --8<-- [end: windows-standalone-install] -->
@@ -381,37 +384,37 @@ prek is pretty new, but it is already being used or recommended by some projects
381
384
  GitHub stars are current as of April 15, 2026.
382
385
 
383
386
  - [apache/airflow](https://github.com/apache/airflow/issues/44995) <sub>45,050 stars</sub>
384
- - [python/cpython](https://github.com/python/cpython/issues/143148) <sub>72,330 stars</sub>
385
- - [pdm-project/pdm](https://github.com/pdm-project/pdm/pull/3593) <sub>8,553 stars</sub>
386
- - [fastapi/fastapi](https://github.com/fastapi/fastapi/pull/14572) <sub>97,209 stars</sub>
387
- - [fastapi/typer](https://github.com/fastapi/typer/pull/1453) <sub>19,210 stars</sub>
388
- - [fastapi/asyncer](https://github.com/fastapi/asyncer/pull/437) <sub>2,407 stars</sub>
387
+ - [apache/iggy](https://github.com/apache/iggy/pull/2383) <sub>4,116 stars</sub>
388
+ - [apache/lucene](https://github.com/apache/lucene/pull/15629) <sub>3,401 stars</sub>
389
+ - [ast-grep/ast-grep](https://github.com/ast-grep/ast-grep.github.io/commit/e30818144b2967a7f9172c8cf2f4596bba219bf5) <sub>13,413 stars</sub>
389
390
  - [astral-sh/ruff](https://github.com/astral-sh/ruff/pull/22505) <sub>47,070 stars</sub>
390
391
  - [astral-sh/ty](https://github.com/astral-sh/ty/pull/2469) <sub>18,308 stars</sub>
391
- - [openclaw/openclaw](https://github.com/openclaw/openclaw/pull/1720) <sub>357,512 stars</sub>
392
- - [home-assistant/core](https://github.com/home-assistant/core/pull/160427) <sub>86,029 stars</sub>
393
- - [python-telegram-bot/python-telegram-bot](https://github.com/python-telegram-bot/python-telegram-bot/pull/5142) <sub>29,025 stars</sub>
394
- - [DetachHead/basedpyright](https://github.com/DetachHead/basedpyright/pull/1413) <sub>3,267 stars</sub>
395
- - [OpenLineage/OpenLineage](https://github.com/OpenLineage/OpenLineage/pull/3965) <sub>2,406 stars</sub>
396
392
  - [authlib/authlib](https://github.com/authlib/authlib/pull/804) <sub>5,271 stars</sub>
393
+ - [cachix/devenv](https://github.com/cachix/devenv/pull/2304) <sub>6,665 stars</sub>
394
+ - [cocoindex-io/cocoindex](https://github.com/cocoindex-io/cocoindex/pull/1564) <sub>6,865 stars</sub>
395
+ - [commitizen-tools/commitizen](https://github.com/commitizen-tools/commitizen) <sub>3,377 stars</sub>
396
+ - [DetachHead/basedpyright](https://github.com/DetachHead/basedpyright/pull/1413) <sub>3,267 stars</sub>
397
397
  - [django/djangoproject.com](https://github.com/django/djangoproject.com/pull/2252) <sub>1,994 stars</sub>
398
+ - [fastapi/asyncer](https://github.com/fastapi/asyncer/pull/437) <sub>2,407 stars</sub>
399
+ - [fastapi/fastapi](https://github.com/fastapi/fastapi/pull/14572) <sub>97,209 stars</sub>
400
+ - [fastapi/typer](https://github.com/fastapi/typer/pull/1453) <sub>19,210 stars</sub>
398
401
  - [Future-House/paper-qa](https://github.com/Future-House/paper-qa/pull/1098) <sub>8,377 stars</sub>
402
+ - [getsentry/sentry](https://github.com/getsentry/sentry/pull/110808) <sub>43,639 stars</sub>
403
+ - [godotengine/godot](https://github.com/godotengine/godot/pull/119150) <sub>110,312 stars</sub>
399
404
  - [Goldziher/kreuzberg](https://github.com/Goldziher/kreuzberg/pull/142) <sub>7,550 stars</sub>
400
- - [python-attrs/attrs](https://github.com/python-attrs/attrs/commit/c95b177682e76a63478d29d040f9cb36a8d31915) <sub>5,770 stars</sub>
401
- - [jlowin/fastmcp](https://github.com/jlowin/fastmcp/pull/2309) <sub>24,539 stars</sub>
402
- - [apache/iggy](https://github.com/apache/iggy/pull/2383) <sub>4,116 stars</sub>
403
- - [apache/lucene](https://github.com/apache/lucene/pull/15629) <sub>3,401 stars</sub>
405
+ - [home-assistant/core](https://github.com/home-assistant/core/pull/160427) <sub>86,029 stars</sub>
404
406
  - [jcrist/msgspec](https://github.com/jcrist/msgspec/pull/918) <sub>3,692 stars</sub>
407
+ - [jlowin/fastmcp](https://github.com/jlowin/fastmcp/pull/2309) <sub>24,539 stars</sub>
405
408
  - [MoonshotAI/kimi-cli](https://github.com/MoonshotAI/kimi-cli/pull/535) <sub>7,800 stars</sub>
406
- - [simple-icons/simple-icons](https://github.com/simple-icons/simple-icons/pull/14245) <sub>24,873 stars</sub>
407
- - [ast-grep/ast-grep](https://github.com/ast-grep/ast-grep.github.io/commit/e30818144b2967a7f9172c8cf2f4596bba219bf5) <sub>13,413 stars</sub>
408
- - [commitizen-tools/commitizen](https://github.com/commitizen-tools/commitizen) <sub>3,377 stars</sub>
409
- - [cocoindex-io/cocoindex](https://github.com/cocoindex-io/cocoindex/pull/1564) <sub>6,865 stars</sub>
410
- - [cachix/devenv](https://github.com/cachix/devenv/pull/2304) <sub>6,665 stars</sub>
411
- - [pyodide/pyodide](https://github.com/pyodide/pyodide/pull/6182) <sub>14,527 stars</sub>
409
+ - [openclaw/openclaw](https://github.com/openclaw/openclaw/pull/1720) <sub>357,512 stars</sub>
410
+ - [OpenLineage/OpenLineage](https://github.com/OpenLineage/OpenLineage/pull/3965) <sub>2,406 stars</sub>
411
+ - [pdm-project/pdm](https://github.com/pdm-project/pdm/pull/3593) <sub>8,553 stars</sub>
412
412
  - [prowler-cloud/prowler](https://github.com/prowler-cloud/prowler/pull/10601) <sub>13,592 stars</sub>
413
- - [getsentry/sentry](https://github.com/getsentry/sentry/pull/110808) <sub>43,639 stars</sub>
414
- - [godotengine/godot](https://github.com/godotengine/godot/pull/119150) <sub>110,312 stars</sub>
413
+ - [pyodide/pyodide](https://github.com/pyodide/pyodide/pull/6182) <sub>14,527 stars</sub>
414
+ - [python-attrs/attrs](https://github.com/python-attrs/attrs/commit/c95b177682e76a63478d29d040f9cb36a8d31915) <sub>5,770 stars</sub>
415
+ - [python-telegram-bot/python-telegram-bot](https://github.com/python-telegram-bot/python-telegram-bot/pull/5142) <sub>29,025 stars</sub>
416
+ - [python/cpython](https://github.com/python/cpython/issues/143148) <sub>72,330 stars</sub>
417
+ - [simple-icons/simple-icons](https://github.com/simple-icons/simple-icons/pull/14245) <sub>24,873 stars</sub>
415
418
 
416
419
  <!-- --8<-- [end: why] -->
417
420
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@j178/prek",
3
- "version": "0.3.13",
3
+ "version": "0.4.1",
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.3.13",
30
- "@j178/prek-darwin-x64": "0.3.13",
31
- "@j178/prek-linux-arm64-gnu": "0.3.13",
32
- "@j178/prek-linux-arm64-musl": "0.3.13",
33
- "@j178/prek-android-arm64": "0.3.13",
34
- "@j178/prek-linux-arm-gnueabihf": "0.3.13",
35
- "@j178/prek-linux-arm-musleabihf": "0.3.13",
36
- "@j178/prek-linux-armv7-musleabihf": "0.3.13",
37
- "@j178/prek-linux-ia32-gnu": "0.3.13",
38
- "@j178/prek-linux-ia32-musl": "0.3.13",
39
- "@j178/prek-linux-riscv64-gnu": "0.3.13",
40
- "@j178/prek-linux-s390x-gnu": "0.3.13",
41
- "@j178/prek-linux-x64-gnu": "0.3.13",
42
- "@j178/prek-linux-x64-musl": "0.3.13",
43
- "@j178/prek-win32-arm64-msvc": "0.3.13",
44
- "@j178/prek-win32-ia32-msvc": "0.3.13",
45
- "@j178/prek-win32-x64-msvc": "0.3.13"
29
+ "@j178/prek-darwin-arm64": "0.4.1",
30
+ "@j178/prek-darwin-x64": "0.4.1",
31
+ "@j178/prek-linux-arm64-gnu": "0.4.1",
32
+ "@j178/prek-linux-arm64-musl": "0.4.1",
33
+ "@j178/prek-android-arm64": "0.4.1",
34
+ "@j178/prek-linux-arm-gnueabihf": "0.4.1",
35
+ "@j178/prek-linux-arm-musleabihf": "0.4.1",
36
+ "@j178/prek-linux-armv7-musleabihf": "0.4.1",
37
+ "@j178/prek-linux-ia32-gnu": "0.4.1",
38
+ "@j178/prek-linux-ia32-musl": "0.4.1",
39
+ "@j178/prek-linux-riscv64-gnu": "0.4.1",
40
+ "@j178/prek-linux-s390x-gnu": "0.4.1",
41
+ "@j178/prek-linux-x64-gnu": "0.4.1",
42
+ "@j178/prek-linux-x64-musl": "0.4.1",
43
+ "@j178/prek-win32-arm64-msvc": "0.4.1",
44
+ "@j178/prek-win32-ia32-msvc": "0.4.1",
45
+ "@j178/prek-win32-x64-msvc": "0.4.1"
46
46
  }
47
47
  }