@j178/prek 0.3.0 → 0.3.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,39 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.1
4
+
5
+ Released on 2026-01-31.
6
+
7
+ ### Enhancements
8
+
9
+ - Add `language: swift` support ([#1463](https://github.com/j178/prek/pull/1463))
10
+ - Add `language: haskell` support ([#1484](https://github.com/j178/prek/pull/1484))
11
+ - Extract go version constraint from `go.mod` ([#1457](https://github.com/j178/prek/pull/1457))
12
+ - Warn when config file exists but fails to parse ([#1487](https://github.com/j178/prek/pull/1487))
13
+ - Add GitHub artifact attestations to release and build-docker workflow ([#1494](https://github.com/j178/prek/pull/1494), [#1497](https://github.com/j178/prek/pull/1497))
14
+ - Allow `GIT_CONFIG_PARAMETERS` for private repository authentication ([#1472](https://github.com/j178/prek/pull/1472))
15
+ - Show progress bar when running builtin hooks ([#1504](https://github.com/j178/prek/pull/1504))
16
+
17
+ ### Bug fixes
18
+
19
+ - Cap ARG_MAX at `1<<19` for safety ([#1506](https://github.com/j178/prek/pull/1506))
20
+ - Don't check Python executable path in health check ([#1496](https://github.com/j178/prek/pull/1496))
21
+
22
+ ### Documentation
23
+
24
+ - Include `CocoIndex` as a project using prek ([#1477](https://github.com/j178/prek/pull/1477))
25
+ - Add commands for artifact verification using GitHub Attestations ([#1500](https://github.com/j178/prek/pull/1500))
26
+
27
+ ### Contributors
28
+
29
+ - @halms
30
+ - @Haleshot
31
+ - @simono
32
+ - @tisonkun
33
+ - @fllesser
34
+ - @j178
35
+ - @shaanmajid
36
+
3
37
  ## 0.3.0
4
38
 
5
39
  Released on 2026-01-22.
@@ -7,7 +41,6 @@ Released on 2026-01-22.
7
41
  ### Highlights
8
42
 
9
43
  - `prek cache gc` (also available via `prek gc` for pre-commit compatibility) is finally here! You can now run `prek cache gc` to clean up unused repos, hook envs and tool versions from prek cache.
10
-
11
44
  - `language: bun` is now supported, making it possible to write and run hooks with [Bun](https://bun.sh/).
12
45
 
13
46
  ### Enhancements
package/README.md CHANGED
@@ -63,7 +63,7 @@ On Linux and macOS:
63
63
  <!-- --8<-- [start: linux-standalone-install] -->
64
64
 
65
65
  ```bash
66
- curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.3.0/prek-installer.sh | sh
66
+ curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.3.1/prek-installer.sh | sh
67
67
  ```
68
68
 
69
69
  <!-- --8<-- [end: linux-standalone-install] -->
@@ -73,7 +73,7 @@ On Windows:
73
73
  <!-- --8<-- [start: windows-standalone-install] -->
74
74
 
75
75
  ```powershell
76
- powershell -ExecutionPolicy ByPass -c "irm https://github.com/j178/prek/releases/download/v0.3.0/prek-installer.ps1 | iex"
76
+ powershell -ExecutionPolicy ByPass -c "irm https://github.com/j178/prek/releases/download/v0.3.1/prek-installer.ps1 | iex"
77
77
  ```
78
78
 
79
79
  <!-- --8<-- [end: windows-standalone-install] -->
@@ -171,23 +171,23 @@ cargo install --locked prek
171
171
 
172
172
  <!-- --8<-- [start: npmjs-install] -->
173
173
 
174
- prek is published as a Node.js package, you can install it using `npm`, `pnpm`, or `npx`:
174
+ prek is published as a [Node.js package](https://www.npmjs.com/package/@j178/prek)
175
+ and can be installed with any npm-compatible package manager:
175
176
 
176
177
  ```bash
177
- # Using npm
178
+ # As a dev dependency
178
179
  npm add -D @j178/prek
179
-
180
- # Using pnpm
181
180
  pnpm add -D @j178/prek
181
+ bun add -D @j178/prek
182
182
 
183
- # Using npx
184
- npx @j178/prek --version
185
-
186
- # or install globally
183
+ # Or install globally
187
184
  npm install -g @j178/prek
185
+ pnpm add -g @j178/prek
186
+ bun install -g @j178/prek
188
187
 
189
- # then use `prek` command
190
- prek --version
188
+ # Or run directly without installing
189
+ npx @j178/prek --version
190
+ bunx @j178/prek --version
191
191
  ```
192
192
 
193
193
  <!-- --8<-- [end: npmjs-install] -->
@@ -375,6 +375,7 @@ prek is pretty new, but it is already being used or recommend by some projects a
375
375
  - [simple-icons/simple-icons](https://github.com/simple-icons/simple-icons/pull/14245)
376
376
  - [ast-grep/ast-grep](https://github.com/ast-grep/ast-grep.github.io/commit/e30818144b2967a7f9172c8cf2f4596bba219bf5)
377
377
  - [commitizen-tools/commitizen](https://github.com/commitizen-tools/commitizen)
378
+ - [cocoindex-io/cocoindex](https://github.com/cocoindex-io/cocoindex/pull/1564)
378
379
 
379
380
  <!-- --8<-- [end: why] -->
380
381
 
@@ -23,7 +23,7 @@
23
23
  "hasInstallScript": true,
24
24
  "license": "MIT",
25
25
  "name": "@j178/prek",
26
- "version": "0.3.0"
26
+ "version": "0.3.1"
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.3.0"
518
+ "version": "0.3.1"
519
519
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "artifactDownloadUrl": "https://github.com/j178/prek/releases/download/v0.3.0",
2
+ "artifactDownloadUrl": "https://github.com/j178/prek/releases/download/v0.3.1",
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.3.0",
213
+ "version": "0.3.1",
214
214
  "volta": {
215
215
  "node": "18.14.1",
216
216
  "npm": "9.5.0"