Skip to content

Latest commit

 

History

History
942 lines (803 loc) · 59.7 KB

CHANGELOG.md

File metadata and controls

942 lines (803 loc) · 59.7 KB

[email protected] (2018-09-24)

🚀 New Feature

  • babel-minify

🐛 Bug Fix

  • babel-plugin-minify-dead-code-elimination
    • #882 fix(dce): handle array and object patterns in assignment expressions (@boopathi)
  • babel-plugin-minify-dead-code-elimination, babel-preset-minify
    • #881 fix(deadcode): sequence expressions in switch discriminant (@boopathi)
  • gulp-babel-minify
  • babel-helper-to-multiple-sequence-expressions, babel-minify, babel-plugin-minify-simplify, babel-preset-minify, gulp-babel-minify
  • babel-helper-evaluate-path, babel-preset-minify

🐎 Performance Improvements

  • babel-plugin-minify-builtins
  • babel-helper-evaluate-path
    • #856 perf(evaluate): convert paths to nodes as path.get is slow (@boopathi)
  • babel-plugin-minify-mangle-names

📝 Documentation

🏠 Internal

  • Other
    • #883 feat(bench): add terser. remove butternut (@boopathi)
    • #852 refactor: update scripts to use transformSync and disable babel.config.js (@boopathi)
  • babel-plugin-minify-simplify
  • babel-plugin-minify-mangle-names
    • #853 refactor: split mangleScope logic to smaller functions (@boopathi)

Chore

  • babel-minify, gulp-babel-minify
  • babel-minify, babel-plugin-minify-simplify, gulp-babel-minify

Committers: 7

[email protected] (2018-05-14)

🐛 Bug Fix

  • babel-helper-evaluate-path, babel-plugin-minify-constant-folding

Committers: 1

[email protected] (2018-05-14)

🚀 New Feature

  • babel-plugin-minify-simplify, babel-plugin-transform-simplify-comparison-operators
    • #572 Replace x != undefined with x != null. (@j-f1)

🐛 Bug Fix

  • babel-plugin-minify-mangle-names, babel-preset-minify
    • #842 fix(mangle): handle inferred names for functions. (@boopathi)
  • babel-plugin-minify-infinity
  • babel-helper-evaluate-path, babel-plugin-minify-dead-code-elimination, babel-plugin-minify-guarded-expressions, babel-plugin-minify-simplify, babel-preset-minify
  • babel-plugin-minify-dead-code-elimination, babel-preset-minify

Chore

Committers: 3

[email protected] (2018-05-03)

🐛 Bug Fix

  • babel-plugin-minify-mangle-names
    • #830 fix: add constant violations to references in mangler collect phase. (@boopathi)
  • babel-plugin-minify-constant-folding
  • babel-preset-minify
    • #823 Allow options for plugins disabled by default (babel-preset-minify). (@nemophrost)
  • babel-plugin-transform-merge-sibling-variables, babel-preset-minify
    • #826 fix(merge-sibling-var): recalculate declarations when concatenating variables. (@vigneshshanmugam)

📝 Documentation

Chore

  • all packages
    • #827 chore: upgrade dependencies; add node 10; remove node 9 (@boopathi)

Committers: 4

[email protected] (2018-04-08)

💥 Breaking Change

  • babel-helper-mark-eval-scopes, babel-minify, babel-plugin-minify-builtins, babel-plugin-minify-constant-folding, babel-plugin-minify-dead-code-elimination, babel-plugin-minify-flip-comparisons, babel-plugin-minify-guarded-expressions, babel-plugin-minify-infinity, babel-plugin-minify-mangle-names, babel-plugin-minify-numeric-literals, babel-plugin-minify-replace, babel-plugin-minify-simplify, babel-plugin-minify-type-constructors, babel-plugin-transform-inline-consecutive-adds, babel-plugin-transform-inline-environment-variables, babel-plugin-transform-member-expression-literals, babel-plugin-transform-merge-sibling-variables, babel-plugin-transform-minify-booleans, babel-plugin-transform-node-env-inline, babel-plugin-transform-property-literals, babel-plugin-transform-regexp-constructors, babel-plugin-transform-remove-console, babel-plugin-transform-remove-debugger, babel-plugin-transform-remove-undefined, babel-plugin-transform-simplify-comparison-operators, babel-plugin-transform-undefined-to-void, babel-preset-minify, gulp-babel-minify

