Alex Lam S.L
|
c6c9f4f5a8
|
implement --help options (#2017)
|
2017-05-28 18:21:44 +08:00 |
|
Alex Lam S.L
|
fec14379f6
|
improve CLI usability (#2016)
Report supported options upon invalid option syntax.
fixes #1883
|
2017-05-28 04:09:40 +08:00 |
|
Alex Lam S.L
|
79131cd647
|
extend node_version range on applicable tests (#2015)
|
2017-05-27 22:18:28 +08:00 |
|
Alex Lam S.L
|
c3f14a1481
|
v3.0.12
v3.0.12
|
2017-05-27 18:08:09 +08:00 |
|
Alex Lam S.L
|
7b13159cda
|
fix hoist_funs on block-scoped function under "use strict" (#2013)
Technically not part of ES5, but commonly used code exists in the wild.
|
2017-05-27 17:44:59 +08:00 |
|
Alex Lam S.L
|
95094b9c22
|
fix if_return on AST_Defun (#2010)
Previous fiix for #1052 perturbs declaration order of functions which leads to incorrect behaviour under "use strict".
|
2017-05-27 13:41:49 +08:00 |
|
kzc
|
1ff8e9dd38
|
clarify what --mangle-props does (#2012)
|
2017-05-27 13:17:30 +08:00 |
|
kzc
|
78309a293d
|
better document mangle properties options (#2009)
|
2017-05-27 02:28:43 +08:00 |
|
kzc
|
695e182d59
|
fix and expand --mangle-props documentation (#2008)
fixes #2007
|
2017-05-27 01:25:51 +08:00 |
|
Alex Lam S.L
|
dc33facfcb
|
fix dead_code on block-scoped function under "use strict" (#2006)
Technically not part of ES5, but commonly used code exists in the wild.
|
2017-05-26 16:08:51 +08:00 |
|
Alex Lam S.L
|
c70fb60384
|
clean up lib/scope.js (#2003)
fixes #2004
|
2017-05-26 03:58:35 +08:00 |
|
Alex Lam S.L
|
793d61499b
|
report timing breakdown (#2000)
fix corner cases with `sourceMap`
fixes #1998
|
2017-05-25 07:15:55 +08:00 |
|
Alex Lam S.L
|
a277fe168d
|
ensure new line after describe_ast() (#1999)
|
2017-05-25 02:32:36 +08:00 |
|
Alex Lam S.L
|
7d3b941e6e
|
reinstate describe_ast() on CLI (#1996)
fixes #1995
|
2017-05-24 02:30:09 +08:00 |
|
Alex Lam S.L
|
e95052a423
|
v3.0.11
v3.0.11
|
2017-05-23 22:26:59 +08:00 |
|
Alex Lam S.L
|
e667f0acb8
|
fix source map offset (#1993)
Account for whitespace insertions.
fixes #505
fixes #890
|
2017-05-23 20:25:48 +08:00 |
|
kzc
|
69ac794bc8
|
add another minify() options example (#1988)
|
2017-05-22 12:19:07 +08:00 |
|
Alex Lam S.L
|
efdb65913b
|
improve usability of global_defs in minify() (#1987)
Use `@key` to `parse()` string value as `AST_Node`.
fixes #1986
|
2017-05-22 01:38:43 +08:00 |
|
kzc
|
a1dedeb3ce
|
more refinement of minify() documentation (#1983)
|
2017-05-21 04:55:03 +08:00 |
|
Alex Lam S.L
|
d3c4a8e9e7
|
v3.0.10
v3.0.10
|
2017-05-21 01:30:17 +08:00 |
|
kzc
|
7e164aba8f
|
add "es5" to package.json keywords (#1980)
|
2017-05-20 22:09:50 +08:00 |
|
kzc
|
22aedef849
|
document minify() option toplevel (#1979)
|
2017-05-20 22:09:21 +08:00 |
|
Alex Lam S.L
|
58fae7dc07
|
enhance if_return to handle return void... (#1977)
fixes #512
|
2017-05-20 15:58:46 +08:00 |
|
kzc
|
5bf8d7e949
|
document 3.x minify() does not throw errors (#1975)
|
2017-05-20 10:49:35 +08:00 |
|
kzc
|
1df9d06f4a
|
document minify warnings and add an error example (#1973)
|
2017-05-19 17:20:21 +08:00 |
|
Alex Lam S.L
|
3408fc9d32
|
v3.0.9
v3.0.9
|
2017-05-19 09:35:26 +08:00 |
|
Alex Lam S.L
|
eae26756f1
|
introduce unsafe_regexp (#1970)
fixes #1964
|
2017-05-19 09:06:29 +08:00 |
|
Alex Lam S.L
|
43add9416b
|
v3.0.8
v3.0.8
|
2017-05-18 14:49:40 +08:00 |
|
Alex Lam S.L
|
efcf167e5e
|
make expect_stdout node version specific (#1963)
... via semver string on `node_version` label.
|
2017-05-18 11:28:35 +08:00 |
|
Kara
|
6ed90913ca
|
fix docs for side_effects flag to reflect current behavior (#1966)
|
2017-05-18 10:51:49 +08:00 |
|
Alex Lam S.L
|
569c21e952
|
improve RegExp handling (#1959)
- remove `options.output.unescape_regexps`
- preserve original pattern whenever possible
fixes #54
fixes #1929
|
2017-05-17 20:10:50 +08:00 |
|
Alex Lam S.L
|
87c3a2c0ce
|
remove space_colon (#1960)
Always emit space after colon when `options.output.beautify` is enabled.
|
2017-05-17 14:07:34 +08:00 |
|
Rob Garrison
|
baef8bf050
|
update output options in readme (#1958)
|
2017-05-17 11:54:46 +08:00 |
|
alexlamsl
|
0813c5316f
|
remove Travis CI badge
|
2017-05-17 10:32:59 +08:00 |
|
Alex Lam S.L
|
c88139492d
|
v3.0.7
v3.0.7
|
2017-05-16 19:59:40 +08:00 |
|
Alex Lam S.L
|
cb45886512
|
export TreeTransformer (#1950)
- link to existing documentation on `TreeWalker` & `TreeTransformer`
- fix Travis build failures
fixes #1949
|
2017-05-16 19:59:05 +08:00 |
|
Alex Lam S.L
|
050474ab44
|
v3.0.6
v3.0.6
|
2017-05-16 06:38:58 +08:00 |
|
Alex Lam S.L
|
f6c805ae1d
|
print package name alongside version in CLI (#1946)
fixes #1945
|
2017-05-16 06:34:32 +08:00 |
|
Alex Lam S.L
|
9464d3c20f
|
fix parsing of property access after new line (#1944)
Account for comments when detecting property access in `tokenizer`.
fixes #1943
|
2017-05-16 05:40:49 +08:00 |
|
alexlamsl
|
f18abd1b9c
|
minor fixes to README.md
|
2017-05-16 01:33:01 +08:00 |
|
kzc
|
3be06ad085
|
reorg README for 3.x (#1942)
|
2017-05-16 01:12:00 +08:00 |
|
Alex Lam S.L
|
265008c948
|
improve keyword-related parser errors (#1941)
fixes #1937
|
2017-05-15 23:02:55 +08:00 |
|
Alex Lam S.L
|
ff526be61d
|
v3.0.5
v3.0.5
|
2017-05-15 11:37:14 +08:00 |
|
Alex Lam S.L
|
e005099fb1
|
fix & improve coverage of estree (#1935)
- fix `estree` conversion of getter/setter
- fix non-directive literal in `to_mozilla_ast()`
- revamp `test/mozilla-ast.js`
- reuse `test/ufuzz.js` for code generation
- use `acorn.parse()` for creating `estree`
- extend `test/ufuzz.js` for `acorn` workaround
- catch variable redefinition
- non-trivial literal as directive
- adjust options for tolerance
Miscellaneous
- optional semi-colon when parsing directives
fixes #1914
closes #1915
|
2017-05-15 02:37:53 +08:00 |
|
kzc
|
504a436e9d
|
Tweak README Notes (#1934)
|
2017-05-14 02:12:14 +08:00 |
|
Alex Lam S.L
|
3ca902258c
|
fix bugs with getter/setter (#1926)
- `reduce_vars`
- `side_effects`
- property access for object
- `AST_SymbolAccessor` as key names
enhance `test/ufuzz.js`
- add object getter & setter
- property assignment to setter
- avoid infinite recursion in setter
- fix & adjust assignment operators
- 50% `=`
- 25% `+=`
- 2.5% each for the rest
- avoid "Invalid array length"
- fix `console.log()`
- bypass getter
- curb recursive reference
- deprecate `-E`, always report runtime errors
|
2017-05-14 02:10:34 +08:00 |
|
olsonpm
|
fd0951231c
|
document 3 max passes (#1928)
|
2017-05-13 12:54:32 +08:00 |
|
olsonpm
|
9e29b6dad2
|
clarify wording (#1931)
|
2017-05-13 12:54:01 +08:00 |
|
Alex Lam S.L
|
c391576d52
|
remove support for const (#1910)
As this is not part of ES5.
|
2017-05-12 14:57:41 +08:00 |
|
Alex Lam S.L
|
ac73c5d421
|
avoid arguments and eval in reduce_vars (#1924)
fixes #1922
|
2017-05-12 12:34:55 +08:00 |
|