Skip to content

Releases: mathematic-inc/if-changed

v0.3.4

11 Mar 01:03
c6136b0

Choose a tag to compare

if-changed v0.3.4

v0.3.4 is a security patch release — short, sharp, and important. If you're using if-changed in CI pipelines or developer machines, upgrade now to pick up a patched dependency and a more reliable release pipeline. No API changes, no migration needed — just drop it in.

🔒 Security Fixes

  • git2 updated to 0.20.0 — this release patches a security vulnerability in the underlying libgit2 bindings. If you're running if-changed against untrusted repositories or in shared CI environments, this upgrade is especially important. (#274)

🛠 Improvements

  • CI release pipeline hardened — fixed a missing toolchain input in the rust-toolchain steps, ensuring the release workflow builds with the correct pinned Rust version every time. (#277)

Install / Upgrade

cargo install if-changed

Already using if-changed with pre-commit? Bump the rev in your .pre-commit-config.yaml:

repos:
  - repo: https://github.com/mathematic-inc/if-changed
    rev: v0.3.4
    hooks:
      - id: if-changed

if-changed is free and open-source software by a 501(c)(3) non-profit. If it saves you time in your build pipeline, consider sponsoring the project. Every bit helps!

v0.3.3

11 Mar 01:00
8810e08

Choose a tag to compare

if-changed v0.3.3

v0.3.3 is a focused maintenance release that keeps if-changed safe, clean, and reliable — patching a security vulnerability in a core dependency, clarifying the project's license, and overhauling the CI/release pipeline so future releases ship smoothly. No API changes, no migration needed; just drop it in and you're good to go.

🔒 Security Fixes

  • git2 updated to 0.20.0 — this dependency received a security advisory and has been patched immediately. If you run if-changed in environments where git operations touch untrusted repositories, upgrading to this release is strongly recommended.

🐛 Bug Fixes

  • Release pipeline repaired — a missing toolchain input in the rust-toolchain steps was causing release builds to misbehave; that's now fixed so binaries are built with the correct toolchain going forward.
  • CI workflows overhauled — the GitHub Actions setup was rewritten from scratch: leaner job definitions, a new dedicated release.yml workflow, automated release-please integration, and cleaner separation of CI vs. publish concerns. Fewer moving parts, fewer surprises.

⚡ Improvements

  • License simplified to Apache-2.0 — the previous dual MIT OR Apache-2.0 SPDX expression has been narrowed to Apache-2.0 only, removing any ambiguity for downstream consumers and tooling.
  • Dependency freshnessclap, serde, tempfile, bstr, and a raft of GitHub Actions are all up to date, keeping the supply chain tidy and auditable.

📦 Install

cargo install if-changed

Or, to use the latest version with pre-commit, update your .pre-commit-config.yaml:

repos:
  - repo: https://github.com/mathematic-inc/if-changed
    rev: v0.3.3
    hooks:
      - id: if-changed

if-changed is free and open-source work by a 501(c)(3) non-profit. If it saves you time in your build pipelines, please consider sponsoring the project. 💙

v0.3.2

13 Jun 01:43
7b333cd

Choose a tag to compare

0.3.2 (2024-06-13)

Bug Fixes

  • deps: Update cargo (#29) (c5b6b82)
  • deps: Update rust crate clap to v4.5.5 (#69) (8eb3430)
  • deps: Update rust crate clap to v4.5.6 (#70) (23a0547)
  • deps: Update rust crate clap to v4.5.7 (#78) (16382d0)

v0.3.1

21 Apr 17:24
b4ba543

Choose a tag to compare

0.3.1 (2024-04-21)

Bug Fixes

v0.3.0

20 Apr 13:54
8a78810

Choose a tag to compare

0.3.0 (2024-04-20)

⚠ BREAKING CHANGES

  • reverse pattern matching

Features

  • Reverse pattern matching (7d09224)

v0.2.0

19 Apr 14:28
f12634e

Choose a tag to compare

0.2.0 (2024-04-19)

⚠ BREAKING CHANGES

  • allow pathspec for files

Features

  • Allow pathspec for files (5df28a6)

Bug Fixes

v0.1.0

19 Apr 01:33
3e8c31f

Choose a tag to compare

0.1.0 (2024-04-19)

Features