Skip to content

Releases: zkat/miette

v7.1.0

16 Feb 02:19
a18a644
Compare
Choose a tag to compare

Features

  • derive: enable more boxed types to be #[diagnostic_source] (#338) (c2f06f6c)
  • source: derive common traits for NamedSource, SourceSpan, and SourceOffset (#340) (6f09250c)
  • collection: add support for collection of labels (#341) (03060245)

Bug Fixes

v7.0.0

16 Feb 02:19
ecb0102
Compare
Choose a tag to compare

7.0.0 (2024-02-05)

This is a small breaking release on the heels of 6.0 because I neglected to
bump owo-colors. I figured it's a good time to do it, before 6.0 gets more
widely used.

Features

  • fancy: Add option to change the link display text (#335) (c7144ee5)
  • deps: bump dependencies (a4011d17)
    • BREAKING CHANGE: This bumps owo-colors to 4.0, which is a breaking change because we expose its styles as part of the graphical renderer API

v6.0.1

04 Feb 04:28
cf2d8c0
Compare
Choose a tag to compare

Bug Fixes

  • graphical: oops. Fix theme issue (8b46679c)
  • fmt: remove nightly-only fmt flags (1fa7f524)
  • highlighter: ugh, missed another spot (ab7c066e)

v6.0.0

04 Feb 04:03
5d4b262
Compare
Choose a tag to compare

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.
  • source: use usize for length (#265) (fad0e76a)
    • BREAKING CHANGE: This changes SourceSpan's length type to usize.
  • source: Allow inner source type of a NamedSource to be borrowed (#254) (1df3b1a5)
    • BREAKING CHANGE: This makes the NamedSource type generic over its Source type, instead of boxing it.
  • 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 from MietteHandlerOpts::build (#325) (f1dc89c0)

Documentation

  • README: Move import of NamedResult to where it is used (#309) (d37ada87)

v5.10.0

04 Feb 04:02
f4d056e
Compare
Choose a tag to compare

Features

  • protocol: add StdError impl for Box<dyn Diagnostic + Send + Sync> (#273) (2e3e5c9d)

v5.9.0

18 May 23:01
91e5f5b
Compare
Choose a tag to compare

Features

Bug Fixes

v5.8.0

18 May 23:01
2b4d67d
Compare
Choose a tag to compare

Features

Bug Fixes

  • narrated: put URLs in their own line (adbff65e)

v5.7.0

18 May 23:01
80c6ce8
Compare
Choose a tag to compare

While this is a semver-minor release, there's potential for it to have
knock-on effects due to the syn2 upgrade. There's been issues as this new
version propagates between syn/thiserror versions (for example, see a similar
change in eyre
).

The other thing of note is that backtrace printing is now much better! Try
the hook and see for yourself!

Features

Bug Fixes

  • colors: change unicode to default to ansi (#249) (159f2b35)
  • tests: disable doctest that doesn't work with default feature flags (#248) (0b445dc2)

v5.6.0

18 May 23:00
78fe18e
Compare
Choose a tag to compare

Bug Fixes

  • ci: configure clippy-specific MSRV (b658fc02)
  • graphical: Fix wrong severity of related errors (#234) (3497508a)
  • atty: Switch out atty for is-terminal (#229) (443d240f)

Features

Bug Fixes

  • ci: configure clippy-specific MSRV (b658fc02)
  • graphical: Fix wrong severity of related errors (#234) (3497508a)
  • atty: Switch out atty for is-terminal (#229) (443d240f)

Features

v5.5.0

24 Nov 01:00
f4dbf4e
Compare
Choose a tag to compare

Features

  • SourceCode: Implement SourceCode for Vec (#216) (c857595e)

Bug Fixes

  • derive: elide lifetimes in derived functions (#226) (c88f0b5a)
  • graphical: Fix panic with span extending past end of line (#221) (8b56d277)
  • license: fix mangled license text to improve recognition (d5fbb340)