Repository navigation
v0.12.0 — grefmt word-per-line layout + security hardening
What's new
Added
grefmtword-per-line layout (--word-per-line <auto|always|never>, LSP/WASM settingwordPerLine): places each word on its own line, keeping bars and*/**attached to the preceding word. The defaultautomode turns it on when thenabc-linesheader 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-denyaudit against the RustSec advisory database with a license/source policy (deny.toml).SECURITY.mddescribes private vulnerability reporting. - Nix flake:
gregorio-lsp,grelintandgrefmtare exposed as separate packages (gregorio-lspremains the default).
Security
- Updated
tokiofrom 1.52.1 to 1.54.1, fixing RUSTSEC-2026-0386 (AsyncFd::newand 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_groupsno 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 fmtto 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 -- --helpBuilding the WASM module
cd crates/gregorio-wasm
wasm-pack build --target nodejs --releaseFull changelog: v0.11.0...v0.12.0