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 remove empty generators passed as parameter

766fafda8baefe6d150df27dfad7e99857c08557 authored over 8 years ago
Build with AppVeyor on windows

e8b23c779816442a1d4e06453f06ab5a187ac98e authored over 8 years ago
[ES6] Get compress and global_defs working for AST_Class

842ac27efbc8f81b3bc4140a396957d6cde89d9c authored over 8 years ago
Fix the document of keep_fnames option

9edbe93df5633bd13b1c001d066887e011ce767c authored over 8 years ago
Source map URL override from programmatic API

af37ecafe1c24e9fb06a371357d10a04446ff71e authored over 8 years ago
lib/sourcemap.js: Copy sourceContent from old souce-map to the new source-map. Should fix #882

41a9329409ca0f1273b6ccdcc9770713f44ec55a authored over 8 years ago
Template fixes

* Fixes #1147: template strings not obeying -b ascii_only true
* Allow evaluation of template ex...

0af42d1831ea4e187f889f03d812a08f949725ff authored over 8 years ago
Keep const in own scope while compressing

- Fixes #1205
- Fix provided by @kzc

7eb52d2837c9d77a389457ae84bfddd28f86cf27 authored over 8 years ago
Fix mangle with option keep_fnames=true for Safari.

Fixes: #1202

eb63fece2f48be2be5ee1090d7bb94889a12fd80 authored over 8 years ago
Fix error style for regex errors

2d8af8947e3bf2daa51bdc199c504122563375d1 authored over 8 years ago
Improve multi-line comment parsing

* Make sure comments are skipped correctly with surrogates
* Fix regression in multiline comment...

ff7f6139ba515aa289893955c5d1d7cb1d1ba7bc authored over 8 years ago
Backport mocha with test from harmony

2650182f47883aaaeddd731fffa0c4940d94cc36 authored over 8 years ago
v2.7.0

572b97b0bb48285497ffbffed9420468e1700956 authored over 8 years ago
Merge branch 'master' into harmony

0db7caf13b0cf4bf71ca00ff157718d17cb1c57f authored over 8 years ago
Fix output arrow function with 1 param with default value

Fixes #1090

d9bc6f303c7649811dedd1b5646c83df89c24588 authored over 8 years ago
Merge branch 'master' into harmony

6fd9b338ddb7ccf34237a82cc13b0b7cbfb287bc authored over 8 years ago
Don't convert all strings to directives from moz-ast

698705a820708ab2203869e1523b041030ad77cb authored over 8 years ago
Fix uses_with/uses_eval/directives state in block scope

d8d4e71b9ee022aeadc56821e086c641702009ee authored over 8 years ago
Introduce a test that tests the --self build

debc525fa117438d4971df3790f9f476fed65858 authored over 8 years ago
Allow sequences maximum length to be user configurable.

b7ef7840f3f0ab2bec09bec4d4b8a8bb8d50dc78 authored over 8 years ago
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 o...

5576e2737ad95c12d0a559015ff375c785232ec6 authored over 8 years ago
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 bu...

b40d5de69c61688dad8e9f5c1e99558e0e3bdc30 authored over 8 years ago
Extend unicode support

* Support \u{xxxx} syntax
* Add support for surrogate pairs
* Allow identifiers to have unico...

63c432f4fa0137b8dbdacdf51fbaa89d30aed646 authored over 8 years ago
Add ecma5 flag for codegen

54a783ba84892346213f61ccf524c3a48a7cb6e9 authored over 8 years ago
Add reserved words to list unescapable keywords

Additionals:
* Update list reserved keywords

fb2f8d1a512e5bb8f6b4281d09bbf71fc9a75f23 authored over 8 years ago
Allow input files to be map (url->filename)

85924bb32e1c27f555aad1651f4575b45bcbadb1 authored over 8 years ago
Various LineTerminator changes

* Escaped newlines should also produce SyntaxError
* Fix multiline comment parsing and add tests...

a97690fc724a7beba77d7fde449ea56676804933 authored over 8 years ago
Enable --screw-ie8 by default.

