SingleFile CLI 2.11.1
Nothing in the CLI itself changed. The release carries single-file-core 1.5.128.
Fixes from single-file-core 1.5.128
- An archive saved with
--crawl-save-archive-tocopens on its table of contents. The table of contents was written into the archive and could be reached by hash, but nothing ever went there, because the archive always opened on the first crawled page - A resource is identified by its bytes rather than by the content type the server sent. The bytes were read only when the header was missing or
application/octet-stream, so a woff2 served astext/plainwas embedded asdata:text/plain. That costs twice: a browser with noformat()hint in the@font-facerule has nothing left to identify the font by, and the archive writer deflates a file that is already Brotli compressed. The header is still kept when the bytes match nothing --max-appended-data-lengthis honored by--crawl-save-archive. The options handed to the writer of a multi-page archive were copied by hand and that copy had dropped the budget, so it applied to a single page and was ignored for an archive of several. The list is now derived from the options the writer reads
Changes
- AVIF, HEIC, JPEG XL and TIFF are recognized from their bytes
- A video is identified as
video/mp2tonly when the sync byte appears at the 188 byte packet stride. Matching a single leading0x47was tolerable as a last resort behind a missing header, but it would relabel any video whose first byte isGnow that the bytes win over the header
Co-authored by Claude (Claude Code)