Skip to content

Latest commit

 

History

History
150 lines (104 loc) · 7.74 KB

CHANGELOG.md

File metadata and controls

150 lines (104 loc) · 7.74 KB

Change Log

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

Unreleased - ReleaseDate

0.11.2 - 2024-04-27

Added

  • All public types now implement Debug #119

0.11.1 - 2024-03-21

Fixes

  • Switch fold to use rustc's logic: always show first and last line of folded section and detect if its worth folding
  • When folding the start of a source, don't show anything, like we do for the end of the source
  • Render an underline for an empty span on Annotations

0.11.0 - 2024-03-15

Breaking Changes

  • Switched from char spans to byte spans #90
  • Renamed AnnotationType to Level #94
  • Renamed SourceAnnotation to Annotation #94
  • Renamed Snippet to Message #94
  • Renamed Slice to Snippet #94
  • Message, Snippet, Annotation and Level can only be built with a builder pattern #91 and #94
  • Annotation labels are now optional #94
  • Annotation now takes in Range<usize> instead of (usize, usize) #90
  • Margin is now an internal detail, only term_width is exposed #105
  • footer was generalized to be a Message #98

Added

  • term_width was added to Renderer to control the rendering width #105
    • defaults to 140 when not set

Fixed

  • Margins are now calculated per Snippet, rather than for the entire Message #105
  • Annotations can be created without labels

Features

  • footer was expanded to allow annotating sources by accepting Message #98

0.10.2 - 2024-02-29

Added

  • Added testing-colors feature to remove platform-specific colors when testing #82

0.10.1 - 2024-01-04

Fixed

  • Match rustc's colors #73
  • Allow highlighting one past the end of source #74

Compatibility

  • Set the minimum supported Rust version to 1.73.0 #71

0.10.0 - December 12, 2023

Added

  • Renderer is now used for displaying a Snippet #67
    • Renderer also controls the color scheme and formatting of the snippet

Changed

  • Moved everything in the snippet to be in the crate root #67

Breaking Changes

  • Renderer now controls the color scheme and formatting of Snippets #67
  • Removed the Style and Stylesheet traits, as color is controlled by Renderer #67
  • Replaced yansi-term with anstyle #67
    • anstyle is designed primarily to exist in public APIs for interoperability
    • anstyle is re-exported under annotate_snippets::renderer
  • Removed the color feature in favor of Renderer::plain() #67
  • Moved Margin to renderer module #67
  • Made the display_list module private #67

Compatibility

  • Changed the edition to 2021 #61
  • Set the minimum supported Rust version to 1.70.0 #61

0.9.2 - October 30, 2023

  • Remove parsing of __ in title strings, fixes (#53)
  • Origin line number is not correct when using a slice with fold: true (#52)

0.9.1 - September 4, 2021

  • Fix character split when strip code. (#37)
  • Fix off by one error in multiline highlighting. (#42)
  • Fix display of annotation for double width characters. (#46)

0.9.0 - June 28, 2020

  • Add strip code to the left and right of long lines. (#36)

0.8.0 - April 14, 2020

  • Replace ansi_term with yansi-term for improved performance. (#30)
  • Turn Snippet and Slice to work on borrowed slices, rather than Strings. (#32)
  • Fix \r\n end of lines. (#29)

0.7.0 - March 30, 2020

  • Refactor API to use fmt::Display (#27)
  • Fix SourceAnnotation range (#27)
  • Fix column numbers (#22)
  • Derive PartialEq for AnnotationType (#19)
  • Update ansi_term to 0.12.

0.6.1 - July 23, 2019

  • Fix too many anonymized line numbers (#5)

0.6.0 - June 26, 2019

  • Add an option to anonymize line numbers (#3)
  • Transition the crate to rust-lang org.
  • Update the syntax to Rust 2018 idioms. (#4)