Skip to content

chore: release v0.15.0 - #1122

Merged
robcohen merged 2 commits into
mainfrom
chore/release-0.15.0
May 15, 2026
Merged

robcohen merged 2 commits into
mainfrom
chore/release-0.15.0

Conversation

@robcohen

Copy link
Copy Markdown
Member

Summary

Bump to v0.15.0. Minor version per SemVer (pre-1.0) because of PR #1116's breaking API changes — see "Breaking changes" below for the migration story.

Versions bumped

Per RELEASING.md:

  • Cargo.toml — [workspace.package].version + 10 [workspace.dependencies] path-pinned siblings.
  • 14 crate Cargo.toml files under crates/.
  • Cargo.lock regenerated via cargo check --workspace.
  • packages/mcp-server/package.json — version and @rustledger/wasm dep.
  • packaging/rpm/rustledger.spec — Version, Source0, %setup directory.
  • BuildRequires: rust >= 1.94 already matches workspace.package.rust-version — no change.

Pre-flight smoke checks (per RELEASING.md §3)

  • cargo check --workspace --all-features --all-targets — clean.
  • cd packages/mcp-server && npm ci && npm run build — clean. Temporarily reverted @rustledger/wasm to ^0.14.1 during the build (^0.15.0 isn't on npm yet during the bump PR); restored to ^0.15.0 before commit.
  • cd crates/rustledger-wasm && wasm-pack build --target web --release — clean.

Breaking changes since v0.14.1

PR #1116 reshaped two public protocols and removed several shortcut entry points. Migration paths for each:

rustledger_validate

The free-function shortcuts are gone. Use ValidationSession:

// Before (v0.14.x)
let errors = rustledger_validate::validate(&directives);
let errors = rustledger_validate::validate_with_options(&directives, opts);

// After (v0.15.0)
use rustledger_validate::{Phase, ValidationOptions, ValidationSession};
use rustledger_core::naive_date;

let today = naive_date(2030, 1, 1).unwrap();
let mut session = ValidationSession::new(ValidationOptions::default());
let mut errors = session.run_phase(&directives, Phase::Early, today);
errors.extend(session.run_phase(&directives, Phase::Late, today));
errors.extend(session.finalize());

rustledger_plugin_types

PluginOutput.directives: Vec<DirectiveWrapper> is replaced with ops: Vec<PluginOp>:

// Before
PluginOutput { directives: vec![...], errors: vec![] }

// After
use rustledger_plugin_types::{PluginOp, PluginOutput};

PluginOutput {
    ops: vec![
        PluginOp::Keep(0),                       // reuse input[0] (preserves span)
        PluginOp::Modify(1, new_wrapper),        // new content, input[1]'s identity
        PluginOp::Insert(synthesized_wrapper),   // fresh directive
        PluginOp::Delete(2),                     // drop input[2]
    ],
    errors: vec![],
}
// Or, for pure validators:
PluginOutput::passthrough(input.directives.len())

Every input index must appear in EXACTLY ONE op across {Keep, Modify, Delete} — the loader validates and emits a PLUGIN error on violations.

rustledger_plugin::NativePlugin

New is_synth() trait method (default false). Override to true if your plugin synthesizes directives that the Early validator depends on (e.g., auto_accounts).

rustledger_loader

  • New PluginPass { PreBookingSynth | PostBooking | All } enum. pub fn run_plugins takes an extra pass: PluginPass parameter. Standalone callers (LSP, FFI, tests on already-booked input) pass PluginPass::All.
  • run_booking now returns (Vec<Spanned<Directive>>, Vec<Spanned<Directive>>) partitioned into (booked, failed) instead of Vec<usize> of failed indices.

rustledger_booking

Highlights since v0.14.1

Post-merge

Follow RELEASING.md §5 to tag and trigger release-build + release-publish:

git switch main
git pull --ff-only origin main
gh release create v0.15.0 --target "$(git rev-parse HEAD)" --generate-notes

🤖 Generated with Claude Code

Bumps the workspace from 0.14.1 to 0.15.0. Minor-version bump per
SemVer because 0.14.2..0.15.0 ships PR #1116, which is a breaking
API change for downstream consumers:

* `rustledger_validate` — removed the `validate()`,
  `validate_with_options()`, `validate_with_today()`, and the two
  spanned variants. Replaced with `ValidationSession::new(opts).
  run_phase(_, Phase::Early, today).run_phase(_, Phase::Late, today).
  finalize()`.

* `rustledger_plugin_types` — `PluginOutput.directives:
  Vec<DirectiveWrapper>` replaced with `ops: Vec<PluginOp>` where
  `PluginOp { Keep(usize) | Modify(usize, DirectiveWrapper) |
  Insert(DirectiveWrapper) | Delete(usize) }`. The wrapper
  round-trip's span-fidelity loss is now eliminated by construction.

* `rustledger_plugin::NativePlugin` — new `is_synth()` trait method
  for self-classifying plugins as pre-booking synthesizers.

* `rustledger_loader` — new `PluginPass { PreBookingSynth |
  PostBooking | All }` enum; `run_plugins` takes a `pass` parameter.
  `run_booking` returns `(Vec<Spanned<Directive>>,
  Vec<Spanned<Directive>>)` partitioned into (booked, failed) instead
  of `Vec<usize>` of failed indices.

* `rustledger_booking` — `INTERPOLATED_MARKER` const removed.

Plus the v0.14.1..v0.15.0 fix train: pad multi-currency / future-date
regressions, duplicate-Open suppression across five plugins,
plugin-error source-location propagation, `--clobber` post-fetch
dedup hardening (#1120 / #1119) and the `cfg(debug_assertions)` gate
on the should-panic phase-ordering tests so Nix package builds via
`cargo test --release` pass.

# Surface coverage (per RELEASING.md)

* Workspace `Cargo.toml`: `[workspace.package].version` + 10
  `[workspace.dependencies]` path-pinned crates.
* 14 crate `Cargo.toml` files.
* `Cargo.lock` regenerated via `cargo check --workspace`.
* `packages/mcp-server/package.json`: `version` and the
  `@rustledger/wasm` dep pin.
* `packaging/rpm/rustledger.spec`: `Version`, `Source0` URL, and
  `%setup -n rustledger-X.Y.Z` directory. `BuildRequires: rust >=
  1.94` already matches the workspace MSRV — no change.

# Pre-flight smoke checks

* `cargo check --workspace --all-features --all-targets` — clean.
* `cd packages/mcp-server && npm ci && npm run build` — clean
  (temporarily reverted `@rustledger/wasm` to `^0.14.1` during the
  build since `^0.15.0` isn't on npm yet; restored to `^0.15.0`
  before committing).
* `cd crates/rustledger-wasm && wasm-pack build --target web
  --release` — clean.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings May 15, 2026 19:38
@robcohen
robcohen requested a review from a team as a code owner May 15, 2026 19:38
@github-actions

github-actions Bot commented May 15, 2026 •

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

Tool Time Memory
rustledger 35ms ± 0.3ms 23.6 MB
beancount 752.5ms ± 7.1ms 50.2 MB
Comparison 21.5x faster 2.1x less

vs main branch (2026-05-15)

Metric main this PR Change
Time 40.3ms 35ms -13.2% 🟢
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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR prepares the repository for the v0.15.0 release by updating Rust, npm, and RPM package metadata to the new version.

Changes:

  • Bumps workspace, crate, and lockfile versions from 0.14.1 to 0.15.0.
  • Updates the MCP server package version and WASM dependency range.
  • Updates RPM source/setup metadata for the v0.15.0 release tarball.

Reviewed changes

Copilot reviewed 17 out of 18 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
Cargo.toml Updates workspace and internal dependency versions.
Cargo.lock Regenerates package versions for workspace crates.
crates/rustledger/Cargo.toml Bumps crate version.
crates/rustledger-booking/Cargo.toml Bumps crate version.
crates/rustledger-core/Cargo.toml Bumps crate version.
crates/rustledger-ffi-wasi/Cargo.toml Bumps crate version.
crates/rustledger-importer/Cargo.toml Bumps crate version.
crates/rustledger-loader/Cargo.toml Bumps crate version.
crates/rustledger-lsp/Cargo.toml Bumps crate version.
crates/rustledger-ops/Cargo.toml Bumps crate version.
crates/rustledger-parser/Cargo.toml Bumps crate version.
crates/rustledger-plugin/Cargo.toml Bumps crate version.
crates/rustledger-plugin-types/Cargo.toml Bumps crate version.
crates/rustledger-query/Cargo.toml Bumps crate version.
crates/rustledger-validate/Cargo.toml Bumps crate version.
crates/rustledger-wasm/Cargo.toml Bumps crate version.
packages/mcp-server/package.json Updates npm package version and WASM dependency.
packaging/rpm/rustledger.spec Updates RPM version, source URL, and setup directory.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/mcp-server/package.json Resolved
@codecov

codecov Bot commented May 15, 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 May 15, 2026 •

Copy link
Copy Markdown
Contributor

✅ Compatibility Test Results

Metric Result
Check Compatibility 100%
BQL Compatibility 100%
Full AST Match 100%
Total Files 786
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

@robcohen
robcohen merged commit e86da46 into main May 15, 2026
42 checks passed
@robcohen
robcohen deleted the chore/release-0.15.0 branch May 15, 2026 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants