You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+6
Original file line number
Diff line number
Diff line change
@@ -11,18 +11,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11
11
12
12
- Add utility function to compute ZIM Tags #164, including deduplication #156
13
13
- Expose new `optimization.get_optimization_method` to get the proper optimization method to call for a given image format
14
+
- New `creator.Creator.convert_and_check_metadata` to convert metadata to bytes or str for known use cases and check proper type is passed to libzim
14
15
15
16
## Changed
16
17
-**BREAKING** Renamed `zimscraperlib.image.convertion` to `zimscraperlib.image.conversion` to fix typo
17
18
-**BREAKING** Many changes in type hints to match the real underlying code
18
19
-**BREAKING** Force all boolean arguments (and some other non-obvious parameters) to be keyword-only in function calls for clarity / disambiguation (see ruff rule FBT002)
19
20
- Prefer to use `IO[bytes]` to `io.BytesIO` when possible since it is more generic
-**BREAKING**`types.get_mime_for_name` now returns `str | None`
23
+
-**BREAKING**`creator.Creator.add_metadata` and `creator.Creator.validate_metadata` now only accepts `bytes | str` as value (it must have been converted before call)
24
+
-**BREAKING** second argument of `creator.Creator.add_metadata` has been renamed to `value` instead of `content` to align with other methods
25
+
- When a type issue arises in metadata checks, wrong value type is displayed in exception
21
26
22
27
### Fixed
23
28
24
29
- Metadata length validation is buggy for unicode strings #158
25
30
- Pillow 10.4.0 reveals improper type hints for image probing functions #177
31
+
- Automated conversion of `datetime.date` or `datetime.datetime` Date metadata now returns a `str` instead of a `bytes`
0 commit comments