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.6.0

d895c09c70e66a20fe4fd3a923e6b672437030b9 authored over 9 years ago
Fix output for "use asm" code from SpiderMonkey AST

(will only work properly if the SM tree contains "raw" properties for
Literal number nodes)

08623aa6a700f62e6b096917d31b0b7a2705d281 authored over 9 years ago
Build label def/refs info when figuring out scope

Fix #862

c898a26117c2687d5707a4e80d6058d5c8601165 authored over 9 years ago
Replace util.error with console.log

619adb0308dbc794e9c3b77185e886443e03df9e authored over 9 years ago
Rework has_directive

It's now available during tree walking, i.e. walker.has_directive("use
asm"), rather than as par...

7691bebea525e96cb74d52e0bb8f294cf778c966 authored over 9 years ago
Merge pull request #854 from kzc/moz-regexp-2

Have mozilla AST RegExpLiteral parser use regex.pattern and regex.flags

3c4346728e5067608b6393ba98e24849ac22adea authored over 9 years ago
Fix parsing invalid input

i.e. `x = 1.xe` — because parseFloat("1.xe") returns 1, this parsed as
`x = 1`.

Ref #857

18d37ac761d8f9bb3904d447ddbb0ac471fc161c authored over 9 years ago
Prevent ReDoS by not using a regexp to verify floating point numbers

`parseFloat` will return `NaN` for invalid numbers anyway, which is the check used to throw the ...

63d35f8f6db6d90d6142132d2d5f0bd5d3d698aa authored over 9 years ago
simplify mozilla AST RegExpLiteral token parse and handle corner cases of regex.pattern better

7dbe961b2d49533d54dfe5263f94de27de043316 authored over 9 years ago
Have mozilla AST RegExpLiteral parser use regex.pattern and regex.flags rather than non-standard `raw` property.

94c4daaf9ea67875ab1b720d1d7bceef7c690552 authored over 9 years ago
rename To_Moz_Literal to To_Moz_RegExp

37ee9de9021f1f34ed7d2f453f58348f2e74764f authored over 9 years ago
Fixed RegExp literal in mozilla AST generation/output and added a --dump-spidermonkey-ast flag

83db98ad3bc92797df7a1cde009893af9e3dbaf3 authored over 9 years ago
optimize `return undefined` and `return void 0`

7491d07666822fe943bd5f5768a5761b562c634a authored over 9 years ago
more tests for `return undefined` optimization

841a661071a70d1b1c222e7c0f35fb05c6b7b041 authored over 9 years ago
`return undefined` optimization no longer uses `return_void_0` option

bd0ae6569fd81f9f53d66b1c696e5394a0fa2bc2 authored over 9 years ago
Allow specification beautify options in tests

Caught an error in #847 as well - `output` wasn't passed anywhere which led to an exception. `op...

335e349314963e1761f7531656a64efaff548ceb authored over 9 years ago
Merge branch 'master' into harmony

392ac4ff3197e204a2feb8104b3544d8e948930e authored over 9 years ago
Stop building for io.js

2a88d07b3a22095bc0e3f6038f57f73c52685b4a authored over 9 years ago
fixes #845: \v escaping should be restricted to "screw_ie8" mode

a887cde9f295a9ac89c8f09417db5901b655dfba authored over 9 years ago
static properties

9ffed2bea6ff4cf2e487781adaee2ee7944e2d07 authored over 9 years ago
Starting ES6 classes

5f7cb6939c1d9006f208ffe804fef64aade0ee23 authored over 9 years ago
Accept keyword names as concise method names

64e7a00399a1bcdc9679f97db885e0bd00ed957f authored over 9 years ago
start concise methods

0d8dea9538c2305c3bacd507439b9f06abed2f2c authored over 9 years ago
Create a new symbol for methods' names

34213ea2f8c80dde85d31dffb2ef173dd6b7bc14 authored over 9 years ago
Make concise methods work with propmangle

c99eaae360c8baab973a7c9d7e14dbbb2ade8529 authored over 9 years ago
Just making sure that concise methods are separated by commas. When classes come, they won't be necessary.

