diff --git a/CHANGELOG.md b/CHANGELOG.md index 96bd01df..0e0f41ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,16 @@ All notable changes to insta and cargo-insta are documented here. +## 1.47.0 + +- Add `Comparator` trait for customizing how snapshot values are compared. #872 (@dstu) +- Sort sequences in `sort_maps` to fix non-deterministic `HashSet` snapshots. #876 +- Improve TOML serialization error message for unsupported types, suggesting `assert_json_snapshot!` or `assert_yaml_snapshot!` as alternatives. #880 +- Remove unnecessary `Send + Sync` bounds from `Redaction`, allowing non-`Send` closures in dynamic redactions. #874 +- Don't use `Arc` in `Settings` unnecessarily. #873 (@dstu) +- Upgrade `console` to 0.16 and MSRV to 1.66. #885 +- Upgrade `toml-edit` to 0.25. #882 (@alexanderkjall) + ## 1.46.3 - Fix inline escaped snapshots incorrectly stripping leading newlines when content contains control characters like carriage returns. The escaped format (used for snapshots with control chars) now correctly preserves the original content without stripping a non-existent formatting newline. #865 diff --git a/Cargo.lock b/Cargo.lock index 8d0259b6..a4b2ff1c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -69,7 +69,7 @@ dependencies = [ [[package]] name = "cargo-insta" -version = "1.46.3" +version = "1.47.0" dependencies = [ "cargo_metadata", "clap", @@ -397,7 +397,7 @@ dependencies = [ [[package]] name = "insta" -version = "1.46.3" +version = "1.47.0" dependencies = [ "clap", "console 0.16.0", diff --git a/cargo-insta/Cargo.toml b/cargo-insta/Cargo.toml index 6032794d..d080a37d 100644 --- a/cargo-insta/Cargo.toml +++ b/cargo-insta/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cargo-insta" -version = "1.46.3" +version = "1.47.0" license = "Apache-2.0" authors = ["Armin Ronacher "] description = "A review tool for the insta snapshot testing library for Rust" @@ -14,7 +14,7 @@ readme = "README.md" rust-version = "1.66.0" [dependencies] -insta = { version = "=1.46.3", path = "../insta", features = [ +insta = { version = "=1.47.0", path = "../insta", features = [ "json", "yaml", "redactions", diff --git a/insta/Cargo.toml b/insta/Cargo.toml index f2dfcfd5..1671285c 100644 --- a/insta/Cargo.toml +++ b/insta/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "insta" -version = "1.46.3" +version = "1.47.0" license = "Apache-2.0" authors = ["Armin Ronacher "] description = "A snapshot testing library for Rust"