Skip to content

Commit c0d0eec

Browse files
bump: version 0.3.0 (#22)
1 parent b2d6244 commit c0d0eec

4 files changed

Lines changed: 19 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# Changelog
22

3+
## 0.3.0
4+
5+
### Features
6+
7+
- `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.
8+
- Added `root` property to `Document` and `Editor` as a convenience for `doc[()]`.
9+
10+
### Internal
11+
12+
- Added cargo-fmt and clippy pre-commit hooks, aligned with CI.
13+
- Simplified complex-replace internals to match yamlpatch behavior (removed quote-aware colon finding and inline comment preservation).
14+
15+
### Documentation
16+
17+
- Fixed usethis badge path in README.
18+
319
## 0.2.0
420

521
### Features

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "yamltrip"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
edition = "2024"
55
license = "MIT"
66

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ requires = [ "maturin>=1.0,<2.0" ]
44

55
[project]
66
name = "yamltrip"
7-
version = "0.2.0"
7+
version = "0.3.0"
88
description = "A round-tripping YAML library for Python"
99
readme = "README.md"
1010
authors = [ { name = "Nathan McDougall", email = "nathan.j.mcdougall@gmail.com" } ]

0 commit comments

Comments
 (0)