From bd1fcec14bb43c2a310938807240415f44184076 Mon Sep 17 00:00:00 2001 From: dead-horse Date: Mon, 19 Nov 2018 14:05:56 +0800 Subject: [PATCH 1/2] deps: use circular-json-for-egg to remove deprecate message --- .autod.conf.js | 4 ---- lib/egg.js | 2 +- package.json | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.autod.conf.js b/.autod.conf.js index 17fdbcfafe..01c406db87 100644 --- a/.autod.conf.js +++ b/.autod.conf.js @@ -27,9 +27,5 @@ module.exports = { '@types/koa-router', '@types/urllib', ], - keep: [ - // circular-json > 0.5.5 will output some deprecate message, and we don't want to use flatted - 'circular-json', - ], test: 'scripts', }; diff --git a/lib/egg.js b/lib/egg.js index 826b3b55f9..80e5bb33ac 100644 --- a/lib/egg.js +++ b/lib/egg.js @@ -9,7 +9,7 @@ const cluster = require('cluster-client'); const extend = require('extend2'); const ContextLogger = require('egg-logger').EggContextLogger; const ContextCookies = require('egg-cookies'); -const CircularJSON = require('circular-json'); +const CircularJSON = require('circular-json-for-egg'); const ContextHttpClient = require('./core/context_httpclient'); const Messenger = require('./core/messenger'); const DNSCacheHttpClient = require('./core/dnscache_httpclient'); diff --git a/package.json b/package.json index d1699970c1..2e5ff6260c 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "accepts": "^1.3.5", "agentkeepalive": "^4.0.0", "cache-content-type": "^1.0.1", - "circular-json": "0.5.5", + "circular-json-for-egg": "1.0.0", "cluster-client": "^2.1.1", "debug": "^4.0.1", "delegates": "^1.0.0", From 0e1ff943fb930ef97ceedcd617640cc0558299d8 Mon Sep 17 00:00:00 2001 From: dead-horse Date: Mon, 19 Nov 2018 14:07:47 +0800 Subject: [PATCH 2/2] f --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2e5ff6260c..1058101aaf 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "accepts": "^1.3.5", "agentkeepalive": "^4.0.0", "cache-content-type": "^1.0.1", - "circular-json-for-egg": "1.0.0", + "circular-json-for-egg": "^1.0.0", "cluster-client": "^2.1.1", "debug": "^4.0.1", "delegates": "^1.0.0",