From 9650730d0b29837591b4c8480b62f18f229f9df0 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Wed, 28 Aug 2019 09:30:32 +0200 Subject: [PATCH] Added upgrade command to changelog --- CHANGELOG.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 465e2f2a..3433a98d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,15 +3,23 @@ ## 0.11 * redactions are now an optional feature that must be turned on to be used (`redactions`). -* make RON support optional. +* RON format is now an optional feature that must be turned on to be used (`ron`). * added support for sorting maps before serialization. * added settings support. * added support for overriding the snapshot path. -* added an `--accept` option to `cargo insta test` -* added `--force-update-snapshots` option to `cargo insta test` * correctly handle nested macros that might contain inline snapshots. * use thread name as snapshot name for inline snapshots. * use leading whitespace normalization for inline snapshots. * removed `creator` and `created` field from snapshot metadata. * removed the `_matches` suffix from all macros. +* added an `--accept` option to `cargo insta test` +* added `--force-update-snapshots` option to `cargo insta test` * added `--jobs` and `--release` argument to `cargo insta test`. + +To upgrade to the new insta macros and snapshot formats you can use +[`fastmod`](https://crates.io/crates/fastmod) and `cargo-insta` together: + + $ cargo install fastmod + $ cargo install cargo-insta + $ fastmod '\bassert_([a-z]+_snapshot)_matches!' 'assert_${1}!' -e rs --accept-all + $ cargo insta test --all --force-update-snapshots --accept