Skip to content

v0.12.0 — grefmt word-per-line layout + security hardening

Choose a tag to compare

@lbssousa lbssousa released this 15 Nov 18:41
· 10 commits to main since this release
v0.12.0
c9786f4

What's new

Added

  • grefmt word-per-line layout (--word-per-line <auto|always|never>, LSP/WASM setting wordPerLine): places each word on its own line, keeping bars and * / ** attached to the preceding word. The default auto mode turns it on when the nabc-lines header is 2 or greater (e.g. Graduale Triplex), or when at least 25% of the words are wider than half of the line width. Library API: FormatOptions::word_per_line, WordPerLine::{Auto, Always, Never}.
  • Security workflows: CodeQL (Rust + GitHub Actions), Dependency Review on pull requests, and a daily cargo-deny audit against the RustSec advisory database with a license/source policy (deny.toml). SECURITY.md describes private vulnerability reporting.
  • Nix flake: gregorio-lsp, grelint and grefmt are exposed as separate packages (gregorio-lsp remains the default).

Security

  • Updated tokio from 1.52.1 to 1.54.1, fixing RUSTSEC-2026-0386 (AsyncFd::new and related constructors violate I/O safety).

Fixed

  • shift_notes (Shift Notes Up/Down) no longer transposes letters inside bracketed note attributes ([ll:1], [oh:h], [alt:abc], [cs:…], [nv:…], [nm1], [nocustos]); collective fusions @[…] are still shifted. A | inside an attribute no longer starts a new GABC/NABC segment.
  • fill_empty_groups no longer takes the fill pitch from a letter inside a bracketed attribute (e.g. (f[oh:h]) () → (f[oh:h]) (f)).
  • The note-ops integration tests, orphaned since the workspace restructure, run again (crates/gregorio-core/tests/note_ops.rs).
  • CI lint: fixed Clippy errors and applied cargo fmt to the workspace.

Installing

# LSP server
cargo install --git https://github.com/AISCGre-BR/gregorio-lsp --tag v0.12.0 --bin gregorio-lsp
# CLI tools (grelint, grefmt)
cargo install --git https://github.com/AISCGre-BR/gregorio-lsp --tag v0.12.0 gregorio-cli
# Nix
nix run github:AISCGre-BR/gregorio-lsp/v0.12.0#grefmt -- --help

Building the WASM module

cd crates/gregorio-wasm
wasm-pack build --target nodejs --release

Full changelog: v0.11.0...v0.12.0