@j178/prek 0.2.21 → 0.2.22

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,31 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.22
4
+
5
+ Released on 2025-12-13.
6
+
7
+ ### Highlights
8
+
9
+ In this release, prek adds support for the `--cooldown-days` option in the `prek auto-update` command.
10
+ This option allows users to skip releases that are newer than a specified number of days.
11
+ It is useful to mitigate open source supply chain risks by avoiding very recent releases that may not have been widely adopted or vetted yet.
12
+ Big thanks to @lmmx for driving this feature!
13
+
14
+ ### Enhancements
15
+
16
+ - Support`--cooldown-days` in `prek auto-update` ([#1172](https://github.com/j178/prek/pull/1172))
17
+ - Prefer tag creation timestamp in `--cooldown-days` ([#1221](https://github.com/j178/prek/pull/1221))
18
+ - Use `cargo install` for packages in workspace ([#1207](https://github.com/j178/prek/pull/1207))
19
+
20
+ ### Bug fixes
21
+
22
+ - Set `CARGO_HOME` for `cargo metadata` ([#1209](https://github.com/j178/prek/pull/1209))
23
+
24
+ ### Contributors
25
+
26
+ - @j178
27
+ - @lmmx
28
+
3
29
  ## 0.2.21
4
30
 
5
31
  Released on 2025-12-09.
package/README.md CHANGED
@@ -6,7 +6,6 @@
6
6
  </h1>
7
7
 
8
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)
9
- [![CI](https://github.com/j178/prek/actions/workflows/ci.yml/badge.svg)](https://github.com/j178/prek/actions/workflows/ci.yml)
10
9
  [![codecov](https://codecov.io/github/j178/prek/graph/badge.svg?token=MP6TY24F43)](https://codecov.io/github/j178/prek)
11
10
  [![GitHub Downloads](https://img.shields.io/github/downloads/j178/prek/total?logo=github)](https://github.com/j178/prek/releases)
12
11
  [![PyPI Downloads](https://img.shields.io/pypi/dm/prek?logo=python)](https://pepy.tech/projects/prek)
@@ -59,7 +58,7 @@ On Linux and macOS:
59
58
 
60
59
  <!-- linux-standalone-install:start -->
61
60
  ```bash
62
- curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.2.21/prek-installer.sh | sh
61
+ curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.2.22/prek-installer.sh | sh
63
62
  ```
64
63
  <!-- linux-standalone-install:end -->
65
64
 
@@ -67,7 +66,7 @@ On Windows:
67
66
 
68
67
  <!-- windows-standalone-install:start -->
69
68
  ```powershell
70
- powershell -ExecutionPolicy ByPass -c "irm https://github.com/j178/prek/releases/download/v0.2.21/prek-installer.ps1 | iex"
69
+ powershell -ExecutionPolicy ByPass -c "irm https://github.com/j178/prek/releases/download/v0.2.22/prek-installer.ps1 | iex"
71
70
  ```
72
71
  <!-- windows-standalone-install:end -->
73
72
 
@@ -298,6 +297,7 @@ prek self update
298
297
  - `prek run --last-commit` runs hooks for files changed in the last commit.
299
298
  - `prek run [HOOK] [HOOK]` selects and runs multiple hooks.
300
299
  - [`prek list`](https://prek.j178.dev/cli/#prek-list) command lists all available hooks, their ids, and descriptions, providing a better overview of the configured hooks.
300
+ - [`prek auto-update`](https://prek.j178.dev/cli/#prek-auto-update) supports `--cooldown-days` to mitigate open source supply chain attacks.
301
301
  - prek provides shell completions for `prek run <hook_id>` command, making it easier to run specific hooks without remembering their ids.
302
302
 
303
303
  For more detailed improvements prek offers, take a look at [Difference from pre-commit](https://prek.j178.dev/diff/).
@@ -23,7 +23,7 @@
23
23
  "hasInstallScript": true,
24
24
  "license": "MIT",
25
25
  "name": "@j178/prek",
26
- "version": "0.2.21"
26
+ "version": "0.2.22"
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.21"
899
+ "version": "0.2.22"
900
900
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "artifactDownloadUrl": "https://github.com/j178/prek/releases/download/v0.2.21",
2
+ "artifactDownloadUrl": "https://github.com/j178/prek/releases/download/v0.2.22",
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.21",
227
+ "version": "0.2.22",
228
228
  "volta": {
229
229
  "node": "18.14.1",
230
230
  "npm": "9.5.0"