1- # 1.4.3
1+ ## Changelog
2+
3+ All notable changes to this project are documented in this file.
4+
5+ The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
6+ and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) (as of version 1.5.0).
7+
8+ ## [ Unreleased]
9+
10+ ### Added
11+
12+ - ` zim.Archive.tags ` and ` zim.Archive.get_tags() ` to retrieve parsed Tags
13+ with optionnal ` libkiwix ` param to include libkiwix's hints
14+ - [ tests] Counter tests now also uses a libzim6 file.
15+
16+ ### Changed
17+
18+ - ` zim.Archive.article_counter ` follows libkiwix's new bahavior of
19+ returning libzim's ` article_count ` for libzim 7+ ZIMs and
20+ returning previously returned (parsed) value for older ZIMs.
21+
22+ ### Removed
23+
24+ - Unreachable code removed in ` imaging ` module.
25+ - [ tests] “Sanskrit” removed from tests as output not predicatble depending on plaftform.
26+
27+
28+ ## [ 1.4.3]
229
330* ` zim.Archive.counters ` wont fail on missing ` Counter ` metadata
431
5- # 1.4.2
32+ ## [ 1.4.2]
633
734* Fixed leak in ` zim.Archive ` 's ` .counters `
835* New ` .get_text_metadata() ` method on ` zim.Archive ` to save UTF-8 decoding
936
10- # 1.4.1
37+ ## [ 1.4.1]
1138
1239* New ` Counter ` metadata based properties for Archive:
1340 * ` .counters ` : parsed dict of the Counter metadata
1744* Added ` uri ` module with ` rebuild_uri() `
1845
1946
20- # 1.4.0
47+ ## [ 1.4.0]
2148
2249* Using new python-libzim based on libzim v7
2350 * New Creator API
3764* Fixed ` image.save_image() ` saving to disk even when using a bytes stream
3865* Fixed ` image.transformation.resize_image() ` when resizing a byte stream without a dst
3966
40- # 1.3.6 (internal)
67+ ## [ 1.3.6 (internal)]
4168
4269Intermediate release using unreleased libzim to support development of libzim7.
4370Don't use it.
@@ -58,7 +85,7 @@ Don't use it.
5885* Added delete_fpath to add_item_for() and fixed StaticItem's auto remove
5986* Updated badges for new repo name
6087
61- # 1.3.5
88+ ## [ 1.3.5]
6289
6390* add ` stream_file() ` to stream content from a URL into a file or a ` BytesIO ` object
6491* deprecated ` save_file() `
@@ -67,7 +94,7 @@ Don't use it.
6794* Added support for in-memory optimization for PNG, JPEG, and WebP images
6895* allows enabling debug logs via ZIMSCRAPERLIB_DEBUG environ
6996
70- # 1.3.4
97+ ## [ 1.3.4]
7198
7299* added ` wait ` option in ` YoutubeDownloader ` to allow parallelism while using context manager
73100* do not use extension for finding format in ` ensure_matches() ` in ` image.optimization ` module
@@ -76,21 +103,21 @@ Don't use it.
76103* ` save_image ` moved from ` image ` to ` image.utils `
77104* added ` convert_image ` ` optimize_image ` ` resize_image ` functions to ` image ` module
78105
79- # 1.3.3
106+ ## [ 1.3.3]
80107
81108* added ` YoutubeDownloader ` to ` download ` to download YT videos using a capped nb of threads
82109
83- # 1.3.2
110+ ## [ 1.3.2]
84111
85112* fixed rewriting of links with empty target
86113* added support for image optimization using ` zimscraperlib.image.optimization ` for webp, gif, jpeg and png formats
87114* added ` format_for() ` in ` zimscraperlib.image.probing ` to get PIL image format from the suffix
88115
89- # 1.3.1
116+ ## [ 1.3.1]
90117
91118* replaced BeautifoulSoup parser in rewriting (` html.parser ` –> ` lxml ` )
92119
93- # 1.3.0
120+ ## [ 1.3.0]
94121
95122* detect mimetypes from filenames for all text files
96123* fixed non-filename based StaticArticle
@@ -107,15 +134,15 @@ Don't use it.
107134* changed ` get_colors() ` param names (` image_path ` -> ` src ` )
108135* changed ` resize_image() ` param names (` fpath ` -> ` src ` )
109136
110- # 1.2.1
137+ ## [ 1.2.1]
111138
112139* fixed URL rewriting when running from /
113140* added support for link rewriting in ` <object> ` element
114141* prevent from raising error if element doesn't have the attribute with url
115142* use non greedy match for CSS URL links (shortest string matching ` url() ` format)
116143* fix namespace of target only if link doesn't have a netloc
117144
118- # 1.2.0
145+ ## [ 1.2.0]
119146
120147* added UTF8 to constants
121148* added mime_type discovery via magic (filesystem)
@@ -128,46 +155,46 @@ Don't use it.
128155 * Added zim.rewriting: tools to rewrite links/urls in HTML/CSS
129156* add timeout and retries to save_file() and make it return headers
130157
131- # 1.1.2
158+ ## [ 1.1.2]
132159
133160* fixed ` convert_image() ` which tried to use a closed file
134161
135- # 1.1.1
162+ ## [ 1.1.1]
136163
137164* exposed reencode, Config and get_media_info in zimscraperlib.video
138165* added save_image() and convert_image() in zimscraperlib.imaging
139166* added support for upscaling in resize_image() via allow_upscaling
140167* resize_image() now supports params given by user and preservs image colorspace
141168* fixed tests for zimscraperlib.imaging
142169
143- # 1.1.0
170+ ## [ 1.1.0]
144171
145172* added video module with reencode, presets, config builder and video file probing
146173* ` make_zim_file() ` accepts extra kwargs for zimwriterfs
147174
148- # 1.0.6
175+ ## [ 1.0.6]
149176
150177* added translation support to i18n
151178
152- # 1.0.5
179+ ## [ 1.0.5]
153180
154181* added s3transfer to verbose dependencies list
155182* changed default log format to include module name
156183
157- # 1.0.4
184+ ## [ 1.0.4]
158185
159186* verbose dependencies (urllib3, boto3) now logged at WARNING level by default
160187* ability to set verbose dependencies log level and add modules to the list
161188* zimscraperlib's logging level now aligned with scraper's requested one
162189
163190
164- # 1.0.3
191+ ## [ 1.0.3]
165192
166193* fix_ogvjs_dist script more generic (#1 )
167194* updated zim to support other zimwriterfs params (#10 )
168195* more flexible requirements for requests dependency
169196
170- # 1.0.2
197+ ## [ 1.0.2]
171198
172199* fixed return value of ` get_language_details ` on non-existent language
173200* fixed crash on ` resize_image ` with method ` height `
@@ -179,11 +206,11 @@ Don't use it.
179206* added ` create_favicon ` to generate a squared favicon
180207* added ` handle_user_provided_file ` to handle user file/URL from param
181208
182- # 1.0.1
209+ ## [ 1.0.1]
183210
184211* fixed fix_ogvjs_dist
185212
186- # 1.0.0
213+ ## [ 1.0.0]
187214
188215* initial version providing
189216 * download: save_file, save_large_file
0 commit comments