Skip to content

Releases: openzim/python-scraperlib

5.4.1

Choose a tag to compare

@benoit74 benoit74 released this 31 Jul 14:06
36d4e28

Fixed

  • Do not URL-encode = and , characters when rewriting document URIs, fixing YouTube JS player breakage (#316)
  • Fix sources of memory leaks in JS and CSS rewriting (#322)

Changed

  • Upgrade Python and Javascript dependencies (especially wombat 3.10.6) (#319, #328)
  • Backport wabac changes up to wabac.js 2.26.6 (#330)
  • Migrate javascript/ from Yarn Classic to Yarn Berry (#320)
  • Test bogus Content-Length HTTP header behavior (#318)

5.4.0

Choose a tag to compare

@benoit74 benoit74 released this 28 May 13:59
f7d14ee

Added

  • Add support for custom number of retries and user-agent in save_large_file (#278)
  • Enhance save_large_file log level (#279)
  • Extend image optimization to support in-memory streams(BytesIO/bytes) and dst_format param (#289)
  • Automatically add _ftindex:<yes/no> tag at creator start based on indexing configuration (#295)
    • BEHAVIOR CHANGE: it is not possible anymore to add "Tags" metadata with Creator.add_metadata method after creator has started ; this is anyway not recommended anymore since 5.x (one should prefer Creator.config_metadata)

Fixed

  • Add proper typing @overload to zimscraperlib.image.optimize_xxx methods (#273)
  • Backport wabac.JS change around rewriting: detect when JS is in 'strict' mode and avoid using 'arguments' (#286)
  • Fix installation from source, which missed wombatSetup.js (#287)
  • Fix outdated system dependencies in README: remove Pillow build-time deps (bundled in wheels), add missing libcairo across all platforms (#152)
  • Improve contribution setup instructions: use hatch shell, clarify commands must be run from local clone root (#153)
  • Bring coverage back to 100% (#293)
  • Fix Creator.config_indexing docstring to reflect that only the full-text index is toggled; title indexing is always performed by libzim (#294)
  • Fix format_for to not modify input BytesIO position (#296)

### Changed

  • Upgrade to wombat 3.10.5 (#306)
  • Adopt openzim/_python-bootstrap 2.0.0 (#303)
  • Upgrade Python dependencies, Node.JS runtime and Node.JS dependencies (#306)

5.3.0

Choose a tag to compare

@benoit74 benoit74 released this 14 Nov 12:42
635c6c6

Changed

  • Upgrade to support only Python 3.14 (#266)
  • Upgrade dependencies (#269)

5.2.0

Choose a tag to compare

@benoit74 benoit74 released this 02 Oct 09:20
e47e620

Added

  • Add utility to fetch and prepare ZIM illustration (#254)
  • New zim.dedup.Deduplicator class to handle automatic deduplication of content before adding to the ZIM (#33)

Changed

  • Upgrade dependencies, especially wombat 3.9.1 (#262, #263)
  • Backport changes in wabac.js around JS rewriting rules (#259, #265)

Fixed

  • JS rewriting abusively rewrite import function (#255)
  • Test about badly escaped src in HTML is failing (#264)

5.1.1

Choose a tag to compare

@benoit74 benoit74 released this 17 Feb 08:35
87607e0

Changed

  • Upgrade to wombat 3.8.8 and other Python/JS dependencies (#249)
  • Force stereo videos to solve issue with 5.1 sound videos (#250)

5.1.0

Choose a tag to compare

@benoit74 benoit74 released this 21 Jan 08:29
9a45f25

Changed

  • Upgrade to support only Python 3.13 (#203)

5.0.0

Choose a tag to compare

@benoit74 benoit74 released this 14 Jan 15:55
af21c01

This is a major release with a lot of breaking changes but most changes are easy to fix.

In addition to item below, see content of Release Candidates for changes since 4.x.

Changed

  • Add support for urllib3 2.3.x #243

5.0.0rc4

5.0.0rc4 Pre-release
Pre-release

Choose a tag to compare

@benoit74 benoit74 released this 09 Jan 10:49
4944025

Changed

  • Mark library as typed and fix sdist content (#241)

5.0.0rc3

5.0.0rc3 Pre-release
Pre-release

Choose a tag to compare

@benoit74 benoit74 released this 07 Jan 16:08
136b4dd

Changed

  • Upgrade wombat to 3.8.7 (#239)

5.0.0rc2

5.0.0rc2 Pre-release
Pre-release

Choose a tag to compare

@benoit74 benoit74 released this 07 Jan 12:54
671e9e2

Fixed

  • Fix wombatSetup.js location in wheel (#236)