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
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,31 @@

All notable changes to LibreDevOpsHelpers are recorded here.

## Unreleased

### Added
- A Json module, the twin of the ldo CLI's `ldo json` commands: `ConvertFrom-LdoJson`,
`Repair-LdoJson`, `Test-LdoJson`, `Get-LdoJsonValue` and `Merge-LdoJson`. It reads JSON as it
was written (keys in order and case-sensitive, big numbers whole, strings never turned into
dates), repairs what is nearly JSON when asked and logs each fix, and merges documents deeply or
as an RFC 7396 merge patch. The two agree through one set of test cases, `tests/shared`, that
both suites run.
- `ConvertTo-LdoYaml -Indent`, for the spaces per level.

### Fixed
- `ConvertTo-LdoYaml` wrote a multi-line string as `|` whatever its ending, so a string with no
final line break read back with one. It now writes `|-`, `|` or `|+` as the string ends, and
quotes a string it cannot write as a block (one starting with a space, or with a line ending in
a space).
- `ConvertTo-LdoYaml` left plain some strings that YAML 1.1 readers (PyYAML, yamllint, Ansible)
read as something else: `12:30` (a number), `2026-09-24` (a date), `0x1F`, `.inf`, `y` and `N`.
They are quoted now, and control characters inside quotes are escaped (a tab was written raw).

### Changed
- `ConvertTo-LdoYaml` writes a float as Python does, `1.0`, `1.0e-07`, `.nan` or `.inf`, where it
wrote `1`, `1E-07` or `NaN`, so a whole float reads back as a float. A date is written in ISO
8601, `"2026-12-04T10:00:00.0000000Z"`, where it was `12/04/2026 10:00:00`.

## 3.0.1

### Fixed
Expand Down
Loading
Loading