Skip to content

Commit f76187a

Browse files
committed
docs: Update changelog
1 parent 334eaa9 commit f76187a

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

CHANGELOG.md

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

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+
- 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`
19+
- `Snippet::origin` has been renamed to `Snippet::path`
20+
- Instead of creating an `Annotation` from a `Level`, create them from an `AnnotationKind`
21+
- `AnnotationKind::Primary` will automatically match the `Level` of the `Group`
22+
- All others existing annotations should likely be `AnnotationKind::Context`
23+
- `Level::title` has been replaced with `Level::primary_level` (for first `Group`) and `Level::secondary_level` (subsequent `Group`s)
24+
- `Message::id` has moved to `Title::id`
25+
- Renamed `Renderer::line_no` to `Renderer::line_num`
26+
27+
### Features
28+
29+
- Added unicode decor support, see `renderer::DecorStyle`
30+
- Created [`Group`] to indicate what all is included between the unicode begin and end decor
31+
- Added `Level::secondary_title` to allow for custom ANSI escape code styling to be applied to those `Title`s
32+
- Added `AnnotationKind::Visible` to force spans to be visible within a Snippet, despite code folding, without any visible marker
33+
- Added `Origin` for referencing code without the source
34+
- Added `Group::with_level` to allow `Snippet`s without a `Title`
35+
- Added `Level::no_name` to hide the level name
36+
- Added `Level::with_name` to override what is rendered for that level
37+
- Added `Title::id_url` to turn `Title::id` into a link
38+
- Added `Patch` for displaying changes to code
39+
40+
### Fixes
41+
42+
- Switched strings to `Cow<str>` to allow for easier management of owned data
43+
- `Snippet::path` now accepts `None`
44+
- `Annotation::label` now accepts `None`
45+
- Various rendering fixes
46+
1047
## [0.11.5] - 2024-12-09
1148

1249
### Added

0 commit comments

Comments
 (0)