@@ -7,6 +7,45 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
7
7
<!-- next-header -->
8
8
## [ Unreleased] - ReleaseDate
9
9
10
+ ### Migration
11
+
12
+ Note that the top-level type changed from ` Message ` to ` Report ` .
13
+ ` Message ` is now a single block of text within a ` Report ` .
14
+
15
+ - Replace ` Message::footer ` with either
16
+ - adding a ` Message ` to a ` Group `
17
+ - starting a new ` Group `
18
+ - Replace ` Level::<Variant> ` with ` Level::<VARIANT> ` , e.g. ` Level::Error ` -> ` Level::ERROR `
19
+ - Instead of creating ` Snippet ` s on a ` Message ` (the type returned by ` Level::title ` ), add them to the ` Group ` that is created with the ` Title `
20
+ - ` Snippet::origin ` has been renamed to ` Snippet::path `
21
+ - Instead of creating an ` Annotation ` from a ` Level ` , create them from an ` AnnotationKind `
22
+ - ` AnnotationKind::Primary ` will automatically match the ` Level ` of the ` Group `
23
+ - All others existing annotations should likely be ` AnnotationKind::Context `
24
+ - ` Level::title ` has been replaced with ` Level::primary_level ` (for first ` Group ` ) and ` Level::secondary_level ` (subsequent ` Group ` s)
25
+ - ` Message::id ` has moved to ` Title::id `
26
+ - Renamed ` Renderer::line_no ` to ` Renderer::line_num `
27
+ - Add ` snippet.fold(false) ` if unspecified, removing ` snippet.fold(true) ` if specified
28
+
29
+ ### Features
30
+
31
+ - Added unicode decor support, see ` renderer::DecorStyle `
32
+ - Created [ ` Group ` ] to indicate what all is included between the unicode begin and end decor
33
+ - Added ` Level::secondary_title ` to allow for custom ANSI escape code styling to be applied to those ` Title ` s
34
+ - Added ` AnnotationKind::Visible ` to force spans to be visible within a Snippet, despite code folding, without any visible marker
35
+ - Added ` Origin ` for referencing code without the source
36
+ - Added ` Group::with_level ` to allow ` Snippet ` s without a ` Title `
37
+ - Added ` Level::no_name ` to hide the level name
38
+ - Added ` Level::with_name ` to override what is rendered for that level
39
+ - Added ` Title::id_url ` to turn ` Title::id ` into a link
40
+ - Added ` Patch ` for displaying changes to code
41
+
42
+ ### Fixes
43
+
44
+ - Switched strings to ` Cow<str> ` to allow for easier management of owned data
45
+ - ` Snippet::path ` now accepts ` None `
46
+ - ` Annotation::label ` now accepts ` None `
47
+ - Various rendering fixes
48
+
10
49
## [ 0.11.5] - 2024-12-09
11
50
12
51
### Added
0 commit comments