Comparing version 4.4.0 to 4.4.1
4.4.1 / 2018-03-09 | ||
================== | ||
**fixes** | ||
* [[`046ffdd`](http://github.com/eggjs/egg-core/commit/046ffdd5d4b918ddfc0e9f7980567374b594ef97)] - fix: should not load optional plugin & their deps (#154) (zōng yǔ <<gxcsoccer@users.noreply.github.com>>) | ||
4.4.0 / 2018-01-18 | ||
@@ -3,0 +9,0 @@ ================== |
'use strict'; | ||
function sequence(tasks, names, results, missing, recursive, nest, optional) { | ||
const debug = require('debug')('egg-core#sequencify'); | ||
function sequence(tasks, names, results, missing, recursive, nest, optional, parent) { | ||
names.forEach(function(name) { | ||
if (results.sequence.includes(name)) { | ||
results.requires[name] = results.requires[name] || !optional; | ||
return; // de-dup results | ||
} | ||
if (results.requires[name]) return; | ||
const node = tasks[name]; | ||
@@ -21,11 +21,16 @@ | ||
if (node.dependencies.length) { | ||
sequence(tasks, node.dependencies, results, missing, recursive, nest); | ||
sequence(tasks, node.dependencies, results, missing, recursive, nest, optional, name); | ||
} | ||
if (node.optionalDependencies.length) { | ||
sequence(tasks, node.optionalDependencies, results, missing, recursive, nest, true); | ||
sequence(tasks, node.optionalDependencies, results, missing, recursive, nest, true, name); | ||
} | ||
nest.pop(name); | ||
} | ||
results.requires[name] = results.requires[name] || !optional; | ||
results.sequence.push(name); | ||
if (!optional) { | ||
results.requires[name] = true; | ||
debug('task: %s is enabled by %s', name, parent); | ||
} | ||
if (!results.sequence.includes(name)) { | ||
results.sequence.push(name); | ||
} | ||
}); | ||
@@ -44,3 +49,3 @@ } | ||
sequence(tasks, names, results, missing, recursive, []); | ||
sequence(tasks, names, results, missing, recursive, [], false, 'app'); | ||
@@ -47,0 +52,0 @@ if (missing.length || recursive.length) { |
{ | ||
"name": "egg-core", | ||
"version": "4.4.0", | ||
"version": "4.4.1", | ||
"description": "A core Pluggable framework based on koa", | ||
@@ -38,9 +38,9 @@ "main": "index.js", | ||
"coffee": "^4.1.0", | ||
"egg-bin": "^4.3.6", | ||
"egg-bin": "^4.3.7", | ||
"egg-ci": "^1.8.0", | ||
"eslint": "^4.13.1", | ||
"eslint-config-egg": "^5.1.1", | ||
"js-yaml": "^3.10.0", | ||
"eslint": "^4.18.2", | ||
"eslint-config-egg": "^7.0.0", | ||
"js-yaml": "^3.11.0", | ||
"mm": "^2.2.0", | ||
"mz-modules": "^2.0.0", | ||
"mz-modules": "^2.1.0", | ||
"pedding": "^1.1.0", | ||
@@ -54,12 +54,12 @@ "rimraf": "^2.6.2", | ||
"debug": "^3.1.0", | ||
"depd": "^1.1.1", | ||
"egg-logger": "^1.6.0", | ||
"depd": "^1.1.2", | ||
"egg-logger": "^1.6.1", | ||
"egg-path-matching": "^1.0.1", | ||
"extend2": "^1.0.0", | ||
"globby": "^7.1.1", | ||
"globby": "^8.0.1", | ||
"inflection": "^1.12.0", | ||
"is-type-of": "^1.2.0", | ||
"koa": "^2.4.1", | ||
"koa": "^2.5.0", | ||
"koa-convert": "^1.2.0", | ||
"koa-router": "^7.3.0", | ||
"koa-router": "^7.4.0", | ||
"node-homedir": "^1.1.0", | ||
@@ -66,0 +66,0 @@ "ready-callback": "^2.0.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
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
97119
2335
+ Added@mrmlnc/readdir-enhanced@2.2.1(transitive)
+ Added@nodelib/fs.stat@1.1.3(transitive)
+ Addedarr-diff@4.0.0(transitive)
+ Addedarr-flatten@1.1.0(transitive)
+ Addedarr-union@3.1.0(transitive)
+ Addedarray-unique@0.3.2(transitive)
+ Addedarrify@1.0.1(transitive)
+ Addedassign-symbols@1.0.0(transitive)
+ Addedatob@2.1.2(transitive)
+ Addedbase@0.11.2(transitive)
+ Addedbraces@2.3.2(transitive)
+ Addedcache-base@1.0.1(transitive)
+ Addedcall-me-maybe@1.0.2(transitive)
+ Addedclass-utils@0.3.6(transitive)
+ Addedcollection-visit@1.0.0(transitive)
+ Addedcomponent-emitter@1.3.1(transitive)
+ Addedcopy-descriptor@0.1.1(transitive)
+ Addeddecode-uri-component@0.2.2(transitive)
+ Addeddefine-property@0.2.51.0.02.0.2(transitive)
+ Addeddir-glob@2.0.0(transitive)
+ Addedexpand-brackets@2.1.4(transitive)
+ Addedextend-shallow@3.0.2(transitive)
+ Addedextglob@2.0.4(transitive)
+ Addedfast-glob@2.2.7(transitive)
+ Addedfill-range@4.0.0(transitive)
+ Addedfor-in@1.0.2(transitive)
+ Addedfragment-cache@0.2.1(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedget-value@2.0.6(transitive)
+ Addedglob-parent@3.1.0(transitive)
+ Addedglob-to-regexp@0.3.0(transitive)
+ Addedglobby@8.0.2(transitive)
+ Addedhas-value@0.3.11.0.0(transitive)
+ Addedhas-values@0.1.41.0.0(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedis-accessor-descriptor@1.0.1(transitive)
+ Addedis-buffer@1.1.6(transitive)
+ Addedis-data-descriptor@1.0.1(transitive)
+ Addedis-descriptor@0.1.71.0.3(transitive)
+ Addedis-extendable@1.0.1(transitive)
+ Addedis-extglob@2.1.1(transitive)
+ Addedis-glob@3.1.04.0.3(transitive)
+ Addedis-number@3.0.0(transitive)
+ Addedis-plain-object@2.0.4(transitive)
+ Addedis-windows@1.0.2(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedisobject@2.1.03.0.1(transitive)
+ Addedkind-of@3.2.24.0.06.0.3(transitive)
+ Addedmap-cache@0.2.2(transitive)
+ Addedmap-visit@1.0.0(transitive)
+ Addedmerge2@1.4.1(transitive)
+ Addedmicromatch@3.1.10(transitive)
+ Addedmixin-deep@1.3.2(transitive)
+ Addednanomatch@1.2.13(transitive)
+ Addedobject-copy@0.1.0(transitive)
+ Addedobject-visit@1.0.1(transitive)
+ Addedobject.pick@1.3.0(transitive)
+ Addedpascalcase@0.1.1(transitive)
+ Addedpath-dirname@1.0.2(transitive)
+ Addedposix-character-classes@0.1.1(transitive)
+ Addedregex-not@1.0.2(transitive)
+ Addedrepeat-element@1.1.4(transitive)
+ Addedrepeat-string@1.6.1(transitive)
+ Addedresolve-url@0.2.1(transitive)
+ Addedret@0.1.15(transitive)
+ Addedsafe-regex@1.1.0(transitive)
+ Addedset-value@2.0.1(transitive)
+ Addedsnapdragon@0.8.2(transitive)
+ Addedsnapdragon-node@2.1.1(transitive)
+ Addedsnapdragon-util@3.0.1(transitive)
+ Addedsource-map@0.5.7(transitive)
+ Addedsource-map-resolve@0.5.3(transitive)
+ Addedsource-map-url@0.4.1(transitive)
+ Addedsplit-string@3.1.0(transitive)
+ Addedstatic-extend@0.1.2(transitive)
+ Addedto-object-path@0.3.0(transitive)
+ Addedto-regex@3.0.2(transitive)
+ Addedto-regex-range@2.1.1(transitive)
+ Addedunion-value@1.0.1(transitive)
+ Addedunset-value@1.0.0(transitive)
+ Addedurix@0.1.0(transitive)
+ Addeduse@3.1.1(transitive)
- Removeddir-glob@2.2.2(transitive)
- Removedglobby@7.1.1(transitive)
Updateddepd@^1.1.2
Updatedegg-logger@^1.6.1
Updatedglobby@^8.0.1
Updatedkoa@^2.5.0
Updatedkoa-router@^7.4.0