Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/terser/terser

🗜 JavaScript parser, mangler and compressor toolkit for ES6+
https://github.com/terser/terser

Don't unescape \x00 in regexes (it breaks IE8)

f5f8239057f1c9a3a9e25d042a8b02c4141e9855 authored almost 11 years ago by Daniel Stutzman <[email protected]>
v2.4.11

6f9d0517841a543807019daf51a88c5e24c24690 authored almost 11 years ago by Mihai Bazon <[email protected]>
More chars that cannot be unescaped in regexps.

931862e97f2b8bc06d2de9b8e7e7e8e04500d063 authored almost 11 years ago by Mihai Bazon <[email protected]>
Fix end token for conditionals. Close #404

1d0127de2134f2086e1de51d47782118470397ed authored almost 11 years ago by Mihai Bazon <[email protected]>
Merge pull request #402 from lautis/bom-regexps

Don't unescape byte order marks in regexps

2d8fc616773e30df955de02d99406f114b87490a authored almost 11 years ago by Mihai Bazon <[email protected]>
Don't unescape byte order marks in regexps

1e31011874b82723c52589adfda3a451f7a9b0e7 authored almost 11 years ago by Ville Lautanala <[email protected]>
v2.4.10

75cdbf19aaf03430d56da2ffe201f7403954d422 authored almost 11 years ago by Mihai Bazon <[email protected]>
Don't unescape \x2f (slash) in regexps. #54

4339bd5cfa16e6293060ca09b5fb1d37a676df83 authored almost 11 years ago by Mihai Bazon <[email protected]>
Fix example

1ab2fdaa105b4a3f899e190218d6720982cf501b authored almost 11 years ago by Mihai Bazon <[email protected]>
v2.4.9

eda540f6ec36238dd43ee3654c18f5867b65f15e authored almost 11 years ago by Mihai Bazon <[email protected]>
simplify

90a330da16e77b8836ea8f02d6733618e6c23374 authored about 11 years ago by Mihai Bazon <[email protected]>
Unescape Unicode sequences in regexps when ascii_only is false. #54

cad1f9cbd112b1117562b942f39a1205e00e2bf0 authored about 11 years ago by Mihai Bazon <[email protected]>
added hasOwnProperty check to avoid warnings

f6203bd5a8063a3af835603ce1959310f14f7f5e authored about 11 years ago by Artemy Tregubenko <[email protected]>
Added support for sourcesContent property of source map

03cf94ebe8b7bc87eccde800705beabf012ff275 authored about 11 years ago by Artemy Tregubenko <[email protected]>
Better process_for_angular before other statement reductions. #395

c3087dd179bcef93626ae8227bf8f0ac5baa15a2 authored about 11 years ago by Mihai Bazon <[email protected]>
Support @ngInject with `angular` compressor option. Close #395.

2c305af478b95ccdb21ac9ed680cc1a0f58fd7d4 authored about 11 years ago by Mihai Bazon <[email protected]>
Disable node 0.6 since the build fails consistently and it's not our fault.

72e6f64ca896fc77f7d87ec36eaec9dc19771f41 authored about 11 years ago by Mihai Bazon <[email protected]>
Support SpiderMonkey AST in UglifyJS.minify. Fix #393.

b9fac687ff0b2689f7ca7bdc26aa0b3671df72ce authored about 11 years ago by Mihai Bazon <[email protected]>
doh.

2c88eb6fbe82d663874ae2ee144d5457cd512127 authored about 11 years ago by Mihai Bazon <[email protected]>
Fix #392

a67e3bfdd3e5ca4f9e121206d0dc4cb4a04f7d65 authored about 11 years ago by Mihai Bazon <[email protected]>
minor: exp["10"] => exp[10]

27142df4f55a070f5507b74518ca807e014111ca authored about 11 years ago by Mihai Bazon <[email protected]>
Fix parens for property access -- (foo, bar)["baz"]