💅 Polish

🏠 Internal

  • babel-plugin-transform-remove-console, babel-plugin-transform-remove-debugger, babel-plugin-transform-remove-undefined, babel-plugin-transform-simplify-comparison-operators, babel-plugin-transform-undefined-to-void

Chore

Committers: 3

[email protected] (2018-01-31)

💥 Breaking Change

  • babel-minify, babel-plugin-minify-mangle-names, babel-preset-minify, gulp-babel-minify

🚀 New Feature

  • babel-plugin-minify-numeric-literals
  • babel-plugin-transform-remove-console
    • #661 Add exclude option for transform-remove-console plugin. (@kball)

🐛 Bug Fix

  • babel-plugin-minify-simplify, babel-preset-minify
  • babel-plugin-minify-builtins
  • babel-plugin-minify-mangle-names
  • babel-plugin-minify-dead-code-elimination
  • babel-plugin-minify-simplify
    • #754 fix(simplify): fix conditional expression pattern match transformation logic. (@boopathi)
  • babel-plugin-transform-regexp-constructors
  • babel-plugin-minify-constant-folding, babel-preset-minify
    • #730 fix: property names minification - removal of quotes. (@boopathi)
  • babel-plugin-transform-merge-sibling-variables, babel-preset-minify
    • #713 Fix(merge-sibling-var): force recalc ref when concatenating for-loop vars (#485). (@garyyeap)
  • babel-plugin-minify-constant-folding
  • babel-minify
    • #675 Fix js ext check & improve error handling for file list. (@boopathi)
    • #669 CLI: reorder files/stdin/help-message. (@boopathi)

💅 Polish

  • babel-plugin-minify-simplify, babel-plugin-transform-simplify-comparison-operators
    • #778 (perf) - Improve performance of simplify by removing traversal for type inference. (@vigneshshanmugam)
  • babel-plugin-minify-simplify
  • babel-plugin-transform-inline-consecutive-adds

📝 Documentation

🏠 Internal

  • Other
  • gulp-babel-minify
  • babel-plugin-transform-regexp-constructors
  • babel-plugin-transform-merge-sibling-variables
  • babel-plugin-transform-property-literals
  • babel-plugin-transform-minify-booleans
  • babel-plugin-transform-member-expression-literals
    • #729 refactor(tests): Tests to fixtures - memberExpressionLiterals. (@boopathi)
  • babel-plugin-transform-inline-consecutive-adds
    • #723 refactor(tests): Tests to fixtures - inlineConsecutiveAdds. (@boopathi)
  • babel-plugin-minify-type-constructors
    • #722 refactor(tests): Tests to fixtures - typeConstructors plugin. (@boopathi)
  • babel-plugin-minify-flip-comparisons, babel-plugin-minify-guarded-expressions, babel-plugin-minify-infinity, babel-plugin-minify-mangle-names, babel-plugin-minify-numeric-literals
  • babel-plugin-minify-builtins, babel-plugin-minify-constant-folding, babel-plugin-minify-dead-code-elimination
  • babel-plugin-minify-builtins, babel-plugin-minify-constant-folding, babel-plugin-minify-dead-code-elimination, babel-plugin-minify-flip-comparisons, babel-plugin-minify-guarded-expressions, babel-plugin-minify-infinity, babel-plugin-minify-mangle-names, babel-plugin-minify-numeric-literals, babel-plugin-minify-simplify, babel-plugin-minify-type-constructors, babel-plugin-transform-inline-consecutive-adds, babel-plugin-transform-inline-environment-variables, babel-plugin-transform-member-expression-literals, babel-plugin-transform-merge-sibling-variables, babel-plugin-transform-minify-booleans, babel-plugin-transform-node-env-inline, babel-plugin-transform-property-literals, babel-plugin-transform-regexp-constructors, babel-plugin-transform-remove-console, babel-plugin-transform-remove-debugger, babel-plugin-transform-remove-undefined, babel-plugin-transform-simplify-comparison-operators, babel-plugin-transform-undefined-to-void, babel-preset-minify, gulp-babel-minify
  • babel-minify

Chore

  • babel-minify, babel-plugin-minify-mangle-names, babel-plugin-minify-numeric-literals, babel-plugin-minify-type-constructors, gulp-babel-minify

