From 475641a16db31d73534a25efe382d2476fc83587 Mon Sep 17 00:00:00 2001 From: Maximilian Roos Date: Thu, 22 Aug 2024 14:40:23 -0700 Subject: [PATCH] changelog --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index abc9f8a3..43f8ba79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ All notable changes to insta and cargo-insta are documented here. ## 1.40.0 +- We no longer trim starting newlines during assertions, allowing asserting + leading newlines match those in a snapshot value. Existing assertions with + different leading newlines will pass with a warning suggesting using + `--force-update-snapshots` to update a snapshot, and will fail in the future. + (Note that we currently allowing differing trailing newlines but may adjust + this in the future). #569 + - `cargo-insta` no longer panics when running `cargo test --accept --workspace` on a workspace with a default crate. #532