What's new
Direct API responses
Successful REST endpoints now return their resource or pagination payloads directly instead of wrapping them in { success, value }. This aligns the API with the current web client contract and removes the extra response-unwrapping layer in homebranch-web.
EPUB table-of-contents parsing repair
The publication manifest generator now parses nested EPUB3 navigation documents and EPUB2 NCX tables of contents correctly. TOC children are preserved again, and older EPUBs that still rely on NCX navigation can populate the reader drawer instead of showing an incomplete or empty hierarchy.
Module and test alignment
The backend has been reorganized around the current NestJS module boundaries, and the library sync test suite now uses portable paths so the release behaves consistently across local and packaged environments. This release also adds focused TOC regression coverage so nested EPUB3 and EPUB2 navigation parsing stay protected.
Breaking changes
Custom clients that deserialize the old { success, value } envelope must be updated to read the response body directly. Error handling still follows normal HTTP status codes.
Upgrade notes
- Deploy HomeBranch Web v1.6.0 alongside this API release. The frontend now expects the direct-response contract from this version onward.
- No manual database changes are required beyond the normal startup migration run.
Full Changelog: v1.4.1...v1.5.0