Compare commits

...

9 Commits
main ... v4.7.1

Author SHA1 Message Date
Kat Marchán b27c67c93c
chore: Release kdl version 4.7.1 2024-12-15 18:27:52 -08:00
Kat Marchán 6badb35888
docs: update changelog 2024-12-15 18:27:20 -08:00
Kat Marchán 337e6ec339
fix(deps): Back out "feat(deps): bump miette to 7.4.0"
Fixes: https://github.com/kdl-org/kdl-rs/issues/97

This backs out commit b5fa2e1c70.

Turns out this was a breaking change, so undoing it.
2024-12-15 18:24:57 -08:00
Kat Marchán b3dfacba7e
fix(fmt): cargo fmt 2024-12-03 01:14:06 -08:00
Kat Marchán 4ac171abfd
fix(deps): bump MSRV to get things to pass in CI again 2024-12-03 01:00:26 -08:00
Kat Marchán 8a6ecddef3
fix(clippy): clippy --fix 2024-12-03 00:52:04 -08:00
Kat Marchán da8335fcb7
chore: Release kdl version 4.7.0 2024-12-03 00:47:35 -08:00
Kat Marchán 9bd26c619c
docs: update readme 2024-12-03 00:44:52 -08:00
Kat Marchán b5fa2e1c70
feat(deps): bump miette to 7.4.0
Fixes: https://github.com/kdl-org/kdl-rs/issues/84
2024-12-03 00:43:50 -08:00
6 changed files with 38 additions and 5 deletions

View File

@ -28,7 +28,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
rust: [1.56.0, stable]
rust: [1.70.0, stable]
os: [ubuntu-latest, macOS-latest, windows-latest]
steps:

View File

@ -1,5 +1,34 @@
# `kdl` Release Changelog
<a name="4.7.1"></a>
## 4.7.1 (2024-12-16)
The `miette` bump turned out to be a breaking change, so this release undoes it.
With the imminent release of `6.0.0` and the upcoming support for v1 parsing in
that version of the crate, it is unlikely this `kdl-rs` release line will
receive a `miette` update.
### Bug Fixes
* **deps:** Back out "feat(deps): bump miette to 7.4.0" ([337e6ec3](https://github.com/kdl-org/kdl-rs/commit/337e6ec339d1661abb7e91d82f0ac3d03fe6f061))
<a name="v4.7.0"></a>
## 4.7.0 (2024-12-03)
### Features
* **deps:** bump miette to 7.4.0 ([b5fa2e1c](https://github.com/kdl-org/kdl-rs/commit/b5fa2e1c70e522b6929559b9382b34368d2f41da))
<a name="4.7.0"></a>
## 4.7.0 (2024-12-03)
This is a quick maintenance release to bump the miette version for folks still
using kdl v1.
### Features
* **deps:** bump miette to 7.4.0 ([b5fa2e1c](https://github.com/kdl-org/kdl-rs/commit/b5fa2e1c70e522b6929559b9382b34368d2f41da))
<a name="4.6.0"></a>
## 4.6.0 (2022-10-09)

View File

@ -1,6 +1,6 @@
[package]
name = "kdl"
version = "4.6.0"
version = "4.7.1"
description = "Document-oriented KDL parser and API. Allows formatting/whitespace/comment-preserving parsing and modification of KDL text."
authors = ["Kat Marchán <kzm@zkat.tech>", "KDL Community"]
license = "Apache-2.0"

View File

@ -29,7 +29,7 @@ words {
word_nodes.sort_by(sort_by_name);
words_section.fmt();
println!("{}", doc.to_string());
println!("{}", doc);
// output:
// words {

View File

@ -120,13 +120,17 @@
//! you [`KdlDocument::fmt`] in which case the original representation will be
//! thrown away and the actual value will be used when serializing.
//!
//! ## Minimum Supported Rust Version (MSRV)
//!
//! This crate requires Rust 1.70.0 or later.
//!
//! ## License
//!
//! The code in this repository is covered by [the Apache-2.0
//! License](LICENSE.md).
#![deny(missing_debug_implementations, nonstandard_style)]
#![warn(missing_docs, unreachable_pub, rust_2018_idioms, unreachable_pub)]
#![warn(missing_docs, unreachable_pub, rust_2018_idioms)]
#![cfg_attr(test, deny(warnings))]
#![doc(html_favicon_url = "https://kdl.dev/favicon.ico")]
#![doc(html_logo_url = "https://kdl.dev/logo.svg")]

View File

@ -36,7 +36,7 @@ fn validate_res(res: Result<KdlDocument, KdlError>, path: &Path) -> miette::Resu
.unwrap()
.join("expected_kdl");
let expected_path = expected_dir.join(file_name);
let underscored = expected_dir.join(&format!("_{}", PathBuf::from(file_name).display()));
let underscored = expected_dir.join(format!("_{}", PathBuf::from(file_name).display()));
if expected_path.exists() {
let doc = res?;
let expected =