5e4c7f42454f12761a95241a03e6b36a46df2283 authored about 11 years ago by Mihai Bazon <[email protected]>
Conditional/call optimization

foo ? bar(x) : bar(y) ==> bar(foo ? x : y)

b521b4b926f7a385ed14ec07bc4b5dad9ebcd93b authored about 11 years ago by Mihai Bazon <[email protected]>
Mark `yield` as reserved word. Close #375.

aa9de76370ee83883f19a6d410ad8207d0fe1769 authored about 11 years ago by Mihai Bazon <[email protected]>
Optimize seq,void 0. Close #377.

(x, void 0) => void x
(x, undefined) => void x

5a083a938d8d6eca5c43a5edd1921906299df18f authored about 11 years ago by Mihai Bazon <[email protected]>
Better fix for comments in AST_Exit

Close #374

7a30d826b89197f7a74001af83676c39277b0eab authored about 11 years ago by Mihai Bazon <[email protected]>
Take out all comments from an AST_Exit's value

Fix #372

be55a09edf7526cd325e3c954e0ae778a1f625b0 authored about 11 years ago by Mihai Bazon <[email protected]>
v2.4.8

15a148ff6d5a1ec56e2e11bed7ec271da552c475 authored about 11 years ago by Mihai Bazon <[email protected]>
Add option to adjust the src/target line in the source map

428e19fed25dc910187080cc41e6afc254def0d5 authored about 11 years ago by Mihai Bazon <[email protected]>
minor

f65e55dff40334bda8eed4f77b88a1c90af27d7c authored about 11 years ago by Mihai Bazon <[email protected]>
Merge pull request #371 from colorhook/master

bugfix #242

b634018618069653f08dad79026dd621ec7d90a0 authored about 11 years ago by Mihai Bazon <[email protected]>
bugfix #242

fa3300f31474af5c566da96ff8db78a2eafa49e3 authored about 11 years ago by colorhook <[email protected]>
semicolons

bd0886a2c0b6205d1e7a3c03ef44c093c3317ca7 authored about 11 years ago by Mihai Bazon <[email protected]>
Merge pull request #245 from ForbesLindesay/patch-1

Make `DefaultsError` a real `Error` object

248f304f02528f1e63c11707f3159e456baac139 authored about 11 years ago by Mihai Bazon <[email protected]>
Add `drop_console` option to the compressor

dc5f70eab5cf89f1046482e97267030b3bbf2b66 authored about 11 years ago by Mihai Bazon <[email protected]>
minor

df8c5623af1afff5fffc6af49ceda5da16f95d54 authored about 11 years ago by Mihai Bazon <[email protected]>
v2.4.7

a790c09c91d6b334bbe961558a064f33416eb752 authored about 11 years ago by Mihai Bazon <[email protected]>
AST_Catch shouldn't really inherit from AST_Scope. Fix #363

I hereby acknowledge that figure_out_scope has become a mess.

8f35a363d90e6521e916a8d70f3302d4adc51ae6 authored about 11 years ago by Mihai Bazon <[email protected]>
Properly scope `catch` identifier when --screw-ie8

Fix #344

d2190c2bf340d807a0c8595dbc2f849aa3bcc443 authored about 11 years ago by Mihai Bazon <[email protected]>
v2.4.6, because npm is foobar

ea1064257206cfa8d55ee6aad05536f940cc38a4 authored about 11 years ago by Mihai Bazon <[email protected]>
v2.4.5

547561a568aed8fd2840fae48219a7843893d12d authored about 11 years ago by Mihai Bazon <[email protected]>
Add --noerr to turn off argument name checking

for now only used for keys passed to `-c` or `-b`.

c16d538ce7879af6077be3baf4ada87477c4354b authored about 11 years ago by Mihai Bazon <[email protected]>
v2.4.4

73d082df2e22e44257b333961f20b2a5a81a934c authored about 11 years ago by Mihai Bazon <[email protected]>
Fix faulty compression

