Sourced from insta's releases.
1.44.3
Release Notes
- Fix a regression in 1.44.2 where merge conflict detection was too aggressive, incorrectly flagging snapshot content containing
======or similar patterns as conflicts. #832- Fix a regression in 1.42.2 where inline snapshot updates would corrupt the file when code preceded the macro (e.g.,
let output = assert_snapshot!(...)). #833Install cargo-insta 1.44.3
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mitsuhiko/insta/releases/download/1.44.3/cargo-insta-installer.sh | shInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/mitsuhiko/insta/releases/download/1.44.3/cargo-insta-installer.ps1 | iex"Download cargo-insta 1.44.3
File Platform Checksum cargo-insta-aarch64-apple-darwin.tar.xz Apple Silicon macOS checksum cargo-insta-x86_64-apple-darwin.tar.xz Intel macOS checksum cargo-insta-x86_64-pc-windows-msvc.zip x64 Windows checksum cargo-insta-x86_64-unknown-linux-gnu.tar.xz x64 Linux checksum cargo-insta-x86_64-unknown-linux-musl.tar.xz x64 MUSL Linux checksum 1.44.2
Release Notes
- Fix a rare backward compatibility issue where inline snapshots using an uncommon legacy format (single-line content stored in multiline raw strings) could fail to match after 1.44.0. #830
- Handle merge conflicts in snapshot files gracefully. When a snapshot file contains git merge conflict markers, insta now detects them and treats the snapshot as missing, allowing tests to continue and create a new pending snapshot for review. #829
- Skip nextest_doctest tests when cargo-nextest is not installed. #826
- Fix functional tests failing under nextest due to inherited
NEXTEST_RUN_IDenvironment variable. #824Install cargo-insta 1.44.2
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mitsuhiko/insta/releases/download/1.44.2/cargo-insta-installer.sh | shInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/mitsuhiko/insta/releases/download/1.44.2/cargo-insta-installer.ps1 | iex" </tr></table>
... (truncated)
Sourced from insta's changelog.
1.44.3
- Fix a regression in 1.44.2 where merge conflict detection was too aggressive, incorrectly flagging snapshot content containing
======or similar patterns as conflicts. #832- Fix a regression in 1.42.2 where inline snapshot updates would corrupt the file when code preceded the macro (e.g.,
let output = assert_snapshot!(...)). #8331.44.2
- Fix a rare backward compatibility issue where inline snapshots using an uncommon legacy format (single-line content stored in multiline raw strings) could fail to match after 1.44.0. #830
- Handle merge conflicts in snapshot files gracefully. When a snapshot file contains git merge conflict markers, insta now detects them and treats the snapshot as missing, allowing tests to continue and create a new pending snapshot for review. #829
- Skip nextest_doctest tests when cargo-nextest is not installed. #826
- Fix functional tests failing under nextest due to inherited
NEXTEST_RUN_IDenvironment variable. #8241.44.1
- Add
--dndalias for--disable-nextest-doctestflag to make it easier to silence the deprecation warning. #822- Update cargo-dist to 0.30.2 and fix Windows runner to use windows-2022. #821
1.44.0
- Added non-interactive snapshot review and reject modes for use in non-TTY environments (LLMs, CI pipelines, scripts).
cargo insta review --snapshot <path>andcargo insta reject --snapshot <path>now work without a terminal. Enhancedpending-snapshotsoutput with usage instructions and workspace-relative paths. #815- Add
--disable-nextest-doctestflag tocargo insta testto disable running doctests with nextest. Shows a deprecation warning when nextest is used with doctests without this flag, to preparecargo instato no longer run a separate doctest process when using nextest in the future. #803- Add ergonomic
--test-runner-fallback/--no-test-runner-fallbackflags tocargo insta test. #811- Apply redactions to snapshot metadata. #813
- Remove confusing 'previously unseen snapshot' message. #812
- Speed up JSON float rendering. #806 (
@nyurik)- Allow globset version up to 0.4.16. #810 (
@g0hl1n)- Improve documentation. #814 (
@tshepang)- We no longer trim starting newlines during assertions, which allows asserting the number of leading newlines match. Existing assertions with different leading newlines will pass and print a warning suggesting running with
--force-update-snapshots. They may fail in the future. (Note that we still currently allow differing trailing newlines, though may adjust this in the future). #563
dcbb11f
Prepare release 1.44.3 (#838)3b9ec12
Refine test name & description (#837)ee4e1ea
Handle unparsable snapshot files gracefully (#836)778f733
Fix for code before macros, such as let foo =
assert_snapshot! (#835)6cb41af
Prepare release 1.44.2 (#831)8838b2f
Handle merge conflicts in snapshot files gracefully (#829)e55ce99
Fix backward compatibility for legacy inline snapshot format (#830)d44dd42
Skip nextest_doctest tests when cargo-nextest is not installed (#826)a711baf
Fix functional tests failing under nextest (#824)ba9ea51
Prepare release 1.44.1 (#823)