Releases: mitsuhiko/insta
1.43.2
Release Notes
- Fix panics when
cargo metadatafails to execute or parse (e.g., when cargo is not in PATH or returns invalid output). Now falls back to using the manifest directory as the workspace root. #798 (@adriangb) - Fix clippy
uninlined_format_argslint warnings. #801 - Changed diff line numbers to 1-based indexing. #799
- Preserve snapshot names with
INSTA_GLOB_FILTER. #786 - Bumped
libccrate to0.2.174, fixing building on musl targets, and increasing the MSRV of
instato1.64.0(released Sept 2022). #784 - Fix clippy 1.88 errors. #783
- Fix source path in snapshots for non-child workspaces. #778
- Add lifetime to Selector in redaction iterator. #779
Install cargo-insta 1.43.2
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mitsuhiko/insta/releases/download/1.43.2/cargo-insta-installer.sh | shInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy ByPass -c "irm https://github.com/mitsuhiko/insta/releases/download/1.43.2/cargo-insta-installer.ps1 | iex"Download cargo-insta 1.43.2
| 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.43.1
Release Notes
This release in identical in rust code to 1.43.0, but reruns the GitHub Actions
workflows, which failed to create a release within GitHub for 1.43.0.
Install cargo-insta 1.43.1
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mitsuhiko/insta/releases/download/1.43.1/cargo-insta-installer.sh | shInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy ByPass -c "irm https://github.com/mitsuhiko/insta/releases/download/1.43.1/cargo-insta-installer.ps1 | iex"Download cargo-insta 1.43.1
| 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.42.2
Release Notes
- Support other indention characters than spaces in inline snapshots. #679
- Fix an issue where multiple targets with the same root would cause too many pending snapshots to be reported. #730
- Hide
unseenoption in CLI, as it's pending deprecation. #732 - Stop
\tand\x1b(ANSI color escape) from causing snapshots to be escaped. #715 - Improved handling of inline snapshots within
allow_duplicates! { .. }. #712
Install cargo-insta 1.42.2
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mitsuhiko/insta/releases/download/1.42.2/cargo-insta-installer.sh | shInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy ByPass -c "irm https://github.com/mitsuhiko/insta/releases/download/1.42.2/cargo-insta-installer.ps1 | iex"Download cargo-insta 1.42.2
| 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.42.1
Release Notes
- Improved handling of control characters in inline snapshots. #713
Install cargo-insta 1.42.1
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mitsuhiko/insta/releases/download/1.42.1/cargo-insta-installer.sh | shInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy ByPass -c "irm https://github.com/mitsuhiko/insta/releases/download/1.42.1/cargo-insta-installer.ps1 | iex"Download cargo-insta 1.42.1
| 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.42.0
Release Notes
- Text snapshots no longer contain
snapshot_type: textin their metadata. For context, we originally added this in the prior release (1.41.0) to support binary snapshots, but some folks disliked the diff noise on any snapshot changes, and the maintainers' weighted votes favored reverting. I apologize that this will cause some additional churn for those who usedcargo insta test --force-update-snapshotsto update their snapshots to the 1.41 format; running this again with 1.42 will remove those metadata entries. To confirm: this doesn't affect whether snapshot tests pass or fail β the worst impact is some additional diffs in metadata. #690 - Pending snapshots are no longer removed throughout the workspace by
cargo-instabefore running tests. Instead, running a test will overwrite or remove its own pending snapshot. To remove all pending snapshots, usecargo insta rejector run tests with--unreferenced=delete. #651 insta::internals::SettingsBindDropGuard(returned fromSettings::bind_to_scope) no longer implementsSend. This was incorrect and any tests relying on this behavior where not working properly. Fixes #694 in #695 by @jalil-salame
Install cargo-insta 1.42.0
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mitsuhiko/insta/releases/download/1.42.0/cargo-insta-installer.sh | shInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy ByPass -c "irm https://github.com/mitsuhiko/insta/releases/download/1.42.0/cargo-insta-installer.ps1 | iex"Download cargo-insta 1.42.0
| 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.41.1
Release Notes
- Re-release of 1.41.0 to generate release artifacts correctly.
Install cargo-insta 1.41.1
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mitsuhiko/insta/releases/download/1.41.1/cargo-insta-installer.sh | shInstall prebuilt binaries via powershell script
powershell -c "irm https://github.com/mitsuhiko/insta/releases/download/1.41.1/cargo-insta-installer.ps1 | iex"Download cargo-insta 1.41.1
| 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.41.0
-
Experimental support for binary snapshots. #610 (Florian Plattner)
-
--force-update-snapshotsnow causescargo-instato write every snapshot, regardless of whether snapshots fully match, and now implies--accept. This allows for--force-update-snapshotsto update inline snapshots' delimiters and indentation.For the previous behavior of
--force-update-snapshots, which limited writes to snapshots which didn't fully match, use--require-full-match. The main difference between--require-full-matchand the existing behavior of--force-update-snapshots
is a non-zero exit code on any snapshots which don't fully match.Like the previous behavior or
--force-update-snapshots,--require-full-matchdoesn't track inline snapshots' delimiters or
indentation, so can't update if those don't match. #644 -
Inline snapshots only use
#characters as delimiters when required. #603 -
Warnings for undiscovered snapshots are more robust, and include files with custom snapshot extensions. #637
-
Insta runs correctly on packages which reference rust files in a parent path. #626
-
Warnings are printed when any snapshot uses a legacy format. #599
-
cargo insta --versionnow prints a version. #665 -
instanow internally usesINSTA_UPDATE=forcerather thanINSTA_FORCE_UPDATE=1. (This doesn't affect users ofcargo-insta, which handles this internally.) #482 -
cargo-insta's integration tests continue to grow over the past couple of versions, and now offer coverage of most ofcargo-insta's interface.
1.40.0
Release Notes
-
cargo-instano longer panics when runningcargo test --accept --workspace
on a workspace with a default crate. #532 -
MSRV for
instahas been raised to 1.60, and forcargo-instato 1.64. -
Added support for compact debug snapshots (
assert_compact_debug_snapshot). #514 -
Deprecate
--no-force-passincargo-insta. The--checkoption covers the
same functionality and has a clearer name. #513 -
Inline snapshots now use the required number of
#s to escape the snapshot
value, rather than always using###. This allows snapshotting values which
themselves contain###. If there are no existing#characters in the
snapshot value, a single#will be used. #540 -
Inline snapshots can now be updated with
--force-update-snapshots. #569 -
cargo insta testaccepts multiple--excludeflags. #520 -
testrunnerin insta's yaml config works. #544 -
Print a warning when encountering old snapshot formats. #503
-
Group the options in
cargo insta --help, upgrade toclapfromstructopt. #518 -
No longer suggest running
cargo instamessage when runningcargo insta test --check. #515 -
Print a clearer error message when accepting a snapshot that was removed. #516
-
Mark
require-full-matchas experimental, given some corner-cases are currently difficult to manage. #497 -
Add a new integration test approach for
cargo-instaand a set of integration tests. #537 -
Enable Filters to be created from
IntoIteratortypes, rather than justVecs. #570 -
Implemented total sort order for an internal
Keytype correctly. This prevents potential
crashes introduced by the new sort algorithm in Rust 1.81. #586
Install cargo-insta 1.40.0
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mitsuhiko/insta/releases/download/1.40.0/cargo-insta-installer.sh | shInstall prebuilt binaries via powershell script
powershell -c "irm https://github.com/mitsuhiko/insta/releases/download/1.40.0/cargo-insta-installer.ps1 | iex"Download cargo-insta 1.40.0
| 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.39.0
Release Notes
-
Fixed a bug in
require_full_match. #485 -
Fixed a bug that caused snapshot and module names to sometimes be inaccurate. #483
-
Insta will no longer error when removing snapshots that were already removed. #484
-
Added support for trailing commas in inline snapshots. #472
-
Don't pass
--colorin all cases tolibtestany more to work around limitations
with custom test harnesses. #491
Install cargo-insta 1.39.0
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mitsuhiko/insta/releases/download/1.39.0/cargo-insta-installer.sh | shInstall prebuilt binaries via powershell script
powershell -c "irm https://github.com/mitsuhiko/insta/releases/download/1.39.0/cargo-insta-installer.ps1 | iex"Download cargo-insta 1.39.0
| 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.38.0
Release Notes
-
Filtersis now constructible fromIntoIterator. #400 -
Change
stdmacro calls to be fully qualified. This fixes issues where
the prelude was not used or the macros were overridden. #469
Install cargo-insta 1.38.0
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mitsuhiko/insta/releases/download/1.38.0/cargo-insta-installer.sh | shInstall prebuilt binaries via powershell script
powershell -c "irm https://github.com/mitsuhiko/insta/releases/download/1.38.0/cargo-insta-installer.ps1 | iex"Download cargo-insta 1.38.0
| 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 |