Committers: 13

[email protected] (2017-08-14)

Highlights

  • #124: Babili has been renamed to babel-minify
  • New babel-minify CLI and Node API. Docs

Updated packages

💥 Breaking Change

🚀 New Feature

🐛 Bug Fix

  • babel-plugin-transform-remove-undefined, babel-preset-minify
    • #662 Use evaluate helper in removeUndefined transform. (@boopathi)
  • babel-helper-to-multiple-sequence-expressions, babel-preset-minify
  • babel-helper-evaluate-path
    • #651 Add deopt paths for let/const bindings in evaluate helper. (@boopathi)
  • babel-helper-evaluate-path, babel-plugin-minify-builtins, babel-plugin-minify-dead-code-elimination
  • babel-plugin-minify-dead-code-elimination
  • babel-plugin-minify-simplify
  • babel-plugin-transform-remove-undefined, babel-preset-babili
  • babel-plugin-minify-constant-folding

📝 Documentation

🏠 Internal

  • babili
  • Other
  • babel-helper-mark-eval-scopes, babel-plugin-minify-dead-code-elimination, babel-plugin-minify-mangle-names
  • babel-plugin-minify-simplify
  • Multiple packages

Committers: 6

[email protected] (2017-06-20)

Just some various bug fixes!

🐛 Bug Fix

  • babel-plugin-minify-constant-folding
  • babel-plugin-minify-builtins, babel-preset-babili

Committers: 3

[email protected] (2017-06-13)

🚀 New Feature

  • babel-plugin-minify-constant-folding
    • #505 Evaluate some String and Array instance methods at compile time. (@j-f1)
  • babel-plugin-minify-dead-code-elimination

🐛 Bug Fix

  • babel-plugin-transform-property-literals
  • babel-plugin-minify-mangle-names
    • #567 Add workaround for Safari for loop lexical scope bug. (@btmills)

🏠 Internal

  • babel-helper-flip-expressions, babel-plugin-minify-dead-code-elimination, babel-plugin-minify-guarded-expressions, babel-plugin-minify-simplify, babel-plugin-transform-inline-consecutive-adds
  • Other
    • #557 Clean up before every run to avoid working on already minified file. (@buunguyen)

Committers: 4

[email protected] (2017-05-23)

🐛 Bug Fix

  • babel-plugin-minify-mangle-names
    • #550 Remove throwing error on unrecognized binding. (@boopathi)

💅 Polish

  • babel-plugin-minify-mangle-names

Committers: 1

[email protected] (2017-05-22)

Summary

  • Better mangling - significant improvement in output code size.
  • The preset options are flattened
  • Smoke tests
  • Use Yarn & Prettier
  • And a lot of bug fixes (refer below)

Check Benchmarks for info about how Babili compares with other minifiers for a few samples.

Updated Pacakges:

💥 Breaking Change

🚀 New Feature

  • babel-plugin-minify-mangle-names

🐛 Bug Fix

  • babel-plugin-minify-builtins
  • babel-plugin-transform-inline-consecutive-adds
  • babel-plugin-minify-mangle-names
  • babel-plugin-minify-simplify
  • babel-plugin-minify-constant-folding
  • babel-plugin-minify-builtins, babel-plugin-minify-mangle-names, babel-preset-babili
  • babel-plugin-transform-member-expression-literals, babel-plugin-transform-property-literals

💅 Polish

📝 Documentation

🏠 Internal

Chore

Committers: 8

[email protected] (2017-03-03)

💥 Breaking Change

  • babel-plugin-minify-empty-function

🚀 New Feature

🐛 Bug Fix

  • babel-plugin-minify-dead-code-elimination
  • babel-plugin-minify-simplify
  • babel-plugin-transform-remove-console, babel-plugin-transform-remove-debugger
  • babel-plugin-minify-mangle-names

💅 Polish

  • babel-plugin-minify-mangle-names
    • #446 Minor optimization for handling blacklisted names. (@hzlmn)
  • babel-plugin-transform-regexp-constructors

📝 Documentation

Chore

  • babili
    • #441 chore(package): add description to babili package. (@Haroenv)

Committers: 5

[email protected] (2017-02-08)

