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

Wraps sourceMappingURL in a multiline comment. Fixes #108

a9af2c9e62b62572cf31c8db14ebd0e71ccbeaaa authored almost 12 years ago by Matt Robenolt <[email protected]>
v2.2.4

31e99cebe74b90a058a8b988e22d727c33efdf80 authored almost 12 years ago by Mihai Bazon <[email protected]>
Fix end token for Assign nodes

a5b209470c2a61c3c735523fc82bd1ce45a51ec1 authored almost 12 years ago by Mihai Bazon <[email protected]>
Merge pull request #94 from paulmillr/patch-1

Add better fromstring docs.

e9a571b2a1a93e1c5e299ca4c8f846e2e1117994 authored almost 12 years ago by Mihai Bazon <[email protected]>
Merge pull request #106 from gibson042/105

Fix #105: property comparison to undefined is not always safe

8bf83f42eae5855b331932748d5cad60ee373e3a authored almost 12 years ago by Mihai Bazon <[email protected]>
Fix #105: property comparison to undefined is not always safe

522566ea80011dc1674ca7f10a5666a24f24ac27 authored almost 12 years ago by Richard Gibson <[email protected]>
Add --source-map-url option

Fix #100
Fix #47

297af47c891006cb2f5b98e3c8675af1e00d15a6 authored almost 12 years ago by Mihai Bazon <[email protected]>
Fix output for arrays containing undefined values.

1b6bcca7 was a first attempt at this. That commit made Uglify stop replacing
holes with undefine...

1529ab965a4a434e6024977a53f8460f6a474086 authored almost 12 years ago by David Glasser <[email protected]>
[AST_Hole] the print function can be a no-op.

faa354f5cad0547704a62a98b4ea32262591f341 authored almost 12 years ago by Mihai Bazon <[email protected]>
Merge pull request #98 from ForbesLindesay/patch-1

Update installation instructions

605f330e6949ca699a8770a9dd7d80bbacc6a175 authored almost 12 years ago by Mihai Bazon <[email protected]>
Handle String() with no arguments.

Fix #91

f0909bdc8f747c46b1359bcca72bf785b660be70 authored almost 12 years ago by Mihai Bazon <[email protected]>
Update installation instructions re #4

c13e7e621da70c2374a3afe84e46677a75fe968c authored almost 12 years ago by Forbes Lindesay <[email protected]>
Add better fromstring docs.

ad071f8017f36c47809cb53c411f8fee14874677 authored almost 12 years ago by Paul Miller <[email protected]>
Merge pull request #90 from jakearchibald/patch-1

Compressor options use underscores rather than hyphens

c058d8b9cdb30b4fc14490d5274f53a84b97f78d authored almost 12 years ago by Mihai Bazon <[email protected]>
Compressor options use underscores rather than hyphens

1d8871a092027988e386e4f0cf5a3b1057ade38d authored almost 12 years ago by Jake Archibald <[email protected]>
v2.2.3

16953c20648ee3b08cf55733ea1b3a2d1d5a80d2 authored almost 12 years ago by Mihai Bazon <[email protected]>
Fix handling of labels in nested scopes

6b14f7c224852a8b7b7cb837935bc300482d4d46 authored almost 12 years ago by Mihai Bazon <[email protected]>
Support `output`, `mangle` and `compress` options to `UglifyJS.minify`.

Close #57
Close #86
Close #33

130c623be74ea010b11222d43eb23a181d36cd8a authored almost 12 years ago by Mihai Bazon <[email protected]>
Merge pull request #87 from BenoitZugmeyer/master

Add a --version option

47c9895d591f2b83259302416663cd0ed44b26eb authored almost 12 years ago by Mihai Bazon <[email protected]>
Set --version as a boolean #87

ba403331c556598138946185042eb3ea917cf676 authored almost 12 years ago by Benoît Zugmeyer <[email protected]>
--version option

e82e89d1b05163c896de7ba66663c4a4a98067b9 authored almost 12 years ago by Benoît Zugmeyer <[email protected]>
Implement `-m sort=true`

close #83

83a4ebfedcd920871e583ef61151524b2d57b789 authored almost 12 years ago by Mihai Bazon <[email protected]>
Accept string or number as name of an accessor.

