Repository navigation
logdelta 0.3.3
cargo install logdeltaFixed
- A long path left the human report's locations without their file name and line numbers. Each location line is fitted to the terminal (120 columns in a pipe) by cutting its end, which is where
pytest-fail.log:14-23is; with a CI workspace or a temporary directory in front, every location read/home/runner/work/.../artifacts/lo…. The path is now cut at its start (…/artifacts/logs/pytest-fail.log:14-23). The snapshot tests run on relative paths, so they no longer fail when the repository is checked out somewhere deep.
The rest of this release is in the web demo; the package is otherwise unchanged.
Changed
- The page's fonts are served by the page itself. They came from Google Fonts, the one request the page made to another origin; the same font files (every subset, as Google serves them to a current browser) are now in
web/src/fonts/, with their SIL Open Font License texts. Nothing looks different: screenshots before and after match. The page now loads with every other host blocked.
Security
- The built page carries a Content-Security-Policy. Scripts, styles, fonts and workers load from the page's own origin only, and
connect-src 'self'has the browser refuse to send what you give the page to any other host, even for a script injected through a bug in how the page renders a file. Inline event handlers andevalare not allowed ('wasm-unsafe-eval'is: the engine is WebAssembly). Every control was exercised in Chromium and Firefox with a listener for policy violations: none.
Accessibility
- Checked with axe-core (WCAG 2.1 A and AA, and its best-practice rules) in light and dark, at desktop and phone widths, on each example: no findings now. The faint text was 3.5:1 to 3.8:1. The baseline tab list held two buttons that are not tabs (add, remove): they sit beside it now. Log excerpts that scroll sideways can take keyboard focus.
- The log editors showed keyboard focus only as their 1-pixel border turning from dark to light grey (axe-core does not check focus indicators; tabbing through every site and comparing each stop focused and unfocused does). They get the 2-pixel focus ring every other control has.