🐛 Bug Fix

  • babel-plugin-transform-merge-sibling-variables, babel-preset-babili
  • babel-plugin-minify-mangle-names
  • babel-plugin-minify-dead-code-elimination
    • #391 Inline hoisted, post-return declarations properly. (@kangax)
  • babel-plugin-minify-constant-folding, babel-plugin-minify-dead-code-elimination, babel-preset-babili
  • babel-plugin-minify-constant-folding
    • #384 Escape "</script" when inlining strings. (@kangax)
  • babel-plugin-transform-remove-undefined
  • babel-helper-mark-eval-scopes, babel-plugin-minify-dead-code-elimination, babel-plugin-minify-mangle-names
    • #371 Add mark eval scopes helper and deopt DCE fn unused params. (@boopathi)

📝 Documentation

  • Other
    • #401 Readme: plugin options cannot be set in babili cmd. (@probins)

Committers: 5

Babili v0.0.10: Changelog for 2017-01-18

🚀 New Feature

  • babel-plugin-minify-dead-code-elimination, babel-plugin-minify-mangle-names, babel-preset-babili
  • babel-preset-babili

🐛 Bug Fix

  • babel-preset-babili
    • #325 remove comments by default in babel-preset-babili. (@hzoo)
  • babili
  • babel-plugin-transform-merge-sibling-variables
  • babel-plugin-transform-regexp-constructors
  • babel-plugin-minify-dead-code-elimination
  • babel-plugin-minify-dead-code-elimination, babel-preset-babili

📝 Documentation

  • Other
    • #348 add install, removing #redundancy [skip ci]. (@hzoo)
  • babel-plugin-minify-simplify
  • babel-preset-babili

🏠 Internal

Chore

Committers: 10

Babili v0.0.9: Changelog for 2016-11-21

  • babili: 0.0.8 => 0.0.9
  • babel-preset-babili: 0.0.8 => 0.0.9
  • babel-plugin-minify-constant-folding: 0.0.1 => 0.0.3
  • babel-plugin-minify-dead-code-elimination: 0.1.0 => 0.1.1
  • babel-plugin-minify-infinity: 0.0.1 => 0.0.3
  • babel-plugin-minify-mangle-names: 0.0.4 => 0.0.5
  • babel-plugin-minify-simplify: 0.0.4 => 0.0.5
  • babel-plugin-transform-regexp-constructors: 0.0.1 => 0.0.4
  • babel-plugin-transform-remove-undefined: 0.0.4 (new)
  • babel-helper-evaluate-path: 0.0.3 (new)
  • babel-helper-is-nodes-equiv: (removed)

🚀 New Feature

  • babel-plugin-transform-remove-undefined
    • #197 Implemented transform-remove-undefined plugin. (@shinew)
  • babel-plugin-minify-simplify
  • babel-plugin-minify-dead-code-elimination
  • babel-plugin-minify-simplify

🐛 Bug Fix

  • babel-plugin-minify-simplify
    • #240 Fix labeled break stmt removal from last switch case. (@boopathi)
  • babel-plugin-minify-infinity
  • babel-helper-evaluate-path, babel-plugin-minify-constant-folding
    • #246 Fix path.evaluate for runtime errors in constant-folding. (@boopathi)
  • babel-plugin-transform-regexp-constructors
  • babel-plugin-transform-regexp-constructors
  • babel-plugin-minify-dead-code-elimination, babel-plugin-minify-simplify
    • #266 Fix if_return & dce ifelse..return within loops. (@boopathi)
  • babel-plugin-minify-dead-code-elimination
  • babel-plugin-minify-simplify
    • #282 Don't transform earlyReturn on function enter. (@boopathi)

🏠 Internal

  • babel-plugin-minify-simplify
  • babel-plugin-minify-dead-code-elimination
  • Benchmarks
  • babel-plugin-minify-simplify
    • #276 Remove helper, use the built-in t.isNodesEquivalent. (@hzoo)
  • Use babel preset env

Commiters: 6

Babili v0.0.8: Changelog for 2016-10-31

  • babili: 0.0.7 => 0.0.8
  • babel-preset-babili: 0.0.5 => 0.0.8
  • babel-helper-to-multiple-sequence-expressions: 0.0.1 => 0.0.2
  • babel-plugin-minify-dead-code-elimination: 0.0.4 => 0.1.0
  • babel-plugin-minify-mangle-names: 0.0.3 => 0.0.4
  • babel-plugin-minify-numeric-literals: 0.0.1 (new)
  • babel-plugin-minify-simplify: 0.0.3 => 0.0.4
  • babel-plugin-minify-type-constructors: 0.0.1 => 0.0.2
  • babel-plugin-transform-regexp-constructors: 0.0.1 (new)

