UglifyJS.git
6 years agoenhance `if_return` (#3232)
Alex Lam S.L [Tue, 21 Aug 2018 10:34:16 +0000 (18:34 +0800)]
enhance `if_return` (#3232)

6 years agoupdate dependencies
alexlamsl [Tue, 14 Aug 2018 09:06:09 +0000 (17:06 +0800)]
update dependencies
- commander@2.17.1

6 years agov3.4.7
Alex Lam S.L [Thu, 9 Aug 2018 14:47:24 +0000 (14:47 +0000)]
v3.4.7

6 years agofix corner case in `mangle` workaround for Safari (#3230)
Alex Lam S.L [Thu, 9 Aug 2018 09:34:28 +0000 (17:34 +0800)]
fix corner case in `mangle` workaround for Safari (#3230)

fixes #3227

6 years agoclean up webkit quirks (#3229)
Alex Lam S.L [Wed, 8 Aug 2018 08:15:45 +0000 (16:15 +0800)]
clean up webkit quirks (#3229)

6 years agov3.4.6
Alex Lam S.L [Fri, 27 Jul 2018 11:35:26 +0000 (11:35 +0000)]
v3.4.6

6 years agofix corner case in `join_vars` (#3224)
Alex Lam S.L [Fri, 27 Jul 2018 11:34:44 +0000 (19:34 +0800)]
fix corner case in `join_vars` (#3224)

6 years agofix corner case in `ie8` & `rename` (#3223)
Alex Lam S.L [Thu, 26 Jul 2018 08:35:43 +0000 (16:35 +0800)]
fix corner case in `ie8` & `rename` (#3223)

6 years agofix corner case in `global_defs` (#3218)
Alex Lam S.L [Thu, 19 Jul 2018 10:14:36 +0000 (18:14 +0800)]
fix corner case in `global_defs` (#3218)

fixes #3217

6 years agofix corner case in `ie8` (#3216)
Alex Lam S.L [Thu, 19 Jul 2018 06:45:36 +0000 (14:45 +0800)]
fix corner case in `ie8` (#3216)

fixes #3215

6 years agov3.4.5
Alex Lam S.L [Mon, 16 Jul 2018 18:43:30 +0000 (18:43 +0000)]
v3.4.5

6 years agoimprove fuzzing on Travis CI
alexlamsl [Thu, 12 Jul 2018 18:05:52 +0000 (02:05 +0800)]
improve fuzzing on Travis CI

6 years agofix corner cases in `preserve_line` (#3212)
Alex Lam S.L [Thu, 12 Jul 2018 17:51:10 +0000 (01:51 +0800)]
fix corner cases in `preserve_line` (#3212)

6 years agov3.4.4
Alex Lam S.L [Mon, 9 Jul 2018 01:09:56 +0000 (01:09 +0000)]
v3.4.4

6 years agouse nvs for CI testing
alexlamsl [Thu, 5 Jul 2018 10:43:38 +0000 (18:43 +0800)]
use nvs for CI testing

6 years agofix corner case in `ie8` (#3207)
Alex Lam S.L [Tue, 3 Jul 2018 08:44:23 +0000 (16:44 +0800)]
fix corner case in `ie8` (#3207)

fixes #3206

6 years agov3.4.3
Alex Lam S.L [Mon, 2 Jul 2018 06:03:18 +0000 (06:03 +0000)]
v3.4.3

6 years agofix corner case in `unused`
alexlamsl [Sun, 1 Jul 2018 06:34:42 +0000 (14:34 +0800)]
fix corner case in `unused`

6 years agoupdate dependencies
alexlamsl [Sat, 30 Jun 2018 17:49:43 +0000 (01:49 +0800)]
update dependencies
- acorn@5.7.1
- commander@2.16.0

6 years agoimplement `directives` (#3203)
Alex Lam S.L [Thu, 28 Jun 2018 10:16:49 +0000 (18:16 +0800)]
implement `directives` (#3203)

fixes #3166

6 years agoimprove `unsafe` `comparisons` (#3200)
Alex Lam S.L [Wed, 27 Jun 2018 19:46:19 +0000 (03:46 +0800)]
improve `unsafe` `comparisons` (#3200)

6 years agov3.4.2
Alex Lam S.L [Mon, 25 Jun 2018 17:29:48 +0000 (01:29 +0800)]
v3.4.2

6 years agofix corner case in `ie8` (#3198)
Alex Lam S.L [Fri, 22 Jun 2018 11:41:55 +0000 (19:41 +0800)]
fix corner case in `ie8` (#3198)

fixes #3197

6 years agoimprove `mocha` tests (#3195)
Alex Lam S.L [Thu, 21 Jun 2018 17:04:15 +0000 (01:04 +0800)]
improve `mocha` tests (#3195)

6 years agoenhance `arguments` (#3193)
Alex Lam S.L [Thu, 21 Jun 2018 06:10:37 +0000 (14:10 +0800)]
enhance `arguments` (#3193)

fixes #3192

6 years agov3.4.1
Alex Lam S.L [Tue, 19 Jun 2018 18:35:48 +0000 (18:35 +0000)]
v3.4.1

6 years agofix corner cases in `properties` (#3189)
Alex Lam S.L [Tue, 19 Jun 2018 10:20:11 +0000 (18:20 +0800)]
fix corner cases in `properties` (#3189)

fixes #3188

6 years agogeneral clean-ups (#3175)
Alex Lam S.L [Wed, 6 Jun 2018 09:50:56 +0000 (17:50 +0800)]
general clean-ups (#3175)

6 years agov3.4.0
Alex Lam S.L [Sat, 2 Jun 2018 05:57:10 +0000 (05:57 +0000)]
v3.4.0

6 years agore-introduce `enclose` (#3163)
Jiavan [Fri, 1 Jun 2018 08:47:11 +0000 (16:47 +0800)]
re-introduce `enclose` (#3163)

fixes #2443

6 years agohandle asynchronous test failures (#3164)
Alex Lam S.L [Thu, 31 May 2018 12:21:39 +0000 (20:21 +0800)]
handle asynchronous test failures (#3164)

6 years agoupdate JetStream URL (#3165)
Alex Lam S.L [Thu, 31 May 2018 08:23:49 +0000 (16:23 +0800)]
update JetStream URL (#3165)

6 years agov3.3.28
Alex Lam S.L [Tue, 29 May 2018 12:25:42 +0000 (12:25 +0000)]
v3.3.28

6 years agofix corner case in `reduce_vars` (#3151)
Alex Lam S.L [Fri, 25 May 2018 21:45:44 +0000 (05:45 +0800)]
fix corner case in `reduce_vars` (#3151)

6 years agofix corner cases with `eval()` (#3147)
Alex Lam S.L [Thu, 24 May 2018 06:29:30 +0000 (14:29 +0800)]
fix corner cases with `eval()` (#3147)

fixes #3146

6 years agoaugment tests for inline source maps (#3145)
Alex Lam S.L [Wed, 23 May 2018 18:37:51 +0000 (02:37 +0800)]
augment tests for inline source maps (#3145)

6 years agoaugment tests for `RegExp` (#3144)
Alex Lam S.L [Wed, 23 May 2018 09:24:13 +0000 (17:24 +0800)]
augment tests for `RegExp` (#3144)

6 years agov3.3.27
Alex Lam S.L [Tue, 22 May 2018 17:09:12 +0000 (17:09 +0000)]
v3.3.27

6 years agofix corner case in `reduce_vars` (#3141)
Alex Lam S.L [Mon, 21 May 2018 07:53:51 +0000 (15:53 +0800)]
fix corner case in `reduce_vars` (#3141)

fixes #3140

6 years agov3.3.26
Alex Lam S.L [Sun, 20 May 2018 17:32:32 +0000 (17:32 +0000)]
v3.3.26

6 years agofix corner case in `collapse_vars` (#3139)
Alex Lam S.L [Fri, 18 May 2018 21:45:14 +0000 (05:45 +0800)]
fix corner case in `collapse_vars` (#3139)

6 years agoUpdate README.md to clarify --source-map filename option (#3137)
exvisory [Fri, 18 May 2018 07:50:36 +0000 (08:50 +0100)]
Update README.md to clarify --source-map filename option (#3137)

Clarify that the --source-map filename option does NOT change the source map output filename but does set the 'file' attribute within the output source map. This was already documented in the API section of the README so I just copied that to the CLI options section, and a fragment to the CLI summary.

6 years agov3.3.25
Alex Lam S.L [Sat, 12 May 2018 23:50:40 +0000 (23:50 +0000)]
v3.3.25

6 years agoremove `colors` dependency (#3133)
Alex Lam S.L [Sat, 12 May 2018 23:50:02 +0000 (07:50 +0800)]
remove `colors` dependency (#3133)

6 years agoreplace `mocha` dependency (#3131)
Alex Lam S.L [Fri, 11 May 2018 12:15:34 +0000 (20:15 +0800)]
replace `mocha` dependency (#3131)

6 years agofix corner case in `reduce_vars` (#3129)
Alex Lam S.L [Thu, 10 May 2018 10:45:20 +0000 (18:45 +0800)]
fix corner case in `reduce_vars` (#3129)

6 years agofix corner case in call binding (#3128)
Alex Lam S.L [Wed, 9 May 2018 22:16:35 +0000 (06:16 +0800)]
fix corner case in call binding (#3128)

fixes #3127

6 years agov3.3.24
Alex Lam S.L [Mon, 7 May 2018 20:17:34 +0000 (20:17 +0000)]
v3.3.24

6 years agofix various corner cases (#3126)
Alex Lam S.L [Sun, 6 May 2018 23:36:25 +0000 (07:36 +0800)]
fix various corner cases (#3126)

- augment ufuzz/reminify test options

fixes #3125

6 years agofix corner case in `reduce_vars` (#3124)
Alex Lam S.L [Sun, 6 May 2018 08:42:35 +0000 (16:42 +0800)]
fix corner case in `reduce_vars` (#3124)

6 years agofix various corner cases (#3123)
Alex Lam S.L [Sat, 5 May 2018 05:17:50 +0000 (13:17 +0800)]
fix various corner cases (#3123)

6 years agospeed up `collapse_vars` (#3119)
Alex Lam S.L [Fri, 4 May 2018 10:38:13 +0000 (18:38 +0800)]
speed up `collapse_vars` (#3119)

6 years agofix `reduce_vars` on nested invocations (#3118)
Alex Lam S.L [Thu, 3 May 2018 22:05:38 +0000 (06:05 +0800)]
fix `reduce_vars` on nested invocations (#3118)

6 years agocompress `AST_Sequence` within `AST_Call` (#3117)
Alex Lam S.L [Thu, 3 May 2018 11:14:56 +0000 (19:14 +0800)]
compress `AST_Sequence` within `AST_Call` (#3117)

6 years agobetter fix for #3113 (#3115)
Alex Lam S.L [Thu, 3 May 2018 07:51:51 +0000 (15:51 +0800)]
better fix for #3113 (#3115)

6 years agofix `TreeWalker` scan order (#3114)
Alex Lam S.L [Wed, 2 May 2018 16:27:45 +0000 (00:27 +0800)]
fix `TreeWalker` scan order (#3114)

fixes #3113

6 years agoimprove `reduce_vars` (#3112)
Alex Lam S.L [Wed, 2 May 2018 07:11:45 +0000 (15:11 +0800)]
improve `reduce_vars` (#3112)

fixes #3110

6 years agov3.3.23
Alex Lam S.L [Sat, 28 Apr 2018 17:14:52 +0000 (17:14 +0000)]
v3.3.23

6 years agoimprove numeral compression (#3108)
Alex Lam S.L [Fri, 27 Apr 2018 18:47:49 +0000 (02:47 +0800)]
improve numeral compression (#3108)

6 years agoworkaround `vm` context issue in `node-chakracore` (#3106)
Alex Lam S.L [Thu, 26 Apr 2018 23:40:34 +0000 (07:40 +0800)]
workaround `vm` context issue in `node-chakracore` (#3106)

6 years agoimprove general performance (#3104)
Alex Lam S.L [Thu, 26 Apr 2018 20:30:29 +0000 (04:30 +0800)]
improve general performance (#3104)

6 years agoimprove `collapse_vars` (#3103)
Alex Lam S.L [Thu, 26 Apr 2018 11:26:01 +0000 (19:26 +0800)]
improve `collapse_vars` (#3103)

6 years agoworkaround test failures in Node.js 10 (#3102)
Alex Lam S.L [Thu, 26 Apr 2018 09:44:37 +0000 (17:44 +0800)]
workaround test failures in Node.js 10 (#3102)

6 years agoworkaround stack overflow in ChakraCore (#3101)
Alex Lam S.L [Thu, 26 Apr 2018 07:02:17 +0000 (15:02 +0800)]
workaround stack overflow in ChakraCore (#3101)

6 years agobetter fix for #2506 (#3099)
Alex Lam S.L [Tue, 24 Apr 2018 20:46:07 +0000 (04:46 +0800)]
better fix for #2506 (#3099)

6 years agohandle RHS side-effects in `collapse_vars` (#3097)
Alex Lam S.L [Tue, 24 Apr 2018 12:31:50 +0000 (20:31 +0800)]
handle RHS side-effects in `collapse_vars` (#3097)

fixes #3096

6 years agoimprove `max_line_len` (#3095)
Alex Lam S.L [Tue, 24 Apr 2018 07:19:45 +0000 (15:19 +0800)]
improve `max_line_len` (#3095)

fixes #304

6 years agoupdate `AST` documentation (#3094)
Alex Lam S.L [Tue, 24 Apr 2018 06:39:12 +0000 (14:39 +0800)]
update `AST` documentation (#3094)

fixes #2622

6 years agoremove unsupported platform
alexlamsl [Tue, 24 Apr 2018 05:32:54 +0000 (13:32 +0800)]
remove unsupported platform

6 years agov3.3.22
Alex Lam S.L [Fri, 20 Apr 2018 19:50:16 +0000 (19:50 +0000)]
v3.3.22

6 years agofix corner case in `strip_func_ids()` (#3090)
Alex Lam S.L [Wed, 18 Apr 2018 20:51:42 +0000 (04:51 +0800)]
fix corner case in `strip_func_ids()` (#3090)

6 years agoimprove performance when handling unused variables in `collapse_vars` (#3084)
Alex Lam S.L [Sun, 15 Apr 2018 04:38:31 +0000 (12:38 +0800)]
improve performance when handling unused variables in `collapse_vars` (#3084)

fixes #3082

6 years agov3.3.21
Alex Lam S.L [Thu, 12 Apr 2018 07:08:53 +0000 (07:08 +0000)]
v3.3.21

6 years agofix `inline` of `catch`-scoped variables (#3077)
Alex Lam S.L [Wed, 11 Apr 2018 07:44:43 +0000 (15:44 +0800)]
fix `inline` of `catch`-scoped variables (#3077)

fixes #3076

6 years agosuppress `hoist_props` for embedded assignments (#3074)
Alex Lam S.L [Tue, 10 Apr 2018 21:19:16 +0000 (05:19 +0800)]
suppress `hoist_props` for embedded assignments (#3074)

6 years agoextend `hoist_props` (#3073)
Alex Lam S.L [Tue, 10 Apr 2018 18:48:15 +0000 (02:48 +0800)]
extend `hoist_props` (#3073)

- handle `AST_Assign` the same way as `AST_VarDef`
- inject `AST_Var` as succeeding statement

fixes #3071

6 years agoextend `join_vars` on object assignments (#3072)
Alex Lam S.L [Tue, 10 Apr 2018 17:35:42 +0000 (01:35 +0800)]
extend `join_vars` on object assignments (#3072)

6 years agohandle flow control in loops with `reduce_vars` (#3069)
Alex Lam S.L [Mon, 9 Apr 2018 22:51:03 +0000 (06:51 +0800)]
handle flow control in loops with `reduce_vars` (#3069)

fixes #3068

6 years agohandle `pure_funcs` under `inline` & `reduce_vars` correctly (#3066)
Alex Lam S.L [Mon, 9 Apr 2018 18:46:38 +0000 (02:46 +0800)]
handle `pure_funcs` under `inline` & `reduce_vars` correctly (#3066)

fixes #3065

6 years agov3.3.20
Alex Lam S.L [Sat, 7 Apr 2018 19:06:15 +0000 (03:06 +0800)]
v3.3.20

6 years agofix corner case in reuse of `mangle` options (#3062)
Alex Lam S.L [Sat, 7 Apr 2018 18:29:37 +0000 (02:29 +0800)]
fix corner case in reuse of `mangle` options (#3062)

6 years agov3.3.19
Alex Lam S.L [Sat, 7 Apr 2018 14:27:55 +0000 (22:27 +0800)]
v3.3.19

6 years agomangle `Object.defineProperty()` (#3059)
Alex Lam S.L [Fri, 6 Apr 2018 09:10:36 +0000 (17:10 +0800)]
mangle `Object.defineProperty()` (#3059)

fixes #869

6 years agosupport inline source map from multiple files (#3058)
Alex Lam S.L [Fri, 6 Apr 2018 08:04:15 +0000 (16:04 +0800)]
support inline source map from multiple files (#3058)

fixes #145

6 years agoimprove usability of `includeSources` (#3057)
Alex Lam S.L [Fri, 6 Apr 2018 05:32:26 +0000 (13:32 +0800)]
improve usability of `includeSources` (#3057)

Exclude source contents from input source map if `includeSources=false`

fixes #3041

6 years agofix AST corruption during `inline` of simple `return` (#3056)
Alex Lam S.L [Thu, 5 Apr 2018 21:39:07 +0000 (05:39 +0800)]
fix AST corruption during `inline` of simple `return` (#3056)

fixes #3054

6 years agospeed up `has_parens()` (take 2) (#3052)
Alex Lam S.L [Wed, 4 Apr 2018 20:12:04 +0000 (04:12 +0800)]
speed up `has_parens()` (take 2) (#3052)

fixes #3050

6 years agoimprove performance through `makePredicate()` (#3048)
Alex Lam S.L [Tue, 3 Apr 2018 07:15:01 +0000 (15:15 +0800)]
improve performance through `makePredicate()` (#3048)

6 years agofix tree traversal on `AST_Do` (#3047)
Alex Lam S.L [Mon, 2 Apr 2018 14:31:23 +0000 (22:31 +0800)]
fix tree traversal on `AST_Do` (#3047)

fixes #3046

6 years agov3.3.18
Alex Lam S.L [Mon, 2 Apr 2018 04:26:28 +0000 (04:26 +0000)]
v3.3.18

6 years agoDon't load source map until the JS source is fully received (#3040)
b-fuze [Sat, 31 Mar 2018 11:26:40 +0000 (07:26 -0400)]
Don't load source map until the JS source is fully received (#3040)

6 years agogive sensible error against invalid input source map (#3044)
Alex Lam S.L [Sat, 31 Mar 2018 09:48:20 +0000 (18:48 +0900)]
give sensible error against invalid input source map (#3044)

6 years agofix escape analysis on `AST_New` (#3043)
Alex Lam S.L [Sat, 31 Mar 2018 06:03:46 +0000 (15:03 +0900)]
fix escape analysis on `AST_New` (#3043)

fixes #3042

6 years agov3.3.17
Alex Lam S.L [Sat, 31 Mar 2018 04:13:45 +0000 (04:13 +0000)]
v3.3.17

6 years agomangle unused nested `AST_SymbolCatch` correctly (#3038)
Alex Lam S.L [Fri, 30 Mar 2018 07:23:09 +0000 (16:23 +0900)]
mangle unused nested `AST_SymbolCatch` correctly (#3038)

fixes #3035

6 years agohandle modifications to `this` correctly (#3036)
Alex Lam S.L [Fri, 30 Mar 2018 06:07:36 +0000 (15:07 +0900)]
handle modifications to `this` correctly (#3036)

fixes #3032

6 years agoimprove test for #3023 (#3031)
Alex Lam S.L [Thu, 29 Mar 2018 14:36:40 +0000 (23:36 +0900)]
improve test for #3023 (#3031)

6 years agoimprove source map granularity (#3030)
Alex Lam S.L [Thu, 29 Mar 2018 05:47:55 +0000 (14:47 +0900)]
improve source map granularity (#3030)

fixes #3023

6 years agofix extra regex slash when going through mozilla AST I/O (#3025)
Fábio Santos [Mon, 26 Mar 2018 18:22:01 +0000 (19:22 +0100)]
fix extra regex slash when going through mozilla AST I/O (#3025)

This relates to #1929, but in the context of mozilla AST input/output.

6 years agospeed up `has_parens()` (#3014)
Alex Lam S.L [Fri, 23 Mar 2018 20:05:28 +0000 (04:05 +0800)]
speed up `has_parens()` (#3014)