Repository navigation
📝 Changelog for v0.15.1
A patch release for v0.15.0. Raw HTML in pages can use class again, so pages styled with custom.css look the way they did before 0.15.0. It also brings small fixes for page links, renames, search and uploads.
🌟 Highlights
- Class names in page HTML work again:
<span class="…">,<img class="…">and friends keep their classes, socustom.csscan style them. (#1908, #1911) - Pages whose slug starts like a system path (
api-guide,static-ip,settings-1) open correctly on reload and from deep links, instead of showing "Page not found" or the settings. - Renames: a case-only rename (
readme→Readme) works on Windows and macOS instead of failing with "already exists". - Search: queries such as
(foo) baroralpha content:bravono longer fail with a syntax error. - Uploads: large files are buffered on disk instead of in memory.
- Server:
/sitemap.xmlno longer answers 500 while the wiki is still loading at startup; a crash in a request handler is logged without the request headers or share-link tokens; dropped connections on Windows are recognised as such.
⚠️ Behavior changes
classin raw HTML is kept again. v0.15.0 dropped class names in page HTML, which broke custom styling. Editors can therefore also use the app's own style classes in their pages again. LeafWiki is built for teams whose editors are trusted; see the threat model and GHSA-wqx4-cxxw-57x2. (#1908)- Crash logs have a new format. A recovered panic is logged as one structured line (
panic recoveredwith method, path, panic and stack) instead of gin's[Recovery]dump of the whole request, so share-link tokens no longer end up in the log. Update log alerts that matched the old text. - A search for only spaces is rejected.
GET /api/searchwith a whitespace-onlyqand no tags now answers 400search_missing_queryinstead of an empty result.
💛 Thanks to our sponsors
A heartfelt thank you to everyone supporting LeafWiki via GitHub Sponsors & Ko-fi.
If you'd like to support LeafWiki too: GitHub Sponsors or a one-time coffee on Ko-fi
🙌 Thanks to contributors
@zorak1103, @lboehm and @OrelRHD, for the upload, crash-log and sitemap fixes in this release, and @DelPoint for reporting the class regression so quickly. Contributions like these are what make LeafWiki better than one person could build alone.
🐛 Bug Fixes
- fix(preview): allow class names in raw HTML again (@perber)
- fix(http): spill large upload parts to disk and reject non-multipart bodies before parsing (@zorak1103)
- fix(ui): match the settings route by whole segment in useAppMode (@perber)
- fix(search): join a group and its neighbour with an explicit AND (@perber)
- fix(http): treat Windows connection resets as broken connections in recovery (@perber)
- fix(http): recover panics without logging the request (@lboehm)
- fix(tree): count a symlink or a missing source as a rename collision (@perber)
- fix(tree): allow a case-only rename on case-insensitive file systems (@perber)
- fix(seo): don't 500 GET /sitemap.xml while the tree is still loading (@OrelRHD)
- fix(http): escape the base path in the custom stylesheet tag (@perber)
- fix(search): reject a whitespace-only query as missing (@perber)
- fix(http): serve the shell for slugs that start with a reserved prefix (@perber)
Plus 1 internal change (refactoring, tests, CI, build and developer docs) that don't change how LeafWiki behaves. Full list: v0.15.0...v0.15.1