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
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,12 @@ and will output source code compatible with the version of the interpreter it is
10
10
This means that if you minify code written for Python 3.11 using python-minifier running with Python 3.12,
11
11
the minified code may only run with Python 3.12.
12
12
13
+
## [3.2.0] - 2025-12-31
14
+
15
+
### Added
16
+
- New `--prefer-single-line` option to use semicolons instead of newlines between top-level statements when there is no difference in output size. This doesn't make the output any smaller, but may be preferred.
17
+
- Constant folding can now fold unary operators (e.g. `-1`, `not True`, `~0`) in addition to binary operators.
18
+
13
19
## [3.1.1] - 2025-12-11
14
20
15
21
### Fixed
@@ -311,6 +317,7 @@ the minified code may only run with Python 3.12.
0 commit comments