da8c428a077df6c579f26de950dc9f1028f22bf0 authored over 9 years ago
Merge pull request #844 from fabiosantoscode/harmony-allow-of

Harmony: allow use of `of` as a name.

2babe737e0b9036f0b019dc4a80156817f6a89ce authored over 9 years ago
Allow 'of' to be a name.

2cce61c564936f17c1ae174f3f2920e6a0e66ae8 authored over 9 years ago
Merge branch 'master' into harmony

246ec416c04a450d01a7dc246a8483ed4a946ff6 authored over 9 years ago
Fix #836

b5623b19d499748d0b1cf97204180f9d4d2fc4a1 authored over 9 years ago
Merge branch 'master' into harmony

6be9c752d51f83dc04b9a5a2b07ea3147ce10acc authored over 9 years ago
Make_string was missing \v and wasnt reversing vertical tabs even though read_escaped_char coverts them

6b2861e0861968f1f7acae5cf964cc0e6244b0be authored over 9 years ago
add `--pure-funcs` option

it has the same effect as specifying `pure_funcs` in `--compressor`
option, however it's much ea...

d5138f74677012b301636cad6d218486e53265e2 authored over 9 years ago
upgrade yargs 3.5.4 -> 3.10.0

we need a version with better support for 'array' params
see: https://github.com/bcoe/yargs/pull...

eac67b281644d4363deebf5dd3d2a1322e3b2319 authored over 9 years ago
Merge pull request #829 from kzc/html_comment_ops

Fix other operator output producing <!-- or -->

ce100728246fbfece9741171febd4f454d404143 authored over 9 years ago
Fix other operator output related to <!-- or -->

dff54a6552c4d6764c85ac3c11c545ad3909f997 authored over 9 years ago
Using single quotes

76ed083e47f9b4c4a7c876f38c333cbff3e1f981 authored over 9 years ago
computed properties

b31918bbf0e58d89cd1d4321d50c46a6ed5464f7 authored over 9 years ago
Fix tests

1940fb682c7f29d3d82913d0b58d542d034c2556 authored over 9 years ago
Only encode <!-- and --> in strings when inline_script

17eef5a3c26bfa87879e270b1fa4743646bae559 authored over 9 years ago
Output `-- >` instead of `-->` in expressions. Escape `<!--` and `-->` within string literals.

9f1f21b810ba3b996236cc7ef6757657757a007a authored over 9 years ago
Merge branch 'master' into harmony

Conflicts:
lib/compress.js

b14496c742dcc6eebd4d962cba774b3090b7d9a5 authored over 9 years ago
v2.5.0

a8e67d157e9caa59bbaf47cd6208eaa583853abb authored over 9 years ago
have minify() call figure_out_scope() if needed to produce well formed "use asm" code

e870c7db45aca4cb1585d5b10e631ab293e8dc3a authored over 9 years ago
get rid of SCOPE_IS_NEEDED as it was always true

6500f8c52cc75c45a4fac16324d4e531e372874d authored over 9 years ago
Fix handling of "use asm" when no command line flags are passed to uglifyjs. SCOPE_IS_NEEDED is unconditionally true now. Refactored floating point literal parsing to be more in keeping with the AST class design.

4d2f7d83af839d78a381fc4faa79dbea3b2c8070 authored over 9 years ago
Pin dependencies with npm shrinkwrap

* Use `npm run shrinkwrap` to create a shrinkwrap file with all dependencies pinned
* Update dep...

99945fcd040b3f28360d69f5b8ab7b679e7b3375 authored over 9 years ago
Add proper support for "use asm"; blocks. Disable -c optimization within "use asm"; sections and preserve floating point literals in their original form. Non-asm.js sections are optimized as before. Asm.js sections can still be mangled and minified of whitespace. No special command line flags are required.

593677d2ff04f61a2230c18722ec89b820ee0307 authored over 9 years ago
add asm.js test

0d952ae43de50d85a2315b2a94594eaf5f498009 authored over 9 years ago
Implement shebang support

