@j178/prek 0.2.19 → 0.2.21

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,71 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.21
4
+
5
+ Released on 2025-12-09.
6
+
7
+ ### Bug fixes
8
+
9
+ - Fallback to use remote repo package root instead of erroring ([#1203](https://github.com/j178/prek/pull/1203))
10
+ - Prepend toolchain bin directory to PATH when calling cargo ([#1204](https://github.com/j178/prek/pull/1204))
11
+ - Use `cargo` from installed toolchain ([#1202](https://github.com/j178/prek/pull/1202))
12
+
13
+ ### Contributors
14
+
15
+ - @j178
16
+
17
+ ## 0.2.20
18
+
19
+ Released on 2025-12-08.
20
+
21
+ ### Highlights
22
+
23
+ In this release:
24
+
25
+ - Rust hooks are now fully supported with automatic toolchain management, including package discovery in virtual workspaces. Big thanks to @lmmx for driving this.
26
+ - Added a `prek cache size` subcommand so you can quickly see how much cache space prek is using. Thanks @MatthewMckee4!
27
+ - Nested workspaces are easier to reason about: set `orphan: true` on a project to isolate it from parents so its files are processed only once.
28
+
29
+ Want to show your project runs on prek? Add our README badge to your docs or repo homepage: [![prek](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/j178/prek/master/docs/assets/badge-v0.json)](https://github.com/j178/prek)
30
+
31
+ ### Enhancements
32
+
33
+ - Support Rust language ([#989](https://github.com/j178/prek/pull/989))
34
+ - Refactor Rust toolchain management ([#1198](https://github.com/j178/prek/pull/1198))
35
+ - Add support for finding packages in virtual workspaces ([#1180](https://github.com/j178/prek/pull/1180))
36
+ - Add `prek cache size` command ([#1183](https://github.com/j178/prek/pull/1183))
37
+ - Support orphan projects ([#1129](https://github.com/j178/prek/pull/1129))
38
+ - Fallback to `manual` stage for hooks specified directly in command line ([#1185](https://github.com/j178/prek/pull/1185))
39
+ - Make go module cache read-writeable (thus deletable) ([#1164](https://github.com/j178/prek/pull/1164))
40
+ - Provide more information when validating configs and manifests ([#1182](https://github.com/j178/prek/pull/1182))
41
+ - Improve error message for invalid number of arguments to hook-impl ([#1196](https://github.com/j178/prek/pull/1196))
42
+
43
+ ### Bug fixes
44
+
45
+ - Disable git terminal prompts ([#1193](https://github.com/j178/prek/pull/1193))
46
+ - Prevent `post-checkout` deadlock when cloning repos ([#1192](https://github.com/j178/prek/pull/1192))
47
+ - Prevent color output when redirecting stdout to a file ([#1159](https://github.com/j178/prek/pull/1159))
48
+
49
+ ### Documentation
50
+
51
+ - Add MacPorts to installation methods ([#1157](https://github.com/j178/prek/pull/1157))
52
+ - Add a FAQ page explaining `prek install --install--hooks` ([#1162](https://github.com/j178/prek/pull/1162))
53
+
54
+ ### Other changes
55
+
56
+ - Add `prek: enabled` repo badge ([#1171](https://github.com/j178/prek/pull/1171))
57
+ - Add favicon for docs website ([#1187](https://github.com/j178/prek/pull/1187))
58
+
59
+ ### Contributors
60
+
61
+ - @MatthewMckee4
62
+ - @lmmx
63
+ - @j178
64
+ - @joshmarkovic
65
+ - @frazar
66
+ - @jmelahman
67
+ - @drainpixie
68
+
3
69
  ## 0.2.19
4
70
 
5
71
  Released on 2025-11-26.
package/README.md CHANGED
@@ -5,6 +5,7 @@
5
5
  <br/>prek
6
6
  </h1>
7
7
 
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)
8
9
  [![CI](https://github.com/j178/prek/actions/workflows/ci.yml/badge.svg)](https://github.com/j178/prek/actions/workflows/ci.yml)
9
10
  [![codecov](https://codecov.io/github/j178/prek/graph/badge.svg?token=MP6TY24F43)](https://codecov.io/github/j178/prek)
10
11
  [![GitHub Downloads](https://img.shields.io/github/downloads/j178/prek/total?logo=github)](https://github.com/j178/prek/releases)
@@ -58,7 +59,7 @@ On Linux and macOS:
58
59
 
59
60
  <!-- linux-standalone-install:start -->
60
61
  ```bash
61
- curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.2.19/prek-installer.sh | sh
62
+ curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.2.21/prek-installer.sh | sh
62
63
  ```
63
64
  <!-- linux-standalone-install:end -->
64
65
 
@@ -66,7 +67,7 @@ On Windows:
66
67
 
67
68
  <!-- windows-standalone-install:start -->
68
69
  ```powershell
69
- powershell -ExecutionPolicy ByPass -c "irm https://github.com/j178/prek/releases/download/v0.2.19/prek-installer.ps1 | iex"
70
+ powershell -ExecutionPolicy ByPass -c "irm https://github.com/j178/prek/releases/download/v0.2.21/prek-installer.ps1 | iex"
70
71
  ```
71
72
  <!-- windows-standalone-install:end -->
72
73
 
@@ -217,6 +218,18 @@ scoop install main/prek
217
218
  <!-- scoop-install:end -->
218
219
  </details>
219
220
 
221
+ <details>
222
+ <summary>MacPorts</summary>
223
+
224
+ <!-- macports-install:start -->
225
+ prek is available via [MacPorts](https://ports.macports.org/port/prek/).
226
+
227
+ ```bash
228
+ sudo port install prek
229
+ ```
230
+ <!-- macports-install:end -->
231
+ </details>
232
+
220
233
  <details>
221
234
  <summary>GitHub Releases</summary>
222
235
 
@@ -23,7 +23,7 @@
23
23
  "hasInstallScript": true,
24
24
  "license": "MIT",
25
25
  "name": "@j178/prek",
26
- "version": "0.2.19"
26
+ "version": "0.2.21"
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.19"
899
+ "version": "0.2.21"
900
900
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "artifactDownloadUrl": "https://github.com/j178/prek/releases/download/v0.2.19",
2
+ "artifactDownloadUrl": "https://github.com/j178/prek/releases/download/v0.2.21",
3
3
  "author": "j178 <hi@j178.dev>",
4
4
  "bin": {
5
5
  "prek": "run-prek.js"
@@ -224,7 +224,7 @@
224
224
  "zipExt": ".tar.gz"
225
225
  }
226
226
  },
227
- "version": "0.2.19",
227
+ "version": "0.2.21",
228
228
  "volta": {
229
229
  "node": "18.14.1",
230
230
  "npm": "9.5.0"