@midwayjs/faas 3.0.0-beta.8 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config.default.js.map +1 -0
- package/dist/configuration.js +3 -1
- package/dist/configuration.js.map +1 -0
- package/dist/framework.d.ts +2 -1
- package/dist/framework.js +12 -8
- package/dist/framework.js.map +1 -0
- package/dist/index.js.map +1 -0
- package/dist/interface.js.map +1 -0
- package/dist/util.js.map +1 -0
- package/package.json +14 -13
- package/CHANGELOG.md +0 -984
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.default.js","sourceRoot":"","sources":["../src/config.default.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAG;IAC1B,OAAO,EAAE;QACP,WAAW,EAAE,IAAI;QACjB,YAAY,EAAE,IAAI;QAClB,WAAW,EAAE,CAAC,IAAS,EAAE,EAAE;;YACzB,MAAM,SAAS,GACb,MAAA,MAAA,MAAA,MAAA,IAAI,CAAC,GAAG,0CAAG,eAAe,CAAC,0CAAG,WAAW,CAAC,mCAC1C,MAAA,MAAA,IAAI,CAAC,GAAG,0CAAG,eAAe,CAAC,0CAAG,YAAY,CAAC,mCAC3C,EAAE,CAAC;YACL,OAAO,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,IAAI,SAAS,KAAK,IAAI,CAAC,KAAK,KAC5D,IAAI,CAAC,OACP,EAAE,CAAC;QACL,CAAC;KACF;CACF,CAAC","sourcesContent":["export const midwayLogger = {\n default: {\n disableFile: true,\n disableError: true,\n printFormat: (info: any) => {\n const requestId =\n info.ctx?.['originContext']?.['requestId'] ??\n info.ctx?.['originContext']?.['request_id'] ??\n '';\n return `${new Date().toISOString()} ${requestId} [${info.level}] ${\n info.message\n }`;\n },\n },\n};\n"]}
|
package/dist/configuration.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../src/configuration.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C9B,MAAM,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC;SAC5B;IACH,CAAC;CACF,CAAA;AAhDC;IADC,IAAA,kBAAM,GAAE;8BACE,+BAAmB;oDAAC;AAG/B;IADC,IAAA,kBAAM,GAAE;8BACS,6BAAsB;2DAAC;AAGzC;IADC,IAAA,8BAAkB,GAAE;;6DACF;AAGnB;IADC,IAAA,gBAAI,GAAE;;;;6CA+BN;AAzCU,iBAAiB;IAR7B,IAAA,yBAAa,EAAC;QACb,SAAS,EAAE,MAAM;QACjB,aAAa,EAAE;YACb;gBACE,OAAO,EAAE,aAAa;aACvB;SACF;KACF,CAAC;GACW,iBAAiB,CAkD7B;AAlDY,8CAAiB","sourcesContent":["import {\n ApplicationContext,\n Configuration,\n Init,\n Inject,\n LOGGER_KEY,\n PLUGIN_KEY,\n WEB_ROUTER_PARAM_KEY,\n} from '@midwayjs/decorator';\nimport { MidwayFaaSFramework } from './framework';\nimport {\n extractKoaLikeValue,\n MidwayDecoratorService,\n REQUEST_OBJ_CTX_KEY,\n} from '@midwayjs/core';\nimport * as DefaultConfig from './config.default';\n\n@Configuration({\n namespace: 'faas',\n importConfigs: [\n {\n default: DefaultConfig,\n },\n ],\n})\nexport class FaaSConfiguration {\n @Inject()\n framework: MidwayFaaSFramework;\n\n @Inject()\n decoratorService: MidwayDecoratorService;\n\n @ApplicationContext()\n applicationContext;\n\n @Init()\n async init() {\n this.decoratorService.registerPropertyHandler(\n PLUGIN_KEY,\n (key, meta, target) => {\n return (\n target?.[REQUEST_OBJ_CTX_KEY]?.[key] ||\n this.framework.getApplication()[key]\n );\n }\n );\n\n this.decoratorService.registerPropertyHandler(\n LOGGER_KEY,\n (key, meta, target) => {\n return (\n target?.[REQUEST_OBJ_CTX_KEY]?.['logger'] ||\n this.framework.getLogger()\n );\n }\n );\n this.decoratorService.registerParameterHandler(\n WEB_ROUTER_PARAM_KEY,\n options => {\n return extractKoaLikeValue(\n options.metadata.type,\n options.metadata.propertyData,\n options.originParamType\n )(options.originArgs[0], options.originArgs[1]);\n }\n );\n }\n\n async onReady(container) {}\n\n async onServerReady() {\n if (!this.framework.isEnable()) {\n await this.framework.run();\n }\n }\n}\n"]}
|
package/dist/framework.d.ts
CHANGED
|
@@ -8,9 +8,10 @@ export declare class MidwayFaaSFramework extends BaseFramework<IMidwayFaaSApplic
|
|
|
8
8
|
private lock;
|
|
9
9
|
app: IMidwayFaaSApplication;
|
|
10
10
|
private isReplaceLogger;
|
|
11
|
+
private developmentRun;
|
|
11
12
|
environmentService: MidwayEnvironmentService;
|
|
12
13
|
middlewareService: MidwayMiddlewareService<FaaSContext, any>;
|
|
13
|
-
configure(options: IFaaSConfigurationOptions):
|
|
14
|
+
configure(options: IFaaSConfigurationOptions): any;
|
|
14
15
|
isEnable(): boolean;
|
|
15
16
|
applicationInitialize(options: IMidwayBootstrapOptions): Promise<void>;
|
|
16
17
|
run(): Promise<void>;
|
package/dist/framework.js
CHANGED
|
@@ -22,18 +22,19 @@ let MidwayFaaSFramework = class MidwayFaaSFramework extends core_1.BaseFramework
|
|
|
22
22
|
this.funMappingStore = new Map();
|
|
23
23
|
this.lock = new simple_lock_1.default();
|
|
24
24
|
this.isReplaceLogger = process.env['MIDWAY_SERVERLESS_REPLACE_LOGGER'] === 'true';
|
|
25
|
+
this.developmentRun = false;
|
|
25
26
|
}
|
|
26
27
|
configure(options) {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
this.configurationOptions =
|
|
28
|
+
if (options) {
|
|
29
|
+
this.developmentRun = true;
|
|
30
|
+
this.configurationOptions = options;
|
|
30
31
|
}
|
|
31
32
|
else {
|
|
32
|
-
this.
|
|
33
|
+
return this.configService.getConfiguration('faas');
|
|
33
34
|
}
|
|
34
35
|
}
|
|
35
36
|
isEnable() {
|
|
36
|
-
return
|
|
37
|
+
return !this.developmentRun;
|
|
37
38
|
}
|
|
38
39
|
async applicationInitialize(options) {
|
|
39
40
|
var _a;
|
|
@@ -66,6 +67,9 @@ let MidwayFaaSFramework = class MidwayFaaSFramework extends core_1.BaseFramework
|
|
|
66
67
|
return (_a = this.configurationOptions.applicationAdapter) === null || _a === void 0 ? void 0 : _a.getFunctionServiceName();
|
|
67
68
|
},
|
|
68
69
|
});
|
|
70
|
+
// hack use method
|
|
71
|
+
this.app.originUse = this.app.use;
|
|
72
|
+
this.app.use = this.app.useMiddleware;
|
|
69
73
|
}
|
|
70
74
|
async run() {
|
|
71
75
|
return this.lock.sureOnce(async () => {
|
|
@@ -94,7 +98,7 @@ let MidwayFaaSFramework = class MidwayFaaSFramework extends core_1.BaseFramework
|
|
|
94
98
|
}
|
|
95
99
|
const context = this.getContext(args.shift());
|
|
96
100
|
const isHttpFunction = !!(context.headers && context.get);
|
|
97
|
-
const globalMiddlewareFn = await this.
|
|
101
|
+
const globalMiddlewareFn = await this.applyMiddleware();
|
|
98
102
|
const middlewareManager = new core_1.ContextMiddlewareManager();
|
|
99
103
|
middlewareManager.insertLast(globalMiddlewareFn);
|
|
100
104
|
middlewareManager.insertLast(async (ctx, next) => {
|
|
@@ -112,10 +116,10 @@ let MidwayFaaSFramework = class MidwayFaaSFramework extends core_1.BaseFramework
|
|
|
112
116
|
}
|
|
113
117
|
return result;
|
|
114
118
|
},
|
|
115
|
-
]);
|
|
119
|
+
], this.app);
|
|
116
120
|
return await fn(ctx, next);
|
|
117
121
|
});
|
|
118
|
-
const composeMiddleware = await this.middlewareService.compose(middlewareManager);
|
|
122
|
+
const composeMiddleware = await this.middlewareService.compose(middlewareManager, this.app);
|
|
119
123
|
return await composeMiddleware(context);
|
|
120
124
|
};
|
|
121
125
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"framework.js","sourceRoot":"","sources":["../src/framework.ts"],"names":[],"mappings":";;;;;;;;;;;;AAKA,yCAUwB;AACxB,mDAO6B;AAC7B,uDAA+C;AAC/C,6CAA+E;AAE/E,MAAM,QAAQ,GAAG,yBAAyB,CAAC;AAG3C,IAAa,mBAAmB,GAA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ACtB;QACD,MAAM,IAAI,KAAK,CACb,uBAAuB,MAAM,CAAC,IAAI,IAChC,MAAM,IAAI,IAAI,CAAC,oBACjB,EAAE,CACH,CAAC;IACJ,CAAC;IAEM,YAAY,CAAC,IAAY,EAAE,SAAwB,EAAE;QAC1D,uCAAuC;QACvC,OAAO,IAAA,4BAAmB,EAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAC3C,CAAC;IAEM,gBAAgB;QACrB,OAAO,aAAa,CAAC;IACvB,CAAC;CACF,CAAA;AAhOC;IADC,IAAA,kBAAM,GAAE;8BACW,+BAAwB;+DAAC;AAG7C;IADC,IAAA,kBAAM,GAAE;8BACU,8BAAuB;8DAAmB;AAlBlD,mBAAmB;IAD/B,IAAA,qBAAS,GAAE;GACC,mBAAmB,CA+O/B;AA/OY,kDAAmB","sourcesContent":["import {\n FaaSContext,\n IFaaSConfigurationOptions,\n IMidwayFaaSApplication,\n} from './interface';\nimport {\n BaseFramework,\n ContextMiddlewareManager,\n FunctionMiddleware,\n IMidwayBootstrapOptions,\n MidwayEnvironmentService,\n MidwayFrameworkType,\n MidwayMiddlewareService,\n RouterInfo,\n ServerlessTriggerCollector,\n} from '@midwayjs/core';\nimport {\n Framework,\n Inject,\n WEB_RESPONSE_CONTENT_TYPE,\n WEB_RESPONSE_HEADER,\n WEB_RESPONSE_HTTP_CODE,\n WEB_RESPONSE_REDIRECT,\n} from '@midwayjs/decorator';\nimport SimpleLock from '@midwayjs/simple-lock';\nimport { createConsoleLogger, LoggerOptions, loggers } from '@midwayjs/logger';\n\nconst LOCK_KEY = '_faas_starter_start_key';\n\n@Framework()\nexport class MidwayFaaSFramework extends BaseFramework<\n IMidwayFaaSApplication,\n FaaSContext,\n IFaaSConfigurationOptions\n> {\n protected defaultHandlerMethod = 'handler';\n protected funMappingStore: Map<string, RouterInfo> = new Map();\n protected logger;\n private lock = new SimpleLock();\n public app: IMidwayFaaSApplication;\n private isReplaceLogger =\n process.env['MIDWAY_SERVERLESS_REPLACE_LOGGER'] === 'true';\n private developmentRun = false;\n\n @Inject()\n environmentService: MidwayEnvironmentService;\n\n @Inject()\n middlewareService: MidwayMiddlewareService<FaaSContext, any>;\n\n configure(options: IFaaSConfigurationOptions) {\n if (options) {\n this.developmentRun = true;\n this.configurationOptions = options;\n } else {\n return this.configService.getConfiguration('faas');\n }\n }\n\n isEnable(): boolean {\n return !this.developmentRun;\n }\n\n async applicationInitialize(options: IMidwayBootstrapOptions) {\n if (!this.logger) {\n this.logger = options.logger || loggers.getLogger('appLogger');\n }\n this.app =\n this.configurationOptions.applicationAdapter?.getApplication() ||\n ({} as IMidwayFaaSApplication);\n\n this.defineApplicationProperties({\n /**\n * return init context value such as aliyun fc\n */\n getInitializeContext: () => {\n return this.configurationOptions.initializeContext;\n },\n\n /**\n * @deprecated\n * @param middlewareId\n */\n generateMiddleware: async (middlewareId: any) => {\n return this.generateMiddleware(middlewareId);\n },\n\n getFunctionName: () => {\n return this.configurationOptions.applicationAdapter?.getFunctionName();\n },\n\n getFunctionServiceName: () => {\n return this.configurationOptions.applicationAdapter?.getFunctionServiceName();\n },\n });\n // hack use method\n (this.app as any).originUse = this.app.use;\n this.app.use = this.app.useMiddleware as any;\n }\n\n public async run() {\n return this.lock.sureOnce(async () => {\n // set app keys\n this.app['keys'] = this.configService.getConfiguration('keys') ?? '';\n\n // store all http function entry\n const collector = new ServerlessTriggerCollector();\n const functionList = await collector.getFunctionList();\n for (const funcInfo of functionList) {\n this.funMappingStore.set(funcInfo.funcHandlerName, funcInfo);\n }\n }, LOCK_KEY);\n }\n\n public getFrameworkType(): MidwayFrameworkType {\n return MidwayFrameworkType.FAAS;\n }\n\n public handleInvokeWrapper(handlerMapping: string) {\n const funOptions: RouterInfo = this.funMappingStore.get(handlerMapping);\n\n return async (...args) => {\n if (args.length === 0) {\n throw new Error('first parameter must be function context');\n }\n\n if (!funOptions) {\n throw new Error(`function handler = ${handlerMapping} not found`);\n }\n\n const context: FaaSContext = this.getContext(args.shift());\n const isHttpFunction = !!(context.headers && context.get);\n const globalMiddlewareFn = await this.applyMiddleware();\n const middlewareManager = new ContextMiddlewareManager();\n\n middlewareManager.insertLast(globalMiddlewareFn);\n middlewareManager.insertLast(async (ctx, next) => {\n const fn = await this.middlewareService.compose(\n [\n ...funOptions.controllerMiddleware,\n ...funOptions.middleware,\n async (ctx, next) => {\n if (isHttpFunction) {\n args = [ctx];\n }\n // invoke handler\n const result = await this.invokeHandler(\n funOptions,\n ctx,\n args,\n isHttpFunction\n );\n if (isHttpFunction && result !== undefined) {\n ctx.body = result;\n }\n return result;\n },\n ],\n this.app\n );\n return await fn(ctx as FaaSContext, next);\n });\n const composeMiddleware = await this.middlewareService.compose(\n middlewareManager,\n this.app\n );\n\n return await composeMiddleware(context);\n };\n }\n\n /**\n * @deprecated\n * @param middlewareId\n */\n public async generateMiddleware(\n middlewareId: string\n ): Promise<FunctionMiddleware<FaaSContext, any>> {\n const mwIns: any = await this.getApplicationContext().getAsync(\n middlewareId\n );\n return mwIns.resolve();\n }\n\n public getContext(context) {\n if (!context.env) {\n context.env = this.environmentService.getCurrentEnvironment();\n }\n\n if (this.isReplaceLogger || !context.logger) {\n context._serverlessLogger = this.createContextLogger(context);\n /**\n * 由于 fc 的 logger 有 bug,FC公有云环境我们会默认替换掉,其他平台后续视情况而定\n */\n Object.defineProperty(context, 'logger', {\n get() {\n return context._serverlessLogger;\n },\n });\n }\n this.app.createAnonymousContext(context);\n return context;\n }\n\n private async invokeHandler(\n routerInfo: RouterInfo,\n context,\n args,\n isHttpFunction: boolean\n ) {\n const funModule = await context.requestContext.getAsync(\n routerInfo.controllerId\n );\n const handlerName =\n this.getFunctionHandler(context, args, funModule, routerInfo.method) ||\n this.defaultHandlerMethod;\n if (funModule[handlerName]) {\n // invoke real method\n const result = await funModule[handlerName](...args);\n // implement response decorator\n const routerResponseData = routerInfo.responseMetadata;\n if (isHttpFunction) {\n for (const routerRes of routerResponseData) {\n switch (routerRes.type) {\n case WEB_RESPONSE_HTTP_CODE:\n context.status = routerRes.code;\n break;\n case WEB_RESPONSE_HEADER:\n for (const key in routerRes?.setHeaders || {}) {\n context.set(key, routerRes.setHeaders[key]);\n }\n break;\n case WEB_RESPONSE_CONTENT_TYPE:\n context.type = routerRes.contentType;\n break;\n case WEB_RESPONSE_REDIRECT:\n context.status = routerRes.code;\n context.redirect(routerRes.url);\n return;\n }\n }\n }\n return result;\n }\n }\n\n protected getFunctionHandler(ctx, args, target, method): string {\n if (method && typeof target[method] !== 'undefined') {\n return method;\n }\n const handlerMethod = this.defaultHandlerMethod;\n if (handlerMethod && typeof target[handlerMethod] !== 'undefined') {\n return handlerMethod;\n }\n throw new Error(\n `no handler setup on ${target.name}#${\n method || this.defaultHandlerMethod\n }`\n );\n }\n\n public createLogger(name: string, option: LoggerOptions = {}) {\n // 覆盖基类的创建日志对象,函数场景下的日志,即使自定义,也只启用控制台输出\n return createConsoleLogger(name, option);\n }\n\n public getFrameworkName() {\n return 'midway:faas';\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,yCAA+D;AAAtD,sGAAA,mBAAmB,OAAa;AACzC,iDAAqE;AAA5D,8GAAA,iBAAiB,OAAiB;AAC3C,yCAAuB","sourcesContent":["export * from './interface';\nexport { MidwayFaaSFramework as Framework } from './framework';\nexport { FaaSConfiguration as Configuration } from './configuration';\nexport * from './util';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interface.js","sourceRoot":"","sources":["../src/interface.ts"],"names":[],"mappings":"","sourcesContent":["import { MidwayRequestContainer, IMidwayApplication, IConfigurationOptions, IMidwayContext, NextFunction as BaseNextFunction } from '@midwayjs/core';\nimport { FaaSHTTPContext } from '@midwayjs/faas-typings';\nimport { ILogger } from '@midwayjs/logger';\n\nexport interface FaaSContext extends IMidwayContext<FaaSHTTPContext> {\n logger: ILogger;\n env: string;\n requestContext: MidwayRequestContainer;\n originContext: any;\n}\n\nexport type FaaSMiddleware = ((context: FaaSContext, next: () => Promise<any>) => any) | string;\n\nexport type IMidwayFaaSApplication = IMidwayApplication<FaaSContext, {\n getInitializeContext();\n use(middleware: FaaSMiddleware);\n /**\n * @deprecated\n * @param middlewareId\n */\n generateMiddleware(middlewareId: any): Promise<FaaSMiddleware>;\n\n /**\n * Get function name in serverless environment\n */\n getFunctionName(): string;\n /**\n * Get function service name in serverless environment\n */\n getFunctionServiceName(): string;\n}>;\n\nexport interface Application extends IMidwayFaaSApplication {}\n\nexport interface Context extends FaaSContext {}\nexport type NextFunction = BaseNextFunction;\n\nexport interface IFaaSConfigurationOptions extends IConfigurationOptions {\n config?: object;\n initializeContext?: object;\n applicationAdapter?: {\n getApplication(): IMidwayFaaSApplication;\n getFunctionName(): string;\n getFunctionServiceName(): string;\n };\n}\n\nexport interface IWebMiddleware {\n resolve(): FaaSMiddleware;\n}\n"]}
|
package/dist/util.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util.js","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":";;;AAAA,yCAGwB;AACxB,mCAA+D;AAExD,MAAM,+BAA+B,GAAG,KAAK,EAClD,YAC2B,EAC3B,EAAE;IACF,MAAM,kBAAkB,GAAG,MAAM,IAAA,yCAAkC,EAAC;QAClE,GAAG,YAAY;QACf,OAAO,EAAE,EAAE;QACX,MAAM,EAAE,EAAE;KACX,CAAC,CAAC;IACH,OAAO,kBAAkB,CAAC,GAAG,CAAC,iBAAS,CAAC,CAAC;AAC3C,CAAC,CAAC;AAVW,QAAA,+BAA+B,mCAU1C","sourcesContent":["import {\n IMidwayBootstrapOptions,\n initializeGlobalApplicationContext,\n} from '@midwayjs/core';\nimport { Framework, IFaaSConfigurationOptions } from './index';\n\nexport const createModuleServerlessFramework = async (\n globalOption: Omit<IMidwayBootstrapOptions, 'applicationContext'> &\n IFaaSConfigurationOptions\n) => {\n const applicationContext = await initializeGlobalApplicationContext({\n ...globalOption,\n baseDir: '',\n appDir: '',\n });\n return applicationContext.get(Framework);\n};\n"]}
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/faas",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"main": "dist/index",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@midwayjs/core": "^3.0.
|
|
8
|
-
"@midwayjs/faas-typings": "^3.0.0
|
|
9
|
-
"@midwayjs/logger": "^
|
|
7
|
+
"@midwayjs/core": "^3.0.2",
|
|
8
|
+
"@midwayjs/faas-typings": "^3.0.0",
|
|
9
|
+
"@midwayjs/logger": "^2.14.0",
|
|
10
10
|
"@midwayjs/simple-lock": "^1.1.4"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@midwayjs/decorator": "^3.0.
|
|
14
|
-
"@midwayjs/mock": "^3.0.
|
|
15
|
-
"@midwayjs/serverless-fc-starter": "^3.0.
|
|
16
|
-
"@midwayjs/serverless-scf-starter": "^3.0.
|
|
17
|
-
"mm": "3"
|
|
13
|
+
"@midwayjs/decorator": "^3.0.2",
|
|
14
|
+
"@midwayjs/mock": "^3.0.2",
|
|
15
|
+
"@midwayjs/serverless-fc-starter": "^3.0.2",
|
|
16
|
+
"@midwayjs/serverless-scf-starter": "^3.0.2",
|
|
17
|
+
"mm": "3.2.0"
|
|
18
18
|
},
|
|
19
19
|
"engines": {
|
|
20
20
|
"node": ">=12"
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
"files": [
|
|
23
23
|
"dist/**/*.js",
|
|
24
24
|
"dist/**/*.d.ts",
|
|
25
|
-
"index.d.ts"
|
|
25
|
+
"index.d.ts",
|
|
26
|
+
"dist/**/*.js.map"
|
|
26
27
|
],
|
|
27
28
|
"keywords": [
|
|
28
29
|
"serverless",
|
|
@@ -37,13 +38,13 @@
|
|
|
37
38
|
],
|
|
38
39
|
"scripts": {
|
|
39
40
|
"build": "tsc",
|
|
40
|
-
"test": "node --require=ts-node/register ../../node_modules/.bin/jest",
|
|
41
|
-
"cov": "node --require=ts-node/register ../../node_modules/.bin/jest --coverage --forceExit"
|
|
41
|
+
"test": "node --require=ts-node/register ../../node_modules/.bin/jest --runInBand",
|
|
42
|
+
"cov": "node --require=ts-node/register ../../node_modules/.bin/jest --runInBand --coverage --forceExit"
|
|
42
43
|
},
|
|
43
44
|
"repository": {
|
|
44
45
|
"type": "git",
|
|
45
46
|
"url": "git@github.com:midwayjs/midway.git"
|
|
46
47
|
},
|
|
47
48
|
"license": "MIT",
|
|
48
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "ca77247d229978a736e79bb208579c014ed226fc"
|
|
49
50
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,984 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
# [3.0.0-beta.8](https://github.com/midwayjs/midway/compare/v3.0.0-beta.7...v3.0.0-beta.8) (2021-12-08)
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
# [3.0.0-beta.7](https://github.com/midwayjs/midway/compare/v3.0.0-beta.6...v3.0.0-beta.7) (2021-12-03)
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
### Bug Fixes
|
|
18
|
-
|
|
19
|
-
* middleware with ctx.body ([#1389](https://github.com/midwayjs/midway/issues/1389)) ([77af5c0](https://github.com/midwayjs/midway/commit/77af5c0b456f1843f4dcfd3dbfd2c0aa244c51bd))
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
# [3.0.0-beta.6](https://github.com/midwayjs/midway/compare/v3.0.0-beta.5...v3.0.0-beta.6) (2021-11-26)
|
|
26
|
-
|
|
27
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
# [3.0.0-beta.5](https://github.com/midwayjs/midway/compare/v3.0.0-beta.4...v3.0.0-beta.5) (2021-11-25)
|
|
34
|
-
|
|
35
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
# [3.0.0-beta.4](https://github.com/midwayjs/midway/compare/v3.0.0-beta.3...v3.0.0-beta.4) (2021-11-24)
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
### Features
|
|
45
|
-
|
|
46
|
-
* add i18n ([#1375](https://github.com/midwayjs/midway/issues/1375)) ([bffefe0](https://github.com/midwayjs/midway/commit/bffefe07afe45777d49b5a76b9ab17fc2b9d9a55))
|
|
47
|
-
* auto transform args to type ([#1372](https://github.com/midwayjs/midway/issues/1372)) ([bb3f7d2](https://github.com/midwayjs/midway/commit/bb3f7d2028a034e1926d9df554849332354c3762))
|
|
48
|
-
* support global prefix url ([#1371](https://github.com/midwayjs/midway/issues/1371)) ([cc5fe44](https://github.com/midwayjs/midway/commit/cc5fe44e1d221590562dc71e1f33ae96093e0da7))
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
# [3.0.0-beta.3](https://github.com/midwayjs/midway/compare/v3.0.0-beta.2...v3.0.0-beta.3) (2021-11-18)
|
|
55
|
-
|
|
56
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
# [3.0.0-beta.2](https://github.com/midwayjs/midway/compare/v3.0.0-beta.1...v3.0.0-beta.2) (2021-11-16)
|
|
63
|
-
|
|
64
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
# [3.0.0-beta.1](https://github.com/midwayjs/midway/compare/v2.12.4...v3.0.0-beta.1) (2021-11-14)
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
### Bug Fixes
|
|
74
|
-
|
|
75
|
-
* static prefix ([#1321](https://github.com/midwayjs/midway/issues/1321)) ([31fe961](https://github.com/midwayjs/midway/commit/31fe961931fed7656a144b1682ee4c4bb25fdff5))
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
## [2.12.4](https://github.com/midwayjs/midway/compare/v2.12.3...v2.12.4) (2021-08-13)
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
### Bug Fixes
|
|
85
|
-
|
|
86
|
-
* update FaasMddleware interface.ts ([#1219](https://github.com/midwayjs/midway/issues/1219)) ([190a729](https://github.com/midwayjs/midway/commit/190a7292d495ebf2af8c66a2257fef41f3362ad1))
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
## [2.12.3](https://github.com/midwayjs/midway/compare/v2.12.2...v2.12.3) (2021-08-09)
|
|
93
|
-
|
|
94
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
## [2.12.2](https://github.com/midwayjs/midway/compare/v2.12.1...v2.12.2) (2021-08-04)
|
|
101
|
-
|
|
102
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
## [2.12.1](https://github.com/midwayjs/midway/compare/v2.12.0...v2.12.1) (2021-08-01)
|
|
109
|
-
|
|
110
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
# [2.12.0](https://github.com/midwayjs/midway/compare/v2.11.7...v2.12.0) (2021-07-30)
|
|
117
|
-
|
|
118
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
## [2.11.6](https://github.com/midwayjs/midway/compare/v2.11.5...v2.11.6) (2021-07-16)
|
|
125
|
-
|
|
126
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
## [2.11.5](https://github.com/midwayjs/midway/compare/v2.11.4...v2.11.5) (2021-07-15)
|
|
133
|
-
|
|
134
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
## [2.11.4](https://github.com/midwayjs/midway/compare/v2.11.3...v2.11.4) (2021-07-06)
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
### Bug Fixes
|
|
144
|
-
|
|
145
|
-
* @Func decorator with empty metadata ([#1137](https://github.com/midwayjs/midway/issues/1137)) ([621a99a](https://github.com/midwayjs/midway/commit/621a99a9ee77a8f370a28a395363f585057bd054))
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
## [2.11.3](https://github.com/midwayjs/midway/compare/v2.11.2...v2.11.3) (2021-07-02)
|
|
152
|
-
|
|
153
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
## [2.11.2](https://github.com/midwayjs/midway/compare/v2.11.1...v2.11.2) (2021-06-28)
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
### Bug Fixes
|
|
163
|
-
|
|
164
|
-
* replace ctx.logger in fc serverless environment ([#1112](https://github.com/midwayjs/midway/issues/1112)) ([8ac87b8](https://github.com/midwayjs/midway/commit/8ac87b832154f2ec0fe82df1ec31e283f03b9b2f))
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
## [2.11.1](https://github.com/midwayjs/midway/compare/v2.11.0...v2.11.1) (2021-06-19)
|
|
171
|
-
|
|
172
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
# [2.11.0](https://github.com/midwayjs/midway/compare/v2.10.19...v2.11.0) (2021-06-10)
|
|
179
|
-
|
|
180
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
## [2.10.18](https://github.com/midwayjs/midway/compare/v2.10.17...v2.10.18) (2021-05-26)
|
|
187
|
-
|
|
188
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
## [2.10.14](https://github.com/midwayjs/midway/compare/v2.10.13...v2.10.14) (2021-05-11)
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
### Bug Fixes
|
|
198
|
-
|
|
199
|
-
* serverless app more method ([#1034](https://github.com/midwayjs/midway/issues/1034)) ([9c44c3f](https://github.com/midwayjs/midway/commit/9c44c3f58930d0c12464d00eceee93cb9e7aaa62))
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
## [2.10.13](https://github.com/midwayjs/midway/compare/v2.10.12...v2.10.13) (2021-05-08)
|
|
206
|
-
|
|
207
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
## [2.10.12](https://github.com/midwayjs/midway/compare/v2.10.11...v2.10.12) (2021-05-07)
|
|
214
|
-
|
|
215
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
## [2.10.11](https://github.com/midwayjs/midway/compare/v2.10.10...v2.10.11) (2021-04-29)
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
### Bug Fixes
|
|
225
|
-
|
|
226
|
-
* load functional config ([#1017](https://github.com/midwayjs/midway/issues/1017)) ([51566c0](https://github.com/midwayjs/midway/commit/51566c08124275798b92d3c931b27a86a48a2ba7))
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
## [2.10.10](https://github.com/midwayjs/midway/compare/v2.10.9...v2.10.10) (2021-04-24)
|
|
233
|
-
|
|
234
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
## [2.10.9](https://github.com/midwayjs/midway/compare/v2.10.8...v2.10.9) (2021-04-21)
|
|
241
|
-
|
|
242
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
## [2.10.8](https://github.com/midwayjs/midway/compare/v2.10.7...v2.10.8) (2021-04-21)
|
|
249
|
-
|
|
250
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
## [2.10.7](https://github.com/midwayjs/midway/compare/v2.10.6...v2.10.7) (2021-04-17)
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
### Bug Fixes
|
|
260
|
-
|
|
261
|
-
* add event name args ([#986](https://github.com/midwayjs/midway/issues/986)) ([bfd8232](https://github.com/midwayjs/midway/commit/bfd82320aee8600d8fa30bd2821a0e68c80fd755))
|
|
262
|
-
* format ([#997](https://github.com/midwayjs/midway/issues/997)) ([456cc14](https://github.com/midwayjs/midway/commit/456cc14513bdb000d1aa3130e9719caf7a8a803f))
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
## [2.10.6](https://github.com/midwayjs/midway/compare/v2.10.5...v2.10.6) (2021-04-14)
|
|
269
|
-
|
|
270
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
## [2.10.5](https://github.com/midwayjs/midway/compare/v2.10.4...v2.10.5) (2021-04-13)
|
|
277
|
-
|
|
278
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
## [2.10.4](https://github.com/midwayjs/midway/compare/v2.10.3...v2.10.4) (2021-04-10)
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
### Bug Fixes
|
|
288
|
-
|
|
289
|
-
* clear container cache when test ([#978](https://github.com/midwayjs/midway/issues/978)) ([a202075](https://github.com/midwayjs/midway/commit/a202075b52d281e06f1ed7c6139e968fafc960f6))
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
## [2.10.3](https://github.com/midwayjs/midway/compare/v2.10.2...v2.10.3) (2021-04-07)
|
|
296
|
-
|
|
297
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
## [2.10.2](https://github.com/midwayjs/midway/compare/v2.10.1...v2.10.2) (2021-04-05)
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
### Bug Fixes
|
|
307
|
-
|
|
308
|
-
* serverless event test ([#967](https://github.com/midwayjs/midway/issues/967)) ([e0c15e3](https://github.com/midwayjs/midway/commit/e0c15e316c2813fd574f38bdf6a16a339bfede18))
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
# [2.10.0](https://github.com/midwayjs/midway/compare/v2.9.3...v2.10.0) (2021-04-02)
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
### Features
|
|
318
|
-
|
|
319
|
-
* use @ServerlessTrigger replace functions in f.yml ([#919](https://github.com/midwayjs/midway/issues/919)) ([a85af14](https://github.com/midwayjs/midway/commit/a85af14e06231e8cd82eff8755794ffd13c3ad95))
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
## [2.9.3](https://github.com/midwayjs/midway/compare/v2.9.2...v2.9.3) (2021-03-30)
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
### Bug Fixes
|
|
329
|
-
|
|
330
|
-
* set error logger key ([#953](https://github.com/midwayjs/midway/issues/953)) ([25b4302](https://github.com/midwayjs/midway/commit/25b4302b16431031aa2c20304848db9a14a8babb))
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
## [2.9.2](https://github.com/midwayjs/midway/compare/v2.9.1...v2.9.2) (2021-03-27)
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
### Bug Fixes
|
|
340
|
-
|
|
341
|
-
* interface in serverless-app ([#947](https://github.com/midwayjs/midway/issues/947)) ([0b56648](https://github.com/midwayjs/midway/commit/0b566483d92d0ddac516e49dccc9218e05019220))
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
## [2.9.1](https://github.com/midwayjs/midway/compare/v2.9.0...v2.9.1) (2021-03-24)
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
### Bug Fixes
|
|
351
|
-
|
|
352
|
-
* npe for faas ([#943](https://github.com/midwayjs/midway/issues/943)) ([8c062f9](https://github.com/midwayjs/midway/commit/8c062f994b89a129a710586e517003f9e6524c31))
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
# [2.9.0](https://github.com/midwayjs/midway/compare/v2.8.13...v2.9.0) (2021-03-22)
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
### Features
|
|
362
|
-
|
|
363
|
-
* add socket.io-redis support ([#874](https://github.com/midwayjs/midway/issues/874)) ([2818920](https://github.com/midwayjs/midway/commit/2818920b9d3391c81666c5b8587a899b9b237d9e))
|
|
364
|
-
* run multi framework in one process ([#925](https://github.com/midwayjs/midway/issues/925)) ([330555f](https://github.com/midwayjs/midway/commit/330555f93b9af2a783771edd58bb9431a325938f))
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
## [2.8.13](https://github.com/midwayjs/midway/compare/v2.8.12...v2.8.13) (2021-03-17)
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
### Bug Fixes
|
|
374
|
-
|
|
375
|
-
* add missing typings ([#924](https://github.com/midwayjs/midway/issues/924)) ([a17c8d8](https://github.com/midwayjs/midway/commit/a17c8d8655d3f7a93469b922529b7a1aba212c10))
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
## [2.8.11](https://github.com/midwayjs/midway/compare/v2.8.10...v2.8.11) (2021-03-12)
|
|
382
|
-
|
|
383
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
## [2.8.9](https://github.com/midwayjs/midway/compare/v2.8.8...v2.8.9) (2021-03-08)
|
|
390
|
-
|
|
391
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
## [2.8.8](https://github.com/midwayjs/midway/compare/v2.8.7...v2.8.8) (2021-03-06)
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
### Bug Fixes
|
|
401
|
-
|
|
402
|
-
* handler ([#885](https://github.com/midwayjs/midway/issues/885)) ([89c6b53](https://github.com/midwayjs/midway/commit/89c6b53d2de8601394d1799c914dbf8177d37f5b))
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
## [2.8.7](https://github.com/midwayjs/midway/compare/v2.8.6...v2.8.7) (2021-03-04)
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
### Bug Fixes
|
|
412
|
-
|
|
413
|
-
* exports missing ([#884](https://github.com/midwayjs/midway/issues/884)) ([a360a0e](https://github.com/midwayjs/midway/commit/a360a0e645a9551cb9d90ceaf7871f3e0ab5b4d3))
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
## [2.8.6](https://github.com/midwayjs/midway/compare/v2.8.5...v2.8.6) (2021-03-03)
|
|
420
|
-
|
|
421
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
## [2.8.5](https://github.com/midwayjs/midway/compare/v2.8.4...v2.8.5) (2021-03-03)
|
|
428
|
-
|
|
429
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
## [2.8.4](https://github.com/midwayjs/midway/compare/v2.8.3...v2.8.4) (2021-03-03)
|
|
436
|
-
|
|
437
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
## [2.8.3](https://github.com/midwayjs/midway/compare/v2.8.2...v2.8.3) (2021-03-01)
|
|
444
|
-
|
|
445
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
## [2.8.2](https://github.com/midwayjs/midway/compare/v2.8.0...v2.8.2) (2021-02-27)
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
### Features
|
|
455
|
-
|
|
456
|
-
* support fun router ([#867](https://github.com/midwayjs/midway/issues/867)) ([01e673f](https://github.com/midwayjs/midway/commit/01e673f50d48d302e449ab88c2e419bcaeab1458))
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
# [2.8.0](https://github.com/midwayjs/midway/compare/v2.7.7...v2.8.0) (2021-02-24)
|
|
463
|
-
|
|
464
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
## [2.7.7](https://github.com/midwayjs/midway/compare/v2.7.6...v2.7.7) (2021-02-20)
|
|
471
|
-
|
|
472
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
## [2.7.5](https://github.com/midwayjs/midway/compare/v2.7.4...v2.7.5) (2021-02-08)
|
|
479
|
-
|
|
480
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
## [2.7.4](https://github.com/midwayjs/midway/compare/v2.7.3...v2.7.4) (2021-02-03)
|
|
487
|
-
|
|
488
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
## [2.7.2](https://github.com/midwayjs/midway/compare/v2.7.1...v2.7.2) (2021-01-28)
|
|
495
|
-
|
|
496
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
# [2.7.0](https://github.com/midwayjs/midway/compare/v2.6.13...v2.7.0) (2021-01-27)
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
### Features
|
|
506
|
-
|
|
507
|
-
* add midway gRPC framework ([#786](https://github.com/midwayjs/midway/issues/786)) ([d90362c](https://github.com/midwayjs/midway/commit/d90362c6bf15c00621ffc2981f19842f216395f8))
|
|
508
|
-
* support entry file in bootstrap ([#819](https://github.com/midwayjs/midway/issues/819)) ([49a5ff6](https://github.com/midwayjs/midway/commit/49a5ff662134bdd42dc3a80738b44a05138f8f7c))
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
## [2.6.13](https://github.com/midwayjs/midway/compare/v2.6.12...v2.6.13) (2021-01-21)
|
|
515
|
-
|
|
516
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
## [2.6.12](https://github.com/midwayjs/midway/compare/v2.6.11...v2.6.12) (2021-01-15)
|
|
523
|
-
|
|
524
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
## [2.6.11](https://github.com/midwayjs/midway/compare/v2.6.10...v2.6.11) (2021-01-11)
|
|
531
|
-
|
|
532
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
## [2.6.10](https://github.com/midwayjs/midway/compare/v2.6.9...v2.6.10) (2021-01-10)
|
|
539
|
-
|
|
540
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
## [2.6.9](https://github.com/midwayjs/midway/compare/v2.6.8...v2.6.9) (2021-01-08)
|
|
547
|
-
|
|
548
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
## [2.6.8](https://github.com/midwayjs/midway/compare/v2.6.7...v2.6.8) (2021-01-06)
|
|
555
|
-
|
|
556
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
## [2.6.7](https://github.com/midwayjs/midway/compare/v2.6.6...v2.6.7) (2021-01-05)
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
### Bug Fixes
|
|
566
|
-
|
|
567
|
-
* can't throw error in faas ([#790](https://github.com/midwayjs/midway/issues/790)) ([e740cda](https://github.com/midwayjs/midway/commit/e740cdaec5fbae0c4addb1eefbb428ea0a50d3eb))
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
## [2.6.6](https://github.com/midwayjs/midway/compare/v2.6.5...v2.6.6) (2021-01-04)
|
|
574
|
-
|
|
575
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
## [2.6.5](https://github.com/midwayjs/midway/compare/v2.6.4...v2.6.5) (2021-01-04)
|
|
582
|
-
|
|
583
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
## [2.6.4](https://github.com/midwayjs/midway/compare/v2.6.3...v2.6.4) (2021-01-02)
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
### Bug Fixes
|
|
593
|
-
|
|
594
|
-
* definition fix for getLogger and getCoreLogger ([#783](https://github.com/midwayjs/midway/issues/783)) ([264b481](https://github.com/midwayjs/midway/commit/264b4819f8f96dccabd1e5cd6ad2c7b3b8277136))
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
## [2.6.3](https://github.com/midwayjs/midway/compare/v2.6.2...v2.6.3) (2020-12-30)
|
|
601
|
-
|
|
602
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
## [2.6.2](https://github.com/midwayjs/midway/compare/v2.6.1...v2.6.2) (2020-12-30)
|
|
609
|
-
|
|
610
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
## [2.6.1](https://github.com/midwayjs/midway/compare/v2.6.0...v2.6.1) (2020-12-29)
|
|
617
|
-
|
|
618
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
# [2.6.0](https://github.com/midwayjs/midway/compare/v2.5.5...v2.6.0) (2020-12-28)
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
### Features
|
|
628
|
-
|
|
629
|
-
* add midway logger ([#743](https://github.com/midwayjs/midway/issues/743)) ([13e8cc7](https://github.com/midwayjs/midway/commit/13e8cc753d994e6f9f073688e22527f75d39984a))
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
## [2.5.5](https://github.com/midwayjs/midway/compare/v2.5.4...v2.5.5) (2020-12-15)
|
|
636
|
-
|
|
637
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
## [2.5.3](https://github.com/midwayjs/midway/compare/v2.5.2...v2.5.3) (2020-12-11)
|
|
644
|
-
|
|
645
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
## [2.5.2](https://github.com/midwayjs/midway/compare/v2.5.1...v2.5.2) (2020-12-04)
|
|
652
|
-
|
|
653
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
# [2.5.0](https://github.com/midwayjs/midway/compare/v2.4.8...v2.5.0) (2020-11-28)
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
### Features
|
|
663
|
-
|
|
664
|
-
* add getFunctionName() and functionSerivceName() method to runtime and faas framework ([#734](https://github.com/midwayjs/midway/issues/734)) ([f0bc5aa](https://github.com/midwayjs/midway/commit/f0bc5aadd224e6ec85691b9c82cc7993cbc32cdb))
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
## [2.4.7](https://github.com/midwayjs/midway/compare/v2.4.6...v2.4.7) (2020-11-23)
|
|
671
|
-
|
|
672
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
## [2.4.5](https://github.com/midwayjs/midway/compare/v2.4.4...v2.4.5) (2020-11-19)
|
|
679
|
-
|
|
680
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
## [2.4.3](https://github.com/midwayjs/midway/compare/v2.4.2...v2.4.3) (2020-11-16)
|
|
687
|
-
|
|
688
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
## [2.4.2](https://github.com/midwayjs/midway/compare/v2.4.1...v2.4.2) (2020-11-13)
|
|
695
|
-
|
|
696
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
## [2.4.1](https://github.com/midwayjs/midway/compare/v2.4.0...v2.4.1) (2020-11-12)
|
|
703
|
-
|
|
704
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
# [2.4.0](https://github.com/midwayjs/midway/compare/v2.3.23...v2.4.0) (2020-11-11)
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
### Features
|
|
714
|
-
|
|
715
|
-
* support define custom egg framework ([#709](https://github.com/midwayjs/midway/issues/709)) ([f5baba1](https://github.com/midwayjs/midway/commit/f5baba18d10e3dc91ba9651effadd00b8f66cf8b))
|
|
716
|
-
* **hooks:** use app hooks ([#708](https://github.com/midwayjs/midway/issues/708)) ([faf05c5](https://github.com/midwayjs/midway/commit/faf05c5cdba3e743568db74720f4927374c15f19))
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
## [2.3.23](https://github.com/midwayjs/midway/compare/v2.3.22...v2.3.23) (2020-11-03)
|
|
723
|
-
|
|
724
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
## [2.3.22](https://github.com/midwayjs/midway/compare/v2.3.21...v2.3.22) (2020-10-31)
|
|
731
|
-
|
|
732
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
## [2.3.20](https://github.com/midwayjs/midway/compare/v2.3.19...v2.3.20) (2020-10-29)
|
|
739
|
-
|
|
740
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
## [2.3.19](https://github.com/midwayjs/midway/compare/v2.3.18...v2.3.19) (2020-10-28)
|
|
747
|
-
|
|
748
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
## [2.3.18](https://github.com/midwayjs/midway/compare/v2.3.17...v2.3.18) (2020-10-27)
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
### Bug Fixes
|
|
758
|
-
|
|
759
|
-
* configuration inject plugin and more in production environment ([#680](https://github.com/midwayjs/midway/issues/680)) ([41bce5d](https://github.com/midwayjs/midway/commit/41bce5d8a60a6fde61ff62794612eecff2e260ed))
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
## [2.3.17](https://github.com/midwayjs/midway/compare/v2.3.16...v2.3.17) (2020-10-22)
|
|
766
|
-
|
|
767
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
## [2.3.15](https://github.com/midwayjs/midway/compare/v2.3.14...v2.3.15) (2020-10-15)
|
|
774
|
-
|
|
775
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
## [2.3.14](https://github.com/midwayjs/midway/compare/v2.3.13...v2.3.14) (2020-10-15)
|
|
782
|
-
|
|
783
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
## [2.3.13](https://github.com/midwayjs/midway/compare/v2.3.12...v2.3.13) (2020-10-13)
|
|
790
|
-
|
|
791
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
## [2.3.11](https://github.com/midwayjs/midway/compare/v2.3.10...v2.3.11) (2020-10-08)
|
|
798
|
-
|
|
799
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
## [2.3.10](https://github.com/midwayjs/midway/compare/v2.3.9...v2.3.10) (2020-10-08)
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
### Bug Fixes
|
|
809
|
-
|
|
810
|
-
* component inject global object and add case ([#663](https://github.com/midwayjs/midway/issues/663)) ([e768ee8](https://github.com/midwayjs/midway/commit/e768ee872ed9855252346920318a32133328c0fe))
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
## [2.3.9](https://github.com/midwayjs/midway/compare/v2.3.8...v2.3.9) (2020-10-05)
|
|
817
|
-
|
|
818
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
## [2.3.8](https://github.com/midwayjs/midway/compare/v2.3.7...v2.3.8) (2020-10-05)
|
|
825
|
-
|
|
826
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
## [2.3.7](https://github.com/midwayjs/midway/compare/v2.3.6...v2.3.7) (2020-10-04)
|
|
833
|
-
|
|
834
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
## [2.3.6](https://github.com/midwayjs/midway/compare/v2.3.4...v2.3.6) (2020-10-02)
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
### Bug Fixes
|
|
844
|
-
|
|
845
|
-
* implement optional dep for amqplib in mock package ([#654](https://github.com/midwayjs/midway/issues/654)) ([3319872](https://github.com/midwayjs/midway/commit/33198727855ff042db7d96723992b49c632aa25d))
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
## [2.3.4](https://github.com/midwayjs/midway/compare/v2.3.3...v2.3.4) (2020-09-28)
|
|
852
|
-
|
|
853
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
## [2.3.2](https://github.com/midwayjs/midway/compare/v2.3.1...v2.3.2) (2020-09-28)
|
|
860
|
-
|
|
861
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
## [2.3.1](https://github.com/midwayjs/midway/compare/v2.3.0...v2.3.1) (2020-09-27)
|
|
868
|
-
|
|
869
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
# [2.3.0](https://github.com/midwayjs/midway/compare/v2.2.10...v2.3.0) (2020-09-27)
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
### Features
|
|
879
|
-
|
|
880
|
-
* add rabbitmq ([#647](https://github.com/midwayjs/midway/issues/647)) ([2c03eb4](https://github.com/midwayjs/midway/commit/2c03eb4f5e979d309048a11f17f7579a1d299ba1))
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
## [2.2.10](https://github.com/midwayjs/midway/compare/v2.2.9...v2.2.10) (2020-09-24)
|
|
887
|
-
|
|
888
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
## [2.2.9](https://github.com/midwayjs/midway/compare/v2.2.8...v2.2.9) (2020-09-24)
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
### Bug Fixes
|
|
898
|
-
|
|
899
|
-
* remove sourcemap and src in dist ([#645](https://github.com/midwayjs/midway/issues/645)) ([e561a88](https://github.com/midwayjs/midway/commit/e561a88f4a70af15d4be3d5fe0bd39487677d4ce))
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
## [2.2.8](https://github.com/midwayjs/midway/compare/v2.2.7...v2.2.8) (2020-09-23)
|
|
906
|
-
|
|
907
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
## [2.2.7](https://github.com/midwayjs/midway/compare/v2.2.6...v2.2.7) (2020-09-20)
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
### Bug Fixes
|
|
917
|
-
|
|
918
|
-
* WebMiddleare to IWebMiddleware ([e69cf28](https://github.com/midwayjs/midway/commit/e69cf286fa76ab3144404806c5cbbe8642cdcd61))
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
## [2.2.6](https://github.com/midwayjs/midway/compare/v2.2.5...v2.2.6) (2020-09-18)
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
### Features
|
|
928
|
-
|
|
929
|
-
* add aop ([#640](https://github.com/midwayjs/midway/issues/640)) ([c3e15b3](https://github.com/midwayjs/midway/commit/c3e15b328c184318e364bf40d32fa4df6be2a30a))
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
## [2.2.5](https://github.com/midwayjs/midway/compare/v2.2.4...v2.2.5) (2020-09-17)
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
### Features
|
|
939
|
-
|
|
940
|
-
* add generateMiddleware for express and faas ([bfcfc9a](https://github.com/midwayjs/midway/commit/bfcfc9a377f01026a459aaed35a3f0fdf0530f26))
|
|
941
|
-
* use midway cli replace egg-bin ([#639](https://github.com/midwayjs/midway/issues/639)) ([62bbf38](https://github.com/midwayjs/midway/commit/62bbf3852899476600a0b594cb7dc274b05e29ec))
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
## [2.2.4](https://github.com/midwayjs/midway/compare/v2.2.3...v2.2.4) (2020-09-15)
|
|
948
|
-
|
|
949
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
## [2.2.3](https://github.com/midwayjs/midway/compare/v2.2.2...v2.2.3) (2020-09-14)
|
|
956
|
-
|
|
957
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
## [2.2.2](https://github.com/midwayjs/midway/compare/v2.2.1...v2.2.2) (2020-09-14)
|
|
964
|
-
|
|
965
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
## [2.2.1](https://github.com/midwayjs/midway/compare/v2.2.0...v2.2.1) (2020-09-14)
|
|
972
|
-
|
|
973
|
-
**Note:** Version bump only for package @midwayjs/faas
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
# [2.2.0](https://github.com/midwayjs/midway/compare/v2.1.4...v2.2.0) (2020-09-13)
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
### Features
|
|
983
|
-
|
|
984
|
-
* complete 2.x beta ([#630](https://github.com/midwayjs/midway/issues/630)) ([b23cd00](https://github.com/midwayjs/midway/commit/b23cd00fe9cefc9057a2284d38d5419773539206))
|