github j178/prek v0.3.0
0.3.0

12 hours ago

Release Notes

Released on 2026-01-22.

Highlights

  • 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.

  • language: bun is now supported, making it possible to write and run hooks with Bun.

Enhancements

  • Implement prek cache gc (#1410)

    • Bootstrap tracking configs from workspace cache (#1417)
    • Show total size prek cache gc removed (#1418)
    • Show accurate repo and hook details in prek cache gc -v (#1420)
    • prek cache gc remove specific unused tool versions (#1422)
    • Fix unused tool versions not removed in prek cache gc (#1436)
  • Add language: bun support (#1411)

    • Use git ls-remote --tags to list bun versions (#1439)
  • Accept --stage as an alias for --hook-stage in prek run (#1398)

  • Expand ~ tilde in PREK_HOME (#1431)

  • Support refs to trees (#1449)

Bug fixes

  • Avoid file lock warning for in-process contention (#1406)
  • Resolve relative repo paths from config file directory (#1443)
  • fix: use split() instead of resolve(None) for builtin hook argument parsing (#1415)

Documentation

  • Add simple-icons and ast-grep to the users of prek (#1403)
  • Improve JSON schema for repo field (#1432)
  • Improve JSON schema for builtin and meta hooks (#1427)
  • Add pronunciation entry to FAQ (#1442)
  • Add commitizen to the list of projects using prek (#1413)
  • Move docs to zensical (#1421)

Other Changes

  • Refactor config layout (#1407)

Contributors

Install prek 0.3.0

Install prebuilt binaries via shell script

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

Install prebuilt binaries via powershell script

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

Install prebuilt binaries via Homebrew

brew install j178/tap/prek

Install prebuilt binaries into your npm project

npm install @j178/prek@0.3.0

Download prek 0.3.0

File Platform Checksum
prek-aarch64-apple-darwin.tar.gz Apple Silicon macOS checksum
prek-x86_64-apple-darwin.tar.gz Intel macOS checksum
prek-aarch64-pc-windows-msvc.zip ARM64 Windows checksum
prek-i686-pc-windows-msvc.zip x86 Windows checksum
prek-x86_64-pc-windows-msvc.zip x64 Windows checksum
prek-aarch64-unknown-linux-gnu.tar.gz ARM64 Linux checksum
prek-i686-unknown-linux-gnu.tar.gz x86 Linux checksum
prek-riscv64gc-unknown-linux-gnu.tar.gz RISCV Linux checksum
prek-s390x-unknown-linux-gnu.tar.gz S390x Linux checksum
prek-x86_64-unknown-linux-gnu.tar.gz x64 Linux checksum
prek-armv7-unknown-linux-gnueabihf.tar.gz ARMv7 Linux checksum
prek-aarch64-unknown-linux-musl.tar.gz ARM64 MUSL Linux checksum
prek-i686-unknown-linux-musl.tar.gz x86 MUSL Linux checksum
prek-x86_64-unknown-linux-musl.tar.gz x64 MUSL Linux checksum
prek-arm-unknown-linux-musleabihf.tar.gz ARMv6 MUSL Linux (Hardfloat) checksum
prek-armv7-unknown-linux-musleabihf.tar.gz ARMv7 MUSL Linux checksum

Don't miss a new prek release

NewReleases is sending notifications on new releases.