github gildas-lormeau/single-file-cli v2.12.0

4 hours ago

SingleFile CLI 2.12.0

CLI fixes and improvements

  • --insert-canonical-link turns the canonical link off. The element is still inserted by default, so nothing changes unless you ask for it. The option existed in the core library but was forced on after the options were merged, so passing it did nothing at all
  • --read-maff-metadata saves the original URL and the archive time of a page that was extracted from a MAFF archive, read from the index.rdf file stored next to it. Without it the page is saved under the path of the extracted copy, dated today. It is off by default because it asks for an index.rdf beside every page saved, which is a request that fails on the open web

Fixes from single-file-core 1.5.130

  • Saved pages can no longer submit forms or set a base URI. Both were available to a saved page and neither has any use once the page is on disk
  • javascript: URIs are removed from every attribute, in every namespace. The previous pass read the resolved property, so it missed the href of an SVG link and never saw xlink:href
  • Reading the metadata of a page extracted from a MAFF archive no longer fails the capture when index.rdf declares an original URL with no RDF:resource attribute
  • The filename template data of a page extracted from a MAFF archive records the URL recovered from the archive, not the path of the extracted copy

Changes

  • zip.js is updated to 2.15.0

Co-authored by Claude (Claude Code)

Don't miss a new single-file-cli release

NewReleases is sending notifications on new releases.