Releases: dflook/python-minifier
Releases · dflook/python-minifier
2.1.1
2.1.0
Added
- Optional source transforms:
- remove object base, enabled by default
Changed
- Return statements no longer wrap tuples in extraneous parentheses
- Duplicated literals are only raised to the lowest common function namespace
2.0.0
Added
- Optional source transformations:
- Rename locals, enabled by default
- Rename globals, disabled by default
Changed
- Minified code will no longer have leading or trailing whitespace
- Generated names for hoisted literals will have an initial underscore if rename globals is disabled
- Suites of simple statements won't create an indented block
- All transforms are now functional on all supported python versions
- The module docstring is not removed by the remove literal statements transformation if there is a name bound for it
Fixed
- Python 3.7 dataclass field annotations are no longer removed when the remove annotation transformation is enabled.
1.1.0
Added
- Optional source transformations:
- Combine import statements
- Remove annotations
- Remove pass statements
- Remove unused literals, including docstrings
- Move duplicated literals into module level variables