c69294c44929d728807bdeabac8a024f108f198b authored over 9 years ago
Merge pull request #808 from avdg/travis

Add node 4.x in Travis

2a06c7758e24a64740473c8031eafbb7fefa213f authored over 9 years ago
Add node 4.x in Travis

7ee1ec91a206e9b88bdbd4e47c9d206f91d90e11 authored over 9 years ago
Disable node 0.8 in Travis

233fb62bd818272ad07ca30636d8d9f1f9fcc85e authored over 9 years ago
Fix mozilla-ast after module loading changes

Need to explicitly qualify stuff now, since it's not evaluated in some
global scope.

Ref #636

6637c267a53ae7e21807da1da862fbae0bb880fd authored over 9 years ago
No longer use `vm` to load code.

Improves performance 2x on node > 0.10.

Ref #636

99233c44cc125fa1a96a47b863dbfb3ec0c3fadc authored over 9 years ago
Fix wrap_commonjs to include code first

(code could have directives, i.e. "use strict")

33528002b496728457cccd9ddf54d2e50bc7e3f2 authored over 9 years ago
use a valid SPDX license identifier

20542a37a88393393279ae031f8925efed1f4573 authored over 9 years ago
Control keeping function arguments with a single option

5fd12451f90eb6ae8f009da41197ad5da9e0fee8 authored over 9 years ago
Merge branch 'master' into harmony

991fa996553c4adf740eb3eb2481018034398c06 authored over 9 years ago
Add a test to make sure future generations don't hoist lets

3d7f73114d52acbba9f482bdd289986253ba2ec0 authored over 9 years ago
parse, output the let statement

dde9e293df99cb417c00a60290598a960f4992cc authored over 9 years ago
Merge pull request #794 from fabiosantoscode/feature/harmony-template-strings-2

Harmony: template strings

34685a6f5533fa370167edecb851d6afe30e7810 authored over 9 years ago
Merge pull request #786 from istr/anonymous-source-map

Allow for anonymous map generation using string type check

ba939ccd6ce239a68c3c1c975075f85e78de7673 authored over 9 years ago
Merge pull request #795 from fabiosantoscode/harmony-fix-cannot-destructure-crash

Fix crash, remove unused code and state variable.

9812c826e03d442dc22fece37ba843bf77eb0a11 authored over 9 years ago
Remove unused state variable in_parameters, and also remove unreachable code (try_an_object always returned an object!)

2fac2bbfe44c251e13316f43450900a828960d1f authored over 9 years ago
prefixed template strings, like "String.raw`foo\nbar`".

242c61be9485ce3ea1bc0752ff80c38468dc5ce9 authored over 9 years ago
Parse and output ES6 template strings. Yikes!

e1cb1a0e3ca2312fd403d10fee5960691287a436 authored over 9 years ago
allow for anonymous map generation using string type check

3a5f35484606914b54fb80540f51b37fae20282b authored over 9 years ago
Fix bad parsing of `new new x()()` constructs

Fixes #739

fcde6109b0138502a445a7571adc810b5b9e68ee authored over 9 years ago
Merge pull request #768 from fabiosantoscode/feature/harmony-destructuring-expression

Feature/harmony destructuring expression

af22b9c657494748e3d643a7b3a9fa74467a2c52 authored over 9 years ago
What about --mangle-props being on and --mangle being off?

adee5023c02ee929b68aa8a1ff3a220d67947831 authored over 9 years ago
play nice with propmangle

7ee8f3512eef5eb3fe7d2f678d6c110c3fc810f2 authored over 9 years ago
Starting destructuring expressions

dc5db9b6ca485647cff2e1821de5bf560ec83cc8 authored over 9 years ago
Don't change sequences that influence lexical binding in calls

Fixes #782

e3bd223dac41ed8fcbbc3a139d78c68bcd50f628 authored over 9 years ago
A little refactoring. Add a new function to get all symbols in a destructuring.

824ecfb8a278858cbc4b430ef91f23f498ca7109 authored over 9 years ago
Destructuring vardef in for..of and for..in

