Skip to content

Commit 36de6be

Browse files
committed
docs: Update changelog
1 parent 7d33f87 commit 36de6be

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77
<!-- next-header -->
88
## [Unreleased] - ReleaseDate
99

10+
### Breaking Change
11+
12+
- `TestCases::insert_var` / `TestCases::extend_var` no longer overwrite but extend the vr
13+
14+
### Features
15+
16+
- Allow inserting multiple values for the same variable, to handle multiple forms of the same value (like UNC paths vs regular paths)
17+
- Add `TestCases::clear_var`
18+
1019
## [0.14.21] - 2024-02-08
1120

1221
### Internal

crates/snapbox/CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,26 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77
<!-- next-header -->
88
## [Unreleased] - ReleaseDate
99

10+
### Breaking Change
11+
12+
- `_path` assertions have been replaced by regular assertions accepting and updating `Data::read_from` / `file![]
13+
- Renamed `Data::try_coerce` to `Data::coerce_to`
14+
- Normalization types and `DataFormat` were moved to the `data` mod
15+
16+
### Features
17+
18+
- `str![]` macro for inline snapshots
19+
- `coerce_to` for specifying the structure of the snapshot
20+
- `file!["<path-relative-to-rs>"]` macro for test-relative snapshots
21+
- `_` placeholder can be used for auto-generated file names
22+
- `: Json` (see `DataFormat`) type ascriptions for specifying the structure of the snapshot
23+
- `ToDebug` extension trait for easier snapshot testing of debug output
24+
- Help catch swapped parameters to assertions by panicking if the "actual" has a source to update but not the "expected"
25+
- Allow inserting multiple values for the same variable, to handle multiple forms of the same value (like UNC paths vs regular paths)
26+
- `path::current_rs!()` macro for an absolute path of `std::fs::file!`
27+
- `path::current_dir!()` macro to get the absolute path to `std::fs::file!`
28+
- `path::cargo_rustc_current_dir()` macro as a polyfill for the unstable `CARGO_RUSTC_CURRENT_DIR`
29+
1030
## [0.4.17] - 2024-02-08
1131

1232
## [0.4.16] - 2024-01-12

0 commit comments

Comments
 (0)