Skip to content

Tags: luk3yx/python-minifier

Tags

2.2.1

Toggle 2.2.1's commit message
Fixed:

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

2.2.0

Toggle 2.2.0's commit message

Verified

This tag was signed with the committer’s verified signature.
dflook Daniel Flook
Added:

- Support for Python 3.8 language features:
    - Assignment expressions
    - Positional parameters

Changed:
- Removed unnecessary parenthesis around yield statements

Fixed:
- Reading from stdin

2.1.2

Toggle 2.1.2's commit message
Changed:

- Improved renaming performance

2.1.1

Toggle 2.1.1's commit message
Changed:

- Removed redundant parentheses from comprehension iteration values

2.1.0

Toggle 2.1.0's commit message

Verified

This tag was signed with the committer’s verified signature.
dflook Daniel Flook
Add 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

Toggle 2.0.0's commit message

Verified

This tag was signed with the committer’s verified signature.
dflook Daniel Flook
Add renaming transforms:

    - Rename locals, enabled by default
    - Rename globals, disabled by default

Other changes:
    - 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

Fixes:
    - Python 3.7 dataclass field annotations are no longer removed when the remove annotation transformation is enabled.

1.1.0

Toggle 1.1.0's commit message

Verified

This tag was signed with the committer’s verified signature.
dflook Daniel Flook
Add source transformations

  - Combine import statements
  - Remove annotations, pass statements, and literals in statements
  - Move string and byte literals into variables that can be referenced

Add options to the pyminify command for enabling and disabling these
transformations.

1.0.0

Toggle 1.0.0's commit message
First release

Supports Python 2.6 to 2.7 and Python 3.3 to 3.7.

0.1.0

Toggle 0.1.0's commit message
This is not a release, but creates a valid tag for the master branch