🚀 New Feature

  • babel-plugin-minify-numeric-literals, babel-preset-babili
    [10000, 0x000001, 0o23420, 0b10011100010000]
    // =>
    [1e4, 1, 1e4, 1e4]
  • babel-plugin-transform-regexp-constructors
    • #196 Implemented transform-regexp-constructors plugin. (@shinew)
    var x = new RegExp('\\w+\\s')
    // =>
    var x = /\w+\s/
  • babel-plugin-minify-dead-code-elimination
    function foo(unused) { return 1 }
    // =>
    function foo() { return 1 }
    // To prevent this for code depending on foo.length, use keepFnArgs: true
    {
      plugins: [ ["minify-dead-code-elimination", { keepFnArgs: true }] ]
    }

🐛 Bug Fix

  • babel-plugin-minify-dead-code-elimination
  • babel-plugin-minify-simplify
    • #220 Require blocks around single block-scope declaration. (@boopathi)
    • #202 Fix for merging of vars to successive for loop. (@boopathi)
  • babel-helper-to-multiple-sequence-expressions, babel-plugin-minify-simplify
    • #216 Fix undefined in multiple sequence expressions (close #208). (@boopathi)
  • babel-plugin-minify-type-constructors
    • #215 Fix bug where invalid array length throws (close #206). (@boopathi)
  • babel-plugin-minify-mangle-names

🏠 Internal

  • Other
  • babel-plugin-minify-dead-code-elimination
  • babel-plugin-minify-mangle-names
    • #224 Add test for labels shadow in mangle (close #185). (@boopathi)
  • babel-preset-babili
    • #211 Adds babel-plugin-transform-regexp-constructors to preset.. (@shinew)
  • babel-plugin-transform-regexp-constructors, babel-preset-babili
    • #199 Integrated babel-plugin-transform-regexp-constructors into preset.. (@shinew)

Commiters: 5

Changelog for 2016-10-07

Bug Fix

  • babel-plugin-minify-guarded-expressions
  • #179 Fix guarded expressions being utilized elsewhere. Fixes #171,#174,#176 (@boopathi)

Deps

  • babel-plugin-dead-code-elimination
  • #180 Use modularized lodash. (@boopathi)

Changelog for 2016-09-30

Bug Fix

  • babili

Should fix windows support for the cli.

  • babel-plugin-minify-dead-code-elimination
    • #155 Fix DCE for ArrayPatterns and ObjectPatterns (#155) (@boopathi)
// bail out when destructuring with a variable
const me = lyfe => {
  const [swag] = lyfe;
  return swag;
};
// var hoisting but not let/const
function foo() {
  a = 1;
  return a;
  var a;
}

Changelog for 2016-09-20

Bug Fix

  • babel-plugin-minify-guarded-expressions
  • babel-plugin-transform-merge-sibling-variables
  • babel-plugin-minify-mangle-names
  • babel-plugin-minify-dead-code-elimination
    • ba50db - Ensure parent node has declarations

Docs

  • Other

Internal

  • babel-plugin-minify-simplify
    • #143 Satisfy the "space-infix-ops" eslint rule. (@gigabo)
  • babel-plugin-minify-mangle-names

Changelog for 2016-08-31

Bug Fix

  • babel-preset-babili
    • #135 update older packages. (@hzoo)
    • #125 Revert "Throw upgrade error when babel version is less than 6.14.0". (@kangax)
    • #116 Throw upgrade error when babel version is less than 6.14.0. (@boopathi)
  • babili
  • babel-plugin-minify-mangle-names, babel-preset-babili
    • #123 Add fix for other types of nodes in referencePaths. (@boopathi)
  • babel-plugin-minify-simplify
    • #119 Fix bug - Conditionals transformation for impure paths. (@boopathi)

Docs

  • Other
  • babel-plugin-minify-dead-code-elimination, babel-plugin-minify-mangle-names
  • babel-plugin-minify-flip-comparisons
    • #110 minify-flip-comparisons: Explain why this optimization makes sense. (@mathiasbynens)

Chore

Internal

  • babel-plugin-minify-mangle-names