Skip to content

Releases: dflook/python-minifier

2.3.0

18 Nov 16:22
Immutable release. Only release title and notes can be modified.
0f878c3

Choose a tag to compare

Added

  • Optional source transform:
    • convert positional only arguments to normal arguments, enabled by default

Fixed

  • Unnecessary spaces after ',' in tuple values
  • Removing annotations for positional-only arguments (Thanks luk3yx!)
  • --no-remove-annotations argument to pyminify had no effect

2.2.1

03 Nov 15:34
Immutable release. Only release title and notes can be modified.
5aaf5ca

Choose a tag to compare

Fixed

  • Unnecessary spaces after ';' in minified output have been removed
  • Fixed PendingDeprecationWarnings

2.1.2

27 Jun 21:52
Immutable release. Only release title and notes can be modified.
c8cd280

Choose a tag to compare

Changed

  • Improved renaming performance

2.1.1

07 Apr 18:53
Immutable release. Only release title and notes can be modified.
b9bf31c

Choose a tag to compare

Changed

  • Removed redundant parentheses from comprehension iteration values

2.1.0

24 Jan 08:17
Immutable release. Only release title and notes can be modified.
2.1.0
3430679

Choose a tag to compare

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

13 Jan 10:16
Immutable release. Only release title and notes can be modified.
2.0.0
c52efa0

Choose a tag to compare

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

13 Jan 10:18
Immutable release. Only release title and notes can be modified.
1.1.0
5028cde

Choose a tag to compare

Added

  • Optional source transformations:
    • Combine import statements
    • Remove annotations
    • Remove pass statements
    • Remove unused literals, including docstrings
    • Move duplicated literals into module level variables

1.0.0

13 Jan 10:19
Immutable release. Only release title and notes can be modified.
097d999

Choose a tag to compare

First release of the python-minifier package