unstale

pypi / prek

prek

What changed in prek 0.5, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-19.

2 breaking9 new APIs and options18 performance2 behavior and defaults2 tooling10 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.0 on npm

prek 0.543 changes

Breaking changes 2

New APIs and options 9

Performance 18

  • Reduces hook process launches by using balanced batches.

    0.5.6release notes

  • Unused file input is skipped for always-run hooks.

    0.5.5release notes

  • Bun and Deno version queries are shared across environments.

    0.5.5release notes

  • Cached hook environments are checked concurrently.

    0.5.5release notes

  • Only staged additions are queried for case-conflict checks.

    0.5.5release notes

  • Git queries run concurrently for case-conflict checks.

    0.5.5release notes

  • Untracked files are skipped in destroyed symlink checks.

    0.5.5release notes

  • Git discovery overlaps with worktree status checks.

    0.5.5release notes

  • Git worktree state is reused during hook startup.

    0.5.5release notes

  • Intent-to-add paths are reused when saving unstaged changes.

    0.5.5release notes

  • Lua runtime probes are shared across hook environments.

    0.5.5release notes

  • mise version queries are shared across hook environments.

    0.5.5release notes

  • Site initialization is skipped in Python interpreter probes.

    0.5.5release notes

  • JSON imports are avoided when querying Python interpreters.

    0.5.5release notes

  • Ruby version queries are shared across hook environments.

    0.5.5release notes

  • File reads are batched during shebang checks.

    0.5.5release notes

  • Worker overhead is reduced in XML and pygrep checks.

    0.5.5release notes

  • Builtin hook execution is faster; the end-to-end benchmark reports about 38% improvement over 0.5.3, with some hooks up to 273% faster.

    0.5.4release notes

Behavior and default changes 2

  • Shebang checks now default missing core.fileMode.

    0.5.5release notes

  • Builtin pattern hooks now support look-around regular expressions.

    0.5.4release notes

Tooling 2

  • Completion generation now supports Nushell.

    0.5.5release notes

  • Wheel and binary builds are now available for ppc64le.

    0.5.5release notes

Fixes and other changes 10

  • Accepts a UTF-8 BOM in JSON checked by the builtin hook.

    0.5.6release notes

  • Preserves unquoted dotted revisions when updating.

    0.5.6release notes

  • File sizes are rounded up.

    0.5.5release notes

  • Staged and unstaged changes are preserved when stash restore encounters conflicts.

    0.5.5release notes

  • Duplicate diffs are avoided after hooks rewrite files.

    0.5.5release notes

  • Protected branch patterns are matched from the start.

    0.5.5release notes

  • Explicit paths are normalized in shebang index checks.

    0.5.5release notes

  • Empty character sets are preserved.

    0.5.5release notes

  • Completion scripts resolve prek using PATH.

    0.5.4release notes

  • Transient rename failures are retried on Windows.

    0.5.4release notes