[not sure I'm happy about this fix]

Reference mishoo/UglifyJS#478

9916d0e54797679453cafc0ec260fd4116b725a0 authored about 12 years ago by Mihai Bazon <[email protected]>
Optimize new Array(1, 2, 3) → [1, 2, 3]

Close #74

31c4a37e37acc1e3ddd44c6c23f61a330e7b1484 authored about 12 years ago by Mihai Bazon <[email protected]>
Fix output when semicolons is off.

(need to force a semicolon for the empty body of an `if`)

Close #72

08219f0cee9d0be355daa57f873465765d36cd81 authored about 12 years ago by Mihai Bazon <[email protected]>
Small cleanup

c4993e1e5cb6ea8ca1f37a6bedf403a67bedbcf6 authored about 12 years ago by Mihai Bazon <[email protected]>
v2.2.2

6064bea3db0814e0fd3514b68f8fa3d8e9a3367c authored about 12 years ago by Mihai Bazon <[email protected]>
Add proper parens in "NoIn" expressions.

fix #60.

98978fc827635617c763bcfb40ada026da00b852 authored about 12 years ago by Mihai Bazon <[email protected]>
small improvement on merging assignments into hoisted vars

16430acc1f677c81b2c715b3576f8079c6e1e2df authored about 12 years ago by Mihai Bazon <[email protected]>
When hoisting variables, try to merge in assignments that follow.

320c110b331be9c6cb20f4db1d63aaaa98eef739 authored about 12 years ago by Mihai Bazon <[email protected]>
Revert "Fixed reading from STDIN."

It breaks usage like this:

echo '...code...' | uglifyjs

This reverts commit e48802ad291fae...

dbe33bbfc53badf7135d0aa93b7cdac708175629 authored about 12 years ago by Mihai Bazon <[email protected]>
Add test for issue #59

b5c3253b493b9e2428d5702169e5687f42fc6213 authored about 12 years ago by Mihai Bazon <[email protected]>
Don't messup compressor stack while optimizing Switch

Fix #59

5cc90db7d0c8983b6cae38df9dca540acbc1481b authored about 12 years ago by Mihai Bazon <[email protected]>
Merge pull request #58 from roxeteer/master

Fixed reading from STDIN

f427e5efc76d7871d57f1f04b896254b4a872a86 authored about 12 years ago by Mihai Bazon <[email protected]>
Fixed reading from STDIN.

e48802ad291fae5a16f2d23cbd25a0c433cdbe48 authored about 12 years ago by Visa Kopu <[email protected]>
fix #55

13c4dfcabdd3e8597db6ecb09e2ac95fbae19195 authored about 12 years ago by Mihai Bazon <[email protected]>
v2.2.1

1abde9c8b0aeef0ee5818821c2ca46a78eda2d59 authored about 12 years ago by Mihai Bazon <[email protected]>
fix for https://github.com/mishoo/UglifyJS/issues/474

4f555e2232459eaa4551ddf4e3f7535a416f1ddd authored about 12 years ago by Mihai Bazon <[email protected]>
rename the npm package to "uglify-js" and cli tool to "uglifyjs"

642ba2e92c12bd36810ab42106f922de04bb48f4 authored about 12 years ago by Mihai Bazon <[email protected]>
fix #51

089ac908b794bf1bc06d004bcb32d3d65f19ce64 authored about 12 years ago by Mihai Bazon <[email protected]>
retain (1,eval) as is when it's the expression of an AST_Call

otherwise we change the meaning of eval from global to lexical.

0d3fd2ef30d0a85edb76d6db6e9f6ef034f1cee4 authored about 12 years ago by Mihai Bazon <[email protected]>
Add support for somewhat preserving line numbers.

Usage: uglifyjs2 -b "beautify=0,preserve_line=1" /path/to/js

ref #46

e98119496a3d22f2d7ddc5f686eb8edfe05704ad authored about 12 years ago by Richard van Velzen <[email protected]>
better solution for the last test in constant switch folding

bdfcbf496b1b7be16dfd8a55c72bad8e5a33cf82 authored about 12 years ago by Mihai Bazon <[email protected]>
optimize constant switch blocks

ref. mishoo/UglifyJS#441

dba8da48005956e151a097e85896b161b4224782 authored about 12 years ago by Mihai Bazon <[email protected]>
Merge branch 'optimize_concat' of https://github.com/rvanvelzen/UglifyJS2 into rvanvelzen-optimize_concat

60c0f40250f0f68ac78f8ddab177336040243579 authored about 12 years ago by Mihai Bazon <[email protected]>
don't change order in binary expressions if both operands have side effects

e02771a5f2e23f7d75242a70729dbc8216bb4bfb authored about 12 years ago by Mihai Bazon <[email protected]>
Add simple optimization for empty-string concats.

ref. #43

f96f796f71a1eb4657f42c23513c59eaf11bf401 authored about 12 years ago by Richard van Velzen <[email protected]>
v2.1.11

a9fa178f86b36959ea9b86b591e22f4406aa7ce3 authored about 12 years ago by Mihai Bazon <[email protected]>
fix invalid AST produced by dropping unused variable

close #44

53355bdb24dc4ba31112239380209fc0caa7c897 authored about 12 years ago by Mihai Bazon <[email protected]>
Merge pull request #41 from Skalman/toString-patch

Convert x.toString() to ""+x instead of x+""

f05c99d89f0ccd18c757adfd6fa7cc93092823b5 authored about 12 years ago by Mihai Bazon <[email protected]>
convert x.toString() to ""+x instead of x+""

In some places this can save one byte in whitespace, e.g. after return.
Example:

function f(arg...

b49230ab8d717d91710d8c383c79ded77c78a39e authored about 12 years ago by Dan Wolff <[email protected]>
declare dependency versions

close #40

78856a3dabffb5e22431ee5c14656d3a64076540 authored about 12 years ago by Mihai Bazon <[email protected]>
AST_LabelRef no longer inherits from AST_SymbolRef

1e5e13ed81fe96d4388ae7d9ff1402a871c436b7 authored about 12 years ago by Mihai Bazon <[email protected]>
v2.1.10

64270b97780afa714a5c0f86116f88261c310175 authored about 12 years ago by Mihai Bazon <[email protected]>
fix API breakage

close #36, #38

e312c5c2a7d68de3da3bb7e8c9044e3183fe49d6 authored about 12 years ago by Mihai Bazon <[email protected]>
optimization for if/break as first statement in a loop body

for(...; x; ...) if (y) break; → for(...; x&&!y; ...);

similarly for `while` and some combi...

1a5fd3e05294a74900c6265f364f233e3f05eba0 authored about 12 years ago by Mihai Bazon <[email protected]>
ignore node_modules/

5a7e54cf724d28eab424acd92f097207ee69afbd authored about 12 years ago by Mihai Bazon <[email protected]>
v2.1.9

39f8a6270384415fb45f1a814b8a3be5117c2345 authored about 12 years ago by Mihai Bazon <[email protected]>
fix another small regression

we do need parens here: `new (foo.bar().baz)`, but not here: `new foo.bar.baz`

46be3f2bf19564a838179f523262f69dc1a9b5ac authored about 12 years ago by Mihai Bazon <[email protected]>
v2.1.8

258b46f4dc0d3df2cf20c4fbd4f3dd6314977518 authored about 12 years ago by Mihai Bazon <[email protected]>
fix regression from 5346fb94 (shouldn't parenthesize i++ in x[i++])

80da21dab467e9214d5908fca0a54d1242b3c443 authored about 12 years ago by Mihai Bazon <[email protected]>
v2.1.7

bb0e4d7126692b7dfa1d4a71b67f6a87c443d07e authored about 12 years ago by Mihai Bazon <[email protected]>
add AST_Accessor and AST_SymbolAccessor node types

AST_Accessor will represent the function for a setter or getter. Since they
are not mangleable,...

5276a4a873d174ae594198045a15cb821cca29e7 authored about 12 years ago by Mihai Bazon <[email protected]>
parenthesize property access when it's the expression in New

refs #35

a1ae0c8609ad5ab977dae8afcb96b04594a0cc9a authored about 12 years ago by Mihai Bazon <[email protected]>
further fix for parens around New (refs #35)

a90c1aeafe0ab94cb20e0f0f40fda2b740a3bb15 authored about 12 years ago by Mihai Bazon <[email protected]>
parenthesize a Call expression when its parent is New

fix #35

ff388a8d2d6f7777690e792e8cb497acb108e3e5 authored about 12 years ago by Mihai Bazon <[email protected]>
add proper parens around unary expressions

fix #34

5346fb94bb186e08e21b60fb19ea7ec902c03784 authored about 12 years ago by Mihai Bazon <[email protected]>
add option to mangle names even if eval/with is in use

(for more fair comparison to Closure compiler)

a4f6d46118c0d9d1d84a9238d8ef4e57279caac3 authored about 12 years ago by Mihai Bazon <[email protected]>
discard the hack that worked around the deprecation warning

(since the source-map module no longer uses require.js)

refs #9

7f5f4d60b70909d21e0111d2c900ba0f5993b374 authored about 12 years ago by Mihai Bazon <[email protected]>
convert `while` into `for`

ffccb233e5338fd99cdcda17058ffb0d3415cfcb authored about 12 years ago by Mihai Bazon <[email protected]>
minor

fba0c1aafe5e54a982238bd7e54596852617ef6c authored about 12 years ago by Mihai Bazon <[email protected]>
minor optimization

for `==` or `!=` against a constant, prefer to display the constant first.
should help a bit aft...

774f2ded9422903f082f0291ec69c7a6e2edfcaf authored about 12 years ago by Mihai Bazon <[email protected]>
print final semicolon

close #28

85af942d64e007524d76454baf80011c3ecda2ce authored about 12 years ago by Mihai Bazon <[email protected]>
use a Dictionary object instead of plain object for hashes

to mitigate the `__proto__` issue

related to #30

8413787efc6dd570b5cc48dec65e5ffe1a32084a authored about 12 years ago by Mihai Bazon <[email protected]>
v2.1.6

dde57452aa5c42bddb6865404e75d1b721c26c43 authored about 12 years ago by Mihai Bazon <[email protected]>
it's safe to negate expression in !EXP only in boolean context

#kendo

cf409800be18c76efc91a65051bea5f4cb9c44e4 authored about 12 years ago by Mihai Bazon <[email protected]>
added unsafe_comps for negating `<=` with `>`

since it has the potential to break code, let's keep it disabled by default

18270dd9f371f1b5debad2521c4b9f7fce02051f authored about 12 years ago by Mihai Bazon <[email protected]>
fix compressing UnaryPrefix

only try negating the expression if the operator is `!`

#kendo

d4c25c571bfac8e9bf91b2b894837d61370b0c35 authored about 12 years ago by Mihai Bazon <[email protected]>
v2.1.5

5248b79506d80c7da8b8a50225fe0bb48e607346 authored about 12 years ago by Mihai Bazon <[email protected]>
don't move expressions containing the binary `in` operator into the `for` initializer

(opera can't parse it)

close #25

abe0ebbf026bcf1ac280f160de8621071681b2b9 authored about 12 years ago by Mihai Bazon <[email protected]>
v2.1.4

0852f5595edbceb1b8626c7214fcc6c17bf271e9 authored about 12 years ago by Mihai Bazon <[email protected]>
cripple scope to make IE happy :-(

close #24

cb3cafa14d2b65e8100b777d47a0cbade08ad7ca authored about 12 years ago by Mihai Bazon <[email protected]>
test for fs.existsSync

202fb937995086561421719b2b26449757e80913 authored about 12 years ago by Mihai Bazon <[email protected]>
v2.1.3

7b87d2ef837efa6e8b03f7f778e87e5d264589c0 authored about 12 years ago by Mihai Bazon <[email protected]>
fix for `if (...) return; else return ...;`

(it was assumed that the first `return` always contains a value)

close #22

70fd2b1f336535188696d9e7b198b8acd31aa558 authored about 12 years ago by Mihai Bazon <[email protected]>
more sequence optimizations (lift some sequences above binary/unary expressions so that we can avoid parens)

30faaf13edca3a4db6867e8faf0f0b68c6ac11e0 authored about 12 years ago by Mihai Bazon <[email protected]>
v2.1.2

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

bee01dc1bec7d76a323bc4570cdba869c42ad447 authored about 12 years ago by Mihai Bazon <[email protected]>
alternate hack to disable deprecation warning

ref #9, close #20

12f71e01d02a2f4cc76cb8471036992e0cba9cf1 authored about 12 years ago by Mihai Bazon <[email protected]>
Merge pull request #19 from SevInf/master

Allow to specify sourceRoot in minify

3a72deacab4d2f5fea3399233565c8a62267c783 authored about 12 years ago by Mihai Bazon <[email protected]>
minor fix for dropping unused definitions.

function f(x, y) {
var g = function() { return h() };
var h = function() { r...

fc8314e810c91431cd18fa9a784adb7867726013 authored about 12 years ago by Mihai Bazon <[email protected]>
Add sourceRoot option to minify

11dffe950ed5beb1bbf224a594cf0fae7dc11f9a authored about 12 years ago by Sergej Tatarincev <[email protected]>
add fromString argument to `UglifyJS.minify` (allows to pass the source

code, instead of file names, as first argument).

close #17

6f45928a73009b6b1aee8c1886f08ff5b83e6cb1 authored about 12 years ago by Mihai Bazon <[email protected]>
more optimizations for some break/continue cases

afb7faa6fadee46a6ab46232eddba2121c77549b authored about 12 years ago by Mihai Bazon <[email protected]>
v2.1.1

6aa56f92fe07edfc677d390a2e26b37c98da0968 authored about 12 years ago by Mihai Bazon <[email protected]>
fix `--comments` (close #16)

4fe4257c69734448fb242dfaab3804f883165df3 authored about 12 years ago by Mihai Bazon <[email protected]>
v2.1.0

a5e75c5a2125662b1ed1a93e8b2204bf33bf44f8 authored about 12 years ago by Mihai Bazon <[email protected]>
added note about API docs and online demo

4482fdd63f0a9fcd8e6f92f2af8076cdb3240af6 authored about 12 years ago by Mihai Bazon <[email protected]>
more small optimizations

(unlikely to help for hand-written code)

253bd8559bdc3b681fb665704718bc024f5d316e authored about 12 years ago by Mihai Bazon <[email protected]>
define aborts on AST_If: true if both branches abort

6a099fba66eba896755f5a723a9d08034faee615 authored about 12 years ago by Mihai Bazon <[email protected]>