catch identifier is mangled correctly for ES5 standards-compliant JS engines by default.

Uncond...

02c638209ee22816b1324ff0c0f47b27db1336af authored over 8 years ago
Add Node API documentation for mangling options

030611b729af46d2239bd09c95f88e708660f254 authored over 8 years ago
Fix spidermonkey AST (ESTree) export and import, Array holes

Fixes: #1156 #1161

Also add test to exercise Uglify after spidermonkey export/import of itself.

335b72df03fb6593d4bac8ddcde7d1b128eb3c4e authored over 8 years ago
Move OctalEscapeSequence to read_escape_char

This should simplify and improve implementation, make it easier to
implement template strings, a...

3a7d53f3cfa81fc8df3cd61c9adf0ce6c28ecd30 authored over 8 years ago
Throw error if new.target is like new.foo

07785d0003e0c1669f60e348decac85b07502cdb authored over 8 years ago
v2.6.4

9676167aac715d2dd10918e2beb13b1a4a372616 authored over 8 years ago
Add exponentiation operator

6eaeb19a4a5ecbb890fc025591bb24d466d3efe0 authored over 8 years ago
Merge pull request #1155 from kzc/issue_1154

Fix conditional expressions of form (x ? -1 : -1)

1840a0b2827efdad64dcabcf44883a34e5ca06cc authored over 8 years ago
Fix conditional expressions of form (x ? -1 : -1)

Fixes #1154, #1153

ace8aaa0f4ad6ecae77e760473353f07b384880e authored over 8 years ago
Don't replace undefined, NaN and Infinity within with scope

0c003c92a85bd845dec8a10ee567c46b696c1403 authored over 8 years ago
Merge branch 'master' into fix-harmony

2246c793180e962f4477d82c0ebc166a57f318ee authored over 8 years ago
Keep master in sync with harmony

* Do not mangle when no mangle is required
* Improve use_asm reset while printing code

85fbf86d7b6517161004c4f7dbfd15df4c282e3e authored over 8 years ago
Fixes to prevent failing tests after merging master

* Add missing quote properties to AST_ObjectKeyVal
* Avoid test results being interpret as dir...

dda58244b6dcc6270386ac40e2264e3d10a7f38d authored over 8 years ago
Don't assume DEBUG is defined when exporting --self

Potential fix for #1148

aa82027a1721ee7233e92ab1b9f9ced43a8f17cf authored over 8 years ago
v2.6.3

55c592dd43bc72a2be6cdfbcce05d2645eed0656 authored over 8 years ago
Document the except option to mangle

Added documentation for the `except` option to the `mangle` option in the API reference.

fc1abd1c1152de0a297705d124e65d186181de10 authored over 8 years ago
Respect quote style in object literals

The option added in fbbaa42ee55a7f753f7cab9b1a905ccf73cf26d5 wasn't
being respected inside objec...

e645ba84cfc950183a222c2cce2ea6b94fe51226 authored over 8 years ago
Normalize error messages

6c99816855b650c6804a67f4891c339a3e8970f4 authored over 8 years ago
Restrict yield outside generators in strict mode

* Move some yield/generic tests from compress/harmony.js to
compress/yield.js
* Adjust error...

ca04508cd16f2ca8c6b6b7386df81b6afa7358f1 authored over 8 years ago
Don't mix strings with directives in output

* Don't interpret strings with escaped content as directive
* Don't interpret strings after em...

2149bfb7071dedbcd42d2e245bb9c2f6b41a43bc authored over 8 years ago
Only last parameter between parentheses can have spread

6b03b800b3d77506f75ed3c789dc0d40ea140149 authored over 8 years ago
Allow expand in array literals

f9cab7ad61e16853ed342f88d8469d8cdc3f2bd5 authored over 8 years ago
Fix test262 failures related to <, <=, in and instanceof

Fixed-by: @kzc

d7971ba0e439eb042fd880762bc7fa77ce1f3e73 authored over 8 years ago
Re-add parens after new expression in beautify mode

