Socket
Socket
Sign inDemoInstall

egg-core

Package Overview
Dependencies
Maintainers
12
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

egg-core - npm Package Compare versions

Comparing version 4.28.1 to 4.29.0

6

History.md
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 @@ ==================

5

lib/egg.js

@@ -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();

4

lib/lifecycle.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc