Skip to content

Commit abd3bfb

Browse files
committed
Merge branch 'dev' into yarn
Conflicts: dist/index.js package.json scripts/test-coveralls scripts/test-full scripts/test-mocha
2 parents 3500788 + ededa89 commit abd3bfb

File tree

51 files changed

+1387
-456
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1387
-456
lines changed

CHANGELOG.md

+13
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
Change Log
22
===
3+
v0.9.0-beta.2
4+
---
5+
* Transformers refactoring
6+
7+
v0.9.0-beta.1
8+
---
9+
* **New option:** `controlFlowFlattening` allows to enable/disable **Control Flow flattening**. Control flow flattening is a structure transformation of the source code that hinders program comprehension.
10+
* **New option:** `controlFlowFlatteningThreshold` allows to set percentage of nodes that will affected by `controlFlowFlattening`.
11+
* Better `es2015` support: correct obfuscation of `TemplateLiteral`, `ArrayPattern`, `AssignmentPattern` nodes.
12+
* Obfuscation performance boost.
13+
* Huge internal refactoring.
14+
* Various bug fixes.
15+
316
v0.8.6
417
---
518
* additional fixes for https://github.com/javascript-obfuscator/javascript-obfuscator/issues/29

README.md

+10-8
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
JavaScript obfuscator for Node.js is a free obfuscator with wide number of features which provides protection for your source code.
1010

1111
* without any limits and sending data to a server;
12-
* compatible with ES6;
12+
* compatible with `es2015`;
1313
* tested on Angular2 bundle.
1414

1515
Online version: [javascriptobfuscator.herokuapp.com](https://javascriptobfuscator.herokuapp.com)
@@ -25,6 +25,8 @@ Example of obfuscated code: [gist.github.com](https://gist.github.com/sanex3339/
2525
[![Build Status](https://travis-ci.org/javascript-obfuscator/javascript-obfuscator.svg?branch=master)](https://travis-ci.org/javascript-obfuscator/javascript-obfuscator)
2626
[![Coverage Status](https://coveralls.io/repos/github/javascript-obfuscator/javascript-obfuscator/badge.svg?branch=master)](https://coveralls.io/github/javascript-obfuscator/javascript-obfuscator?branch=master)
2727

28+
*NOTE! the README on the master branch might not match that of the latest stable release!*
29+
2830
## :warning: Important
2931
#####Obfuscate only the code that belongs to you.
3032

@@ -122,7 +124,7 @@ For available options see [options](#options).
122124
Usage:
123125
```sh
124126
javascript-obfuscator in.js [options]
125-
javascript-obfuscator in.js -output out.js [options]
127+
javascript-obfuscator in.js --output out.js [options]
126128
```
127129

128130
If the destination path is not specified through `--output` option, obfuscated code will saved into input file directory with name like `INPUT_FILE_NAME-obfuscated.js`
@@ -409,7 +411,7 @@ Available values:
409411
* `true` (`boolean`): encode `stringArray` values using `base64`
410412
* `false` (`boolean`): don't encode `stringArray` values
411413
* `'base64'` (`string`): encode `stringArray` values using `base64`
412-
* `'rc4'` (`string`): encode `stringArray` values using `rc4`. **About 30-50% slower then `base64`, but more harder to get initial values.** It is recommended to disable [`unicodeEscapeSequence`](#unicodeescapesequence) option with `rc4` encoding to prevent very large size of obfuscated code.
414+
* `'rc4'` (`string`): encode `stringArray` values using `rc4`. **About 30-50% slower than `base64`, but more harder to get initial values.** It is recommended to disable [`unicodeEscapeSequence`](#unicodeescapesequence) option with `rc4` encoding to prevent very large size of obfuscated code.
413415

414416
### `stringArrayThreshold`
415417
Type: `number` Default: `0.8` Min: `0` Max: `1`
@@ -432,7 +434,7 @@ Unicode escape sequence increases code size greatly. It is recommended to disabl
432434
## Preset Options
433435
### High obfuscation, low performance
434436

435-
Performance will 50-100% slower then without obfuscation
437+
Performance will 50-100% slower than without obfuscation
436438

437439
```javascript
438440
{
@@ -453,7 +455,7 @@ Performance will 50-100% slower then without obfuscation
453455

454456
### Medium obfuscation, optimal performance
455457

456-
Performance will 30-35% slower then without obfuscation
458+
Performance will 30-35% slower than without obfuscation
457459

458460
```javascript
459461
{
@@ -474,7 +476,7 @@ Performance will 30-35% slower then without obfuscation
474476

475477
### Low obfuscation, High performance
476478

477-
Performance will slightly slower then without obfuscation
479+
Performance will slightly slower than without obfuscation
478480

479481
```javascript
480482
{
@@ -493,7 +495,7 @@ Performance will slightly slower then without obfuscation
493495
```
494496

495497
## License
496-
Copyright (C) 2016 [Timofey Kachalov](http://github.com/sanex3339).
498+
Copyright (C) 2017 [Timofey Kachalov](http://github.com/sanex3339).
497499

498500
Redistribution and use in source and binary forms, with or without
499501
modification, are permitted provided that the following conditions are met:
@@ -513,4 +515,4 @@ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
513515
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
514516
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
515517
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
516-
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
518+
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

0 commit comments

Comments
 (0)