Skip to content

v2.0.0

Latest

Choose a tag to compare

@github-actions github-actions released this 22 Nov 20:46
Immutable release. Only release title and notes can be modified.
66491bc

What's new

Extract links and addresses from a line of Markdown, including a URL with balanced parentheses:

echo 'Email ops@example.com about [the fix](https://example.org/wiki/Fix_(v2)).' | squeeze --email --url
ops@example.com
https://example.org/wiki/Fix_(v2)

Use --exit-code in scripts to distinguish matches (0), an empty result (1), and an error (2). The new recipes also show how to count IPs in logs and collect links from release commits.

Upgrading from 1.x

  • CLI flags. Use --css-color to find CSS colors. --color=auto|always|never controls output styling. Bare --open opens URL results. Use --open=path for files or --open=uri for other schemes.
  • Installation. Use brew install aymericbeaumet/tap/squeeze, mise use -g github:aymericbeaumet/squeeze@2.0.0, or an archive below. Cargo users can build the CLI with cargo install --locked --git https://github.com/aymericbeaumet/squeeze --tag v2.0.0. Only the library is published to crates.io.
  • Rust API. Replace scanner::ScannerError with squeeze::Error. Handle the Result returned when adding a hash algorithm, URI scheme or codetag mnemonic. For nonstandard tags, call add_custom_mnemonic. The minimum Rust version remains 1.95. Library migration notes.

Full changelog