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
@@ -15,6 +15,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
15
15
- Automatically index PDF documents content #167
16
16
- Automatically set proper title on PDF documents #168
17
17
- Expose new `optimization.get_optimization_method` to get the proper optimization method to call for a given image format
18
+
- Add `optimization.get_optimization_method` to get the proper optimization method to call for a given image format
19
+
- 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
18
20
19
21
## Changed
20
22
@@ -23,6 +25,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
23
25
-**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)
24
26
- 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`
29
+
-**BREAKING**`creator.Creator.add_metadata` and `creator.Creator.validate_metadata` now only accepts `bytes | str` as value (it must have been converted before call)
30
+
-**BREAKING** second argument of `creator.Creator.add_metadata` has been renamed to `value` instead of `content` to align with other methods
31
+
- When a type issue arises in metadata checks, wrong value type is displayed in exception
0 commit comments