5c4cfaa0a75317582c979f9b50c1e562fbcfa40d authored over 8 years ago
Don't allow with statements in strict mode

bb9c9707aa6b4c625ad985798aea879080411ce1 authored over 8 years ago
Merge branch 'master' into harmony

0a3d780327d65b45ca69281af4af093c6c1b99dc authored over 8 years ago
Stop dropping args in new expressions

6c8e001feeeb957279814aa58be44d1ece8bdb6e authored over 8 years ago
Fix octal string strict mode tests

9c53c7ada739ece69a9330811e5413a7da74a19b authored over 8 years ago
Escape null characters as \0 unless followed by 0-7.

f99b7b630daf85f85393d4508e2676456f2a3c4b authored over 8 years ago
Don't drop unused if scope uses with statement

Fix provided by @kzc

ea31da24559b095a18f7615cfd3c992ecaf495a3 authored over 8 years ago
Throw errors in strict mode for octal strings

Adds a directive tracker for the parser/tokenizer to
allow parsing depending on directive context.

4d7746baf31405427209de0d8c44d9c8263a2563 authored over 8 years ago
Fix newline handling after yield

YieldExpressions can only be defined as:
* `yield`
* `yield` [no nlb] AssignmentExpression
* ...

b0555a123a208b24f14d03add0d992a846c1dd89 authored over 8 years ago
Merge branch 'master' into harmony

fa2934478161397bab1a42c2f877d977ee282c37 authored over 8 years ago
Improve yield support and restrict usage of strict

- Partially reverting 91cdb93e57 and eaf3911c31 and reimplement
- Add generators support for obj...

dcfc514c382363452eec1b634d471541bd6652d3 authored over 8 years ago
Catch errors when compression test fails to parse

31d5825a86a6bcee91187b4a3962e0cd0f3b0d93 authored over 8 years ago
Fix uglify attempting to rewrite invalid new expressions

8287ef67810f2332459fa157b26e556f55b36b98 authored over 8 years ago
Export tokenizer function

In uglify-js@1, both parser and tokenizer methods were exported

