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

fix duplicated test names

previously test cases with the same name would be skipped except for the last one

`test/run-tes...

c525a2b1907fdef36acffdeea4cf02ae476d8399 authored almost 8 years ago
enhance `global_defs`

- support arrays, objects & AST_Node
- support `"a.b":1` on both cli & API
- emit warning if vari...

e275148998638bdcf795257ed03941ca34e33018 authored almost 8 years ago
remove extraneous spaces between ++/+/--/-

fixes #1377
closes #1488

ac0b61ed6e1bce4794100c5bb83f6e5b22996d8a authored almost 8 years ago
Add .gitattributes to checkout lf eol style

closes #1487

c06a50f338c1b473f38577d720ccf9b4ff22dc4f authored almost 8 years ago
improve `--beautify bracketize`

reduce whitespaces from if-else statements

fixes #1482
closes #1483

09f9ae2de9fb2a328e088ab82ad1e49731c971fb authored almost 8 years ago
add benchmark & JetStream tests

- `test/benchmark.js` measures performance
- `test/jetstream.js` verifies correctness
- configura...

7e6331bb397e1dec0a4e15233a2afca3a4e9daff authored almost 8 years ago
evaluate AST_SymbolRef as parameter

fix invalid boolean conversion now exposed in `make_node_from_constant()`

closes #1477

974247c8c0e57901ef776e86784c8c9a1b87b5de authored almost 8 years ago
introduce `unsafe_proto`

- `Array.prototype.slice` => `[].slice`

closes #1491

ec64acd2c8d8573abd5b77f8f8946767444841bb authored almost 8 years ago
clean up `max_line_len`

- never exceed specified limit
- otherwise warning is shown
- enabled only for final output

clos...

8898b8a0fe87f71c0ea2d35face6dfbf11db27ec authored almost 8 years ago
`-c sequences=N` suboptimal at N expression cutoff

N = 2:
a;
b;
c;
d;
was:
a, b;
c;
d;
now:
a, b;
c, d;

fixes #1455
closes #1457

f584ca8d0766fb6d2a254dd4487afa91ed2c5034 authored almost 8 years ago
fix stray else in compress with conditionals=false

closes #1449

d11dca3cf9e34302ce12a6c9f1cd81b22551f2ba authored almost 8 years ago
tweak do-while loops

- `do{...}while(false)` => `{...}`
- clean up `AST_While` logic

closes #1452

ae4db00991c6155fde42bd00c30614d922a4219a authored almost 8 years ago
fixes & improvements to [].join()

fixes
- [a].join() => "" + a
- ["a", , "b"].join() => "a,,b"
- ["a", null, "b"].join() => "a,,b"...

100307ab31e89075a5b0e56d47597a0525dd43a6 authored almost 8 years ago
drop unused: toplevel, assign-only

- assign statement does not count towards variable usage by default
- only works with assignments...

148047fbbf1951a52e69170edf510c59b3899e6c authored almost 8 years ago
improve string concatenation

shuffle associative operations to minimise parentheses and aid other uglification efforts

closes...

6b3c49e45837e8e1b32b60fe3b217b965ac16efd authored almost 8 years ago
enable typeof "undefined" for general use

move out of unsafe, guard corner case with screw_id8 instead

closes #1446

e5badb954157d41dba3cc74f8813a90a145d9ca3 authored almost 8 years ago
fix corner case in keep_fnames

happens when inner function:
- just below top level
- not referenced
- `unused` is disabled

clos...

fa668a28b47e06d838659d4e0910460c84ca3a61 authored almost 8 years ago
remove unused AST_Scope.nesting & AST_SymbolRef.frame

they are computed but never used

closes #1444

686a496b1c8c3762768c0da6ef98b37167d4d4ba authored almost 8 years ago
fix crash in unsafe replacement of undefined

remove extraneous call to AST_SymbolRef.reference()

closes #1443

11676f9d72e667ea14ce380ed448da948e79f85e authored almost 8 years ago
Improve optimizing `function() { if(c){return foo} bar();}`

closes #1437

dd31d12a9110b34c1b45a72b6e1f2b64c2d7afe9 authored almost 8 years ago
Merge pull request #1481 from anatdagan/propsmangle_only_identifiers

verify that property names after mangle are legal

eb55d8a9bb37cc28303ace91337784dbf0777d03 authored about 8 years ago
in mangle_names there is a check that the variable name is legal and that it is not a reserved word. This should apply to propsmangle as well.

81f1df14d7c931cddedad9666a7c57f4373ec918 authored about 8 years ago
Merge branch 'master' into harmony

4bd31607f665499543bbc83192225203ae6763d1 authored about 8 years ago
update test (#1441)

improved reduce_vars & binary operands produce more optimal results

7f8d72d9d37396f2da05d5d824f74bd414c30119 authored about 8 years ago
fix mangling collision with keep_fnames (#1431)

* fix mangling collision with keep_fnames
fixes #1423

* pass mangle options to figure_out_sc...

1eaa211e0932105439d98d4f03a981f157f0a77c authored about 8 years ago
optimise binary operands with evaluate() (#1427)

- remove call to evaluate() in is_constant() and let nested optimize() does its job instead
- r...

0610c020b1544820be9898a285ab6c9066490552 authored about 8 years ago
augment evaluate to extract within objects (#1425)

- gated by `unsafe`
- replaces previous optimisation specific to String.length
- "123"[0] => 1...

0d7d4918eb6fb73c3cf9863479b3e66d38fad6df authored about 8 years ago
Allow parsing regexp after arrow token (#1439)

4728bc73ad6c6031029766df72a7e544af0511fc authored about 8 years ago
add missing LHS cases which global_defs should avoid

48284844a461e6113bb9911cdcdad7ab8a3d85de authored about 8 years ago
Fix compression with unused containing destructuring

52ce9a333c78ba372a995f56c3b0352a7b08f6e8 authored about 8 years ago
[ES6] output parens for yield when parented by AST_Dot or AST_Sub (#1419)

abbeb266b521be5530eca26c466161f76678969d authored about 8 years ago
Have minify() and tests use figure_out_scope() as uglifyjs CLI does

Clarify docs, help and tests for --support-ie8 and screw_ie8=false

ec2e5fa3a2e5cf421aebd94b93c668b18e540c69 authored about 8 years ago
Add preventive test involving non-ascii function identifiers

da17766ddda3b89f94706ad7e329faa66a3e3a3e authored about 8 years ago
Fix regression with non-ascii function identifiers

Regression since 110a1ac885ba224cbc677e42695e252068edd267

b11c5151bc23f91d3ef63cc952f5b83073029e0c authored about 8 years ago
Add note about name mangling when using --mangle-props=unquoted (#1314)

0913db8c84c670a2d34fd312295e54c679807558 authored about 8 years ago
Merge branch 'master' into harmony

962b1f3d409934e1c1603c730d574ce56eaa2a58 authored about 8 years ago
remove npm-shrinkwrap.json to work around [email protected] bug (#1384)

5c7705fcada66f35878427d620a194ad9d2f2918 authored about 8 years ago
Merge branch 'master' into harmony

3ee46e91e802fb8bf20656bce115375c5f624052 authored about 8 years ago
v2.7.5

f6372483a0c555a3aaf900ffa1a9ccc6585b59f9 authored about 8 years ago
Merge branch 'master' into harmony

ee26e7f11bad3db89e2ec752a27c03413a752bb8 authored about 8 years ago
Fix flag name in readme

937f534392256b3ec5bb39d02fd3cd08dd977037 authored about 8 years ago
Generate source map data from normalized files

If using `inSourceMap` this fix will ensure the copying of `sourcesContent` is based on potentia...

98f330658f5cd0dfb3004815d05f123f4110c2e0 authored about 8 years ago
Fix nlb property for template strings tokens starting with nlb

Also add .gitattributes to checkout lf eol style

1b2c02c944b5f5345a83431be6c67e3a38ee59c0 authored about 8 years ago
Do not allow arrow functions in the middle of an expression

0aa526e72cb498fbf2e9f91cfe34944f869efb40 authored about 8 years ago
feat: add option.outFileName for JS API, if absense, sourceMap.file field will deduced

0a35acbbe7e663c643c5b227e455816278e08b89 authored about 8 years ago
docs: add doc for option.outFileName

a7b3b0d3a55e2c48b63102dd111f27f8b9717788 authored about 8 years ago
Add --mangle-props-debug and fix --mangle-props=unquoted collision

Patch by @AshleyScirra

Based on: PR #1316

Renamed the CLI debug option to --mangle-props-debug...

2a9989dd18c01081c486fe9089e3bb64079c773b authored about 8 years ago
Do not overwrite options.comments + cleanup

79b98a9fe87f950607c601a45a3566a46c32f425 authored about 8 years ago
Fix case where a lonely var is used as computed property

c2112d588695791d71d6d362232be6c2b5641f90 authored about 8 years ago
Pass mangle options to figure_out_scope before mangling in tests

057de570e69b300ca472719cb234a32e593d34ec authored over 8 years ago
Introduce is_block_scope to AST_Node to determine block scope.

Will return false if AST_Node is instance of AST_Scope for now.

5f6825f9ecc7a98fc04b33851275c5eea30f9360 authored over 8 years ago
Remove AST_ObjectComputedKeyVal

7e80a979a7f6bad21f54c63612dd4217ef5a7ca8 authored over 8 years ago
Merge branch 'master' into harmony

b7bb7061503c247393bd0aa8ae9dd80167028a98 authored over 8 years ago
v2.7.4

557b3e412fb44906e0a41dc2c209e5712bd67974 authored over 8 years ago
Don't filter shebangs when using the 'some' comment filter

Also clarify documentation a bit more about using regexp as filter

8d74f3437352e22b3fd18ce602a4378170ec6598 authored over 8 years ago
fix uses_arguments handling (broken since 6605d1578351)

Using the symbol declaration tracking of UglifyJS doesn't make sense here
anyway, `arguments` al...

266ddd96399afcdee56d9d58b287f912b8728342 authored over 8 years ago
Add an option for writing inline source map

e51c6ba38014fc73a4804a69c556d96f777bc0b3 authored over 8 years ago
Improve binding patterns for arrow functions

32c2cc33bbb05a70cd67106afb6913d4517d00de authored over 8 years ago
Make classes implicitly strict mode

947b8750e8a47b552a51ec38e3954a1bbb15db19 authored over 8 years ago
Remove console.log and add extra test case

6389e52305f0d2e75a7bc6f8703c8d163d04cb99 authored over 8 years ago
Add an option to wrap IIFEs in parenthesis

For #1307.

e05510f3bce78943f76649a4102c2f10bfccdaef authored over 8 years ago
Fix (typeof side_effect()) in boolean context

Fixes #1289 with suggestion by @rvanvelzen

fc9804b90955d3b38ac6e6c903a8c0e3f7945913 authored over 8 years ago
Optimize unmodified variables

4761d07e0bc3d4c53e0c9c72fc9c322c95cb090e authored over 8 years ago
[ES6] fix template string escaping of \${...}

88f6ff38d156fac213191e9e5cbe735819686a08 authored over 8 years ago
[ES6] fix parsing spread arguments that are expressions

4198095a9c755fb9051292d0ac74eb92b7c5271e authored over 8 years ago
Make all comment options in cli available in js api

Also removing more code within "loop" while at it.

0111497fc98d5098f81bc749f77da5734add37bb authored over 8 years ago
Improve support for binding pattern

Including improvements for parameters, variable assignment and
catch parameter.

13ed445607125a045e979df8abaa3d02fee9eb24 authored over 8 years ago
Don't parenthesize arrow functions in parameter lists

1db50c3b169ee4195e1935013d6721628eb5b4bd authored over 8 years ago
Merge pull request #1277 from kzc/fix-string-plus-opt

Account for side effects in `string + expr` optimization

7d8dea3b2675f9d86ea15bb031b7fe166858d67e authored over 8 years ago
Account for side effects in `string + expr` optimization

25fc02743af0e3fec6b10ffdb5cee3b7f22b9889 authored over 8 years ago
Merge branch 'master' into harmony

7f6b5d662b4714af31b36ec485f56b778034427c authored over 8 years ago
implement optimization: (x = 2 * x) ---> (x *= 2)

0bd8053524760531eb582ef0716fcfe2104c3014 authored over 8 years ago
Fix quoting of properties

- Make AST_ConciseMethod child of AST_ObjectProperty.
- Fix some typos.

1c15d0db456ce32f1b9b507aad97e5ee5c8285f7 authored over 8 years ago
Merge branch 'master' into harmony

67461666dc3ba1cd75d067418092de145c687587 authored over 8 years ago
v2.7.3

1a78bbcd23e8db214872f1cd403f1b42503aaf9c authored over 8 years ago
Merge branch 'master' into harmony

45d81f881b03747aed08cb20dcd6911745128b86 authored over 8 years ago
Fix negate_iife transform to return a correct tree for nested IIFEs

Fix for #1256, partially reverts d854523783b4

8430123e9d2d12442312bbdcdf54004dc6d29c12 authored over 8 years ago
v2.7.2

614db97cca9d4ccf84af2597aa8b97285646e729 authored over 8 years ago
Merge branch 'master' into harmony

8c7d23dfb18554a48662155542bb38c96962e9eb authored over 8 years ago
Fix negate_iife regression #1254

d854523783b4a73d1dd734605f1c41fcae86e932 authored over 8 years ago
Ignore default reserved properties in compress test

7fa0dbdeb97d01eb40cb2ab492531eac3c0cd820 authored over 8 years ago
Merge branch 'master' into harmony

c644c1292d564caf980f10f2be48f6f839a0424f authored over 8 years ago
v2.7.1

781f26eda1327265f15ef5a213c69b5f9a551ca2 authored over 8 years ago
Add missing `{` in README

Also fix a trivial style mistake.

37f4395cc0a48b76258f576a0849a4fb35767541 authored over 8 years ago
Fix --mangle-props and --mangle-props=unquoted

Fixes: #1247

Fix --mangle-props and --name-cache inconsistency.
AST_Dot and AST_Sub properties ...

de619ae5a62472a76b0bfaa23d8e0b3068472196 authored over 8 years ago
Additional object literal property tests

86859f6d7e9e738ccf09a83a28962c9bad8e959f authored over 8 years ago
Add simple file globbing to bin/uglifyjs for Windows

72306b9885dffcc206b6637a9c22e54fa54a168d authored over 8 years ago
Add input file glob support to minify()

dcdcfe4d39e8769e8d7504f167610883e250d266 authored over 8 years ago
[ES6] Fix handling of semicolons in export parse.

d224d71b8dd9a113ac360f63895a7d6a7e2ef813 authored over 8 years ago
Fixed sourceMapIncludeSources and inSourceMap = string combination of the UglifyJS.minify function.

307b88d6ccecf3de4150450ac651594db1b8ba56 authored over 8 years ago
Moved test input files to test/input.

38756b1f269fec9fc7f13b82d014478662d00c4d authored over 8 years ago
Added test for #1236

85a09fc3b69cd4ea4b01151e235815b0796373f3 authored over 8 years ago
Fix unneeded parens around unary args in new expression.

fb049d3a81b744a5facf1f032b8b2815c410f178 authored over 8 years ago
Don't allow escaped surrogated identifiers + introduce ascii_identifiers

Don't use 2 characters for surrogates in identifiers because there is
support for the \u{} synta...

27d3669800a2a0ddb79f652b9bc7da0d64c091b9 authored over 8 years ago
Test reparsing test/compress/*.js output

67cca43358cfcf7ff2e7c9e5532bc975fb2591d0 authored over 8 years ago
Make distinction between * method and * operator

Also add quotes to properties when necessary,
this might be the case if the name isn't a valid
i...

110a1ac885ba224cbc677e42695e252068edd267 authored over 8 years ago
Fix computed getters + cleanup AST

3f8fc3a316a60b67acf09b2b2cf887f0209c7d71 authored over 8 years ago
Add more globals, whereof most defined after es5.1

Also do not pollute env with mocks replacing standard globals

88384cf351b33017ef4aa5253357cb2ff115fd2f authored over 8 years ago
Various property fixes

* Implement getter/setter with computed value
* Fix parsing getter/setter after static or genera...

72a9d799b6fce12ed39502eb552fc8c09ff2cc63 authored over 8 years ago
Legacy octal integer strict mode fixes

642273c29002e7676719f489d7fcf552974118f4 authored over 8 years ago