From 8e4bcd3b8d4805b00242483b9fa835f1d56842ee Mon Sep 17 00:00:00 2001 From: Nathan McDougall Date: Mon, 18 May 2026 11:46:11 +1200 Subject: [PATCH] bump: version 0.3.0 --- CHANGELOG.md | 16 ++++++++++++++++ Cargo.lock | 2 +- Cargo.toml | 2 +- pyproject.toml | 2 +- 4 files changed, 19 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a3a36d..1467829 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,21 @@ # Changelog +## 0.3.0 + +### Features + +- `replace` and `upsert` now accept dicts and lists as values, not just scalars. Complex values are serialized to block-style YAML and spliced in via string surgery, bypassing yamlpatch's scalar-only limitation. +- Added `root` property to `Document` and `Editor` as a convenience for `doc[()]`. + +### Internal + +- Added cargo-fmt and clippy pre-commit hooks, aligned with CI. +- Simplified complex-replace internals to match yamlpatch behavior (removed quote-aware colon finding and inline comment preservation). + +### Documentation + +- Fixed usethis badge path in README. + ## 0.2.0 ### Features diff --git a/Cargo.lock b/Cargo.lock index ef05df4..c3d3e8d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -466,7 +466,7 @@ dependencies = [ [[package]] name = "yamltrip" -version = "0.2.0" +version = "0.3.0" dependencies = [ "indexmap", "pyo3", diff --git a/Cargo.toml b/Cargo.toml index 7a23046..35e0616 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "yamltrip" -version = "0.2.0" +version = "0.3.0" edition = "2024" license = "MIT" diff --git a/pyproject.toml b/pyproject.toml index f7dce83..c6476ed 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ requires = [ "maturin>=1.0,<2.0" ] [project] name = "yamltrip" -version = "0.2.0" +version = "0.3.0" description = "A round-tripping YAML library for Python" readme = "README.md" authors = [ { name = "Nathan McDougall", email = "nathan.j.mcdougall@gmail.com" } ]