d4f17f29aec6ae9ddcc1b958f3fa4e02af606973 authored over 9 years ago
prepare AST_Destructuring for the Ents

ceebc466b9f5fb9da3c76a7efdfa6f5847e12312 authored over 9 years ago
Add holes in destructuring defs, also make them nestable

025d34bfa216eaa09819de58d174b6892bc7af29 authored over 9 years ago
Parse and compress destructuring VarDefs

c44c2d6c21b9d0e884ca47aac294ee23d883ecc6 authored over 9 years ago
Do not mangle a name if it is in a destructuring vardef.

e99bc914ca4159828dc139b0be02f4e8f97e827c authored over 9 years ago
Tolerate expansions in vardefs, too!

079aaa0d4858cb1ddbd8af9e49e50c63d2ced870 authored over 9 years ago
Merge branch 'master' into harmony

35b31bdd4e2d9e66325a20ffb042008cd7e1b3dd authored over 9 years ago
Merge pull request #773 from fabiosantoscode/harmony-typeof-arrows

Fix evaluating the typeof an arrow function.

c8b82583d2d42841911893e015e7c0fd31a6831a authored over 9 years ago
Merge pull request #774 from fabiosantoscode/feature/harmony-symbol

remove Symbol's argument when we're unsafe and Symbol is undeclared

9f9179ba1aa73bdd9d62be6408782d0e9b1d865e authored over 9 years ago
Merge pull request #775 from fabiosantoscode/feature/binary-literals

Parse ES6 number literals, round 2

872231a0ca8aa38714c822480cb3b2b89a100265 authored over 9 years ago
s/binary/number/g

36420183fd98107db055038bcf968335d947c1b7 authored over 9 years ago
Add new-style octal literals and make the B and the O case insensitive.

a8f8aa518b3c61e5dec847fb6d5d262bc8c595a8 authored over 9 years ago
remove Symbol's argument when we're unsafe and it's undeclared

4c12cccff9ed22ce924cbf0bad2424fbd89af98e authored over 9 years ago
Fix evaluating the typeof an arrow function. Using evaluate on used to cause a crash.

dcce4e5c6625e2ebb14d12801ce934890e47081f authored over 9 years ago
Merge pull request #771 from fabiosantoscode/feature/binary-literals

Parse binary number literals

56c0b834d64f332595c3cbf09665cb6a40f9951f authored over 9 years ago
Parse binary number literals

6f864402d3a026b23838c624caf6d1d2db3d1f6d authored over 9 years ago
Merge pull request #767 from vjeux/208

[Fix] --define replaces SymbolRefs in LHS of assignments

6c8db6eae108b0b3d672b8b3ae01a4603a9f4533 authored over 9 years ago
[Fix] --define replaces SymbolRefs in LHS of assignments

See #208 for context

3ff0b9e0c97f9eae70756763354e59fc0d675795 authored over 9 years ago
Merge pull request #736 from AlbertoGP/master

fromString option, use index from argument array for filename instead of "?"

464a942a95395722b0a928168bd9494e1e858d0d authored over 9 years ago
Merge pull request #729 from DrewML/keep_fnames_docs

Add keep_fnames compressor option to README.md

d7a4a4a462f5a9ff7a902fdf277701ddd9ae77d9 authored over 9 years ago
Merge pull request #763 from fabiosantoscode/feature/harmony-super

Feature/harmony super

8909e9e1cba5aed9400e12a635608a9a866e7e5f authored over 9 years ago
Super!

e80ed38772db814040e2cc7c2fe6840a82939b7b authored over 9 years ago
Fix mangling of property names which overwrite unmangleable properties

Fixes #747.

759b3f7d6df1cecaefd987218373ce3db3646845 authored over 9 years ago
Merge pull request #753 from Surgo/master

Support wrap and exportAll options for node.js tools.

958b6c2e57ea64cf876c3f884db2a76f11f7074f authored over 9 years ago
expand parameters

Conflicts:
test/compress/harmony.js

9863f0efa3e873a99cfa5b627c67e96761ee38de authored over 9 years ago