Skip to content

unminify: v0.2.0

Compare
Choose a tag to compare
@github-actions github-actions released this 02 Mar 13:22

0.2.0 (2024-03-02)

⚠ BREAKING CHANGES

  • update the format of conflic name from {name}$0 to {name}_1

Features

Inline common global variable references.

- const d = document;
- const c = d.createElement('canvas');
+ const c = document.createElement('canvas');

Rename variables based on object property access.

- const t = s.target;
- const p = t.parent;
- const v = p.value;
+ const s_target = s.target;
+ const s_target_parent = s_target.parent;
+ const s_target_parent_value = s_target_parent.value;
  • add un-parameter-rest into un-parameters (92fec7f)
  • add un-argument-spread rule (1f5fbd6)
  • smart-inline: support global variable inlining and property access path renaming (1a91aa4)

Bug Fixes

  • adjust iife rule order (b5c3fc7)
  • smart-rename: remove destructuring length limitation (23cf3e4)
  • update the format of conflic name from {name}$0 to {name}_1 (dac2125)