UglifyJS.git
5 years agov3.5.14
Alex Lam S.L [Sun, 19 May 2019 16:13:06 +0000 (00:13 +0800)]
v3.5.14

5 years agofix corner case in `arguments` (#3421)
Alex Lam S.L [Sun, 19 May 2019 04:59:40 +0000 (12:59 +0800)]
fix corner case in `arguments` (#3421)

fixes #3420

5 years agov3.5.13
Alex Lam S.L [Fri, 17 May 2019 06:10:33 +0000 (14:10 +0800)]
v3.5.13

5 years agoenhance `unsafe` `comparisons` (#3419)
Alex Lam S.L [Thu, 16 May 2019 17:28:18 +0000 (01:28 +0800)]
enhance `unsafe` `comparisons` (#3419)

5 years agoreduce false positives from fuzzing (#3417)
Alex Lam S.L [Thu, 16 May 2019 08:15:03 +0000 (16:15 +0800)]
reduce false positives from fuzzing (#3417)

5 years agoimprove sandbox fidelity (#3415)
Alex Lam S.L [Wed, 15 May 2019 15:26:57 +0000 (23:26 +0800)]
improve sandbox fidelity (#3415)

5 years agofix corner case in `comparisons` (#3414)
Alex Lam S.L [Tue, 14 May 2019 17:01:18 +0000 (01:01 +0800)]
fix corner case in `comparisons` (#3414)

fixes #3413

5 years agofix corner case in `hoist_props` (#3412)
Alex Lam S.L [Tue, 14 May 2019 11:12:00 +0000 (19:12 +0800)]
fix corner case in `hoist_props` (#3412)

fixes #3411

5 years agoenhance `side_effects` (#3410)
Alex Lam S.L [Mon, 13 May 2019 21:26:40 +0000 (05:26 +0800)]
enhance `side_effects` (#3410)

5 years agoenhance `keep_fargs` (#3409)
Alex Lam S.L [Mon, 13 May 2019 13:58:04 +0000 (21:58 +0800)]
enhance `keep_fargs` (#3409)

5 years agov3.5.12
Alex Lam S.L [Sun, 12 May 2019 02:40:13 +0000 (10:40 +0800)]
v3.5.12

5 years agoimprove tests (#3408)
Alex Lam S.L [Sun, 12 May 2019 01:44:02 +0000 (09:44 +0800)]
improve tests (#3408)

5 years agofix corner case in `assignments` (#3407)
Alex Lam S.L [Sat, 11 May 2019 19:52:46 +0000 (03:52 +0800)]
fix corner case in `assignments` (#3407)

fixes #3406

5 years agoimprove tests (#3405)
Alex Lam S.L [Sat, 11 May 2019 14:03:41 +0000 (22:03 +0800)]
improve tests (#3405)

5 years agofix corner case in `functions` (#3403)
Alex Lam S.L [Sat, 11 May 2019 10:55:45 +0000 (18:55 +0800)]
fix corner case in `functions` (#3403)

fixes #3402

5 years agofix corner case in `inline` (#3401)
Alex Lam S.L [Thu, 9 May 2019 17:22:44 +0000 (01:22 +0800)]
fix corner case in `inline` (#3401)

fixes #3400

5 years agoimprove tests (#3399)
Alex Lam S.L [Wed, 8 May 2019 23:18:22 +0000 (07:18 +0800)]
improve tests (#3399)

5 years agov3.5.11
Alex Lam S.L [Mon, 6 May 2019 17:45:40 +0000 (01:45 +0800)]
v3.5.11

5 years agomake `enclose` & `wrap` work with `sourceMap` (#3396)
Alex Lam S.L [Sat, 4 May 2019 12:25:52 +0000 (20:25 +0800)]
make `enclose` & `wrap` work with `sourceMap` (#3396)

fixes #3313

5 years agofix corner cases in `sourceMap` (#3397)
Alex Lam S.L [Sat, 4 May 2019 12:08:57 +0000 (20:08 +0800)]
fix corner cases in `sourceMap` (#3397)

fixes #3255
fixes #3294

5 years agorender comments in custom ASTs gracefully (#3393)
Alex Lam S.L [Thu, 2 May 2019 05:50:51 +0000 (13:50 +0800)]
render comments in custom ASTs gracefully (#3393)

fixes #3246

5 years agov3.5.10
Alex Lam S.L [Wed, 1 May 2019 16:01:40 +0000 (00:01 +0800)]
v3.5.10

5 years agounify logging functionality (#3392)
Alex Lam S.L [Mon, 29 Apr 2019 22:32:24 +0000 (06:32 +0800)]
unify logging functionality (#3392)

fixes #3253
fixes #3254

5 years agoremove blanket safeguard from `source-map` (#3391)
Alex Lam S.L [Mon, 29 Apr 2019 18:40:36 +0000 (02:40 +0800)]
remove blanket safeguard from `source-map` (#3391)

Things has stabilised since 80a18fe2fa60d8a689516b921a386839d30b6abe, so it makes sense to remove the unconditional masking for ease of debugging.

5 years agofix corner case in `properties` (#3390)
Alex Lam S.L [Mon, 29 Apr 2019 09:23:00 +0000 (17:23 +0800)]
fix corner case in `properties` (#3390)

fixes #3389

5 years agofix corner case in `evaluate` (#3388)
Alex Lam S.L [Mon, 29 Apr 2019 00:55:46 +0000 (08:55 +0800)]
fix corner case in `evaluate` (#3388)

fixes #3387

5 years agov3.5.9
Alex Lam S.L [Sat, 27 Apr 2019 09:00:58 +0000 (17:00 +0800)]
v3.5.9

5 years agoenhance `side_effects` (#3384)
Alex Lam S.L [Thu, 25 Apr 2019 07:15:50 +0000 (15:15 +0800)]
enhance `side_effects` (#3384)

5 years agov3.5.8
Alex Lam S.L [Thu, 25 Apr 2019 04:33:13 +0000 (12:33 +0800)]
v3.5.8

5 years agoenhance `side_effects` (#3383)
Alex Lam S.L [Wed, 24 Apr 2019 20:14:21 +0000 (04:14 +0800)]
enhance `side_effects` (#3383)

5 years agoenhance `unsafe` (#3382)
Alex Lam S.L [Wed, 24 Apr 2019 18:42:54 +0000 (02:42 +0800)]
enhance `unsafe` (#3382)

5 years agoenhance `unsafe` `comparisons` (#3381)
Alex Lam S.L [Wed, 24 Apr 2019 16:08:08 +0000 (00:08 +0800)]
enhance `unsafe` `comparisons` (#3381)

5 years agofix corner case in `unsafe` (#3380)
Alex Lam S.L [Wed, 24 Apr 2019 14:21:28 +0000 (22:21 +0800)]
fix corner case in `unsafe` (#3380)

5 years agoenhance `comparisons` (#3379)
Alex Lam S.L [Wed, 24 Apr 2019 13:38:55 +0000 (21:38 +0800)]
enhance `comparisons` (#3379)

5 years agov3.5.7
Alex Lam S.L [Wed, 24 Apr 2019 06:05:07 +0000 (14:05 +0800)]
v3.5.7

5 years agofix corner case in `reduce_vars` (#3378)
Alex Lam S.L [Wed, 24 Apr 2019 06:01:01 +0000 (14:01 +0800)]
fix corner case in `reduce_vars` (#3378)

fixes #3377

5 years agofix corner case in `assignments` (#3376)
Alex Lam S.L [Tue, 23 Apr 2019 18:50:15 +0000 (02:50 +0800)]
fix corner case in `assignments` (#3376)

fixes #3375

5 years agounwind IIFE class patterns (#3373)
Alex Lam S.L [Sun, 21 Apr 2019 01:49:07 +0000 (09:49 +0800)]
unwind IIFE class patterns (#3373)

fixes #2332

5 years agov3.5.6
Alex Lam S.L [Sat, 20 Apr 2019 23:19:29 +0000 (07:19 +0800)]
v3.5.6

5 years agofix corner cases in `functions` (#3372)
Alex Lam S.L [Sat, 20 Apr 2019 18:16:05 +0000 (02:16 +0800)]
fix corner cases in `functions` (#3372)

fixes #3371

5 years agoenhance `unsafe` `evaluate` (#3370)
Alex Lam S.L [Sat, 20 Apr 2019 11:42:41 +0000 (19:42 +0800)]
enhance `unsafe` `evaluate` (#3370)

5 years agoupdate `domprops` (#3369)
Alex Lam S.L [Fri, 19 Apr 2019 23:16:14 +0000 (07:16 +0800)]
update `domprops` (#3369)

fixes #2343
fixes #3037

5 years agoenhance `functions` (#3368)
Alex Lam S.L [Fri, 19 Apr 2019 11:01:47 +0000 (19:01 +0800)]
enhance `functions` (#3368)

5 years agov3.5.5
Alex Lam S.L [Fri, 19 Apr 2019 07:22:46 +0000 (15:22 +0800)]
v3.5.5

5 years agofix corner case in `functions` (#3367)
Alex Lam S.L [Thu, 18 Apr 2019 18:55:43 +0000 (02:55 +0800)]
fix corner case in `functions` (#3367)

fixes #3366

5 years agofix corner case in `functions` (#3365)
Alex Lam S.L [Thu, 18 Apr 2019 09:03:52 +0000 (17:03 +0800)]
fix corner case in `functions` (#3365)

fixes #3364

5 years agoreduce test exports (#3361)
Alex Lam S.L [Wed, 17 Apr 2019 08:19:08 +0000 (16:19 +0800)]
reduce test exports (#3361)

5 years agointroduce `functions` (#3360)
Alex Lam S.L [Mon, 15 Apr 2019 14:23:11 +0000 (22:23 +0800)]
introduce `functions` (#3360)

`var f = function() {};` => `function f() {}`

5 years agov3.5.4
Alex Lam S.L [Tue, 9 Apr 2019 18:40:42 +0000 (02:40 +0800)]
v3.5.4

5 years agoupdate dependencies (#3358)
Alex Lam S.L [Tue, 9 Apr 2019 18:39:56 +0000 (02:39 +0800)]
update dependencies (#3358)

- commander@2.20.0
- semver@6.0.0

5 years agov3.5.3
Alex Lam S.L [Mon, 1 Apr 2019 10:12:03 +0000 (18:12 +0800)]
v3.5.3

5 years agomangle shadowed lambda under `ie8` correctly (#3356)
Alex Lam S.L [Mon, 1 Apr 2019 07:22:00 +0000 (15:22 +0800)]
mangle shadowed lambda under `ie8` correctly (#3356)

fixes #3355

5 years agoFix test expectation (#3357)
Ruben Bridgewater [Fri, 29 Mar 2019 18:08:27 +0000 (19:08 +0100)]
Fix test expectation (#3357)

The test expects a specific precision value that is not met on all V8 versions anymore due to a recent consolidation of different algorithms across the V8 code base.

This makes sure the preceision is tested against one digit less to keep the test working on all V8 versions.

Refs: https://chromium.googlesource.com/v8/v8/+/98453126c109016c9d32c6ebd89dd83f69dd8efb
Refs: https://github.com/nodejs/node/issues/25060#issuecomment-477953457

5 years agov3.5.2
Alex Lam S.L [Sat, 23 Mar 2019 06:25:14 +0000 (14:25 +0800)]
v3.5.2

5 years agofix infinite loop triggered by #3347 (#3354)
Alex Lam S.L [Sat, 23 Mar 2019 06:21:54 +0000 (14:21 +0800)]
fix infinite loop triggered by #3347 (#3354)

fixes #3353

5 years agov3.5.1
Alex Lam S.L [Thu, 21 Mar 2019 05:54:14 +0000 (13:54 +0800)]
v3.5.1

5 years agoenhance `inline` (#3352)
Alex Lam S.L [Wed, 20 Mar 2019 18:58:33 +0000 (02:58 +0800)]
enhance `inline` (#3352)

5 years agoenhance `collapse_vars` (#3351)
Alex Lam S.L [Wed, 20 Mar 2019 15:31:21 +0000 (23:31 +0800)]
enhance `collapse_vars` (#3351)

5 years agov3.5.0
Alex Lam S.L [Wed, 20 Mar 2019 10:43:54 +0000 (18:43 +0800)]
v3.5.0

5 years agofix corner case in `sequences` (#3350)
Alex Lam S.L [Wed, 20 Mar 2019 06:54:26 +0000 (14:54 +0800)]
fix corner case in `sequences` (#3350)

5 years agoenhance `unsafe` for `Array` (#3349)
Alex Lam S.L [Tue, 19 Mar 2019 22:37:51 +0000 (06:37 +0800)]
enhance `unsafe` for `Array` (#3349)

5 years agoimprove `compress` performance (#3348)
Alex Lam S.L [Tue, 19 Mar 2019 18:53:04 +0000 (02:53 +0800)]
improve `compress` performance (#3348)

fixes #3174

5 years agoenhance `comparisons` (#3347)
Alex Lam S.L [Mon, 18 Mar 2019 17:34:25 +0000 (01:34 +0800)]
enhance `comparisons` (#3347)

5 years agointroduce `assignments` (#3345)
Alex Lam S.L [Mon, 18 Mar 2019 13:28:41 +0000 (21:28 +0800)]
introduce `assignments` (#3345)

5 years agofix corner case in `evaluate` (#3344)
Alex Lam S.L [Mon, 18 Mar 2019 13:24:42 +0000 (21:24 +0800)]
fix corner case in `evaluate` (#3344)

5 years agofix corner case in `inline` (#3343)
Alex Lam S.L [Sat, 16 Mar 2019 21:31:40 +0000 (05:31 +0800)]
fix corner case in `inline` (#3343)

5 years agov3.4.10
Alex Lam S.L [Fri, 15 Mar 2019 16:16:21 +0000 (00:16 +0800)]
v3.4.10

5 years agoadd Node.js 10 to CI tests (#3342)
Alex Lam S.L [Fri, 15 Mar 2019 08:45:12 +0000 (16:45 +0800)]
add Node.js 10 to CI tests (#3342)

5 years agofix corner case in `reduce_vars` (#3341)
Alex Lam S.L [Fri, 15 Mar 2019 08:06:47 +0000 (16:06 +0800)]
fix corner case in `reduce_vars` (#3341)

5 years agoupdate dependencies
Alex Lam S.L [Fri, 15 Mar 2019 06:49:48 +0000 (14:49 +0800)]
update dependencies

- acorn@6.1.1
- commander@2.19.0
- semver@5.6.0

5 years agofix function inlining after `reduce_vars` (#3340)
Alex Lam S.L [Thu, 14 Mar 2019 21:45:46 +0000 (05:45 +0800)]
fix function inlining after `reduce_vars` (#3340)

fixes #3297

5 years agoenhance `evaluate` (#3339)
Alex Lam S.L [Thu, 14 Mar 2019 18:48:23 +0000 (02:48 +0800)]
enhance `evaluate` (#3339)

fixes #3299

5 years agofix corner case with `nameCache` (#3338)
Alex Lam S.L [Thu, 14 Mar 2019 17:15:50 +0000 (01:15 +0800)]
fix corner case with `nameCache` (#3338)

fixes #3301

5 years agoparse `mangle.properties.regex` in `--config-file` properly (#3337)
Alex Lam S.L [Thu, 14 Mar 2019 16:20:20 +0000 (00:20 +0800)]
parse `mangle.properties.regex` in `--config-file` properly (#3337)

fixes #3315

5 years agoimprove usability of `pure_funcs` (#3336)
Alex Lam S.L [Thu, 14 Mar 2019 13:36:45 +0000 (21:36 +0800)]
improve usability of `pure_funcs` (#3336)

fixes #3325

5 years agofix corner case in `collapse_vars` (#3334)
Alex Lam S.L [Thu, 14 Mar 2019 08:05:56 +0000 (16:05 +0800)]
fix corner case in `collapse_vars` (#3334)

fixes #3274

5 years agofix corner case in `collapse_vars` (#3333)
Alex Lam S.L [Wed, 13 Mar 2019 15:48:52 +0000 (23:48 +0800)]
fix corner case in `collapse_vars` (#3333)

fixes #3247
fixes #3305
fixes #3314
fixes #3327

5 years agofix corner case in `reduce_vars` (#3332)
Alex Lam S.L [Wed, 13 Mar 2019 13:56:38 +0000 (21:56 +0800)]
fix corner case in `reduce_vars` (#3332)

fixes #3267

5 years agofix corner case in `arguments` & `reduce_vars` (#3331)
Alex Lam S.L [Wed, 13 Mar 2019 00:46:03 +0000 (08:46 +0800)]
fix corner case in `arguments` & `reduce_vars` (#3331)

fixes #3282

5 years agofix corner case in `arguments` (#3330)
Alex Lam S.L [Tue, 12 Mar 2019 22:59:53 +0000 (06:59 +0800)]
fix corner case in `arguments` (#3330)

Track modifications to `arguments[i]` under Strict Mode.

fixes #3273

5 years agoUpdate README.md (#3311)
Seul-gi Choi(Chase) [Tue, 12 Mar 2019 21:31:04 +0000 (06:31 +0900)]
Update README.md (#3311)

fix anchor for mangle-options

5 years agomake tests compatible with Node.js 12 (#3304)
silverwind [Tue, 12 Mar 2019 20:55:04 +0000 (21:55 +0100)]
make tests compatible with Node.js 12 (#3304)

In Node.js 12, the formatting of console arguments will change slightly.
Previously, a string other than the first argument was formatted using
single quotes if the first argument was non-string. Now, quotes are
never added regardless of position of a string argument.

To make test compatible in all Node.js versions, I work around by
ensuring the first argument to console.log is a string which prevents
the quotes from being added on older versions of Node.js.

Ref: https://github.com/nodejs/node/pull/23162

5 years agofix corner case in `conditionals` (#3329)
Alex Lam S.L [Tue, 12 Mar 2019 20:28:21 +0000 (04:28 +0800)]
fix corner case in `conditionals` (#3329)

fixes #3245
fixes #3257
fixes #3260
fixes #3269
fixes #3271
fixes #3278
fixes #3309
fixes #3319
fixes #3321

5 years agoFix typo in warning (#3324)
Ed S [Tue, 12 Mar 2019 18:15:54 +0000 (18:15 +0000)]
Fix typo in warning (#3324)

protoype -> prototype

6 years agov3.4.9
Alex Lam S.L [Fri, 31 Aug 2018 04:28:21 +0000 (04:28 +0000)]
v3.4.9

6 years agofix corner case in `conditionals` (#3244)
Alex Lam S.L [Thu, 30 Aug 2018 07:59:05 +0000 (15:59 +0800)]
fix corner case in `conditionals` (#3244)

6 years agoenhance `conditionals` (#3243)
Alex Lam S.L [Wed, 29 Aug 2018 17:06:34 +0000 (01:06 +0800)]
enhance `conditionals` (#3243)

6 years agofix corner case in `reduce_vars` (#3241)
Alex Lam S.L [Wed, 29 Aug 2018 14:14:25 +0000 (22:14 +0800)]
fix corner case in `reduce_vars` (#3241)

fixes #3240

6 years agofix corner case in `collapse_vars` (#3239)
Alex Lam S.L [Wed, 29 Aug 2018 03:34:34 +0000 (11:34 +0800)]
fix corner case in `collapse_vars` (#3239)

fixes #3238

6 years agov3.4.8
Alex Lam S.L [Thu, 23 Aug 2018 07:27:34 +0000 (15:27 +0800)]
v3.4.8

6 years agofix corner case in `unused` (#3234)
Alex Lam S.L [Wed, 22 Aug 2018 22:03:39 +0000 (06:03 +0800)]
fix corner case in `unused` (#3234)

fixes #3233

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