Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions cargo-insta/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo-insta"
version = "1.46.3"
version = "1.47.0"
license = "Apache-2.0"
authors = ["Armin Ronacher <armin.ronacher@active-4.com>"]
description = "A review tool for the insta snapshot testing library for Rust"
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion insta/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "insta"
version = "1.46.3"
version = "1.47.0"
license = "Apache-2.0"
authors = ["Armin Ronacher <armin.ronacher@active-4.com>"]
description = "A snapshot testing library for Rust"
Expand Down
Loading