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

v2.4.0

c28e1a023764993a3c9fd65ece2070ccc661237e authored over 11 years ago by Mihai Bazon <[email protected]>
Remove --ie-proof from the readme.

Fix #276

1a95007ec103d8799b9f544948f81fa8c3c9dcb1 authored over 11 years ago by Mihai Bazon <[email protected]>
Move support for `negate_iife` in the compressor, rather than code generator

(the code generator doesn't maintain enough context to know whether
the return value is importan...

ed80b4a534083510082419b305e0b60b395b10c6 authored over 11 years ago by Mihai Bazon <[email protected]>
Merge pull request #270 from michaelficarra/GH-259

fixes #259: don't unnecessarily quote object properties when --screw-ie8

4f09df238e15bfb9d03d28ba718c402bad0b1078 authored over 11 years ago by Mihai Bazon <[email protected]>
fixes #259: don't unnecessarily quote object properties when --screw-ie8

d9ad3c7cbf92c9b08d4f8eb4ec697a00d96c700a authored over 11 years ago by Michael Ficarra <[email protected]>
fix usage

6ea3f7fe34e73f7f64b1a52c6dd0a3dcd9faa72e authored over 11 years ago by Mihai Bazon <[email protected]>
Don't drop unused setter argument.

Fix #257

4c4dc2137cc256bb1e7a3827b4c96c95be42782e authored over 11 years ago by Mihai Bazon <[email protected]>
Support `-p relative`. Fix #256

4aa4b3e69493097c6674ad79a2300a64f77842cd authored over 11 years ago by Mihai Bazon <[email protected]>
Add support for browserify

2604aadb371d5cb5a689da49c7bb2f820ae046ec authored over 11 years ago by Forbes Lindesay <[email protected]>
Don't pretend to evaluate lambdas

Fix #255

964d5b9aa47bad28bc200de90f3acd6d899b2733 authored over 11 years ago by Mihai Bazon <[email protected]>
Fix #251

b7adbcab1f4c9e846ae0b9ec3fd32991d62b68cf authored over 11 years ago by Mihai Bazon <[email protected]>
Don't require arguments to --enclose

3435af494f62c59ce0d769e762966b91c57090b4 authored over 11 years ago by Mihai Bazon <[email protected]>
Reverting "added option for dropping unused params"

Revert "added option for dropping unused params"

(turns out we already had the `unused` option f...

41c627379c31b4886091f19fc8385cd8619e645a authored over 11 years ago by Mihai Bazon <[email protected]>
added option for dropping unused params

e54df2226f7f3887d2f850cea8caf5c0353dce00 authored over 11 years ago by Dusan Bartos <[email protected]>
Make `DefaultsError` a real `Error` object

dfa395f6ff405bbea018dbc24b31cbd49a9ac6ef authored over 11 years ago by Forbes Lindesay <[email protected]>
Fix output for arrays whose last element is a hole: [1,,]

1529ab96 started to do this (by considering holes to be separate from
"undefined") but it still ...

b1febde3e9be32b9d88918ed733efc3796e3f143 authored over 11 years ago by David Glasser <[email protected]>
Revert previous patch, it was no good.

193049af197ee73275dced11289b9b6755f4f469 authored over 11 years ago by Mihai Bazon <[email protected]>
Add "position" option to parser, to specify initial pos/line/col

(for parsing embedded scripts)

4a0bab0fa3fc6d69507e91fdf17322b808aff7e4 authored over 11 years ago by Mihai Bazon <[email protected]>
Apply transformer to AST_VarDef's name

Fix #237

9243b0cb9dd8469b6f4dbbf6ff9508e56f0e6fc2 authored over 11 years ago by Mihai Bazon <[email protected]>
Fix typo.

Close #239

fc9ba323c475b107503f408af7fca19cb31a20f4 authored over 11 years ago by Mihai Bazon <[email protected]>
Reset the base54 counters every time minify is called.

Close #229

d0689c81bb859ac78a966c526073dcc50a8ccde9 authored over 11 years ago by Mihai Bazon <[email protected]>
Don't swap binary ops when "use asm" is in effect.

Refs #167

02a84385a02ccf4cf3a1ccca2fc5f6a90fb43487 authored over 11 years ago by Mihai Bazon <[email protected]>
Merge pull request #220 from lautis/escape-null

Escape null characters as \x00

a4889a0f2e4c5939bcda7d527843c8bf3bdedc81 authored over 11 years ago by Mihai Bazon <[email protected]>
Escape null characters as \x00

Since \0 might be mistakenly interpreted as octal if followed by a
number and using literal null...

f29f07aabd9d9f67ef7b826abb949262033d9273 authored over 11 years ago by Ville Lautanala <[email protected]>
v2.3.6

188e28efd7fa45711be5ced62b04da13511feb8b authored over 11 years ago by Mihai Bazon <[email protected]>
Merge pull request #213 from mattrobenolt/patch-1

SourceMapping pragma has changed to //#

2df48924ccfc5fc776597ac3938fede41b9b4bf5 authored over 11 years ago by Mihai Bazon <[email protected]>
Add `negate_iife` option to the code generator.

See discussion in a9511dfbe5c0d96d8cacb87582aa9a19737bbb98

9fc6796d2a5f385500efc84020b5f6f73a6bb4a0 authored over 11 years ago by Mihai Bazon <[email protected]>
Set "global" on undeclared SymbolDef-s

9fc8a52142041b903b650923bb08b57876dd4c8c authored over 11 years ago by Mihai Bazon <[email protected]>
The extra /* */ isn't needed now

3a218615804ceaf0fa1fcf7b8a0b3e10df3e6c86 authored over 11 years ago by Matt Robenolt <[email protected]>
SourceMapping pragma has changed to //#

See: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit

The...

1dbffd48ea49ee278454d6b1c632b7ba4bbf1868 authored over 11 years ago by Matt Robenolt <[email protected]>
Fix output of statement: `new function(){...};`

Close #209

22a038e6a23d1c1e8c5068b73f8af059521a6f2d authored over 11 years ago by Mihai Bazon <[email protected]>
v2.3.5

f652372c9a55ac7c6c3d965f0dff47bf0d0c0b3e authored over 11 years ago by Mihai Bazon <[email protected]>
Fix package.json (use `repository` instead of `repositories`)

ad1fc3b71ad0c5d24fde1b5be5cfdbdeced1dedc authored over 11 years ago by Mihai Bazon <[email protected]>
v2.3.4

2b40a5ac62102f6e61a891afa1276eeba948f6a4 authored over 11 years ago by Mihai Bazon <[email protected]>
Add `--expr`, an option to parse a single expression (suitable for JSON)

ca3388cf5a27e48b8d41ba41114dd329de4708ee authored over 11 years ago by Mihai Bazon <[email protected]>
Only compress code in `new Function` if all arguments are strings.

caa8896a8a9d619334c21e49964e4a6c1a1a15eb authored over 11 years ago by Mihai Bazon <[email protected]>
v2.3.3

d13aa3954d2c0c5145b32c9623a05f383a93e0c3 authored over 11 years ago by Mihai Bazon <[email protected]>
Compress code passed to `new Function` if it's a constant.

Only for `--unsafe`.

Close #203

f64539fb7692c7fbfed0b266afea95d370453ddb authored over 11 years ago by Mihai Bazon <[email protected]>
Fix a["1_1"]

Close #204

d56ebd7d7b8de0b46ce203b580df28d76fa16692 authored over 11 years ago by Mihai Bazon <[email protected]>
Merge pull request #202 from nschonni/add-travis-ci

Add CI build for supported Node versions

3edfe7d0ee644a5ea0383fe02152b4f7f578cfcb authored over 11 years ago by Mihai Bazon <[email protected]>
v2.3.2

7f77edadb36bb4d29a2b6b1203eb037bb2aa0604 authored over 11 years ago by Mihai Bazon <[email protected]>
Use the negation hack rather than parens for a toplevel function expression call

(only in !beautify mode)

a9511dfbe5c0d96d8cacb87582aa9a19737bbb98 authored over 11 years ago by Mihai Bazon <[email protected]>
Fix is_assignable

(not likely to be noticed, it's only used in `strict` parse mode)

064e7aa1bbb70baec40a9812a8801627846bde2f authored over 11 years ago by Mihai Bazon <[email protected]>
Add Travis build badge to README

46814f88d93f3ed1375c80f084a524722d61cb38 authored over 11 years ago by Nick Schonning <[email protected]>
Add CI build for supported Node versions

4a19802d0cb49aea001f43c0dd7ea2dbe2a67443 authored over 11 years ago by Nick Schonning <[email protected]>
add a test for zero-length string in is_identifier_string, which is used in property compression. Also added a test exercising the change.

1e9f98aa51fa87678c6d5191903fc249df4f3e35 authored over 11 years ago by Trey Griffith <[email protected]>
Fix property names

Close #199

11e24d53a195685578abe76b6ef34cb80f3a5730 authored over 11 years ago by Mihai Bazon <[email protected]>
v2.3.1

0f509f8336b2cacff664f29255534f49c3f8b109 authored over 11 years ago by Mihai Bazon <[email protected]>
Added test cases for #104.

Signed-off-by: Justin Lau <[email protected]>

672699613e79c24d4e744313f5c0a51400958d8a authored over 11 years ago by Justin Lau <[email protected]>
Better fix for equality of typeof ... against "undefined"

a6ed2c84ac65f68dc6cf102dffb44f3b00fd0277 authored over 11 years ago by Mihai Bazon <[email protected]>
Fixed typeof undefined optimization and updated related test case to

accomodates the sort behaviour changes made in commit
mishoo/UglifyJS2@aebafad41eab48f43ed649ce8c...

a1958aad563030b76bf4d9af7bf80a160c625e27 authored over 11 years ago by Justin Lau <[email protected]>
Merge pull request #195 from kjbekkelund/typo

Fix typo in bin and readme

645d5bdbc53d2293ed329a4c55b2af2cdeb5ace2 authored over 11 years ago by Mihai Bazon <[email protected]>
Fixed dot properties not optimizing unicode identifiers. Signed-off-by: Justin Lau <[email protected]>

9af2bbffde2653237b36a06b005209be9f6cc1e6 authored over 11 years ago by Justin Lau <[email protected]>
Added test scenario with unicode in properties name.

Signed-off-by: Justin Lau <[email protected]>

fcd544cc106bbd04ca8003046fa76154cdb4046e authored over 11 years ago by Justin Lau <[email protected]>
Fixed dot property issue with invlid identifier names.

Signed-off-by: Justin Lau <[email protected]>

1e3bc0caa0a8ad8c3bcab07d539ee153ea8e96b3 authored over 11 years ago by Justin Lau <[email protected]>
Added scenario in test case where properties shouldn't be accessed with

dotted syntax even with screw_ie8 option.
Signed-off-by: Justin Lau <[email protected]>

8227e8795b309b46e0f2ef998d7238198eb07425 authored over 11 years ago by Justin Lau <[email protected]>
Fix typo in bin and readme

790b3bcdc66061b63de0e2538a49c6f3edbdfc0e authored over 11 years ago by Kim Joar Bekkelund <[email protected]>
Merge pull request #194 from ulikoehler/master

Add README syntax highlighting

d6e6458f68a258e2a3694069005ec7999180748f authored over 11 years ago by Mihai Bazon <[email protected]>
Add README syntax highlighting

a54b6703c095880eb048574e2a1d9dbb21a0b680 authored over 11 years ago by Uli Köhler <[email protected]>
Take two. v2.3.0

8e6266136dd7e7c14b53219bf8c3f08d58778e7e authored over 11 years ago by Mihai Bazon <[email protected]>
v2.3

5c22a1bdf5e66df68593b872dc7e226a9688b762 authored over 11 years ago by Mihai Bazon <[email protected]>
Workaround for missing `prefix` in UnaryExpression generated by Esprima

See #193

9794ebf88ce877c83ef522642bbd75f72bb80ac7 authored over 11 years ago by Mihai Bazon <[email protected]>
Make compress/mangle disabled by default, as before 5af144522a6fea302abdd0b63d48864de0664207

68394eed93472b2a778e1731b4e43ed0cc2359d1 authored over 11 years ago by Mihai Bazon <[email protected]>
Merge pull request #191 from michaelficarra/use-es5-member-access-with-screw-ie

use dotted member access when --screw-ie8 option given

753b4b6cc8aff37b9678b3bc3a883874bf4cac51 authored over 11 years ago by Mihai Bazon <[email protected]>
Merge pull request #190 from michaelficarra/patch-1

unbalanced parentheses in readme

a9c1b9f1385464309247fb2dd299ba6bb90bce10 authored over 11 years ago by Mihai Bazon <[email protected]>
fixes #189: use dotted member access when --screw-ie8 option given

5af144522a6fea302abdd0b63d48864de0664207 authored over 11 years ago by Michael Ficarra <[email protected]>
unbalanced parentheses in readme

483e0cadfbfd3d90a579665f87c19711f1ad77e3 authored over 11 years ago by Michael Ficarra <[email protected]>
Fix typeof evaluation for regex and function

4b818056cf1a19fe6251e026cac4894f618f0217 authored over 11 years ago by Roman Bataev <[email protected]>
Add tests for typeof evaluation

b956e5f1d9606f6fa6217826c4665316267e8a8f authored over 11 years ago by Roman Bataev <[email protected]>
Quote objects with numeric keys

37d7cb8565ec3edba6de464a42e7b163a4e30a58 authored over 11 years ago by Vladimir Zhuravlev <[email protected]>
fix package.json

2b8e206feca5d14242f5a659e724c5b0eefc4499 authored over 11 years ago by Mihai Bazon <[email protected]>
Output, to_ascii: Escape non-ascii chars with \xnn instead of \unnnn whenever possible.

81f5efe39a6d44d3037dda8bcff01195f5699139 authored over 11 years ago by Andreas Lind Petersen <[email protected]>
Don't use \xYY for identifiers

Fix #173

a869b854fa8a47b574f8ffbab882241ac04de70c authored over 11 years ago by Mihai Bazon <[email protected]>
uglifyjs binary: Make read_whole_file async and don't attempt to read STDIN synchronously.

69dde0462b409a709c4a8cddffc1bb8d641201e2 authored over 11 years ago by Andreas Lind Petersen <[email protected]>
Merge pull request #163 from mzgol/screw-oldie

renamed --screw-ie to --screw-oldie, documented it in README.md, indicat...

7628bcac01f908697ba321629f8d6ef149e5749e authored over 11 years ago by Mihai Bazon <[email protected]>
renamed --screw-ie to --screw-ie8, documented it in README.md, indicated it doesn't break IE9+

75f0bbe6e8a243571860626631a820b0787b9990 authored over 11 years ago by MichaÅ‚ GoÅ‚ębiowski <[email protected]>
Add support for enclose option. Closes #139.

478bf4dbdde27f1110e36a56a2f9be6c11847b68 authored almost 12 years ago by Jake Harding <[email protected]>
Don't print the warning on parse error, just throw a JS_Parse_Error.

Fix #159

e0f67baf2d73d80685781b55b9fbfa41539e0f37 authored almost 12 years ago by Mihai Bazon <[email protected]>
Keep legit code working even when --screw-ie is not passed.

Previously:

Without `--screw-ie`, UglifyJS would always leak names of function
expressi...

b14d3df3d26ca1de94cc617f1104391f750fd570 authored almost 12 years ago by Mihai Bazon <[email protected]>
Merge pull request #125 from devongovett/master

Allow inSourceMap option to be a generated JSON source map

24e58ee70c1951e6b70a72ae372766c97ef2b6ea authored almost 12 years ago by Mihai Bazon <[email protected]>
Support mangling toplevel names

Close #127

9b1a40dfc3681ce6410afd6fbae1e72bd34f0901 authored almost 12 years ago by Mihai Bazon <[email protected]>
Disable `unsafe` by default

Close #147

e4b078cff73ae82114a6c5e7c2ae67cda63cd356 authored almost 12 years ago by Mihai Bazon <[email protected]>
Merge pull request #146 from mbostock/read-all-stdin

Read the entire STDIN.

3bd7ca9961125b39dcd54d2182cb72bd1ca6006e authored almost 12 years ago by Mihai Bazon <[email protected]>
Read the entire STDIN.

The problem with reading synchronously from /dev/stdin is that you can get a
spurious EOF when t...

f83aca65b75a93dd030b80c7b6c3f76456c32a81 authored almost 12 years ago by Mike Bostock <[email protected]>
Fix reordering comparisons

Close #143

aebafad41eab48f43ed649ce8c77e8f1528b50da authored almost 12 years ago by Mihai Bazon <[email protected]>
Add `--screw-ie` option

For now the implication is that UglifyJS will not leak a function
expression's name in the surro...

26746ce3167a768479435588dd9099bb7408018f authored almost 12 years ago by Mihai Bazon <[email protected]>
Drop last `default:` if it's the last branch and empty

Close #141

dac6efb43d7112f697b863fc6783e6324e0aa4c0 authored almost 12 years ago by Mihai Bazon <[email protected]>
Compress boolean constants after evaluation

Close #137

8880f4824c2214b1a6bd6ebc954a04d38124dadb authored almost 12 years ago by Mihai Bazon <[email protected]>
Add license

Close #131

cb0c576bddced8facf514aca00023af834353298 authored almost 12 years ago by Mihai Bazon <[email protected]>
Fix compressing `do {...} while (false)`

It's not safe to transform it to {...} because the body might contain
`break`. The solution cou...

3a591c43fedcf07e9303773dbb0852396729a402 authored almost 12 years ago by Mihai Bazon <[email protected]>
v2.2.5

db66eca958b06e3082014fac95217911bbcfbee3 authored almost 12 years ago by Mihai Bazon <[email protected]>
Allow inSourceMap to be a generated JSON source map instead of just a file name

f2767452e609cefecd8bff987c077d956b7b1534 authored almost 12 years ago by Devon Govett <[email protected]>
Force space after literal regexp when used in "instanceof" or "in"

Close #118

916faf0a486fb540273629ef6c80d1087d1fd4ae authored almost 12 years ago by Mihai Bazon <[email protected]>
Give up evaluating (unary-prefix '-' 0)

Close #117

------

JS, WHY YOU SUCK SO BADLY? ;-(

f36e4e9a785e9c1d5bc6212589aa745f5ef487c0 authored almost 12 years ago by Mihai Bazon <[email protected]>
Fix parens for NaN

Close #116

fdf8b5eb71f762c6a021775609a6333ed110f17b authored almost 12 years ago by Mihai Bazon <[email protected]>
Fix parens for negative numbers

Close #115

de7ec7f1b7e387f933daef7ef035583a8ca8b715 authored almost 12 years ago by Mihai Bazon <[email protected]>
Fix parens for AST_New

Close #114

3c8a0bdff49b5613fd65ec4a1420451bb69bd104 authored almost 12 years ago by Mihai Bazon <[email protected]>
Fix handling of constants

Close #113

9e8ba27dcdfd39d01b8aa0bbf92fd03a44844acc authored almost 12 years ago by Mihai Bazon <[email protected]>
Ugly hack to print comments before return/throw statements

Close #112

719a8fd10256da8c7a5d28d0125fefdfff1ba187 authored almost 12 years ago by Mihai Bazon <[email protected]>
Merge pull request #111 from mattrobenolt/safer-sourcemap

Wraps sourceMappingURL in a multiline comment. Fixes #108

3a22e917de1b4425255f2db514f30f42c5c6cec6 authored almost 12 years ago by Mihai Bazon <[email protected]>