Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "yamltrip"
version = "0.2.0"
version = "0.3.0"
edition = "2024"
license = "MIT"

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" } ]
Expand Down
Loading