Procházet zdrojové kódy

removes winston-null-transport and uses the 'silent' option built-in winston instead

Zachary Boyd před 6 roky
rodič
revize
0b60f6f949
3 změnil soubory, kde provedl 8 přidání a 3 odebrání
  1. 5 0
      CHANGELOG.md
  2. 1 2
      package.json
  3. 2 1
      test/test.js

+ 5 - 0
CHANGELOG.md

@@ -1,5 +1,10 @@
 # Changelog
 
+## [4.0.0] - 2018-09-09
+
+### Changes
+- All methods now return promises instead of accepting callbacks. Methods now take advantage of async/await resulting in clearer code. Compatibility with node < v8 will be broken.
+
 ## [3.4.3] - 2018-08-10
 
 ### Added

+ 1 - 2
package.json

@@ -1,6 +1,6 @@
 {
   "name": "tor-router",
-  "version": "3.4.3",
+  "version": "4.0.0",
   "main": "src/index.js",
   "repository": "git@github.com:znetstar/tor-router.git",
   "author": "Zachary Boyd <zachary@zacharyboyd.nyc>",
@@ -35,7 +35,6 @@
     "socksv5": "git+https://github.com/lee-elenbaas/socksv5.git",
     "temp": "^0.8.3",
     "winston": "^3.0.0-rc5",
-    "winston-null-transport": "git+https://github.com/NCIOCPL/winston-null-transport.git#1.0.0",
     "yargs": "^11.0.0"
   }
 }

+ 2 - 1
test/test.js

@@ -19,7 +19,8 @@ nconf.defaults(require(`${__dirname}/../src/default_config.js`));
 var logger = winston.createLogger({
 	level: 'info',
 	format: winston.format.simple(),
-	transports: [new (require('winston-null-transport'))() ]
+	silent: true,
+	transports: [ new (winston.transports.Console)({ silent: true }) ]
 });
 
 const WAIT_FOR_CREATE = 120000;