Browse Source

Dropped node@4 and node@5 support

sanex3339 7 năm trước cách đây
mục cha
commit
1509c34c94
7 tập tin đã thay đổi với 551 bổ sung425 xóa
  1. 2 2
      .babelrc
  2. 0 2
      .travis.yml
  3. 1 0
      CHANGELOG.md
  4. 0 0
      dist/index.js
  5. 9 7
      package.json
  6. 1 1
      scripts/test-compile
  7. 538 413
      yarn.lock

+ 2 - 2
.babelrc

@@ -3,7 +3,7 @@
     "retainFunctionParens": true
   },
   "presets": [
-    ["env", {
+    ["@babel/preset-env", {
       "targets": {
         "node": "4.8",
         "uglify": true
@@ -11,6 +11,6 @@
     }]
   ],
   "plugins": [
-    "array-includes"
+    "@babel/transform-runtime"
   ]
 }

+ 0 - 2
.travis.yml

@@ -2,8 +2,6 @@ sudo: false
 language: node_js
 
 node_js:
-  - "4"
-  - "5"
   - "6"
   - "7"
   - "9"

+ 1 - 0
CHANGELOG.md

@@ -2,6 +2,7 @@ Change Log
 ===
 v0.15.0
 ---
+* **Breaking change:** dropped `node@4` and `node@5` support.
 * **New CLI option:** `exclude` allows to exclude specific files or directories from obfuscation.
 
 v0.14.3

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/index.js


+ 9 - 7
package.json

@@ -1,6 +1,6 @@
 {
   "name": "javascript-obfuscator",
-  "version": "0.15.0-dev.0",
+  "version": "0.15.0-dev.1",
   "description": "JavaScript obfuscator",
   "keywords": [
     "obfuscator",
@@ -12,13 +12,14 @@
     "js obfuscator"
   ],
   "engines": {
-    "node": ">=4.8.0"
+    "node": ">=6.11.5"
   },
   "main": "dist/index.js",
   "bin": {
     "javascript-obfuscator": "./bin/javascript-obfuscator"
   },
   "dependencies": {
+    "@babel/runtime": "7.0.0-beta.40",
     "chalk": "2.3.1",
     "chance": "1.0.13",
     "class-validator": "0.8.1",
@@ -39,6 +40,9 @@
     "tslib": "1.9.0"
   },
   "devDependencies": {
+    "@babel/core": "7.0.0-beta.40",
+    "@babel/plugin-transform-runtime": "7.0.0-beta.40",
+    "@babel/preset-env": "7.0.0-beta.40",
     "@types/chai": "4.1.2",
     "@types/chance": "0.7.36",
     "@types/escodegen": "0.0.6",
@@ -55,17 +59,15 @@
     "@types/string-template": "1.0.2",
     "@types/webpack-env": "1.13.5",
     "awesome-typescript-loader": "4.0.0-0",
-    "babel-cli": "6.26.0",
-    "babel-loader": "7.1.2",
-    "babel-plugin-array-includes": "2.0.3",
-    "babel-preset-env": "1.6.1",
+    "babel-cli": "7.0.0-beta.3",
+    "babel-loader": "8.0.0-beta.1",
     "chai": "4.1.2",
     "coveralls": "3.0.0",
     "istanbul": "1.1.0-alpha.1",
     "mocha": "5.0.1",
     "pre-commit": "1.2.2",
     "rimraf": "2.6.2",
-    "sinon": "4.4.1",
+    "sinon": "4.4.2",
     "threads": "0.10.1",
     "ts-node": "5.0.0",
     "tslint": "5.9.1",

+ 1 - 1
scripts/test-compile

@@ -1,5 +1,5 @@
 #!/bin/bash
 
 $(yarn bin)/tsc -p tsconfig.test.json &&
-$(yarn bin)/babel test-tmp --out-dir test-tmp --source-maps inline --presets env &&
+$(yarn bin)/babel test-tmp --out-dir test-tmp --source-maps inline &&
 rsync -a --prune-empty-dirs --include '*/' --include '*.js' --include '*.json' --exclude '*' test/ test-tmp/test/

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 538 - 413
yarn.lock


Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác