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

print error stack in CLI (#1890)

c14e2805859a3d85788af5d694fca73a6782530e authored almost 8 years ago
mention `minify().error`

bc3fa78e8cedfda4cc0eb7aa7bc7b00c5e860650 authored almost 8 years ago
update `minify()` usage in `test/ufuzz.js` (#1888)

fixes #1887

8c7c1077654a3923baebb27e62f7b1dc0a7892b5 authored almost 8 years ago
Merge pull request #1885 from alexlamsl/harmony-v3.0.1

Merging from master for 3.0.1

e0ae8da0892fa92ff6c471bfdaf1e8e725fd9035 authored almost 8 years ago
Merge branch 'master' into harmony-v3.0.1

81f1311b249dc7453f2dad00f8ad3d11988ddd64 authored almost 8 years ago
fix Unicode handling in parser (#1884)

There was an implicit assumption that first character within surrogate header range implies the ...

2433bb4e52a5a9be06ed9ac344cc91fafac62ab1 authored almost 8 years ago
[3.x] fix documentation for beautify options (#1882)

- use underscores rather than dashes.

3dd328dce35ff92e43d1549bc13f36302bc01d75 authored almost 8 years ago
v3.0.1

014f428153c44a9a920b99320b91364f6ac3259b authored almost 8 years ago
return `Error` from `minify()` (#1880)

Have `minify()` return `Error` in `result.error` rather than throwing it.

a3b2eb75bd57e78305c418242c538c41acf010e7 authored almost 8 years ago
support dumping AST (#1879)

Re-order `AST_Binary` properties to make dump more readable.

closes #769

da295de82bfa9e1df39f45ee54e8e11ecce5dfb2 authored almost 8 years ago
deprecate low level API (#1877)

fixes #1872

4f8ca4626efb15dc986785c89c51cbb3061e5f32 authored almost 8 years ago
support `minify()` output as AST (#1878)

- `options.output.ast` (default `false`)
- `options.output.code` (default `true`)

e54748365cba0509c82c089cdc2ef6a8bb1a724b authored almost 8 years ago
Merge pull request #1876 from alexlamsl/harmony-v3.0.0

Merging from master for 3.0.0

3fac29a01787b07ce9e43fb87a17bde33123509d authored almost 8 years ago
Merge branch 'master' into harmony-v3.0.0

b4c18f6b83501e56f8518db2e454be95e941b803 authored almost 8 years ago
update documentation

Remove deprecated CLI option

2d99d06601013ab996d574d122b31df400055302 authored almost 8 years ago
fix test for #1865 (#1873)

98cf95e5b5590cd2ecec9fb957f39bc2907c61eb authored almost 8 years ago
v3.0.0

7313465cba988d5bdffa6024e9ffad9ae8d4763c authored almost 8 years ago
fix `unsafe` on `evaluate` of `reduce_vars` (#1870)

Determine if variables with non-constant values can escape and be modified.

fixes #1865

2c7ee956fd829624cacfdbde43d74ee8d3bb5e82 authored almost 8 years ago
kill `opera` (#1869)

ecf3563c45e7cbf58cc9b7528ee5804691420a60 authored almost 8 years ago
enhance `collapse_vars` (#1862)

- extend expression types
- `a++`
- `a=x;`
- extend scan range
- `for(init;;);`
- `...

dee5a27516cb574dda5fc3d23a64344f0ea654b6 authored almost 8 years ago
rename variables for better readability (#1863)

5a25d24b56067e99ea9e5edc890a66eecbacdd7c authored almost 8 years ago
update `test/benchmark.js` resources (#1864)

bffdc8dca8bc5e695bf8a7c02d0bb012cc0fe9b6 authored almost 8 years ago
restore report of supported options (#1861)

fixes #1859

69b566365303583ab7fa0e89288b86dbebc5c676 authored almost 8 years ago
improve literal return optimization (#1860)

ea9289771b79c273347af72fba024ca29cfa035d authored almost 8 years ago
enforce `toplevel` on other compress options (#1855)

Respect "funcs" and "vars" properly.

fixes #1850

2cb55b2ad0119852bc8714401992724d4fdb224d authored almost 8 years ago
fix \\n and \\r in template strings (#1857)

fixes #1856

73d6438773a40aa5aa06354781334af79a67e42d authored almost 8 years ago
fix class method formatting (#1853)

fixes #1852

5c6316a37d39a5641efe07e34945152a570909be authored almost 8 years ago
Update ISSUE_TEMPLATE.md (#1846)

bbb5f2a89c9b68b35aec96ccc48a9d0ef250780a authored almost 8 years ago
fix fuzzer on `this` (#1842)

- forbid redeclaration of `this`
- suppress probability for `this` within nested functions

76d19b60ad5f6c7191eece8f8d224bdf4d920599 authored almost 8 years ago
fix `unused` on for-in statements (#1843)

Only need to avoid `var` within the initialisation block.

fixes #1841

9e626281716c0f11ed6b289d6a48c7b681a99a1e authored almost 8 years ago
improve parser under "use strict" (#1836)

- `const` without value
- `delete` of expression
- redefining `arguments` or `eval`

extend ...

9bf72cf75822044ae314b4646db9aefb1bd38284 authored almost 8 years ago
update README for 3.x (#1840)

64d74432f6e475df921d0ec49c4d15e5d2ae891d authored almost 8 years ago
fix `AST_For.init` patch-up in `drop_unused()` (#1839)

fixes #1838

45ce3694807ee0daeb7e0f84c12ffbd8ca4f733c authored almost 8 years ago
fix label-related bugs (#1835)

- deep cloning of `AST_LabeledStatement`
- `L:do{...}while(false)`
- empty statement with labe...

ca32a09032b3e7d6aac1f0b01f67a0b67b3037f1 authored almost 8 years ago
Fix API reference examples (#1834)

6f954aa3d0a505791753c6cb6273e98d84895915 authored almost 8 years ago
improve `unused` (#1832)

- extract leading value with side-effects out of `var` statement
- reduce scanning of `AST_Defi...

f05d4f7af3659a481b06449584fa63e3772322e2 authored almost 8 years ago
fix `unused` on labeled for-loop (#1831)

fixes #1830

88e7a542cd8a8406f54c53cefe72944452f5e013 authored almost 8 years ago
improve `collapse_vars` on `AST_Var` (#1828)

Perform the same cascaded scanning within `var` statement as we do on array of statements.

4dcff038cb1a6951a0b20d1345bfdb27d756301c authored almost 8 years ago
fix parser bugs & CLI reporting (#1827)

fixes #1825

b4b9305db0d3c4682848ed0a4214f1fee332a078 authored almost 8 years ago
extend `cascade` into `a.b` (#1829)

fixes #27

28cfb65c47e7a2adeec35d8a78dd8bb0cf06af12 authored almost 8 years ago
clean up `collapse_vars` (#1826)

- remove overlap in functionality of singular, consecutive reference of constant value
- remove...

0f4f01b66cb2aa4356309c70a7d6a95618603630 authored almost 8 years ago
support safe reassignments in `reduce_vars` (#1823)

`var a=1;a=2;x(a)` => `x(2)`

fix pre-existing issues
- reference counting on assignment
- w...

5d9f1da3abc58bce95dd240bd586bedb4eb04771 authored almost 8 years ago
fix `reduce_vars` on conditionals (#1822)

d1aa09c5c7af14bf5f17cc7ea2ab5d6be20e3220 authored almost 8 years ago
fix `reduce_vars` on boolean binary expressions (#1819)

Side effects of `&&` and `||` have not mattered until #1814, which takes assignment expressions ...

6d5f341999da7dfad708979151932fd9d8242ebd authored almost 8 years ago
compress duplicated variable definitions (#1817)

These are surprisingly common, as people reuse the same variable name within loops or switch bra...

4ffb6fce7668a1199284e4ce8be91fdaeaf2df0e authored almost 8 years ago
fix `reduce_vars` within try-block (#1818)

Possible partial execution due to exceptions.

71a8d0d236d29015df2d1df18de11d661d17af2e authored almost 8 years ago
enhance `reduce_vars` (#1814)

- allow immediate assignment after declaration of variable
- relax modification rule for immuta...

1a498db2d3e520d1711144c423312c62a2673115 authored almost 8 years ago
fix variable substitution (#1816)

- let `collapse_vars` take care of value containing any symbols
- improve overhead accounting

44dfa5a318d6df8eff4741a351f24667708a9cab authored almost 8 years ago
update README (#1813)

- mention major version bump
- remove reference to internal API

251ff1d1af3209af99d37007691acd5a3b771cfb authored almost 8 years ago
unify CLI & API under `minify()` (#1811)

- rename `screw_ie8` to `ie8`
- rename `mangle.except` to `mangle.reserved`
- rename `mangle.p...

ec443e422c220619fe671166e467d3d8838b0cab authored almost 8 years ago
drop `angular` (#1812)

Remove support for `@ngInject` as there are proper alternatives anyway.

32deb365d500f22f3215fe0edb094b38dba5b61a authored almost 8 years ago
convert `AST_Seq` from binary tree to array (#1460)

- rename `AST_Seq` to `AST_Sequence`
- raise default sequences_limit from 200 to 800

2244743545e8e5a75b4cce219605588cd29581b1 authored almost 8 years ago
Merge pull request #1805 from alexlamsl/harmony-v2.8.22

Merging from master for 2.8.22

278577f3cb75e72320564805ee91be63e5f9c806 authored almost 8 years ago
Merge branch 'master' into harmony-v2.8.22

0d8597e904a2c49db001396aa0a8aeda70199b6d authored almost 8 years ago
v2.8.22

04b89645058d85b8b67bb94fb9e39252160a0959 authored almost 8 years ago
fix LHS cases for NaN & friends (#1804)

`Infinity = beyond` should not become `1/0 = beyond`

d6fbc365e2f00eaaba0f1dd19e81037a64976def authored almost 8 years ago
enhance `test/ufuzz.js` (#1803)

- `-E` to report test cases with runtime errors
- favor returning expressions rather than empty...

9a978843f516391495c4fd446f2e01c2f47369ff authored almost 8 years ago
fix a couple of bugs in `global_defs` (#1802)

- `optimize()` substituted expression
- compute nested property string correctly

fixes #1801...

0479ff0c54e8eea90ff5471bd9f77cb7f2e355c3 authored almost 8 years ago
fix `delete` corner cases (#1799)

- assignment
- boolean
- conditional
- sequence

cf72fe552f5a51ccfe40c32e0fb86d549e0ca848 authored almost 8 years ago
extend ufuzz generator (#1783)

- property access
- property assignment
- allow bare expression within try-block
- normalise ...

a1532eb076d506fbf87a04c0ec4f26e1929aa902 authored almost 8 years ago
fix `pure_getters` for chained property access (#1798)

c2a1bceb773aab8875e0ffabf9f6b5199462f091 authored almost 8 years ago
fix corner cases with `delete` (#1796)

`delete Infinity` returns `false` where as `delete (1/0)` returns `true`

e3c9c22c757112327b83f598b124690baf13ac52 authored almost 8 years ago
introduce "strict" to `pure_getters` (#1795)

0f4cd73dcc5d8a936ae3630a7992dbcb44274136 authored almost 8 years ago
fix `reduce_vars` on catch variable (#1794)

Improved catch handling in `figure_out_scope()` means special case treatment of IE8 is no longer...

281e882d27ace48c5c415f19292e2590dd4473dc authored almost 8 years ago
fix incorrect context in variable substitution (#1791)

`AST_Node.optimize()` is context-aware, so don't cache its results to be used elsewhere.

Also...

cc6aa3e5ac13c0da9f2481181f5b4f11275ca8c8 authored almost 8 years ago
enable `inline_script` by default (#1793)

e869779a988b519487da0d6e2bd8e4849cd6d9f1 authored almost 8 years ago
improve `pure_getters` (#1786)

- property access to `null` & `undefined` always has side effects
- utilise `reduce_vars` to de...

06cdb74279d01ed9b4b625200882611482333825 authored almost 8 years ago
implement delayed resolution for `reduce_vars` (#1788)

Although it would be nice to enforce `AST_Node` cloning during transformation, that ship has sai...

ff289b90a92739641dcb7fc7f6c8ecf8ee74d15f authored almost 8 years ago
optimise `do{...}while(false)` (#1785)

- better heuristics to avoid issues like #1532
- fix `TreeWalker.loopcontrol_target()`
- `co...

9b6bc67c3393507d0621eb3debbe8845b0eff52d authored almost 8 years ago
remove `--mangle-props` from fuzzing (#1777)

The inherently unsafe nature makes this feature unsuitable to be tested this way.

fixes #1774

4b90dc1fdb30274a7f1c2d38493fd31d6a553982 authored almost 8 years ago
Put expression after extend between parentheses if necessary (#1780)

c20bb99a62ad036368569bd89b934f52258429cd authored almost 8 years ago
exclude mangling of special property names (#1779)

- `null`
- `true`
- `false`
- numeric literals

951770fc689c3f69679c390d31bc9f728f3e8bda authored almost 8 years ago
Fix walker not able to handle destr pattern in spread when compressing (#1438)

2377171200710685b9c5719e068d6fa43f365361 authored almost 8 years ago
Allow AST_DefaultAssign as parameter (#1778)

This may be the case for parsing arrow functions,
as left side expressions are converted to des...

603d92effc92db460efb3d556f73b9a4421f4ec3 authored almost 8 years ago
fix `mangleProperties` on identifiers (#1776)

- fix handling of "-Infinity"
- add test case for "-0"

reverts #1481

48b3fe99524e1e85edd30f0a326c2f1136e150e4 authored almost 8 years ago
workaround Node.js bugs (#1775)

Wrap test code in IIFE before passing to `vm`

fixes #1768
fixes #1771

a4007418683f55fec52b8085bac5e4d545b70a0e authored almost 8 years ago
Allow empty destructuring (#1773)

17f0cc359f50bf6fe9673ef87e3839c2f3c4553e authored almost 8 years ago
fix mangleProperties of `undefined` & `Infinity` (#1772)

`NaN` already works by the happy accident of `Number.NaN`

fixes #1770

59a4e56bc81ce96b3ee81ad4f068cfc7d89a4790 authored almost 8 years ago
extend `test/ufuzz.js` (#1769)

New expressions:
- property access
- array literal
- object literal

Miscellaneous:
- redu...

1f1fccc45df9fdc8a77d2ee3f1ae36f029b31ee9 authored almost 8 years ago
Merge pull request #1766 from alexlamsl/harmony-v2.8.21

Merging from master for 2.8.21

35bae3fcd061cf736878b1005df62de15b727224 authored almost 8 years ago
Merge branch 'master' into harmony-v2.8.21

4614b5b46e5b6cfe771b2b222ff68b616f267cf3 authored almost 8 years ago
v2.8.21

b7f6b73f4e4cd49da9a08afb3ce8b59c6b0c92b9 authored almost 8 years ago
fix corner case in `switch` (#1765)

9469c03ac976b3cfc1e52abf034ce76f1d6aca59 authored almost 8 years ago
avoid confusion of `NaN` & `Infinity` with `catch` symbol of the same name (#1763)

fixes #1760
fixes #1761

d57527697fba37bfad50ca0283326a458cdea031 authored almost 8 years ago
fix corner cases in switch and undefined (#1762)

- fix side effects in switch condition for singular blocks
- fix `undefined` confusion with loc...

f7ca4f229795f87674d32e2df3de3cf1f8367a39 authored almost 8 years ago
speed up fuzzer code generation (#1757)

- only output one top-level function or statement block
- reduce `rng()` granularity from 2^32 ...

c076e7b60d356def1b94e5856034b38fc93312fd authored almost 8 years ago
minor tweaks to `test/ufuzz.js` (#1756)

- count iterations from `1` instead of `0`
- remove `unsafe` from default set of `minify()` tes...

4a55bb0be50a1faea3a752fdf708765d2419a8c4 authored almost 8 years ago
upgrade fuzzer (#1754)

- configurable set of `minify()` options
- test and report suspects upon failure
- continue af...

28ecea50a6ae0cc8c5bddca7764e5fd198a7730e authored almost 8 years ago
fuzz regexp literals, more constant numbers, typeof expression (#1755)

9a311705f53648388b8e6bd94c73f39aa15effeb authored almost 8 years ago
fix switch branch elimination (#1752)

Merge unreachable case body with previous fallthrough case

fixes #1750

ee3fe0f4cd977213701579565ce68fc6a85916c3 authored almost 8 years ago
minor tweaks to fuzzer (#1751)

- remove `let` as variable name
- employ `crypto.randomBytes()`

87f6e1b09146607a2bf1eaa080a645277c767dda authored almost 8 years ago
implement `test/sandbox.js` (#1749)

- `test/run-tests.js` and `test/ufuzz.js` now shares the same `run_code()` and `same_stdout()`
...

c934fc81426b0f896d23499f50ba3e86fe9d7725 authored almost 8 years ago
improve compression of undefined, NaN & Infinitiy (#1748)

- migrate transformation logic from `OutputStream` to `Compressor`
- always turn `undefined` in...

257ddc3bdb37efdb48fc23371f5f523e2044afd8 authored almost 8 years ago
combine rules for binary boolean operations (#1744)

1ddc05725d078ccf73d711e376c3c530cd517cdb authored almost 8 years ago
More variants of import added (#1738)

- `import * from "x.js"`
- `import * as Name from "x.js"`

2f93058c6e1aa5778e17d490811991902415b0f0 authored almost 8 years ago
Another variant of export added - export {Name}. (#1737)

a729c43e875ca14725c0411de59e32e0a2220839 authored almost 8 years ago
Massive extension of the fuzzer (#1697)

Fix bug where a `throw` was generated without expression

Reenable try/catch/finally and fix t...

e6b76a48790cc3659c53673d0cc2a962acec3379 authored almost 8 years ago
sort options in alphabetical order (#1743)

They started off as functional groups I guess, but given the sheer number of options this is bec...

a0c3836ba0e3baca8d758d9855144ac15ec0ac8d authored almost 8 years ago
v2.8.20

f8a71b56fd6979028d047ce2822878e9796fcec6 authored almost 8 years ago
fix missing preamble when shebang is absent (#1742)

11e9bdc42746832cfa1c52ca70b0171b31a422ba authored almost 8 years ago