Skip to content

chore: release v0.12.0 - #771

Merged
robcohen merged 6 commits into
mainfrom
release-plz-2026-04-11T20-44-43Z
Apr 13, 2026
Merged

robcohen merged 6 commits into
mainfrom
release-plz-2026-04-11T20-44-43Z

Conversation

@rustledger-bot

Copy link
Copy Markdown
Contributor

🤖 New release

  • rustledger-core: 0.11.0 -> 0.11.1
  • rustledger-parser: 0.11.0 -> 0.11.1
  • rustledger-booking: 0.11.0 -> 0.11.1
  • rustledger-plugin: 0.11.0 -> 0.11.1
  • rustledger-validate: 0.11.0 -> 0.11.1
  • rustledger-loader: 0.11.0 -> 0.11.1
  • rustledger-query: 0.11.0 -> 0.11.1
  • rustledger: 0.11.0 -> 0.11.1
  • rustledger-wasm: 0.11.0 -> 0.11.1
  • rustledger-ffi-wasi: 0.11.0 -> 0.11.1
  • rustledger-lsp: 0.11.0 -> 0.11.1
  • rustledger-importer: 0.11.0 -> 0.11.1
Changelog

rustledger-core

0.11.1 - 2026-04-11

Bug Fixes

  • (format) preserve posting-level metadata on format
  • use format_metadata for transaction-level meta too
  • exclude price directives from display precision tracking
  • add space after { in cost display, cap display precision at 8
  • normalize decimals before tracking display precision
  • revert normalize in update, use original precision tracking
  • normalize after quantize to strip trailing zeros
  • revert normalize in quantize, add common-vs-max precision divergences
  • (booking) detect ambiguous lot match in STRICT mode
  • (booking) propagate errors, track per-account booking methods
  • address Copilot review on perf(core): Apply rust-memory audit fixes #755

Documentation

  • (booking) fix reduce_strict docstring per Copilot review

Features

  • (query) per-column display context for BQL output

Performance

  • hoist meta_indent allocation above posting loop
  • (core) Apply rust-memory audit fixes

Refactoring

  • (core) deduplicate extract_accounts/currencies/payees

rustledger-parser

0.11.1 - 2026-04-11

Bug Fixes

  • (parser) reject 7 invalid inputs per beancount v3 spec
  • address Copilot review feedback on parser strict
  • align error message wording with Python beancount
  • address Copilot review feedback on error message wording
  • (parser) allow Unicode letters after ASCII start in account names

Features

  • migrate from archived ariadne to miette for error diagnostics

Testing

rustledger-booking

0.11.1 - 2026-04-11

Bug Fixes

Performance

  • (booking) Optimize inventory cloning and capacity hints

rustledger-plugin

0.11.1 - 2026-04-11

Bug Fixes

Performance

  • (plugin) Fix rust-skills CRITICAL and HIGH issues

Refactoring

  • (plugin) exhaustive destructuring in noduplicates hash helpers

Testing

  • add unit tests for 21 previously untested native plugins
  • (plugin) comprehensive edge-case coverage for noduplicates
  • (plugin) fix clippy items_after_statements and doc_markdown

rustledger-validate

0.11.1 - 2026-04-11

Bug Fixes

  • validate multiple same-currency elision and negative cost
  • align error message wording with Python beancount
  • suppress single-posting warning for zero-cost transactions
  • tighten zero-cost exemption and add regression tests
  • (check) emit E1005 (invalid account name) as parse-phase diagnostic
  • address Copilot review on perf(validate): Fix rust-skills CRITICAL issues #759

Performance

  • (validate) Fix rust-skills CRITICAL issues

rustledger-loader

0.11.1 - 2026-04-11

Bug Fixes

  • match beancount error message wording (4 cases)
  • exclude price directives from display precision tracking
  • exclude posting price annotations from display precision tracking
  • (booking) apply per-account methods across all consumers
  • align include-cycle error wording with Python beancount

Refactoring

  • extract reintern_directive helper for plain and Spanned usage

rustledger-query

0.11.1 - 2026-04-11

Bug Fixes

  • match beancount error message wording (4 cases)
  • (query) improve BQL function dispatch for aggregate context
  • (query) fix count(*) and add GROUP BY aggregate support for table queries
  • resolve SELECT aliases in GROUP BY for table aggregate queries
  • address Copilot review feedback on count(*) and aggregates
  • (query) allow ORDER BY on expressions not in SELECT
  • address Copilot review feedback on ORDER BY hidden columns
  • (query) add open_date, close_date, open_meta, meta to table path
  • address Copilot review — META type validation and tests
  • (query) apply SQL truthiness in WHERE clause and boolean operators

Features

  • migrate from archived ariadne to miette for error diagnostics

Performance

  • (query) Fix rust-skills CRITICAL and HIGH issues

rustledger

0.11.1 - 2026-04-11

Bug Fixes

  • find bean-check binary in release profile for nix builds
  • add space after { in cost display, cap display precision at 8
  • add space after { in cost display to match Python beanquery
  • avoid per-error source clone, simplify spans, add CJK test
  • (check) emit E1005 (invalid account name) as parse-phase diagnostic
  • (test) inline format arg in cli_commands_test to satisfy clippy
  • (booking) propagate errors, track per-account booking methods
  • (booking) apply per-account methods across all consumers
  • align include-cycle error wording with Python beancount

Features

  • implement price caching for rledger price command
  • add pager support for report output
  • add phase field to JSON diagnostics for parse/validate separation
  • (query) per-column display context for BQL output
  • migrate from archived ariadne to miette for error diagnostics

Testing

  • add unit tests for diagnostic phase field

rustledger-wasm

0.11.1 - 2026-04-11

Bug Fixes

  • (wasm) run booking engine in query and validation paths
  • (wasm) sort directives by date and use Strict booking method
  • (wasm) address Copilot review feedback
  • (wasm) store multi-file errors as validation_errors, not parse_errors
  • address Copilot review feedback on WASM cache
  • (booking) apply per-account methods across all consumers

Documentation

  • (wasm) update README and crate docs for Ledger class

Features

  • (wasm) add ParsedLedger.fromFiles() for multi-file ledgers
  • (wasm) enable completions on multi-file ParsedLedger
  • (wasm) add serialize/fromCache for browser ledger caching

Refactoring

  • (wasm) rename load_and_interpolate to load_and_book
  • (wasm) use shared process() pipeline from rustledger-loader
  • (wasm) split into ParsedLedger (single-file) and Ledger (multi-file)
  • (core) deduplicate extract_accounts/currencies/payees
  • extract reintern_directive helper for plain and Spanned usage

Testing

  • add roundtrip tests and CHANGELOG for WASM cache

Features

  • Add serialize/fromCache for browser ledger caching (OPFS/IndexedDB)
  • Add hashSources for SHA-256 cache-invalidation fingerprinting

rustledger-ffi-wasi

0.11.1 - 2026-04-11

Bug Fixes

  • (booking) apply per-account methods across all consumers

Documentation

  • clarify phase field documentation on Error struct

Features

  • add phase field to JSON diagnostics for parse/validate separation

Testing

  • add unit tests for diagnostic phase field

rustledger-lsp

0.11.1 - 2026-04-11

Bug Fixes

  • (parser) reject 7 invalid inputs per beancount v3 spec
  • address Copilot review feedback on parser strict
  • (lsp) prevent panic on multi-byte UTF-8 characters in completions
  • proper UTF-16 conversion and emoji test per Copilot review
  • (lsp) use lexer tokens for semantic highlighting
  • use UTF-16 code units for semantic token positions
  • (booking) apply per-account methods across all consumers
  • overlay in-memory buffer on stale ledger snapshot for LSP diagnostics
  • avoid double-clone of full_directives on overlay path (#758)
  • overlay all open buffers when publishing LSP diagnostics (#764)

Documentation

  • update VS Code setup to use rustledger extension
  • clarify char_offset_to_byte handles code points not UTF-16 units
  • drop intra-doc link from public fn to private helper

Features

  • (vscode) distribute via GitHub Releases instead of marketplace

Performance

  • O(log n) line lookup and O(1) source matching
  • skip out-of-range tokens in range request

Refactoring

  • (core) deduplicate extract_accounts/currencies/payees

Testing

  • add emoji UTF-16 position assertions for semantic tokens
  • add end-to-end all_diagnostics regression test and helper invariant

rustledger-importer

0.11.0 - 2026-04-02

Bug Fixes

  • improve importers config with default_expense, error handling, and docs
  • correct contra account logic for CSV importer sign convention

Features

  • add importers.toml config with account mappings for extract

Refactoring

  • audit fixes for extract command quality and correctness

Testing

  • add coverage for default_expense and default_income paths


This PR was generated with release-plz.

@rustledger-bot
rustledger-bot Bot requested a review from a team as a code owner April 11, 2026 20:44
@github-actions
github-actions Bot enabled auto-merge April 11, 2026 20:44
@github-actions

github-actions Bot commented Apr 11, 2026 •

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

Tool Time Memory
rustledger 36.4ms ± 1.3ms 21.4 MB
beancount 906.5ms ± 12ms 50.5 MB
Comparison 24.9x faster 2.4x less

vs main branch (2026-04-13)

Metric main this PR Change
Time 41.3ms 36.4ms -11.9% 🟢
10K transactions · 5 runs, 2 warmup · hyperfine
What do these numbers mean?
  • Time: Wall-clock time to parse and validate the ledger (± std dev)
  • Memory: Peak resident set size (RSS)
  • vs main: Compared to latest nightly benchmark on main branch

@codecov

codecov Bot commented Apr 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@github-actions

github-actions Bot commented Apr 11, 2026 •

Copy link
Copy Markdown
Contributor

✅ Compatibility Test Results

Metric Result
Check Compatibility 100%
BQL Compatibility 100%
Full AST Match 100%
Total Files 782
What's tested
  • Check: Exit codes and error counts match bean-check
  • BQL: Query results match bean-query
  • Files: ~800 test files downloaded from 10+ beancount repositories

Full results available in workflow artifacts

Bumps the whole workspace from 0.11.0 to 0.12.0 (minor version bump
under pre-1.0 semver because the cycle since 0.11.0 includes
user-visible breaking changes that release-plz's auto-detection
missed).

release-plz auto-generated a v0.11.1 patch bump from the `fix:` /
`feat:` commits since 0.11.0. That's too conservative. The cycle
since 0.11.0 shipped the following breaking changes, all merged as
`refactor:` / `fix:` without the `!` conventional-commit marker:

- **`rustledger_booking::BookingError`** collapsed three variants
  (`InsufficientUnits`, `NoMatchingLot`, `AmbiguousMatch`) into a
  single `Inventory(AccountedBookingError)` variant (#751). Out-of-tree
  consumers pattern-matching on the old variants break.

- **`rustledger_core::AccountedBookingError`** added as a new
  canonical user-facing type with `BookingError::with_account()` as
  the constructor (#751). Not a break on its own, but part of the
  unification.

- **`rustledger_lsp::handlers::diagnostics::all_diagnostics`**
  signature changed to take an additional `other_buffer_overlays:
  &[(u16, &[Spanned<Directive>])]` parameter for multi-buffer LSP
  overlays (#760 / #764).

- **`rustledger_lsp::handlers::diagnostics::validation_errors_to_diagnostics`**
  signature changed to take an owned `Vec<Spanned<Directive>>`
  instead of borrowed slices (#758). Optimizes a hot path but breaks
  the function's public signature.

- **`rustledger_loader::LoadError::IncludeCycle`** Display format
  rewritten to match Python beancount's `"Duplicate filename
  parsed: ..."` wording (#767). Substring-matching consumers break.

Under pre-1.0 semver, any breaking change should bump the minor
version (0.x → 0.(x+1)). So 0.11.0 → 0.12.0 is correct.

Highlights since 0.11.0:

### Breaking

- Unified `BookingError` under a single `Inventory` variant with one
  canonical `Display` impl, preventing the wording drift that
  produced #748 (#751).
- `LoadError::IncludeCycle` Display now begins with `"Duplicate
  filename parsed: "` to match beancount's wording for conformance
  (#767).
- LSP `all_diagnostics` and `validation_errors_to_diagnostics`
  signatures changed to support the multi-buffer overlay and avoid
  double-cloning directive lists (#758 / #764).

### Features

- LSP live overlay so in-memory buffer edits reflect in diagnostics
  before save, for both the current file (#685 / #758) and any other
  open buffer in a multi-file ledger (#760 / #764).
- Parser `Vec::with_capacity` hints with DoS caps on `source.len()`
  heuristics (#754).
- `working_inventories` cloning in the booking engine now only
  touches accounts actually referenced in the transaction, and
  dedupes repeated account references (#756).

### Fixes

- `InsufficientUnits` booking error wording restored to `"Not enough
  units in ..."` so pta-standards `reduction-exceeds-inventory`
  conformance assertion passes (#748 / #749).
- `noduplicates` plugin now hashes flag, tags, links, cost, and
  price in addition to date and narration — complete beancount
  `hash_entry` parity (#746 / #747).
- Parser test suite: 14 fake-coverage tests replaced with real tests
  that exercise the functions they claim to cover (#766).
- All Copilot inline review comments on #754-#763, #766, #767
  addressed in fix commits.
- Closed PRs #768 (dead incremental parser) and #769 (hallucinated
  simdutf8 API) — no code shipped from these.

### Internal

- Forbid-unsafe-code invariant now has a dedicated CI check and
  pre-push hook (#770).
- New pre-push `cargo check` hook to catch compile errors before PRs
  are opened (#770).

This commit supersedes release-plz's auto-generated v0.11.1 proposal
to produce the minor bump the breaking changes require.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@robcohen
robcohen force-pushed the release-plz-2026-04-11T20-44-43Z branch from 5727b35 to 68eb391 Compare April 11, 2026 20:56
@robcohen robcohen changed the title chore: release v0.11.1 chore: release v0.12.0 Apr 11, 2026
@robcohen

Copy link
Copy Markdown
Member

Forced this PR from v0.11.1 → v0.12.0 because release-plz's auto-detection was too conservative.

release-plz only saw fix: and feat: commits since 0.11.0 and proposed a patch bump. But the cycle since 0.11.0 shipped several user-visible breaking changes that were merged as refactor: / fix: without the ! conventional-commit marker, so release-plz couldn't detect them:

  1. rustledger_booking::BookingError collapsed three variants into Inventory(AccountedBookingError) (refactor: unify InsufficientUnits error type across booking and validate #751). Pattern-match sites break.
  2. rustledger_lsp::handlers::diagnostics::all_diagnostics gained a new required parameter for multi-buffer overlays (LSP: live overlay only covers the current buffer, not all open buffers with unsaved changes #760 / fix: overlay all open buffers when publishing LSP diagnostics #764). Signature break.
  3. rustledger_lsp::handlers::diagnostics::validation_errors_to_diagnostics signature changed to take owned Vec instead of borrowed slices (fix: overlay in-memory buffer on stale ledger snapshot for LSP diagnostics #758). Signature break.
  4. rustledger_loader::LoadError::IncludeCycle Display format rewritten for beancount conformance (fix: align include-cycle error wording with Python beancount #767). Substring-matching consumers break.

Under pre-1.0 semver, any breaking change should bump the minor. 0.11.0 → 0.12.0 is correct.

This is the manual-bump escape hatch documented in RELEASING.md under "When to Use Manual Version Bumping" / "Forgot to Mark a Breaking Change?". The approach:

  1. Let release-plz create the PR (which it did, as v0.11.1)
  2. Check out the branch, sed all 0.11.1 → 0.12.0 in Cargo.tomls and CHANGELOGs
  3. Sed the workspace [workspace.package].version → 0.12.0
  4. Sed packages/mcp-server/package.json → 0.12.0
  5. Run cargo check to regenerate Cargo.lock
  6. Soft-reset the release-plz commits and re-commit as a single chore: release v0.12.0

The full list of what's in 0.12.0 is in the commit body. Net effect: 28 files changed, +295/-38 lines, all 13 workspace crates now at 0.12.0 coherently.

Running `cargo vet regenerate exemptions` adds exemptions for 45
transitive dependencies (wasmtime 43.0.1 / cranelift 0.130.1 /
pulley / wasmparser / wit-parser / etc.) that were flagged as
`missing ["safe-to-deploy"]`, and drops one stale exemption for
`fallible-iterator 0.3.0` which is no longer in the graph.

These had been failing the `Cargo Vet` CI job on every PR in this
release cycle because the `cargo-vet-auto.yml` workflow only runs
on Dependabot PRs (by design, for security), so human-authored
dependency bumps never got their exemptions refreshed.

All changes are mechanical: no new audited code, no policy shift,
just a sync of the exemption set to the current `Cargo.lock` graph.
`cargo vet --locked` now reports:

    Vetting Succeeded (289 fully audited, 3 partially audited, 237 exempted)

Unblocks #771.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@robcohen
robcohen disabled auto-merge April 11, 2026 22:17
@robcohen
robcohen added this pull request to the merge queue Apr 13, 2026
Merged via the queue into main with commit b5770ac Apr 13, 2026
45 checks passed
@robcohen
robcohen deleted the release-plz-2026-04-11T20-44-43Z branch April 13, 2026 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant