egg-core
Advanced tools
Comparing version 4.28.1 to 4.29.0
4.29.0 / 2022-12-06 | ||
================== | ||
**features** | ||
* [[`0e48956`](http://github.com/eggjs/egg-core/commit/0e4895602bcc690e8e5ef6c6ccca64aed6732cbe)] - feat: enable asyncLocalStorage by default (#251) (fengmk2 <<fengmk2@gmail.com>>) | ||
4.28.1 / 2022-11-28 | ||
@@ -3,0 +9,0 @@ ================== |
@@ -15,2 +15,3 @@ 'use strict'; | ||
const Lifecycle = require('./lifecycle'); | ||
const enableAsyncLocalStorage = !!require('async_hooks').AsyncLocalStorage; | ||
@@ -41,3 +42,5 @@ const DEPRECATE = Symbol('EggCore#deprecate'); | ||
super(); | ||
// enable asyncLocalStorage by default | ||
// https://github.com/koajs/koa/pull/1721 | ||
super({ asyncLocalStorage: enableAsyncLocalStorage }); | ||
@@ -44,0 +47,0 @@ this.timing = new Timing(); |
@@ -9,2 +9,4 @@ 'use strict'; | ||
const debug = require('debug')('egg-core:lifecycle'); | ||
const utils = require('./utils'); | ||
const INIT = Symbol('Lifycycle#init'); | ||
@@ -19,4 +21,2 @@ const INIT_READY = Symbol('Lifecycle#initReady'); | ||
const utils = require('./utils'); | ||
class Lifecycle extends EventEmitter { | ||
@@ -23,0 +23,0 @@ |
@@ -7,3 +7,2 @@ 'use strict'; | ||
class Timing { | ||
@@ -10,0 +9,0 @@ |
{ | ||
"name": "egg-core", | ||
"version": "4.28.1", | ||
"version": "4.29.0", | ||
"description": "A core Pluggable framework based on koa", | ||
@@ -36,3 +36,3 @@ "main": "index.js", | ||
"type": "github", | ||
"version": "8, 10, 12, 14, 16", | ||
"version": "8, 10, 12, 14, 16, 18", | ||
"afterScript": "after_success:\n - npminstall codecov && codecov --disable=gcov", | ||
@@ -77,3 +77,3 @@ "license": { | ||
"is-type-of": "^1.2.1", | ||
"koa": "^2.7.0", | ||
"koa": "^2.14.0", | ||
"koa-convert": "^1.2.0", | ||
@@ -80,0 +80,0 @@ "node-homedir": "^1.1.1", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
137771
3014
24
Updatedkoa@^2.14.0