ec2e5fa | kzc | 21 December 2016, 15:52:30 UTC | Have minify() and tests use figure_out_scope() as uglifyjs CLI does Clarify docs, help and tests for --support-ie8 and screw_ie8=false | 19 January 2017, 16:14:33 UTC |
da17766 | Anthony Van de Gejuchte | 30 November 2016, 20:54:23 UTC | Add preventive test involving non-ascii function identifiers | 19 January 2017, 16:13:33 UTC |
0913db8 | Wiktor Kwapisiewicz | 30 November 2016, 13:54:15 UTC | Add note about name mangling when using --mangle-props=unquoted (#1314) | 19 January 2017, 15:47:10 UTC |
5c7705f | kzc | 30 November 2016, 06:18:52 UTC | remove npm-shrinkwrap.json to work around npm@4.0.2 bug (#1384) | 30 November 2016, 17:09:52 UTC |
f637248 | Richard van Velzen | 29 November 2016, 21:29:59 UTC | v2.7.5 | 29 November 2016, 21:29:59 UTC |
98f3306 | Martijn Swaagman | 04 November 2016, 18:49:59 UTC | Generate source map data from normalized files If using `inSourceMap` this fix will ensure the copying of `sourcesContent` is based on potentially normalized `sources` values (https://github.com/mozilla/source-map/blob/master/lib/source-map-consumer.js#L304-L309). For example `normalize` (https://github.com/mozilla/source-map/blob/master/lib/util.js#L80-L123) will rewrite `./dist/mySource.js` to `dist/mySource.js` in the target `_sources` of the `SourceMapConsumer`. As a result `orig_map.sourceContentFor(source, true);` would return `null` since the orginal `source` was no longer available in the consumer. By using the keys generating from the `SourceMapConsumer.constructor` consistency is ensured. | 29 November 2016, 19:42:56 UTC |
a7b3b0d | 1111hui | 29 October 2016, 07:55:47 UTC | docs: add doc for option.outFileName | 29 November 2016, 19:29:12 UTC |
0a35acb | 1111hui | 29 October 2016, 07:21:28 UTC | feat: add option.outFileName for JS API, if absense, sourceMap.file field will deduced | 29 November 2016, 19:29:12 UTC |
2a9989d | Ashley (Scirra) | 27 October 2016, 15:23:04 UTC | Add --mangle-props-debug and fix --mangle-props=unquoted collision Patch by @AshleyScirra Based on: PR #1316 Renamed the CLI debug option to --mangle-props-debug Fixes: #1321 name collision in --mangle-props=unquoted | 29 November 2016, 19:25:39 UTC |
79b98a9 | Anthony Van de Gejuchte | 26 October 2016, 15:34:30 UTC | Do not overwrite options.comments + cleanup | 29 November 2016, 19:24:08 UTC |
057de57 | Anthony Van de Gejuchte | 26 October 2016, 10:34:38 UTC | Pass mangle options to figure_out_scope before mangling in tests | 27 October 2016, 20:55:49 UTC |
557b3e4 | Richard van Velzen | 23 October 2016, 19:46:22 UTC | v2.7.4 | 23 October 2016, 19:46:22 UTC |
8d74f34 | Anthony Van de Gejuchte | 16 October 2016, 18:57:28 UTC | Don't filter shebangs when using the 'some' comment filter Also clarify documentation a bit more about using regexp as filter | 23 October 2016, 19:31:03 UTC |
266ddd9 | Jann Horn | 14 October 2016, 16:04:39 UTC | fix uses_arguments handling (broken since 6605d1578351) Using the symbol declaration tracking of UglifyJS doesn't make sense here anyway, `arguments` always comes from something in the current scope. fixes #1299 | 23 October 2016, 19:29:18 UTC |
e51c6ba | pengzhenqing | 09 October 2016, 06:15:25 UTC | Add an option for writing inline source map | 23 October 2016, 19:21:39 UTC |
6389e52 | Richard van Velzen | 06 October 2016, 12:11:19 UTC | Remove console.log and add extra test case | 06 October 2016, 12:11:32 UTC |
e05510f | Richard van Velzen | 30 September 2016, 10:27:45 UTC | Add an option to wrap IIFEs in parenthesis For #1307. | 06 October 2016, 12:11:32 UTC |
fc9804b | kzc | 02 October 2016, 14:46:09 UTC | Fix (typeof side_effect()) in boolean context Fixes #1289 with suggestion by @rvanvelzen | 06 October 2016, 11:50:11 UTC |
4761d07 | alexlamsl | 20 September 2016, 14:23:27 UTC | Optimize unmodified variables | 01 October 2016, 09:36:11 UTC |
0111497 | Anthony Van de Gejuchte | 03 September 2016, 21:26:31 UTC | Make all comment options in cli available in js api Also removing more code within "loop" while at it. | 06 September 2016, 15:54:45 UTC |
7d8dea3 | Mihai Bazon | 01 September 2016, 13:32:22 UTC | Merge pull request #1277 from kzc/fix-string-plus-opt Account for side effects in `string + expr` optimization | 01 September 2016, 13:32:22 UTC |
25fc027 | kzc | 01 September 2016, 13:24:56 UTC | Account for side effects in `string + expr` optimization | 01 September 2016, 13:24:56 UTC |
0bd8053 | kzc | 26 August 2016, 22:47:25 UTC | implement optimization: (x = 2 * x) ---> (x *= 2) | 30 August 2016, 12:43:02 UTC |
1a78bbc | Richard van Velzen | 17 August 2016, 18:34:27 UTC | v2.7.3 | 17 August 2016, 18:34:27 UTC |
8430123 | Richard van Velzen | 17 August 2016, 09:43:50 UTC | Fix negate_iife transform to return a correct tree for nested IIFEs Fix for #1256, partially reverts d854523783b4 | 17 August 2016, 09:55:59 UTC |
614db97 | Richard van Velzen | 17 August 2016, 06:51:23 UTC | v2.7.2 | 17 August 2016, 06:51:23 UTC |
d854523 | kzc | 17 August 2016, 01:54:54 UTC | Fix negate_iife regression #1254 | 17 August 2016, 05:29:34 UTC |
781f26e | Richard van Velzen | 14 August 2016, 20:02:01 UTC | v2.7.1 | 14 August 2016, 20:02:01 UTC |
37f4395 | Timothy Gu | 12 August 2016, 01:21:21 UTC | Add missing `{` in README Also fix a trivial style mistake. | 14 August 2016, 19:52:39 UTC |
de619ae | kzc | 31 July 2016, 06:35:14 UTC | Fix --mangle-props and --mangle-props=unquoted Fixes: #1247 Fix --mangle-props and --name-cache inconsistency. AST_Dot and AST_Sub properties are now mangled by --mangle-props without regard to being used in an assignment statement. Note: if --mangle-props is used then *all* javascript files used must be uglified with the same mangle options. Fix the ignore_quoted=true mangle option, also known as `--mangle-props=unquoted`. If a given property is quoted anywhere it will not be mangled in any quoted or non-quoted context. | 14 August 2016, 19:51:25 UTC |
86859f6 | kzc | 30 July 2016, 17:21:23 UTC | Additional object literal property tests | 14 August 2016, 19:49:43 UTC |
dcdcfe4 | kzc | 30 July 2016, 01:27:30 UTC | Add input file glob support to minify() | 14 August 2016, 19:46:38 UTC |
72306b9 | kzc | 29 July 2016, 20:18:56 UTC | Add simple file globbing to bin/uglifyjs for Windows | 14 August 2016, 19:46:38 UTC |
38756b1 | Lucas Wiener | 28 July 2016, 07:30:12 UTC | Moved test input files to test/input. | 14 August 2016, 19:40:14 UTC |
85a09fc | Lucas Wiener | 27 July 2016, 14:02:33 UTC | Added test for #1236 | 14 August 2016, 19:40:14 UTC |
307b88d | Lucas Wiener | 26 July 2016, 07:54:02 UTC | Fixed sourceMapIncludeSources and inSourceMap = string combination of the UglifyJS.minify function. | 14 August 2016, 19:40:14 UTC |
fb049d3 | kzc | 23 July 2016, 15:50:44 UTC | Fix unneeded parens around unary args in new expression. | 14 August 2016, 19:38:38 UTC |
67cca43 | kzc | 22 July 2016, 14:44:29 UTC | Test reparsing test/compress/*.js output | 14 August 2016, 19:27:23 UTC |
642273c | Anthony Van de Gejuchte | 21 July 2016, 01:19:24 UTC | Legacy octal integer strict mode fixes | 21 July 2016, 12:42:16 UTC |
e8b23c7 | Richard van Velzen | 17 July 2016, 16:17:33 UTC | Build with AppVeyor on windows | 17 July 2016, 18:00:41 UTC |
9edbe93 | homuler | 16 July 2016, 13:03:36 UTC | Fix the document of keep_fnames option | 17 July 2016, 17:50:48 UTC |
af37eca | Yotam Spenser | 06 July 2016, 10:02:07 UTC | Source map URL override from programmatic API | 17 July 2016, 17:39:08 UTC |
41a9329 | Lauri Pokka | 04 July 2016, 17:06:14 UTC | lib/sourcemap.js: Copy sourceContent from old souce-map to the new source-map. Should fix #882 | 17 July 2016, 17:36:15 UTC |
7eb52d2 | Anthony Van de Gejuchte | 14 July 2016, 16:43:50 UTC | Keep const in own scope while compressing - Fixes #1205 - Fix provided by @kzc | 15 July 2016, 11:20:52 UTC |
eb63fec | kzc | 13 July 2016, 15:44:28 UTC | Fix mangle with option keep_fnames=true for Safari. Fixes: #1202 | 15 July 2016, 11:18:14 UTC |
2d8af89 | Anthony Van de Gejuchte | 04 July 2016, 00:51:20 UTC | Fix error style for regex errors | 15 July 2016, 11:14:30 UTC |
2650182 | Anthony Van de Gejuchte | 03 July 2016, 22:51:09 UTC | Backport mocha with test from harmony | 03 July 2016, 22:51:09 UTC |
572b97b | Richard van Velzen | 03 July 2016, 19:46:14 UTC | v2.7.0 | 03 July 2016, 19:46:14 UTC |
698705a | Anthony Van de Gejuchte | 15 June 2016, 10:18:18 UTC | Don't convert all strings to directives from moz-ast | 03 July 2016, 10:36:57 UTC |
debc525 | Richard van Velzen | 20 June 2016, 14:57:40 UTC | Introduce a test that tests the --self build | 01 July 2016, 07:46:05 UTC |
5576e27 | kzc | 30 June 2016, 20:54:52 UTC | Document that the smallest sequences optimization length is 2 and a sequences value of 1 is considered to be `true` - which will be set to the default value of 200. | 01 July 2016, 07:41:31 UTC |
b40d5de | kzc | 30 June 2016, 18:56:12 UTC | Change the default sequences limit to 200 to speed up compress. Has little or no impact on minification size in the majority of cases but can speed up rollup builds significantly. This sequences change also has the beneficial side effect of avoiding "stack size exceeded" errors on very large input files. The user is free to alter the sequences limit if they are so inclined. The previous sequences limit was 2000. 20 is often sufficient. | 01 July 2016, 07:41:31 UTC |
b7ef784 | kzc | 26 June 2016, 21:16:02 UTC | Allow sequences maximum length to be user configurable. | 01 July 2016, 07:41:31 UTC |
85924bb | Geraint | 27 June 2016, 11:01:21 UTC | Allow input files to be map (url->filename) | 30 June 2016, 20:23:59 UTC |
a97690f | Anthony Van de Gejuchte | 13 June 2016, 10:36:47 UTC | Various LineTerminator changes * Escaped newlines should also produce SyntaxError * Fix multiline comment parsing and add tests * Adapt makePredicate to handle \u2028 and \u2029 * Move up nlb check in regex so it's checked before any escape handling * Change error messages to conform ecma standard * Find_eol not recornizing \u2028 and \u2029 as line terminator * Remove \u180e as it is removed in unicode 6.3.0 from the category zs | 30 June 2016, 20:12:50 UTC |
02c6382 | kzc | 30 June 2016, 04:24:34 UTC | Enable --screw-ie8 by default. catch identifier is mangled correctly for ES5 standards-compliant JS engines by default. Unconditionally use the ie8 if/do-while workaround whether or not --screw-ie8 is enabled. To support non-standard ie8 javascript use: uglifyjs --support-ie8 | 30 June 2016, 19:49:48 UTC |
030611b | iliashk | 25 June 2016, 08:48:39 UTC | Add Node API documentation for mangling options | 30 June 2016, 19:45:25 UTC |
335b72d | kzc | 23 June 2016, 16:54:38 UTC | Fix spidermonkey AST (ESTree) export and import, Array holes Fixes: #1156 #1161 Also add test to exercise Uglify after spidermonkey export/import of itself. | 30 June 2016, 19:44:12 UTC |
3a7d53f | Anthony Van de Gejuchte | 23 June 2016, 14:53:48 UTC | Move OctalEscapeSequence to read_escape_char This should simplify and improve implementation, make it easier to implement template strings, and keep master a bit more in sync with harmony. Previous implementation wasn't broken, though the loop gave me the impression it could read infinite numbers and annoyed me a bit. It was also slightly unnecessary because the lookup involved only 3 characters. | 30 June 2016, 19:42:15 UTC |
9676167 | Richard van Velzen | 22 June 2016, 10:24:31 UTC | v2.6.4 | 22 June 2016, 10:24:31 UTC |
1840a0b | Mihai Bazon | 21 June 2016, 20:14:05 UTC | Merge pull request #1155 from kzc/issue_1154 Fix conditional expressions of form (x ? -1 : -1) | 21 June 2016, 20:14:05 UTC |
ace8aaa | kzc | 21 June 2016, 18:52:13 UTC | Fix conditional expressions of form (x ? -1 : -1) Fixes #1154, #1153 | 21 June 2016, 18:52:13 UTC |
0c003c9 | kzc | 19 June 2016, 03:06:59 UTC | Don't replace undefined, NaN and Infinity within with scope | 21 June 2016, 08:53:29 UTC |
85fbf86 | Anthony Van de Gejuchte | 20 June 2016, 12:18:47 UTC | Keep master in sync with harmony * Do not mangle when no mangle is required * Improve use_asm reset while printing code | 20 June 2016, 16:42:17 UTC |
aa82027 | Richard van Velzen | 20 June 2016, 06:39:46 UTC | Don't assume DEBUG is defined when exporting --self Potential fix for #1148 | 20 June 2016, 06:40:45 UTC |
55c592d | Richard van Velzen | 19 June 2016, 19:56:06 UTC | v2.6.3 | 19 June 2016, 19:56:06 UTC |
fc1abd1 | Asia | 18 June 2016, 20:17:51 UTC | Document the except option to mangle Added documentation for the `except` option to the `mangle` option in the API reference. | 19 June 2016, 19:17:31 UTC |
e645ba8 | Shrey Banga | 05 May 2016, 20:44:59 UTC | Respect quote style in object literals The option added in fbbaa42ee55a7f753f7cab9b1a905ccf73cf26d5 wasn't being respected inside object literals, so quoted property names would still be stripped out with this option. This is mostly a corner-case, but useful when the output is passed to something like the Closure compiler, where quoted property names can be used to prevent mangling. | 19 June 2016, 19:13:31 UTC |
6c99816 | Anthony Van de Gejuchte | 18 June 2016, 15:28:22 UTC | Normalize error messages | 19 June 2016, 19:08:34 UTC |
2149bfb | Anthony Van de Gejuchte | 13 June 2016, 19:11:08 UTC | Don't mix strings with directives in output * Don't interpret strings with escaped content as directive * Don't interpret strings after empty statement as directive * Adapt output to prevent strings being represent as directive * Introduce UGLIFY_DEBUG to allow internal testing like EXPECT_DIRECTIVE | 19 June 2016, 18:59:17 UTC |
d7971ba | Anthony Van de Gejuchte | 13 June 2016, 16:19:06 UTC | Fix test262 failures related to <, <=, in and instanceof Fixed-by: @kzc | 15 June 2016, 21:11:08 UTC |
5c4cfaa | Anthony Van de Gejuchte | 12 June 2016, 15:34:05 UTC | Re-add parens after new expression in beautify mode | 12 June 2016, 18:03:48 UTC |
bb9c970 | Anthony Van de Gejuchte | 12 June 2016, 16:58:20 UTC | Don't allow with statements in strict mode | 12 June 2016, 17:08:16 UTC |
6c8e001 | Anthony Van de Gejuchte | 10 June 2016, 13:42:55 UTC | Stop dropping args in new expressions | 12 June 2016, 15:17:17 UTC |
9c53c7a | Richard van Velzen | 12 June 2016, 12:35:43 UTC | Fix octal string strict mode tests | 12 June 2016, 12:35:43 UTC |
f99b7b6 | David Bau | 23 December 2013, 16:05:04 UTC | Escape null characters as \0 unless followed by 0-7. | 12 June 2016, 12:32:32 UTC |
ea31da2 | Anthony Van de Gejuchte | 09 June 2016, 22:34:20 UTC | Don't drop unused if scope uses with statement Fix provided by @kzc | 12 June 2016, 12:30:28 UTC |
4d7746b | Anthony Van de Gejuchte | 20 May 2016, 08:25:35 UTC | Throw errors in strict mode for octal strings Adds a directive tracker for the parser/tokenizer to allow parsing depending on directive context. | 12 June 2016, 12:27:08 UTC |
31d5825 | Anthony Van de Gejuchte | 08 June 2016, 18:11:32 UTC | Catch errors when compression test fails to parse | 09 June 2016, 19:12:15 UTC |
8287ef6 | Anthony Van de Gejuchte | 06 June 2016, 23:33:13 UTC | Fix uglify attempting to rewrite invalid new expressions | 08 June 2016, 17:45:21 UTC |
5cb5305 | ChALkeR | 07 June 2016, 09:25:16 UTC | Export tokenizer function In uglify-js@1, both parser and tokenizer methods were exported This allows to use tokenizer() separately, e.g. to wrap or override it, as parse() method accepts not only text, but also tokenized functions. | 07 June 2016, 09:25:16 UTC |
00ad57e | Anthony Van de Gejuchte | 05 June 2016, 00:44:59 UTC | Do not allow newlines in regex | 05 June 2016, 15:02:19 UTC |
09d5707 | kzc | 26 May 2016, 18:47:16 UTC | collapse_vars: Do not consider RegExp literals to be constants Fixes #1100 | 27 May 2016, 04:03:51 UTC |
1e39026 | kzc | 22 May 2016, 15:35:41 UTC | Optimize if_return for single if/return cases. Fixes #1089 | 24 May 2016, 15:54:08 UTC |
bc49dfd | Richard van Velzen | 18 May 2016, 16:49:55 UTC | Completely allow evaluating -0 | 24 May 2016, 15:50:29 UTC |
27eedbc | Richard van Velzen | 17 May 2016, 20:34:38 UTC | Never produce -0 when evaluating expressions (like -"") Fix for #1085. The major case was already there, but more expressions can result in -0. | 17 May 2016, 20:34:38 UTC |
5f464b4 | kzc | 15 May 2016, 23:12:17 UTC | Simplify iife `new` fix as suggested by @rvanvelzen. Added a test for IIFEs in nested contexts. | 15 May 2016, 23:12:17 UTC |
bcc1318 | kzc | 09 May 2016, 07:19:28 UTC | Do not apply negate_iife optimization to `new` expression | 09 May 2016, 07:19:28 UTC |
a0e03c9 | kzc | 03 May 2016, 19:08:40 UTC | Retain comments before AST_Constants during mangle. | 04 May 2016, 18:11:45 UTC |
6641dca | Anthony Van de Gejuchte | 03 May 2016, 15:41:40 UTC | Fix regression causing tests to fail on windows | 04 May 2016, 18:05:51 UTC |
d294574 | kzc | 01 May 2016, 04:59:29 UTC | Workaround for process.exit() tty output truncation. Fixes #1055 | 04 May 2016, 18:04:48 UTC |
35bc716 | Anthony Van de Gejuchte | 26 April 2016, 17:20:37 UTC | Add node 6 to travis | 04 May 2016, 18:03:39 UTC |
f39fd3d | kzc | 25 April 2016, 04:42:18 UTC | Handle CR line endings in comments. Fixes #1050 | 04 May 2016, 18:02:29 UTC |
65887d9 | Mihai Bazon | 26 April 2016, 19:09:52 UTC | Merge pull request #1053 from rvanvelzen/hoist_if_return_funs Hoist functions when reversing if (x) return; ... vs. if (!x) ... | 26 April 2016, 19:09:52 UTC |
e9224ab | Richard van Velzen | 26 April 2016, 09:49:55 UTC | Add test cases for slightly more esoteric cases | 26 April 2016, 09:49:55 UTC |
4d9a085 | Richard van Velzen | 26 April 2016, 09:43:03 UTC | Add test case for hoisting a single function | 26 April 2016, 09:43:03 UTC |
4fe6304 | Richard van Velzen | 23 April 2016, 21:48:33 UTC | Hoist functions when reversing if (x) return; ... vs. if (!x) ... Fixes #1052 | 23 April 2016, 21:48:33 UTC |
c55dd5e | kzc | 12 April 2016, 13:19:38 UTC | Add `passes` compress option. Fix duplicate compress warnings. | 19 April 2016, 18:05:33 UTC |
e4fa4b1 | kzc | 15 April 2016, 23:58:46 UTC | Parse comments without recursion to avoid RangeError. Fixes #993 | 16 April 2016, 06:02:47 UTC |
4b4528e | Richard van Velzen | 12 April 2016, 18:30:44 UTC | Prevent endless recursion when evaluating self-referencing consts Fix #1041 | 13 April 2016, 13:03:31 UTC |