Skip to content

Releases: zkat/miette

v3.2.0

18 Apr 05:58
21f9ce0
Compare
Choose a tag to compare

Features

  • tabs: Add replace tabs with spaces option (#82) (1f70140c)

Bug Fixes

  • read_span prevent multiline MietteSpanContents from skipping lines (#81) (cb5a919d)

v3.1.0

01 Oct 19:14
d0b0f33
Compare
Choose a tag to compare

Features

v3.0.1

26 Sep 20:13
05bdb81
Compare
Choose a tag to compare

No code changes this release. Just improved documentation and related tests.

v3.0.0

23 Sep 00:08
72de1ad
Compare
Choose a tag to compare

It's here! Have fun!

It's a pretty significant change, so if you were using miette's snippet
support previously, you'll need to update your code.

Bug Fixes

  • report: miscellaneous, hacky tweaks to graphical rendering (80036781)
  • protocol: implement source/cause for Box (c3505fac)
  • derive: Code is no longer required (92a31509)
  • graphical: stop rendering red vbars before the last item (e2e4027f)
  • graphical: fix coalescing adjacent things when they cross boundaries (18e0ed77)
  • context: get labels/snippets working when using .context() (41cb710a)
  • api: put panic handler properly behind a flag (55ca8e0b)
  • deps: We do not use ci_info directly anymore (8d1170e2)
  • graphical: Fix off-by-one span_applies calculation (#70) (a6902042)
  • theme: remove code styling (ce0dea54)
  • graphical: render URLs even without a code (77c5899b)
  • deps: remove dep on itertools (612967d3)

Features

  • report: make a single big MietteHandler that can switch modes (4c2463f9)
    • BREAKING CHANGE: linkification option method on GraphicalReportHandler has been changed to .with_links(bool)
  • deps: move fancy reporter (and its deps) to a feature (247e8f8b)
    • BREAKING CHANGE: The default fancy reporter is no longer available unless you enable the "fancy" feature. This also means you will not be pulling in a bunch of deps if you are using miette for a library
  • footer: add footer support to graphical and narrated (93374173)
  • theme: rename some theme items for clarity (c5c0576e)
    • BREAKING CHANGE: These were part of the public API, so if you were using theming, this might have broken for you
  • theme: more styling changes (2c437403)
  • report: add debug report as default, instead of narrated one (9841d6fd)
  • labels: replace snippet stuff with simpler labels (#62) (f87b158b)
  • protocol: Make SourceCode Send+Sync (9aa8ff0d)
  • handlers: Update graphical handler to use new label protocol (#66) (4bb9d121)
  • report: nicer, non-overlapping same-line highlights (1a0f359e)
  • panic: Add basic panic handler and installation function (c6daee7b)
  • panic: add backtrace support to panic handler and move set_panic_hook into fancy features (858ac169)
  • graphical: simplify graphical header and remove a dep (6c648463)
  • related: Add related diagnostics (#68) (8e11baab)
  • graphical: compact graphical display a bit (db637a36)
  • graphical: compact even more (72c0bb9e)
  • graphical: add theming customization for linums (717f8e3d)
  • handler: context lines config support (b33084bd)
  • narrated: updated narrated handler (fbf6664e)
  • narrated: global footer and related diagnostics support (3213fa61)

v3.0.0-beta.0

23 Sep 00:08
2a848db
Compare
Choose a tag to compare
v3.0.0-beta.0 Pre-release
Pre-release

Time to get ready for release!

Bug Fixes

  • graphical: stop rendering red vbars before the last item (dc2635e1)
  • graphical: fix coalescing adjacent things when they cross boundaries (491ce7c0)
  • context: get labels/snippets working when using .context() (e0296578)

Features

  • report: nicer, non-overlapping same-line highlights (338c885a)
  • panic: Add basic panic handler and installation function (11a708a2)
  • panic: add backtrace support to panic handler and move set_panic_hook into fancy features (183ecb9b)
  • graphical: simplify graphical header and remove a dep (9f36a4c2)
  • related: Add related diagnostics (#68) (25e434a2)
  • graphical: compact graphical display a bit (9d07dc5a)
  • graphical: compact even more (712e75fd)

v3.0.0-alpha.0

23 Sep 00:07
e209c99
Compare
Choose a tag to compare
v3.0.0-alpha.0 Pre-release
Pre-release

This is the first WIP alpha release of miette 3.0!

It's a MAJOR rewrite of the entire snippet definition and rendering system,
and you can expect even more changes before 3.0 goes live.

In the meantime, there's this. :)

Bug Fixes

  • report: miscellaneous, hacky tweaks to graphical rendering (8029f9c6)
  • protocol: implement source/cause for Box (3e8a27e2)
  • derive: Code is no longer required (8a0f71e6)

Features

  • report: make a single big MietteHandler that can switch modes (3d74a500)
    • BREAKING CHANGE: linkification option method on GraphicalReportHandler has been changed to .with_links(bool)
  • deps: move fancy reporter (and its deps) to a feature (bc495e6e)
    • BREAKING CHANGE: The default fancy reporter is no longer available unless you enable the "fancy" feature. This also means you will not be pulling in a bunch of deps if you are using miette for a library
  • footer: add footer support to graphical and narrated (412436cd)
  • theme: rename some theme items for clarity (12a9235b)
    • BREAKING CHANGE: These were part of the public API, so if you were using theming, this might have broken for you
  • theme: more styling changes (9901030e)
  • report: add debug report as default, instead of narrated one (eb1b7222)
  • labels: replace snippet stuff with simpler labels (#62) (0ef2853f)
  • protocol: Make SourceCode Send+Sync (eb485658)
  • handlers: Update graphical handler to use new label protocol (#66) (6cd44a86)

v2.2.0

14 Sep 02:02
c00226f
Compare
Choose a tag to compare

So it turns out 3.0.0 is already under way, if you didn't already hear!

It's going to be an exciting release, but we'll still be putting out bugfixes
and (backwards-compatible) features in the 2.x line until that's ready.

And there's definitely stuff in this one to be excited about! Not least of all
the ability to forward diagnostic metadata when wrapping other
Diagnostics. Huge thanks to @cormacrelf for
that one!

We've also got some nice improvements to reporter formatting that should make
output look at least a little nicer--most notably, we now wrap messages and
footers along the appropriate column so formatting keeps looking good even
when you use newlines!

Finally, huge thanks to @icewind1991 for
fixing a really weird-looking bug
caused by an off-by-one error. Oopsies 😅

Features

  • report: wrap multiline messages to keep formatting (f482dcec)
  • report: take terminal width into account for wrapping text (bc725324)
  • report: make header line as wide as terminal (eaebde92)
  • derive: Add #[diagnostic(forward(field_name), code(...))] (#41) (2fa5551c)

Bug Fixes

  • report: get rid of the weird arrow thing. it does not look good (1ba3f2f5)
  • report: fix wrapping for header and add wrapping for footer (eb07d5bd)
  • report: Fix end of previous line wrongly being included in highlight (#52) (d994add9)

v2.1.2

10 Sep 03:42
30ac82c
Compare
Choose a tag to compare

So it turns out I forgot to make snippets and other stuff forward through when
you use .context() &co. This should be fixed now 😅

Bug Fixes

  • context: pass on diagnostic metadata when wrapping with Report (e4fdac38)

v2.1.1

09 Sep 04:31
0ba3358
Compare
Choose a tag to compare

This is a small release with a handful of quality of life improvements (and a small bugfix).

Features

  • printer: use uparrow for empty highlights and fix 0-offset display bug (824cd8be)
  • derive: make #[diagnostic] optional for enums, too (ffe1b558)

v2.1.0

08 Sep 01:31
c049b04
Compare
Choose a tag to compare

This is a small release with a handful of quality of life improvements (and a small bugfix).

Features

  • printer: use uparrow for empty highlights and fix 0-offset display bug (824cd8be)
  • derive: make #[diagnostic] optional for enums, too (ffe1b558)