`String(x + 5)` is not always the same as `x + "5"`. Overlooked that. :-(

Close #350

50b8d7272c3b0c7a222e5d6e433c9736f920434c authored about 11 years ago by Mihai Bazon <[email protected]>
Only descend twice after drop_unused if it's the same node type.

Fix #345

7d11b96f48f7f03727fa664d540484f214cadca2 authored about 11 years ago by Mihai Bazon <[email protected]>
Better fix for #343

We can in fact lift sequences, but only if the operation is assignment and
the left-hand side ha...

eab99a1c3d229f7e73b91b5a28e5ebf53a24671b authored about 11 years ago by Mihai Bazon <[email protected]>
v2.4.3

19e2fb134d1c6d0fdf74b0d008d772c0283afb6e authored about 11 years ago by Mihai Bazon <[email protected]>
Do not lift sequence from right-hand side of binary operation. Fix #343

f4919e3a251b4a3beaba66f2a143f795f358409e authored about 11 years ago by Mihai Bazon <[email protected]>
v2.4.2

bb700daa4c48e4fa7ef2258354df8789fbc8e849 authored about 11 years ago by Mihai Bazon <[email protected]>
[README] Fix #278

263577d5eb2fc4f58ce7fe0c92007031fbc7f526 authored about 11 years ago by Mihai Bazon <[email protected]>
Workaround for Safari bug

Close #313

63287c0e681154698a2aeb73380ea9b40260c6b0 authored about 11 years ago by Mihai Bazon <[email protected]>
Fix parsing setters/getters (allow keywords for name).

The "key" property was always "set" or "get", which didn't make much sense.
Now it'll be the act...

c5ed2292bf2b78fcfb6913ef8819bb53f9e80132 authored about 11 years ago by Mihai Bazon <[email protected]>
Fix regression after e4c530240650535d1cb46569dfb013193471af05

`x * (y * z)` ==> `x * y * z` -- the better place to do this is in the
compressor rather than co...

b70670b69fbc3badd6186d6a6671754976bd36cb authored about 11 years ago by Mihai Bazon <[email protected]>
indentation

9dd97605bc724c78b7f73177ae8ceaee92cc01d2 authored about 11 years ago by Mihai Bazon <[email protected]>
Fix output for `x = 2 * (a % b / b * c)`

(issue #337)

e4c530240650535d1cb46569dfb013193471af05 authored about 11 years ago by Mihai Bazon <[email protected]>
minor

bea3d90771e98c44a6c20578aabd9ebc81edb6ed authored about 11 years ago by Mihai Bazon <[email protected]>
Disallow reversal where lhs has higher or equal precedence

Fixes #267

785c6064cc4d28f3453e88fba3e085c4e2eaf553 authored about 11 years ago by Richard van Velzen <[email protected]>
Fix typo

b214d3786fdb569b9ba5b885f0653927960d450f authored about 11 years ago by Mihai Bazon <[email protected]>
Fix reading arguments

i.e. read `-c unsafe,unsafe-comps` as `-c unsafe=true,unsafe_comps=true`

7cf79c302b61ebd07c33aabee929dfb8666cba56 authored about 11 years ago by Mihai Bazon <[email protected]>
Avoid shadowing name of function expression with function argument

Close #179, #326, #327

a14c6b6574b47ba9fe4e238eea1f1286097d3c5d authored about 11 years ago by Mihai Bazon <[email protected]>
Add "preamble" output option

Close #335

f1b7094a57cc3fbbe37a2c653f255190b9359c0d authored about 11 years ago by Mihai Bazon <[email protected]>
Fix codegen for when comments_before is undefined.

Fix #333

0358e376f04b5f67616d57ccfd0fafbe1b9a6979 authored about 11 years ago by Mihai Bazon <[email protected]>
Merge branch 'master' of github.com:mishoo/UglifyJS2

b47f7b76b9f0ff5e34d744439f327897a592f675 authored about 11 years ago by Mihai Bazon <[email protected]>
Display number of failed tests and corresponding files

582cc55cffc198f3401f90a0b32e2fcbe89afee1 authored about 11 years ago by Mihai Bazon <[email protected]>
Merge pull request #330 from markjaquith/master

Unit test to detect issue in 8d14efe for #126 that causes aggressive parenthesis removal, functi...

8979579e55025a72caf580788b48831cd7d623de authored about 11 years ago by Mihai Bazon <[email protected]>
Merge pull request #331 from rvanvelzen/rhs-strings-fix

Fix RHS concat (raised in #330)

0d6e08c54148e4f119971069488224441609c204 authored about 11 years ago by Mihai Bazon <[email protected]>
Fix RHS concat (raised in #330)

When attempting to concat the left-side of the rhs, make sure the rhs is
a string.

e2daee9a655160e4eeea6dee4ceddfe0049ebacf authored about 11 years ago by Richard van Velzen <[email protected]>
Add a unit test for issue-126

Add a unit test to test to test for aggressive parenthesis removal that causes functional changes.

9cd118ca3d3e9882e4ecb14b153aa05cb070b453 authored about 11 years ago by Mark Jaquith <[email protected]>
Merge pull request #325 from rvanvelzen/fix-269

Fix #269

cfd5c6155c4774b4def6711c5159d9080148a7ae authored about 11 years ago by Mihai Bazon <[email protected]>
Fix #269

Shorten most primitives where possible. Also optimize some edge cases.

1a5a4bd63185e38eb550a9b0ca85890002d5243a authored about 11 years ago by Richard van Velzen <[email protected]>
Merge pull request #323 from rvanvelzen/undefined-drop-vars-fix

Fix #280

63e1a8e1fd17958557f41a55ea08d678b7995f9b authored about 11 years ago by Mihai Bazon <[email protected]>
Fix #280

The `init` of the `ForStatement` is not a `BlockStatement` before it was
descended. The descend ...

7055af822147bcf36421ce02fd3447e7f916ce2e authored about 11 years ago by Richard van Velzen <[email protected]>
Merge pull request #322 from rvanvelzen/test-exit-code-1

Add an exit code to the test suite

aafe2e1db385f4e087b0c6140ead490ef5ccae72 authored about 11 years ago by Mihai Bazon <[email protected]>
Add an exit code to the test suite

By adding the exit code 1 (or any other non-zero exit code) `npm test`
will know the tests didn'...

118105db43b0d0b45a96b943f63efd1c06486802 authored about 11 years ago by Richard van Velzen <[email protected]>
Revert #3a81f60 for now

(with it some tests break and it can generate invalid output, see issue #44)

63d04fff69de5e4c63f1a2476e57555805cbf401 authored about 11 years ago by Mihai Bazon <[email protected]>
v2.4.1

8c9cc920fb433ba41e816a61735a92e9e8f9a4d3 authored about 11 years ago by Mihai Bazon <[email protected]>
`arguments` outside of a function is an ordinary variable.

Fix #501

d09f0adae3605b8bf5d90a934037f71ae0c27780 authored about 11 years ago by Mihai Bazon <[email protected]>
wrap up

3fa9265ce43b1273f737b5606d0bb5d4643ef436 authored over 11 years ago by Mihai Bazon <[email protected]>
Don't drop_unused before compression.

Fix #280, #282

3a81f60982a7f20ef9bd75b851759793ffe1d270 authored over 11 years ago by Mihai Bazon <[email protected]>
Rename clean_getters to pure_getters; add pure_funcs.

f2348dd98baeb7dc3e0542465ede897c15d7cbc9 authored over 11 years ago by Mihai Bazon <[email protected]>
Merge pull request #308 from meteor/fix-unicode-keys

Only allow identifier start characters at the beginning of identifiers.

253c7c23258e9c783459f683a385bb518f18403a authored over 11 years ago by Mihai Bazon <[email protected]>
Only allow identifier start characters at the beginning of identifiers.

Without this fix, the following source:

x = {"\u200c": 42};

would incorrectly be converted ...

bb0a762d12d2ecd058b9d7b57f16b4c289378d9c authored over 11 years ago by David Glasser <[email protected]>
add `clean_getters` compressor option (default `false`)

allows one to specify if `foo.bar` is considered to have side effects.

8cc86fee6016bc2d540a348f5eb4a174f006a02b authored over 11 years ago by Mihai Bazon <[email protected]>
minor optimization

unlikely to help in hand-written code:

(something() ? foo : bar) == foo ==> something()

88fb83aa813d38e21abeab2b5e4f74f02ef582c1 authored over 11 years ago by Mihai Bazon <[email protected]>
Fix error in the output minifying `Function("return this")()`

95b4507c02b57ad15a50e4db7343bac250ed4460 authored over 11 years ago by Mihai Bazon <[email protected]>
More attempts to determine when addition is associative

Somebody hit me with bug reports on this. :)

Refs #300

afdaeba37d2d7541529addaefe85ed09515863af authored over 11 years ago by Mihai Bazon <[email protected]>
Actually let's move away those monsters from the evaluate function

ev() should do a single thing — evaluate constant expressions. if that's
not possible, just ret...

037199bfe2e60ceca0b39fca20f833b02d6c85db authored over 11 years ago by Mihai Bazon <[email protected]>
More dirty handling of [ ... ].join() in unsafe mode

Close #300

583fac0a0f4f5ae9b71a051730b4834a190f6387 authored over 11 years ago by Mihai Bazon <[email protected]>
Evaluate [...].join() if possible: minor bugfix

Follow-up to 78e98d2.

e8158279ff08af915c634eeec4cfabda1ff4022e authored over 11 years ago by Dan Wolff <[email protected]>
When `unsafe` is set, evaluate [...].join() if possible

Close #298

78e98d2611f5698797785adbd12faf2ba46ec783 authored over 11 years ago by Mihai Bazon <[email protected]>
Concatenate strings also on the right-hand side of an expression that cannot be evaluated. Fix #126

E.g. converts:
a+'Hello'+'World'
to
a+'HelloWorld'

8d14efe818d9a33821a6acc26b612aaf1fd6e967 authored over 11 years ago by Dan Wolff <[email protected]>
Avoid printing <!-- in the output (HTML5 comment)

83ba338bd0e59267080c37bd235e1b0a601edf36 authored over 11 years ago by Mihai Bazon <[email protected]>
Support HTML5 comment syntax (enabled by default!)

See http://javascript.spec.whatwg.org/#comment-syntax
https://github.com/mishoo/UglifyJS/iss...

7c10b253462b0af3b8700e71ae2ae4aaac1a953e authored over 11 years ago by Mihai Bazon <[email protected]>
minor

cb9d16fbe4b9af135209e7f01cf1d40bf388c3d7 authored over 11 years ago by Mihai Bazon <[email protected]>
Fix names.

5d8da864c55ad6f56a7ea82dd702339df04e2d3d authored over 11 years ago by Mihai Bazon <[email protected]>
Disallow `continue` referring to a non-IterationStatement. Fix #287

Simplifies handling of labels (their definition/references can be easily
figured out at parse ti...

85b527ba3d609e87b5b5f758b429ef371dc3e459 authored over 11 years ago by Mihai Bazon <[email protected]>
Better fix for #286

1c6efdae34f308a8cd22c41f48adf96dd428f4ee authored over 11 years ago by Mihai Bazon <[email protected]>
Fix parsing `a.case /= 1`

Close #286

b0ca896d988bdafe5f28aa13dd14e4d6e4703108 authored over 11 years ago by Mihai Bazon <[email protected]>
Fix parsing regexp after unary-prefix operator

++/x/.y

Fix #284

78a217b94c7648c88c46e0f5e9c15c747bef35dd authored over 11 years ago by Mihai Bazon <[email protected]>
Better reporting of parse errors

a89d23331802cabb690ac817a5a7c93144a4f9c9 authored over 11 years ago by Mihai Bazon <[email protected]>