egg-core
Advanced tools
Comparing version 4.10.2 to 4.10.3
4.10.3 / 2018-09-29 | ||
=================== | ||
**fixes** | ||
* [[`58a49e4`](https://github.com/eggjs/egg-core/pull/184/commits/58a49e46684bf6adceada18abb1fe1b7086a764e)] - fix(lifecycle): forbid adding hook after initialization (#184) (initialwu) | ||
**others** | ||
* [[`9c16f2e`](https://github.com/eggjs/egg-core/pull/184/commits/9c16f2e8919384b65ba36e2a7050db524d18c3a5)] - chore(eslint): set root=true to stop looking in parent folders (#183) (initialwu) | ||
4.10.2 / 2018-09-21 | ||
@@ -3,0 +12,0 @@ ================== |
@@ -80,2 +80,3 @@ 'use strict'; | ||
addBootHook(hook) { | ||
assert(this[INIT] === false, 'do not add hook when lifecycle has been initialized'); | ||
this[BOOT_HOOKS].push(hook); | ||
@@ -85,2 +86,3 @@ } | ||
addFunctionAsBootHook(hook) { | ||
assert(this[INIT] === false, 'do not add hook when lifecycle has been initialized'); | ||
// app.js is export as a funciton | ||
@@ -87,0 +89,0 @@ // call this function in configDidLoad |
{ | ||
"name": "egg-core", | ||
"version": "4.10.2", | ||
"version": "4.10.3", | ||
"description": "A core Pluggable framework based on koa", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
111755
2707