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
c14e2805859a3d85788af5d694fca73a6782530e authored almost 8 years ago
bc3fa78e8cedfda4cc0eb7aa7bc7b00c5e860650 authored almost 8 years ago
fixes #1887
8c7c1077654a3923baebb27e62f7b1dc0a7892b5 authored almost 8 years agoMerging from master for 3.0.1
e0ae8da0892fa92ff6c471bfdaf1e8e725fd9035 authored almost 8 years ago81f1311b249dc7453f2dad00f8ad3d11988ddd64 authored almost 8 years ago
There was an implicit assumption that first character within surrogate header range implies the ...
2433bb4e52a5a9be06ed9ac344cc91fafac62ab1 authored almost 8 years ago- use underscores rather than dashes.
3dd328dce35ff92e43d1549bc13f36302bc01d75 authored almost 8 years ago014f428153c44a9a920b99320b91364f6ac3259b authored almost 8 years ago
Have `minify()` return `Error` in `result.error` rather than throwing it.
a3b2eb75bd57e78305c418242c538c41acf010e7 authored almost 8 years agoRe-order `AST_Binary` properties to make dump more readable.
closes #769
da295de82bfa9e1df39f45ee54e8e11ecce5dfb2 authored almost 8 years agofixes #1872
4f8ca4626efb15dc986785c89c51cbb3061e5f32 authored almost 8 years ago
- `options.output.ast` (default `false`)
- `options.output.code` (default `true`)
Merging from master for 3.0.0
3fac29a01787b07ce9e43fb87a17bde33123509d authored almost 8 years agob4c18f6b83501e56f8518db2e454be95e941b803 authored almost 8 years ago
Remove deprecated CLI option
2d99d06601013ab996d574d122b31df400055302 authored almost 8 years ago98cf95e5b5590cd2ecec9fb957f39bc2907c61eb authored almost 8 years ago
7313465cba988d5bdffa6024e9ffad9ae8d4763c authored almost 8 years ago
Determine if variables with non-constant values can escape and be modified.
fixes #1865
2c7ee956fd829624cacfdbde43d74ee8d3bb5e82 authored almost 8 years agoecf3563c45e7cbf58cc9b7528ee5804691420a60 authored almost 8 years ago
- extend expression types
- `a++`
- `a=x;`
- extend scan range
- `for(init;;);`
- `...
5a25d24b56067e99ea9e5edc890a66eecbacdd7c authored almost 8 years ago
bffdc8dca8bc5e695bf8a7c02d0bb012cc0fe9b6 authored almost 8 years ago
fixes #1859
69b566365303583ab7fa0e89288b86dbebc5c676 authored almost 8 years agoea9289771b79c273347af72fba024ca29cfa035d authored almost 8 years ago
Respect "funcs" and "vars" properly.
fixes #1850
2cb55b2ad0119852bc8714401992724d4fdb224d authored almost 8 years agofixes #1856
73d6438773a40aa5aa06354781334af79a67e42d authored almost 8 years agofixes #1852
5c6316a37d39a5641efe07e34945152a570909be authored almost 8 years agobbb5f2a89c9b68b35aec96ccc48a9d0ef250780a authored almost 8 years ago
- forbid redeclaration of `this`
- suppress probability for `this` within nested functions
Only need to avoid `var` within the initialisation block.
fixes #1841
9e626281716c0f11ed6b289d6a48c7b681a99a1e authored almost 8 years ago
- `const` without value
- `delete` of expression
- redefining `arguments` or `eval`
extend ...
9bf72cf75822044ae314b4646db9aefb1bd38284 authored almost 8 years ago64d74432f6e475df921d0ec49c4d15e5d2ae891d authored almost 8 years ago
fixes #1838
45ce3694807ee0daeb7e0f84c12ffbd8ca4f733c authored almost 8 years ago
- deep cloning of `AST_LabeledStatement`
- `L:do{...}while(false)`
- empty statement with labe...
6f954aa3d0a505791753c6cb6273e98d84895915 authored almost 8 years ago
- extract leading value with side-effects out of `var` statement
- reduce scanning of `AST_Defi...
fixes #1830
88e7a542cd8a8406f54c53cefe72944452f5e013 authored almost 8 years agoPerform the same cascaded scanning within `var` statement as we do on array of statements.
4dcff038cb1a6951a0b20d1345bfdb27d756301c authored almost 8 years agofixes #1825
b4b9305db0d3c4682848ed0a4214f1fee332a078 authored almost 8 years agofixes #27
28cfb65c47e7a2adeec35d8a78dd8bb0cf06af12 authored almost 8 years ago
- remove overlap in functionality of singular, consecutive reference of constant value
- remove...
`var a=1;a=2;x(a)` => `x(2)`
fix pre-existing issues
- reference counting on assignment
- w...
d1aa09c5c7af14bf5f17cc7ea2ab5d6be20e3220 authored almost 8 years ago
Side effects of `&&` and `||` have not mattered until #1814, which takes assignment expressions ...
6d5f341999da7dfad708979151932fd9d8242ebd authored almost 8 years agoThese are surprisingly common, as people reuse the same variable name within loops or switch bra...
4ffb6fce7668a1199284e4ce8be91fdaeaf2df0e authored almost 8 years agoPossible partial execution due to exceptions.
71a8d0d236d29015df2d1df18de11d661d17af2e authored almost 8 years ago
- allow immediate assignment after declaration of variable
- relax modification rule for immuta...
- let `collapse_vars` take care of value containing any symbols
- improve overhead accounting
- mention major version bump
- remove reference to internal API
- rename `screw_ie8` to `ie8`
- rename `mangle.except` to `mangle.reserved`
- rename `mangle.p...
Remove support for `@ngInject` as there are proper alternatives anyway.
32deb365d500f22f3215fe0edb094b38dba5b61a authored almost 8 years ago
- rename `AST_Seq` to `AST_Sequence`
- raise default sequences_limit from 200 to 800
Merging from master for 2.8.22
278577f3cb75e72320564805ee91be63e5f9c806 authored almost 8 years ago0d8597e904a2c49db001396aa0a8aeda70199b6d authored almost 8 years ago
04b89645058d85b8b67bb94fb9e39252160a0959 authored almost 8 years ago
`Infinity = beyond` should not become `1/0 = beyond`
d6fbc365e2f00eaaba0f1dd19e81037a64976def authored almost 8 years ago
- `-E` to report test cases with runtime errors
- favor returning expressions rather than empty...
- `optimize()` substituted expression
- compute nested property string correctly
fixes #1801...
0479ff0c54e8eea90ff5471bd9f77cb7f2e355c3 authored almost 8 years ago
- assignment
- boolean
- conditional
- sequence
- property access
- property assignment
- allow bare expression within try-block
- normalise ...
c2a1bceb773aab8875e0ffabf9f6b5199462f091 authored almost 8 years ago
`delete Infinity` returns `false` where as `delete (1/0)` returns `true`
e3c9c22c757112327b83f598b124690baf13ac52 authored almost 8 years ago0f4cd73dcc5d8a936ae3630a7992dbcb44274136 authored almost 8 years ago
Improved catch handling in `figure_out_scope()` means special case treatment of IE8 is no longer...
281e882d27ace48c5c415f19292e2590dd4473dc authored almost 8 years ago`AST_Node.optimize()` is context-aware, so don't cache its results to be used elsewhere.
Also...
cc6aa3e5ac13c0da9f2481181f5b4f11275ca8c8 authored almost 8 years agoe869779a988b519487da0d6e2bd8e4849cd6d9f1 authored almost 8 years ago
- property access to `null` & `undefined` always has side effects
- utilise `reduce_vars` to de...
Although it would be nice to enforce `AST_Node` cloning during transformation, that ship has sai...
ff289b90a92739641dcb7fc7f6c8ecf8ee74d15f authored almost 8 years ago
- better heuristics to avoid issues like #1532
- fix `TreeWalker.loopcontrol_target()`
- `co...
The inherently unsafe nature makes this feature unsuitable to be tested this way.
fixes #1774
4b90dc1fdb30274a7f1c2d38493fd31d6a553982 authored almost 8 years agoc20bb99a62ad036368569bd89b934f52258429cd authored almost 8 years ago
- `null`
- `true`
- `false`
- numeric literals
2377171200710685b9c5719e068d6fa43f365361 authored almost 8 years ago
This may be the case for parsing arrow functions,
as left side expressions are converted to des...
- fix handling of "-Infinity"
- add test case for "-0"
reverts #1481
48b3fe99524e1e85edd30f0a326c2f1136e150e4 authored almost 8 years agoWrap test code in IIFE before passing to `vm`
fixes #1768
fixes #1771
17f0cc359f50bf6fe9673ef87e3839c2f3c4553e authored almost 8 years ago
`NaN` already works by the happy accident of `Number.NaN`
fixes #1770
59a4e56bc81ce96b3ee81ad4f068cfc7d89a4790 authored almost 8 years ago
New expressions:
- property access
- array literal
- object literal
Miscellaneous:
- redu...
Merging from master for 2.8.21
35bae3fcd061cf736878b1005df62de15b727224 authored almost 8 years ago4614b5b46e5b6cfe771b2b222ff68b616f267cf3 authored almost 8 years ago
b7f6b73f4e4cd49da9a08afb3ce8b59c6b0c92b9 authored almost 8 years ago
9469c03ac976b3cfc1e52abf034ce76f1d6aca59 authored almost 8 years ago
fixes #1760
fixes #1761
- fix side effects in switch condition for singular blocks
- fix `undefined` confusion with loc...
- only output one top-level function or statement block
- reduce `rng()` granularity from 2^32 ...
- count iterations from `1` instead of `0`
- remove `unsafe` from default set of `minify()` tes...
- configurable set of `minify()` options
- test and report suspects upon failure
- continue af...
9a311705f53648388b8e6bd94c73f39aa15effeb authored almost 8 years ago
Merge unreachable case body with previous fallthrough case
fixes #1750
ee3fe0f4cd977213701579565ce68fc6a85916c3 authored almost 8 years ago
- remove `let` as variable name
- employ `crypto.randomBytes()`
- `test/run-tests.js` and `test/ufuzz.js` now shares the same `run_code()` and `same_stdout()`
...
- migrate transformation logic from `OutputStream` to `Compressor`
- always turn `undefined` in...
1ddc05725d078ccf73d711e376c3c530cd517cdb authored almost 8 years ago
- `import * from "x.js"`
- `import * as Name from "x.js"`
a729c43e875ca14725c0411de59e32e0a2220839 authored almost 8 years ago
Fix bug where a `throw` was generated without expression
Reenable try/catch/finally and fix t...
e6b76a48790cc3659c53673d0cc2a962acec3379 authored almost 8 years agoThey started off as functional groups I guess, but given the sheer number of options this is bec...
a0c3836ba0e3baca8d758d9855144ac15ec0ac8d authored almost 8 years agof8a71b56fd6979028d047ce2822878e9796fcec6 authored almost 8 years ago
11e9bdc42746832cfa1c52ca70b0171b31a422ba authored almost 8 years ago