v6.0.0
6.0.0 (2024-02-04)
The long-awaited 6.0 release of miette
is here, with TONS of goodies, not
least of which is syntax highlighting support!
It also comes with a few breaking changes so make sure to check below and
update your code as needed!
Features
- labels: Add support for primary label in specifying line/col information (#291) (db0b7e40)
- derive: Allow optional sources in derive (#301) (88d00e0e)
- derive: Make
miette-derive
be able to be turned off (#304) (c7ba5b7e) - graphical: Expose additional
textwrap
options (#321) (fd77257c) - graphical: support rendering labels that contain newlines (#318) (865d67c8)
- graphical: Add
wrap_lines: bool
option allowing wrapping be disabled entirely (#328) (b0744462) - graphical: render disjoint snippets separately for cleaner output (#324) (19c22143)
- deps: Bump terminal-size to v0.3.0 (#308) (c0a298e5)
- BREAKING CHANGE: This requires an MSRV bump to 1.70.0.
- source-code: Don't override provided source code (#300) (0d5c2ce7)
- BREAKING CHANGE: Source code is no longer overridden if it was provided by the diagnostic's own
source_code()
impl.
- BREAKING CHANGE: Source code is no longer overridden if it was provided by the diagnostic's own
- source: use
usize
for length (#265) (fad0e76a)- BREAKING CHANGE: This changes
SourceSpan
's length type tousize
.
- BREAKING CHANGE: This changes
- source: Allow inner source type of a NamedSource to be borrowed (#254) (1df3b1a5)
- BREAKING CHANGE: This makes the
NamedSource
type generic over itsSource
type, instead of boxing it.
- BREAKING CHANGE: This makes the
- highlighting: add syntax highlighting support with syntect crate (#313) (e65d0a78)
- deps: remove is-terminal dep in favor of
std::io::IsTerminal
(e5c7ae46) - deps: remove once_cell dep in favor of
std::sync::OnceLock
(4c48584f)- BREAKING CHANGE: This requires an MSRV bump to 1.70.0.
- deps: bump some semver-breaking deps to newer versions (29d000f2)
- MSRV: Actually bump the MSRV to 1.70.0 (ab59a7bc)
Bug Fixes
- misc: Improve ci and fix clippy (#290) (cc81382a)
- tests: Fix
cargo test
with default features. (#294) (1f448e47) - clippy: Add missing semicolons where nothing is returned. (#293) (06b34823)
- graphical: Extend error text span to whole code points (#312) (a8b4ae01)
- formatting: Fix formatting bug when an empty span is not aligned to a char boundary (#314) (3d6f903d)
- docs: add example to README and docs fixing #96 (#319) (251d6d59)
- graphical: rendering bug on small spans in large spans (#316) (7ff4f874)
- graphical: render cause chains for inner errors (#330) (cb2ae2e1)
- handler: remove the two extra
is_terminal
sys call fromMietteHandlerOpts::build
(#325) (f1dc89c0)