This allows to use tokenizer(...

5cb5305cf3a4dc075461630d5edd81cbfd04b9fc authored over 8 years ago
Do not allow newlines in regex

00ad57e393be6593c9a405c8b1277582361bd321 authored over 8 years ago
collapse_vars: Do not consider RegExp literals to be constants

Fixes #1100

09d5707a8a368d6498f39a8b9fd07226a1159d76 authored over 8 years ago
Add Symbol to builtins

8ad8d7b7177454fb9d430d4da31b01825ca4eff8 authored over 8 years ago
Merge branch 'master' into harmony

0357e5923fe28b499a34e6255483377e12e77893 authored over 8 years ago
Optimize if_return for single if/return cases.

Fixes #1089

1e390269d47e2a555f511556590d826938d572f9 authored over 8 years ago
Completely allow evaluating -0

bc49dfd27a800cfa2070464c236a1d56ed30bfca authored over 8 years ago
Never produce -0 when evaluating expressions (like -"")

Fix for #1085. The major case was already there, but more expressions can result in -0.

27eedbc302dea6a2af558bbf6bc8865fd2410837 authored over 8 years ago
Merge branch 'master' into harmony

f63803e3e3753253721a4d7abbbe2ff46f11eecc authored almost 9 years ago
Simplify iife `new` fix

as suggested by @rvanvelzen.

Added a test for IIFEs in nested contexts.

5f464b41e2ba95f4d81da262a260488d326eb633 authored almost 9 years ago
Only allow `var` definitions to be moved into the for-init clause

Fixes #1079

63be1f3a4d5d10ba923dd40ffd55f4e5b7d41372 authored almost 9 years ago
Do not apply negate_iife optimization to `new` expression

bcc1318d4b7275feee02f782700d6b6e4a68b54f authored almost 9 years ago
Merge branch 'master' into harmony

e36e07fa77859bcd461234856c06c95cee0cfffe authored almost 9 years ago
Retain comments before AST_Constants during mangle.

a0e03c9df47c411a40bceef02af2ce3dd1a329cc authored almost 9 years ago
Fix regression causing tests to fail on windows

6641dcafb60091f0f944fcd5269ca67cb66ada2a authored almost 9 years ago
Workaround for process.exit() tty output truncation.

Fixes #1055

d2945744f2dd569f4390d3bf3065e8a4e71fbf47 authored almost 9 years ago
Add node 6 to travis

35bc71662574d6bd537d0460d14e738ae4d3bb19 authored almost 9 years ago
Handle CR line endings in comments.

Fixes #1050

f39fd3d58384d9bafbd18d3c1ec927940eeba458 authored almost 9 years ago
Merge pull request #1053 from rvanvelzen/hoist_if_return_funs

Hoist functions when reversing if (x) return; ... vs. if (!x) ...

65887d9a56d8f3eb1e75cd924b4fd2c9065d0e11 authored almost 9 years ago
Merge pull request #1059 from not-an-aardvark/harmony

Avoid syntax error in yield assignments

d1b4f61f93b03bde93509206656bcd95f31e9220 authored almost 9 years ago
Add test cases for slightly more esoteric cases

e9224ab4441ddb352566a52b84f1384bf5b8a8d8 authored almost 9 years ago
Add test case for hoisting a single function

4d9a0856870fc8feb07771fe2e27d93c8613e857 authored almost 9 years ago
Avoid syntax error in yield assignments (fixes #1054)

5b893c8ec35c7e0a0e612889d0fe64b5f084f79c authored almost 9 years ago
Hoist functions when reversing if (x) return; ... vs. if (!x) ...

Fixes #1052

4fe630431c37ffb81466959e9ea9797d6d2de21a authored almost 9 years ago
Add `passes` compress option. Fix duplicate compress warnings.

c55dd5ed74888d533cf8402c6ba3612916ba2885 authored almost 9 years ago
Do not attempt evaluating class expressions

Broadly the same as function expressions - these actually are statements but
we're limited by th...

8571a08a930474b68cb0e2daf3c7e666dcdcb15e authored almost 9 years ago
Fixups after merge

68cc14f84678bf7777f777b668d6c006e65250d3 authored almost 9 years ago
Merge branch 'master' into harmony

f94497d1d6c37ebd72a9c2d83fc74980e1b82d17 authored almost 9 years ago
Parse comments without recursion to avoid RangeError.

Fixes #993

e4fa4b109a0db5691d91b3dfba0eac41ac21c0ef authored almost 9 years ago
Prevent endless recursion when evaluating self-referencing consts

Fix #1041

4b4528ee0552edb7ba1d24dad89e29880065e1c0 authored almost 9 years ago
Consider yield expressions as having side-effects

See #1043

eaf3911c3141a9b735e6e33c7147461d60c833c1 authored almost 9 years ago
Implement harmony generators and yield

Uses #716's implementation and adds tests.

Fixes #716.

91cdb93e579d22bc0a43baa766a7928d127b314c authored almost 9 years ago
Add base54.reset() to compress tests

Without this reset, char counts bleed to next tests. One test had a bad expect clause.

187a0caf9d2b283387b57b71dea6aa133b266638 authored almost 9 years ago
Actually limit sequence length.

Fix #1038

b5a7a231f7e9f09cc00e92c970d304d6071f7ac1 authored almost 9 years ago
Fix warnings for referenced non-hoisted functions.

Fixes #1034

Also added `expect_warnings` functionality to test framework.

3907a5e3b2c40904f2cb333ede23d6d59bb48c13 authored almost 9 years ago
Merge pull request #1032 from kzc/member

Simplify member(name, array) implementation.

b434b75b3676f5e3f42bf3817ac7dc1ab898b3d2 authored almost 9 years ago
Simplify member(name, array) implementation.

c70d176f359c5640d3eb64a639958bec5fe45f7e authored almost 9 years ago