Skip to content

Releases: zkat/miette

0.8.1

21 Aug 07:32
ee2e2d1
Compare
Choose a tag to compare
0.8.1 Pre-release
Pre-release

Just a small bump to update the readme (and docs.rs in the process) with the
new snippet derive stuff. No notable changes.

0.8.0

21 Aug 07:32
8fdf05b
Compare
Choose a tag to compare
0.8.0 Pre-release
Pre-release

You can full-on use #[derive(Diagnostic)] to define snippets now. That's a
big deal.

Features

  • derive: Support for deriving snippet method (#18) (f6e6acf2)

0.7.0

21 Aug 07:31
991a936
Compare
Choose a tag to compare
0.7.0 Pre-release
Pre-release

Welp. 0.6.0 was basically completely broken, so I tore out the
darling-based derive macros and rewrote the whole thing using syn, and
things are much better now!

There's still a few bits and bobs to add, like snippets (oof. big.), and full
help format string support (they don't quite work in enums right now), but
otherwise, this is pretty usable~

Features

  • derive: improved derive support, including partial help format string support! (9ef0dd26)

Bug Fixes

  • derive: move to plain syn to fix darling issues (9a78a943)

0.6.0

21 Aug 07:31
027c3b0
Compare
Choose a tag to compare
0.6.0 Pre-release
Pre-release

We haz a basic derive macro now!

Features

  • derive: added basic derive macro (0e770270)

0.5.0

21 Aug 07:31
b8c8981
Compare
Choose a tag to compare
0.5.0 Pre-release
Pre-release

I decided to yank some handy (optional) utilities from a project I'm using
miette in. These should make using it more ergonomic.

Features

  • utils: various convenience utilities for creating and working with Diagnostics (a9601368)

0.4.0

21 Aug 07:30
fd0d2b1
Compare
Choose a tag to compare
0.4.0 Pre-release
Pre-release

Time for another (still experimental!) change to Diagnostic. It will
probably continue to change as miette gets experimented with, until 1.0.0
stabilizes it. But for now, expect semi-regular breaking changes of this kind.

Oh and I tracked down a rogue \n that was messing with the default reporter
and managed to get out of it with at least some of my sanity.

Breaking Changes

  • protocol: Simplify protocol return values further (02dd1f84, breaks #)

Bug Fixes

  • reporter:
    • fix reporter and tests... again (d201dde4)
    • fix extra newline after header (0d2e3312)

0.3.1

21 Aug 07:30
a04239c
Compare
Choose a tag to compare
0.3.1 Pre-release
Pre-release

This is a tiny release to fix a reporter rendering bug.

Bug Fixes

  • reporter: fix missing newline before help text (9d430b6f)

0.3.0

21 Aug 07:29
0c9eeef
Compare
Choose a tag to compare
0.3.0 Pre-release
Pre-release

This version is the result of a lot of experimentation with getting the
Diagnostic API right, particularly Diagnostic::snippets(), which is
something that should be writable in several different ways. As such, it
includes some breaking changes, but they shouldn't be too hard to figure out.

Breaking Changes

  • protocol:
    • improvements to snippets API (3584dc60)
    • help is a single Display ref now. (80e7dabb)

0.2.1

21 Aug 07:29
56986bb
Compare
Choose a tag to compare
0.2.1 Pre-release
Pre-release

I think this is the right thing to do re: From!

Bug Fixes

  • protocol: fix the default From<:T Diagnostic> implementation to cover more cases. (781a51f0)

0.2.0

21 Aug 07:29
40133a3
Compare
Choose a tag to compare
0.2.0 Pre-release
Pre-release

Starting to get some good feedback on the protocol and APIs, so some improvements were made.

Breaking changes

You might need to add + Send + Sync + 'static to your Box<dyn Diagnostic>
usages now, since Diagnostic no longer constrains on any of them.

Additionally, Diagnostic::help(), Diagnostic::code(), and SpanContents
have had signature changes that you'll need to adapt to.

  • protocol: protocol improvements after getting feedback (e955321c)
  • protocol: Make use of ? and return types with Diagnostics more ergonomic (50238d75)