From 6d35e74b81792d42ab3ebe21817bb49634751ebe Mon Sep 17 00:00:00 2001 From: Nathan McDougall Date: Thu, 21 May 2026 15:54:50 +1200 Subject: [PATCH] chore: bump version to 0.5.0 --- CHANGELOG.md | 7 +++++++ Cargo.lock | 2 +- Cargo.toml | 2 +- pyproject.toml | 2 +- uv.lock | 2 +- 5 files changed, 11 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 296d413..b7175dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.5.0 + +### Features + +- `append()`, `insert()`, `extend_list()`, and `sync()` now handle flow sequences (e.g. `[a, b, c]`), which previously raised `PatchError`. They fall back to replacing the sequence value, including recursive detection of flow sequences nested inside list elements. +- Added `NodeTypeError(PatchError, TypeError)` to the error hierarchy. Sequence-mutating operations (`append`, `insert`, `extend_list`, `remove_from_list`) now raise `NodeTypeError` instead of generic errors when the target node is not a sequence. + ## 0.4.0 ### Features diff --git a/Cargo.lock b/Cargo.lock index ea6dd03..d80b019 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -466,7 +466,7 @@ dependencies = [ [[package]] name = "yamltrip" -version = "0.4.0" +version = "0.5.0" dependencies = [ "indexmap", "pyo3", diff --git a/Cargo.toml b/Cargo.toml index 6745ae5..5044dba 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "yamltrip" -version = "0.4.0" +version = "0.5.0" edition = "2024" license = "MIT" diff --git a/pyproject.toml b/pyproject.toml index 28cf098..6b5a114 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ requires = [ "maturin>=1.0,<2.0" ] [project] name = "yamltrip" -version = "0.4.0" +version = "0.5.0" description = "A round-tripping YAML library for Python" readme = "README.md" authors = [ { name = "Nathan McDougall", email = "nathan.j.mcdougall@gmail.com" } ] diff --git a/uv.lock b/uv.lock index 089e486..cf035b5 100644 --- a/uv.lock +++ b/uv.lock @@ -816,7 +816,7 @@ wheels = [ [[package]] name = "yamltrip" -version = "0.4.0" +version = "0.5.0" source = { editable = "." } [package.dev-dependencies]