SingleFile CLI 2.3.0
New features
- Added the
--crawl-save-archive-page-transitionsoption to control page transitions when navigating in multi-page archives. The possible values are "auto" (default, i.e. transitions run only when pages opt in via an@view-transitionCSS rule), "fade" (the previous behavior) and "none" - Added the weekday template variables, e.g.
{weekday-locale}and{weekday-short-utc}(fix gildas-lormeau/SingleFile#1948)
Behavior changes
- The process now exits with code 1 when at least one capture fails. Batches and crawls still complete, and the exit codes (0, 1, 255) are documented in the README
- Page transitions in multi-page archives now run only when pages opt in via CSS instead of always crossfading (see
--crawl-save-archive-page-transitionsabove)
Fixes
- Fixed saving pages enforcing Trusted Types via a Content Security Policy (fix #199, #24). This requires a browser based on Chromium 151 or newer,
--browser-bypass-CSPcan be used as a fallback with older versions - Fixed
--browser-remote-debugging-urlnot being recognized as an alias of--browser-server - Fixed a latent error when a capture was aborted while waiting for a timeout
- The Docker image now explicitly disables the single-process mode of the browser (it can still be overridden by passing
--browser-single-process) - Fixes from single-file-core 1.5.93 to 1.5.95, including: PDFs saved with
--embed-pdfare now also stored as the first entry of the zip content, fixed@importrewriting when saving original URLs (fix gildas-lormeau/SingleFile#1961), fixed a hang when processing stylesheets larger than 16MB (fix gildas-lormeau/SingleFile#1962), fixed identity mappings and special characters in filename replacements
Co-authored by Claude (Claude Code)