v0.5.6

j178/prekv0.5.6Oct 19, 2026by github-actions[bot]

Upgrading?

AI Summary

This release introduces two new builtin hooks for commit validation, enhances performance with Profile-Guided Optimization (PGO) and optimized batching, and fixes several bugs including JSON BOM handling and revision preservation.

Key Highlights

  • Added two new builtin hooks: check-commit-trailers and check-signed-commit.
  • Enabled Profile-Guided Optimization (PGO) for native release builds.
  • Reduced hook process launches with balanced batches to improve performance.
  • Fixed bug where unquoted dotted revisions were not preserved in 'prek update'.

New Features

  • Builtin hook check-commit-trailers
  • Builtin hook check-signed-commit

Full Release Notes

## Release Notes

Released on 2026-10-19.

### Enhancements

- Add builtin hook `check-commit-trailers` ([#2885](https://github.com/j178/prek/pull/2885))
- Add builtin hook `check-signed-commit` ([#2725](https://github.com/j178/prek/pull/2725))

### Performance

- Enable PGO for native release builds ([#2890](https://github.com/j178/prek/pull/2890))
- Reduce hook process launches with balanced batches ([#2907](https://github.com/j178/prek/pull/2907))
- Resolve hook commands before batching ([#2840](https://github.com/j178/prek/pull/2840))

### Bug fixes

- Accept UTF-8 BOM in `check-json` ([#2879](https://github.com/j178/prek/pull/2879))
- Preserve unquoted dotted revisions in `prek update` ([#2853](https://github.com/j178/prek/pull/2853))

### Documentation

- Document standalone installer options ([#2859](https://github.com/j178/prek/pull/2859))
- Update benchmarks for prek 0.5.5 ([#2786](https://github.com/j178/prek/pull/2786))

### Other changes

- Enable ICF for release builds ([#2891](https://github.com/j178/prek/pull/2891))
- Update uv to 0.13.0 ([#2856](https://github.com/j178/prek/pull/2856))

### Contributors

- @ebuildy
- @j178
- @shaanmajid

## Install prek 0.5.6

### Install prebuilt binaries via shell script

```sh
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.5.6/prek-installer.sh | sh
```

### Install prebuilt binaries via powershell script

```sh
powershell -ExecutionPolicy Bypass -c "irm https://github.com/j178/prek/releases/download/v0.5.6/prek-installer.ps1 | iex"
```

### Install prebuilt binaries via Homebrew

```sh
brew install prek
```

## Download prek 0.5.6

|  File  | Platform | Checksum |
|--------|----------|----------|
| [prek-aarch64-apple-darwin.tar.gz](https://github.com/j178/prek/releases/download/v0.5.6/prek-aarch64-apple-darwin.tar.gz) | Apple Silicon macOS | [checksum](https://github.com/j178/prek/releases/download/v0.5.6/prek-aarch64-apple-darwin.tar.gz.sha256) |
| [prek-x86_64-apple-darwin.tar.gz](https://github.com/j178/prek/releases/download/v0.5.6/prek-x86_64-apple-darwin.tar.gz) | Intel macOS | [checksum](https://github.com/j178/prek/releases/download/v0.5.6/prek-x86_64-apple-darwin.tar.gz.sha256) |
| [prek-aarch64-pc-windows-msvc.zip](https://github.com/j178/prek/releases/download/v0.5.6/prek-aarch64-pc-windows-msvc.zip) | ARM64 Windows | [checksum](https://github.com/j178/prek/releases/download/v0.5.6/prek-aarch64-pc-windows-msvc.zip.sha256) |
| [prek-x86_64-pc-windows-msvc.zip](https://github.com/j178/prek/releases/download/v0.5.6/prek-x86_64-pc-windows-msvc.zip) | x64 Windows | [checksum](https://github.com/j178/prek/releases/download/v0.5.6/prek-x86_64-pc-windows-msvc.zip.sha256) |
| [prek-aarch64-unknown-linux-gnu.tar.gz](https://github.com/j178/prek/releases/download/v0.5.6/prek-aarch64-unknown-linux-gnu.tar.gz) | ARM64 Linux | [checksum](https://github.com/j178/prek/releases/download/v0.5.6/prek-aarch64-unknown-linux-gnu.tar.gz.sha256) |
| [prek-powerpc64le-unknown-linux-gnu.tar.gz](https://github.com/j178/prek/releases/download/v0.5.6/prek-powerpc64le-unknown-linux-gnu.tar.gz) | PPC64LE Linux | [checksum](https://github.com/j178/prek/releases/download/v0.5.6/prek-powerpc64le-unknown-linux-gnu.tar.gz.sha256) |
| [prek-x86_64-unknown-linux-gnu.tar.gz](https://github.com/j178/prek/releases/download/v0.5.6/prek-x86_64-unknown-linux-gnu.tar.gz) | x64 Linux | [checksum](https://github.com/j178/prek/releases/download/v0.5.6/prek-x86_64-unknown-linux-gnu.tar.gz.sha256) |
| [prek-aarch64-unknown-linux-musl.tar.gz](https://github.com/j178/prek/releases/download/v0.5.6/prek-aarch64-unknown-linux-musl.tar.gz) | ARM64 MUSL Linux | [checksum](https://github.com/j178/prek/releases/download/v0.5.6/prek-aarch64-unknown-linux-musl.tar.gz.sha256) |
| [prek-x86_64-unknown-linux-musl.tar.gz](https://github.com/j178/prek/releases/download/v0.5.6/prek-x86_64-unknown-linux-musl.tar.gz) | x64 MUSL Linux | [checksum](https://github.com/j178/prek/releases/download/v0.5.6/prek-x86_64-unknown-linux-musl.tar.gz.sha256) |

## Verifying GitHub Artifact Attestations

The artifacts in this release have attestations generated with GitHub Artifact Attestations. These can be verified by using the [GitHub CLI](https://cli.github.com/manual/gh_attestation_verify):
```sh
gh attestation verify <file-path of downloaded artifact> --repo j178/prek
```

You can also download the attestation from [GitHub](https://github.com/j178/prek/attestations) and verify against that directly:
```sh
gh attestation verify <file-path of downloaded artifact> --bundle <file-path of downloaded attestation>
```


Related Repositories