Age | Commit message (Expand) | Author |
2017-05-27 | fix and expand --mangle-props documentation (#2008)...fixes #2007 | kzc |
2017-05-25 | report timing breakdown (#2000)...fix corner cases with `sourceMap`
fixes #1998 | Alex Lam S.L |
2017-05-22 | add another minify() options example (#1988) | kzc |
2017-05-22 | improve usability of `global_defs` in `minify()` (#1987)...Use `@key` to `parse()` string value as `AST_Node`.
fixes #1986 | Alex Lam S.L |
2017-05-21 | more refinement of minify() documentation (#1983) | kzc |
2017-05-20 | document minify() option `toplevel` (#1979) | kzc |
2017-05-20 | document 3.x minify() does not throw errors (#1975) | kzc |
2017-05-19 | document minify `warnings` and add an error example (#1973) | kzc |
2017-05-19 | introduce `unsafe_regexp` (#1970)...fixes #1964 | Alex Lam S.L |
2017-05-18 | fix docs for side_effects flag to reflect current behavior (#1966) | Kara |
2017-05-17 | update output options in readme (#1958) | Rob Garrison |
2017-05-17 | remove Travis CI badge | alexlamsl |
2017-05-16 | export `TreeTransformer` (#1950)...- link to existing documentation on `TreeWalker` & `TreeTransformer`
- fix Travis build failures
fixes #1949 | Alex Lam S.L |
2017-05-16 | minor fixes to README.md | alexlamsl |
2017-05-16 | reorg README for 3.x (#1942) | kzc |
2017-05-14 | Tweak README Notes (#1934) | kzc |
2017-05-13 | document 3 max passes (#1928) | olsonpm |
2017-05-13 | clarify wording (#1931) | olsonpm |
2017-05-12 | add documentation for `side_effects` & `[#@]__PURE__` (#1925) | olsonpm |
2017-05-12 | update README (#1918) | kzc |
2017-05-11 | fix typo (#1913) | Alexis Tyler |
2017-05-11 | update documentation (#1909)...- clarify options on `--source-map`
- fix `minify()` examples
fixes #1905 | Alex Lam S.L |
2017-05-10 | Remove unnecessary `git clone` instructions in README (#1897) | kzc |
2017-05-10 | Change `harmony` to `uglify-es` in master README (#1895) | kzc |
2017-05-09 | mention `minify().error` | Alex Lam S.L |
2017-05-08 | [3.x] fix documentation for beautify options (#1882)...- use underscores rather than dashes. | kzc |
2017-05-08 | support dumping AST (#1879)...Re-order `AST_Binary` properties to make dump more readable.
closes #769 | Alex Lam S.L |
2017-05-07 | update documentation...Remove deprecated CLI option | Alex Lam S.L |
2017-04-23 | update README for 3.x (#1840) | kzc |
2017-04-21 | Fix API reference examples (#1834) | Roman Dvornov |
2017-04-16 | update README (#1813)...- mention major version bump
- remove reference to internal API | Alex Lam S.L |
2017-04-15 | unify CLI & API under `minify()` (#1811)...- rename `screw_ie8` to `ie8`
- rename `mangle.except` to `mangle.reserved`
- rename `mangle.properties.ignore_quoted` to `mangle.properties.keep_quoted`
- compact `sourceMap` options
- more stringent verification on input `options`
- toplevel shorthands
- `ie8`
- `keep_fnames`
- `toplevel`
- `warnings`
- support arrays and unquoted string values on CLI
- drop `fromString` from `minify()`
- `minify()` no longer handles any `fs` operations
- unify order of operations for `mangle_properties()` on CLI & API
- `bin/uglifyjs` used to `mangle_properties()` before even `Compressor`
- `minify()` used to `mangle_properties()` after `Compressor` but before `mangle_names()`
- both will now do `Compressor`, `mangle_names()` then `mangle_properties()`
- `options.parse` / `--parse` for parser options beyond `bare_returns`
- add `mangle.properties.builtins` to disable built-in reserved list
- disable with `--mangle-props builtins` on CLI
- `warnings` now off by default
- add `--warn` and `--verbose` on CLI
- drop `--enclose`
- drop `--export-all`
- drop `--reserved-file`
- use `--mangle reserved` instead
- drop `--reserve-domprops`
- enabled by default, disable with `--mangle-props domprops`
- drop `--prefix`
- use `--source-map base` instead
- drop `--lint`
- remove `bin/extract-props.js`
- limit exposure of internal APIs
- update documentations
closes #96
closes #102
closes #136
closes #166
closes #243
closes #254
closes #261
closes #311
closes #700
closes #748
closes #912
closes #1072
closes #1366
fixes #101
fixes #123
fixes #124
fixes #263
fixes #379
fixes #419
fixes #423
fixes #461
fixes #465
fixes #576
fixes #737
fixes #772
fixes #958
fixes #1036
fixes #1142
fixes #1175
fixes #1220
fixes #1223
fixes #1280
fixes #1359
fixes #1368 | Alex Lam S.L |
2017-04-07 | introduce "strict" to `pure_getters` (#1795) | Alex Lam S.L |
2017-04-01 | improve compression of undefined, NaN & Infinitiy (#1748)...- migrate transformation logic from `OutputStream` to `Compressor`
- always turn `undefined` into `void 0` (unless `unsafe`)
- always keep `NaN` except when avoiding local variable redefinition
- introduce `keep_infinity` to suppress `1/0` transform, except when avoiding local variable redefinition
supersedes #1723
fixes #1730 | Alex Lam S.L |
2017-03-23 | metadata cleanup (#1630)...- mention performance anomaly in Node 7 and drop from CI
- remove unused npm "scripts"
- mark browserify dependency as optional
- stop `test/mozilla-ast.js` from spamming console output in later versions of Node.js | Alex Lam S.L |
2017-03-17 | Add `--in-source-map inline` documentation (#1611) | Christian Maughan Tegnér |
2017-03-08 | scan assignment value in drop_unused() (#1578)...those were not optimised for `unused` before, which made it necessary for `reduce_vars` to have separate steps for `keep_fnames`
docs update by @kzc
closes #1577 | Alex Lam S.L |
2017-03-05 | stay safe with constants in IE8- (#1547)...- `undefined` etc. can be redefined at top-level for IE8-, so disable related optimisations
- fixed `--support-ie8` catch mangle bug | Alex Lam S.L |
2017-03-03 | process code with implicit return statement (#1522)...Bookmarklet for instance implicitedly assumes a "completion value" without using `return`.
The `expression` option now supports such use cases.
Optimisations on IIFEs also enhanced.
fixes #354
fixes #543
fixes #625
fixes #628
fixes #640
closes #1293 | Alex Lam S.L |
2017-03-03 | compress numerical expressions (#1513)...safe operations
- `a === b` => `a == b`
- `a + -b` => `a - b`
- `-a + b` => `b - a`
- `a+ +b` => `+b+a`
associative operations
(bit-wise operations are safe, otherwise `unsafe_math`)
- `a + (b + c)` => `(a + b) + c`
- `(n + 2) + 3` => `5 + n`
- `(2 * n) * 3` => `6 * n`
- `(a | 1) | (2 | d)` => `(3 | a) | b`
fixes #412 | Alex Lam S.L |
2017-03-01 | invert `reduce_vars` tracking flag (#1519)...Modules like webpack and grunt-contrib-uglify still uses `ast.transform(compressor)` before `Compressor.compress(ast)` was introduced.
Workaround this compatibility issue by deactivating `reduce_vars` in such case.
Also fix use case with omitted `options` when calling `Compressor()`.
fixes #1516 | Alex Lam S.L |
2017-02-27 | add harmony branch details in README (#1507) | kzc |
2017-02-25 | update docs for `pure_funcs` & `drop_console` (#1503)...closes #1362
closes #1399 | Alex Lam S.L |
2017-02-24 | enable `collapse_vars` & `reduce_vars` by default...- fix corner cases in `const` optimisation
- deprecate `/*@const*/`
fixes #1497
closes #1498
| alexlamsl |
2017-02-21 | introduce `unsafe_proto`...- `Array.prototype.slice` => `[].slice`
closes #1491
| alexlamsl |
2017-02-21 | enhance `global_defs`...- support arrays, objects & AST_Node
- support `"a.b":1` on both cli & API
- emit warning if variable is modified
- override top-level variables
fixes #1416
closes #1198
closes #1469
| alexlamsl |
2017-02-21 | drop unused: toplevel, assign-only...- assign statement does not count towards variable usage by default
- only works with assignments on the same scope level as declaration
- can be disabled with `unused` set to "keep_assign"
- `toplevel` to drop unused top-level variables and/or functions
- `top_retain` to whitelist top-level exceptions
closes #1450
| alexlamsl |
2017-01-19 | Have minify() and tests use figure_out_scope() as uglifyjs CLI does...Clarify docs, help and tests for --support-ie8 and screw_ie8=false
| kzc |
2017-01-19 | Add note about name mangling when using --mangle-props=unquoted (#1314) | Wiktor Kwapisiewicz |
2016-11-29 | docs: add doc for option.outFileName | 1111hui |