@midwayjs/rabbitmq 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/configuration.js.map +1 -0
- package/dist/framework.js +1 -1
- package/dist/framework.js.map +1 -0
- package/dist/index.js.map +1 -0
- package/dist/interface.js.map +1 -0
- package/dist/mq.js.map +1 -0
- package/package.json +14 -13
- package/CHANGELOG.md +0 -810
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../src/configuration.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mDAA4D;AAC5D,2CAAsD;AAYtD,IAAa,qBAAqB,GAAlC,MAAa,qBAAqB;IAIhC,KAAK,CAAC,OAAO,KAAI,CAAC;CACnB,CAAA;AAHC;IADC,IAAA,kBAAM,GAAE;8BACE,mCAAuB;wDAAC;AAFxB,qBAAqB;IAVjC,IAAA,yBAAa,EAAC;QACb,SAAS,EAAE,UAAU;QACrB,aAAa,EAAE;YACb;gBACE,OAAO,EAAE;oBACP,cAAc,EAAE,EAAE;iBACnB;aACF;SACF;KACF,CAAC;GACW,qBAAqB,CAKjC;AALY,sDAAqB","sourcesContent":["import { Configuration, Inject } from '@midwayjs/decorator';\nimport { MidwayRabbitMQFramework } from './framework';\n\n@Configuration({\n namespace: 'rabbitMQ',\n importConfigs: [\n {\n default: {\n rabbitMQServer: {},\n },\n },\n ],\n})\nexport class RabbitMQConfiguration {\n @Inject()\n framework: MidwayRabbitMQFramework;\n\n async onReady() {}\n}\n"]}
|
package/dist/framework.js
CHANGED
|
@@ -58,7 +58,7 @@ let MidwayRabbitMQFramework = class MidwayRabbitMQFramework extends core_1.BaseF
|
|
|
58
58
|
};
|
|
59
59
|
this.app.createAnonymousContext(ctx);
|
|
60
60
|
const ins = await ctx.requestContext.getAsync(module);
|
|
61
|
-
const fn = await this.
|
|
61
|
+
const fn = await this.applyMiddleware(async (ctx) => {
|
|
62
62
|
return await ins[listenerOptions.propertyKey].call(ins, data);
|
|
63
63
|
});
|
|
64
64
|
try {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"framework.js","sourceRoot":"","sources":["../src/framework.ts"],"names":[],"mappings":";;;;;;;;;AAAA,mDAU6B;AAC7B,yCAA+C;AAM/C,6BAAsC;AAItC,IAAa,uBAAuB,GAApC,MAAa,uBAAwB,SAAQ,oBAI5C;IAJD;;QAMS,wBAAmB,GAAG,EAAE,CAAC;IAoFlC,CAAC;IAlFC,SAAS;QACP,OAAO,IAAI,CAAC,aAAa,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;IAC/D,CAAC;IAED,KAAK,CAAC,qBAAqB,CAAC,OAAO;QACjC,8BAA8B;QAC9B,IAAI,CAAC,GAAG,GAAG,IAAI,mBAAc,CAAC;YAC5B,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,GAAG,IAAI,CAAC,oBAAoB;SAC7B,CAA0C,CAAC;IAC9C,CAAC;IAEM,KAAK,CAAC,GAAG;QACd,kBAAkB;QAClB,MAAM,IAAI,CAAC,GAAG,CAAC,OAAO,CACpB,IAAI,CAAC,oBAAoB,CAAC,GAAG,EAC7B,IAAI,CAAC,oBAAoB,CAAC,aAAa,CACxC,CAAC;QACF,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;QAC5B,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,+BAA+B,CAAC,CAAC;IACpD,CAAC;IAES,KAAK,CAAC,UAAU;QACxB,MAAM,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC;IACzB,CAAC;IAEM,gBAAgB;QACrB,OAAO,+BAAmB,CAAC,WAAW,CAAC;IACzC,CAAC;IAEO,KAAK,CAAC,cAAc;QAC1B,iBAAiB;QACjB,MAAM,iBAAiB,GAAG,IAAA,sBAAU,EAAC,2BAAe,EAAE,MAAM,CAAC,EAAE;YAC7D,MAAM,QAAQ,GAAsC,IAAA,4BAAgB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AAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;yBAC1B;oBACH,CAAC,CACF,CAAC;iBACH;aACF;SACF;IACH,CAAC;IAEM,gBAAgB;QACrB,OAAO,iBAAiB,CAAC;IAC3B,CAAC;CACF,CAAA;AA1FY,uBAAuB;IADnC,IAAA,qBAAS,GAAE;GACC,uBAAuB,CA0FnC;AA1FY,0DAAuB","sourcesContent":["import {\n getClassMetadata,\n listModule,\n listPropertyDataFromClass,\n MidwayFrameworkType,\n ConsumerMetadata,\n MS_CONSUMER_KEY,\n MSListenerType,\n RabbitMQListenerOptions,\n Framework,\n} from '@midwayjs/decorator';\nimport { BaseFramework } from '@midwayjs/core';\nimport {\n IMidwayRabbitMQApplication,\n IMidwayRabbitMQConfigurationOptions,\n IMidwayRabbitMQContext,\n} from './interface';\nimport { RabbitMQServer } from './mq';\nimport { ConsumeMessage } from 'amqplib';\n\n@Framework()\nexport class MidwayRabbitMQFramework extends BaseFramework<\n IMidwayRabbitMQApplication,\n IMidwayRabbitMQContext,\n IMidwayRabbitMQConfigurationOptions\n> {\n public app: IMidwayRabbitMQApplication;\n public consumerHandlerList = [];\n\n configure() {\n return this.configService.getConfiguration('rabbitMQServer');\n }\n\n async applicationInitialize(options) {\n // Create a connection manager\n this.app = new RabbitMQServer({\n logger: this.logger,\n ...this.configurationOptions,\n }) as unknown as IMidwayRabbitMQApplication;\n }\n\n public async run(): Promise<void> {\n // init connection\n await this.app.connect(\n this.configurationOptions.url,\n this.configurationOptions.socketOptions\n );\n await this.loadSubscriber();\n this.logger.info('Rabbitmq server start success');\n }\n\n protected async beforeStop(): Promise<void> {\n await this.app.close();\n }\n\n public getFrameworkType(): MidwayFrameworkType {\n return MidwayFrameworkType.MS_RABBITMQ;\n }\n\n private async loadSubscriber() {\n // create channel\n const subscriberModules = listModule(MS_CONSUMER_KEY, module => {\n const metadata: ConsumerMetadata.ConsumerMetadata = getClassMetadata(\n MS_CONSUMER_KEY,\n module\n );\n return metadata.type === MSListenerType.RABBITMQ;\n });\n for (const module of subscriberModules) {\n const data: RabbitMQListenerOptions[][] = listPropertyDataFromClass(\n MS_CONSUMER_KEY,\n module\n );\n\n for (const methodBindListeners of data) {\n // 循环绑定的方法和监听的配置信息\n for (const listenerOptions of methodBindListeners) {\n await this.app.createConsumer(\n listenerOptions,\n async (data: ConsumeMessage, channel, channelWrapper) => {\n const ctx = {\n channel,\n queueName: listenerOptions.queueName,\n ack: data => {\n return channelWrapper.ack(data);\n },\n } as IMidwayRabbitMQContext;\n this.app.createAnonymousContext(ctx);\n const ins = await ctx.requestContext.getAsync(module);\n const fn = await this.applyMiddleware(async ctx => {\n return await ins[listenerOptions.propertyKey].call(ins, data);\n });\n\n try {\n const result = await fn(ctx);\n if (result) {\n return channelWrapper.ack(data);\n }\n } catch (error) {\n this.logger.error(error);\n }\n }\n );\n }\n }\n }\n }\n\n public getFrameworkName() {\n return 'midway:rabbitmq';\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yCAAmE;AAA1D,sGAAA,uBAAuB,OAAa;AAC7C,8CAA4B;AAC5B,iDAAyE;AAAhE,8GAAA,qBAAqB,OAAiB","sourcesContent":["export { MidwayRabbitMQFramework as Framework } from './framework';\nexport * from './interface';\nexport { RabbitMQConfiguration as Configuration } from './configuration';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interface.js","sourceRoot":"","sources":["../src/interface.ts"],"names":[],"mappings":"","sourcesContent":["import {\n IConfigurationOptions,\n IMidwayApplication,\n IMidwayContext,\n NextFunction as BaseNextFunction\n} from '@midwayjs/core';\nimport { ConsumeMessage, Options } from 'amqplib/properties';\nimport { RabbitMQListenerOptions } from '@midwayjs/decorator';\nimport type { ConfirmChannel, Channel, Options as AmqpOptions } from 'amqplib';\n\nexport interface IRabbitMQApplication {\n connect(...args): Promise<void>;\n createChannel(): Promise<Channel | ConfirmChannel>;\n createConsumer(listenerOptions: RabbitMQListenerOptions, listenerCallback: (msg: ConsumeMessage | null, channel: Channel, channelWrapper) => Promise<void>): Promise<void>;\n close(): Promise<void>;\n}\n\nexport type IMidwayRabbitMQApplication = IMidwayApplication<IMidwayRabbitMQContext> & IRabbitMQApplication;\n\nexport interface IRabbitMQExchange {\n name: string,\n type: string,\n options?: Options.AssertExchange\n}\n\nexport interface IMidwayRabbitMQConfigurationOptions extends IConfigurationOptions {\n url: string | Options.Connect,\n socketOptions?: any;\n reconnectTime?: number;\n exchanges?: IRabbitMQExchange[];\n useConfirmChannel?: boolean;\n}\n\nexport type IMidwayRabbitMQContext = IMidwayContext<{\n channel: Channel;\n queueName: string;\n ack: (data: any) => void;\n}>;\n\nexport type Application = IMidwayRabbitMQApplication;\nexport interface Context extends IMidwayRabbitMQContext {}\nexport type NextFunction = BaseNextFunction;\nexport type DefaultConfig = string | AmqpOptions.Connect;\n\ndeclare module '@midwayjs/core/dist/interface' {\n interface MidwayConfig {\n rabbitMQServer?: PowerPartial<IMidwayRabbitMQConfigurationOptions>;\n }\n}\n\n"]}
|
package/dist/mq.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mq.js","sourceRoot":"","sources":["../src/mq.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,gDAAgD;AAMhD,mCAAsC;AAEtC,MAAa,cACX,SAAQ,qBAAY;IAQpB,YAAY,UAAe,EAAE;;QAC3B,KAAK,EAAE,CAAC;QANA,sBAAiB,GAAiB,IAAI,GAAG,EAAE,CAAC;QAC5C,eAAU,GAA+B,IAAI,CAAC;QAMtD,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;QAC7B,IAAI,CAAC,aAAa,GAAG,MAAA,OAAO,CAAC,aAAa,mCAAI,EAAE,GAAG,IAAI,CAAC;QACxD,IAAI,CAAC,SAAS,EAAE,CAAC;IACnB,CAAC;IAED,SA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C;YACtC,CAAC;YACD,IAAI,EAAE,IAAI;SACX,CAAC,CAAC;QACH,OAAO,cAAc,CAAC,cAAc,EAAE,CAAC;IACzC,CAAC;IAES,KAAK,CAAC,eAAe;QAC7B,IAAI;YACF,IAAI,IAAI,CAAC,UAAU,EAAE;gBACnB,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;aAC/B;YACD,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,wCAAwC,CAAC,CAAC;SAC7D;QAAC,OAAO,GAAG,EAAE;YACZ,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,sCAAsC,EAAE,GAAG,CAAC,CAAC;SAChE;gBAAS;YACR,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;SACxB;IACH,CAAC;IAED,KAAK,CAAC,KAAK;QACT,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC;QACjD,MAAM,IAAI,CAAC,eAAe,EAAE,CAAC;IAC/B,CAAC;CACF;AAlID,wCAkIC","sourcesContent":["/**\n * This RabbitMQ Server changed from https://github.com/JeniTurtle/egg-rabbitmq-plus/blob/master/rabbitmq.ts\n */\n\nimport * as amqp from 'amqp-connection-manager';\nimport { IRabbitMQApplication } from './interface';\nimport { ConsumeMessage } from 'amqplib/properties';\nimport { RabbitMQListenerOptions } from '@midwayjs/decorator';\nimport type { Channel } from 'amqplib';\nimport { ILogger } from '@midwayjs/logger';\nimport { EventEmitter } from 'events';\n\nexport class RabbitMQServer\n extends EventEmitter\n implements IRabbitMQApplication\n{\n protected channelManagerSet: Set<Channel> = new Set();\n protected connection: amqp.AmqpConnectionManager = null;\n protected logger: ILogger;\n protected reconnectTime;\n\n constructor(options: any = {}) {\n super();\n this.logger = options.logger;\n this.reconnectTime = options.reconnectTime ?? 10 * 1000;\n this.bindError();\n }\n\n bindError() {\n this.on('error', err => {\n this.logger.error(err);\n });\n }\n\n createChannel(isConfirmChannel = false): Promise<any> {\n if (!isConfirmChannel) {\n return this.connection.connection.createChannel();\n } else {\n return this.connection.connection.createConfirmChannel();\n }\n }\n\n async connect(url, socketOptions) {\n try {\n this.connection = await amqp.connect(url, socketOptions);\n this.connection.on('connect', () => {\n this.logger.info('Message Queue connected!');\n });\n this.connection.on('disconnect', err => {\n if (err) {\n if (err.err) {\n err = err.err as any;\n }\n this.logger.error('Message Queue disconnected', err);\n } else {\n this.logger.info('Message Queue disconnected!');\n }\n });\n } catch (error) {\n this.logger.error('Message Queue connect fail', error);\n await this.closeConnection();\n }\n }\n\n async createConsumer(\n listenerOptions: RabbitMQListenerOptions,\n listenerCallback: (\n msg: ConsumeMessage | null,\n channel: Channel,\n channelWrapper\n ) => Promise<void>\n ) {\n const channelWrapper = this.connection.createChannel({\n setup: (channel: Channel) => {\n // `channel` here is a regular amqplib `ConfirmChannel`.\n const channelHandlers = [];\n\n // create queue\n channelHandlers.push(\n channel.assertQueue(\n listenerOptions.queueName,\n Object.assign({ durable: true }, listenerOptions)\n )\n );\n\n if (listenerOptions.exchange) {\n // create exchange\n channelHandlers.push(\n channel.assertExchange(\n listenerOptions.exchange,\n listenerOptions.exchangeOptions?.type ?? 'topic',\n listenerOptions.exchangeOptions\n )\n );\n // bind exchange and queue\n channelHandlers.push(\n channel.bindQueue(\n listenerOptions.queueName,\n listenerOptions.exchange,\n listenerOptions.routingKey || listenerOptions.pattern,\n listenerOptions.exchangeOptions\n )\n );\n }\n\n channelHandlers.push(channel.prefetch(listenerOptions.prefetch ?? 1));\n\n // listen queue\n channelHandlers.push(\n channel.consume(\n listenerOptions.queueName,\n async msg => {\n await listenerCallback(msg, channel, channelWrapper);\n },\n listenerOptions.consumeOptions\n )\n );\n\n return Promise.all(channelHandlers);\n },\n json: true,\n });\n return channelWrapper.waitForConnect();\n }\n\n protected async closeConnection() {\n try {\n if (this.connection) {\n await this.connection.close();\n }\n this.logger.debug('Message Queue connection close success');\n } catch (err) {\n this.logger.error('Message Queue connection close error', err);\n } finally {\n this.connection = null;\n }\n }\n\n async close() {\n this.logger.debug('Message Queue will be close');\n await this.closeConnection();\n }\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/rabbitmq",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "Midway Framework for rabbitmq",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "tsc",
|
|
9
|
-
"test": "node --require=ts-node/register ../../node_modules/.bin/jest",
|
|
10
|
-
"cov": "node --require=ts-node/register ../../node_modules/.bin/jest --coverage --forceExit",
|
|
9
|
+
"test": "node --require=ts-node/register ../../node_modules/.bin/jest --runInBand",
|
|
10
|
+
"cov": "node --require=ts-node/register ../../node_modules/.bin/jest --runInBand --coverage --forceExit",
|
|
11
11
|
"lint:fix": "../../node_modules/.bin/mwts fix"
|
|
12
12
|
},
|
|
13
13
|
"keywords": [
|
|
@@ -19,20 +19,21 @@
|
|
|
19
19
|
],
|
|
20
20
|
"files": [
|
|
21
21
|
"dist/**/*.js",
|
|
22
|
-
"dist/**/*.d.ts"
|
|
22
|
+
"dist/**/*.d.ts",
|
|
23
|
+
"dist/**/*.js.map"
|
|
23
24
|
],
|
|
24
25
|
"license": "MIT",
|
|
25
26
|
"devDependencies": {
|
|
26
|
-
"@midwayjs/decorator": "^3.0.
|
|
27
|
-
"@midwayjs/mock": "^3.0.
|
|
28
|
-
"@types/amqplib": "
|
|
29
|
-
"
|
|
27
|
+
"@midwayjs/decorator": "^3.0.2",
|
|
28
|
+
"@midwayjs/mock": "^3.0.2",
|
|
29
|
+
"@types/amqplib": "0.8.2",
|
|
30
|
+
"amqplib": "0.8.0",
|
|
31
|
+
"fs-extra": "10.0.0"
|
|
30
32
|
},
|
|
31
33
|
"dependencies": {
|
|
32
|
-
"@midwayjs/core": "^3.0.
|
|
33
|
-
"@midwayjs/logger": "^
|
|
34
|
-
"amqp-connection-manager": "
|
|
35
|
-
"amqplib": "*"
|
|
34
|
+
"@midwayjs/core": "^3.0.2",
|
|
35
|
+
"@midwayjs/logger": "^2.14.0",
|
|
36
|
+
"amqp-connection-manager": "4.0.1"
|
|
36
37
|
},
|
|
37
38
|
"peerDependencies": {
|
|
38
39
|
"@types/amqplib": "*",
|
|
@@ -46,5 +47,5 @@
|
|
|
46
47
|
"engines": {
|
|
47
48
|
"node": ">=12"
|
|
48
49
|
},
|
|
49
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "ca77247d229978a736e79bb208579c014ed226fc"
|
|
50
51
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,810 +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
|
-
|
|
9
|
-
### Bug Fixes
|
|
10
|
-
|
|
11
|
-
* express routing middleware takes effect at the controller level ([#1364](https://github.com/midwayjs/midway/issues/1364)) ([b9272e0](https://github.com/midwayjs/midway/commit/b9272e0971003443304b0c53815be31a0061b4bd))
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
# [3.0.0-beta.7](https://github.com/midwayjs/midway/compare/v3.0.0-beta.6...v3.0.0-beta.7) (2021-12-03)
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
### Bug Fixes
|
|
21
|
-
|
|
22
|
-
* middleware with ctx.body ([#1389](https://github.com/midwayjs/midway/issues/1389)) ([77af5c0](https://github.com/midwayjs/midway/commit/77af5c0b456f1843f4dcfd3dbfd2c0aa244c51bd))
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
# [3.0.0-beta.6](https://github.com/midwayjs/midway/compare/v3.0.0-beta.5...v3.0.0-beta.6) (2021-11-26)
|
|
29
|
-
|
|
30
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
# [3.0.0-beta.5](https://github.com/midwayjs/midway/compare/v3.0.0-beta.4...v3.0.0-beta.5) (2021-11-25)
|
|
37
|
-
|
|
38
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
# [3.0.0-beta.4](https://github.com/midwayjs/midway/compare/v3.0.0-beta.3...v3.0.0-beta.4) (2021-11-24)
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
### Features
|
|
48
|
-
|
|
49
|
-
* add i18n ([#1375](https://github.com/midwayjs/midway/issues/1375)) ([bffefe0](https://github.com/midwayjs/midway/commit/bffefe07afe45777d49b5a76b9ab17fc2b9d9a55))
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
# [3.0.0-beta.3](https://github.com/midwayjs/midway/compare/v3.0.0-beta.2...v3.0.0-beta.3) (2021-11-18)
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
### Features
|
|
59
|
-
|
|
60
|
-
* add component and framework config definition ([#1367](https://github.com/midwayjs/midway/issues/1367)) ([b2fe615](https://github.com/midwayjs/midway/commit/b2fe6157f99659471ff1333eca0b86bb889f61a3))
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
# [3.0.0-beta.2](https://github.com/midwayjs/midway/compare/v3.0.0-beta.1...v3.0.0-beta.2) (2021-11-16)
|
|
67
|
-
|
|
68
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
# [3.0.0-beta.1](https://github.com/midwayjs/midway/compare/v2.12.4...v3.0.0-beta.1) (2021-11-14)
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
### Bug Fixes
|
|
78
|
-
|
|
79
|
-
* ci、build and type error with rabbitmq ([#1253](https://github.com/midwayjs/midway/issues/1253)) ([80ae991](https://github.com/midwayjs/midway/commit/80ae9919e1c21c9e326b5f186f891d14d43495a5))
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
## [2.12.3](https://github.com/midwayjs/midway/compare/v2.12.2...v2.12.3) (2021-08-09)
|
|
86
|
-
|
|
87
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
## [2.12.1](https://github.com/midwayjs/midway/compare/v2.12.0...v2.12.1) (2021-08-01)
|
|
94
|
-
|
|
95
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
# [2.12.0](https://github.com/midwayjs/midway/compare/v2.11.7...v2.12.0) (2021-07-30)
|
|
102
|
-
|
|
103
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
## [2.11.6](https://github.com/midwayjs/midway/compare/v2.11.5...v2.11.6) (2021-07-16)
|
|
110
|
-
|
|
111
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
## [2.11.5](https://github.com/midwayjs/midway/compare/v2.11.4...v2.11.5) (2021-07-15)
|
|
118
|
-
|
|
119
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
## [2.11.4](https://github.com/midwayjs/midway/compare/v2.11.3...v2.11.4) (2021-07-06)
|
|
126
|
-
|
|
127
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
## [2.11.3](https://github.com/midwayjs/midway/compare/v2.11.2...v2.11.3) (2021-07-02)
|
|
134
|
-
|
|
135
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
## [2.11.2](https://github.com/midwayjs/midway/compare/v2.11.1...v2.11.2) (2021-06-28)
|
|
142
|
-
|
|
143
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
## [2.11.1](https://github.com/midwayjs/midway/compare/v2.11.0...v2.11.1) (2021-06-19)
|
|
150
|
-
|
|
151
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
# [2.11.0](https://github.com/midwayjs/midway/compare/v2.10.19...v2.11.0) (2021-06-10)
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
### Bug Fixes
|
|
161
|
-
|
|
162
|
-
* rabbitmq reconnection and test ([#1012](https://github.com/midwayjs/midway/issues/1012)) ([c2bea86](https://github.com/midwayjs/midway/commit/c2bea861430a13e53e5b100ea3935f20889c1fff))
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
## [2.10.18](https://github.com/midwayjs/midway/compare/v2.10.17...v2.10.18) (2021-05-26)
|
|
169
|
-
|
|
170
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
## [2.10.14](https://github.com/midwayjs/midway/compare/v2.10.13...v2.10.14) (2021-05-11)
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
### Bug Fixes
|
|
180
|
-
|
|
181
|
-
* serverless app more method ([#1034](https://github.com/midwayjs/midway/issues/1034)) ([9c44c3f](https://github.com/midwayjs/midway/commit/9c44c3f58930d0c12464d00eceee93cb9e7aaa62))
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
## [2.10.13](https://github.com/midwayjs/midway/compare/v2.10.12...v2.10.13) (2021-05-08)
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
### Bug Fixes
|
|
191
|
-
|
|
192
|
-
* remove zlib ([#1035](https://github.com/midwayjs/midway/issues/1035)) ([cc2cd40](https://github.com/midwayjs/midway/commit/cc2cd405a104b3388d93a09d981b59b472fd8ea1))
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
## [2.10.12](https://github.com/midwayjs/midway/compare/v2.10.11...v2.10.12) (2021-05-07)
|
|
199
|
-
|
|
200
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
## [2.10.11](https://github.com/midwayjs/midway/compare/v2.10.10...v2.10.11) (2021-04-29)
|
|
207
|
-
|
|
208
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
## [2.10.10](https://github.com/midwayjs/midway/compare/v2.10.9...v2.10.10) (2021-04-24)
|
|
215
|
-
|
|
216
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
## [2.10.9](https://github.com/midwayjs/midway/compare/v2.10.8...v2.10.9) (2021-04-21)
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
### Bug Fixes
|
|
226
|
-
|
|
227
|
-
* rabbitmq parameter error ([#1002](https://github.com/midwayjs/midway/issues/1002)) ([cdbd5f9](https://github.com/midwayjs/midway/commit/cdbd5f9e5ba3b1d1e2cf26cb59eaec9447514416))
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
## [2.10.8](https://github.com/midwayjs/midway/compare/v2.10.7...v2.10.8) (2021-04-21)
|
|
234
|
-
|
|
235
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
## [2.10.7](https://github.com/midwayjs/midway/compare/v2.10.6...v2.10.7) (2021-04-17)
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
### Bug Fixes
|
|
245
|
-
|
|
246
|
-
* add event name args ([#986](https://github.com/midwayjs/midway/issues/986)) ([bfd8232](https://github.com/midwayjs/midway/commit/bfd82320aee8600d8fa30bd2821a0e68c80fd755))
|
|
247
|
-
* format ([#997](https://github.com/midwayjs/midway/issues/997)) ([456cc14](https://github.com/midwayjs/midway/commit/456cc14513bdb000d1aa3130e9719caf7a8a803f))
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
## [2.10.6](https://github.com/midwayjs/midway/compare/v2.10.5...v2.10.6) (2021-04-14)
|
|
254
|
-
|
|
255
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
## [2.10.5](https://github.com/midwayjs/midway/compare/v2.10.4...v2.10.5) (2021-04-13)
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
### Bug Fixes
|
|
265
|
-
|
|
266
|
-
* delay load without layer and egg-cluster ([#985](https://github.com/midwayjs/midway/issues/985)) ([52ba60d](https://github.com/midwayjs/midway/commit/52ba60d67d6e2df7a53609f72ec067dc083317ce))
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
## [2.10.4](https://github.com/midwayjs/midway/compare/v2.10.3...v2.10.4) (2021-04-10)
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
### Bug Fixes
|
|
276
|
-
|
|
277
|
-
* clear container cache when test ([#978](https://github.com/midwayjs/midway/issues/978)) ([a202075](https://github.com/midwayjs/midway/commit/a202075b52d281e06f1ed7c6139e968fafc960f6))
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
## [2.10.3](https://github.com/midwayjs/midway/compare/v2.10.2...v2.10.3) (2021-04-07)
|
|
284
|
-
|
|
285
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
## [2.10.2](https://github.com/midwayjs/midway/compare/v2.10.1...v2.10.2) (2021-04-05)
|
|
292
|
-
|
|
293
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
# [2.10.0](https://github.com/midwayjs/midway/compare/v2.9.3...v2.10.0) (2021-04-02)
|
|
300
|
-
|
|
301
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
## [2.9.3](https://github.com/midwayjs/midway/compare/v2.9.2...v2.9.3) (2021-03-30)
|
|
308
|
-
|
|
309
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
## [2.9.2](https://github.com/midwayjs/midway/compare/v2.9.1...v2.9.2) (2021-03-27)
|
|
316
|
-
|
|
317
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
## [2.9.1](https://github.com/midwayjs/midway/compare/v2.9.0...v2.9.1) (2021-03-24)
|
|
324
|
-
|
|
325
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
# [2.9.0](https://github.com/midwayjs/midway/compare/v2.8.13...v2.9.0) (2021-03-22)
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
### Features
|
|
335
|
-
|
|
336
|
-
* add socket.io-redis support ([#874](https://github.com/midwayjs/midway/issues/874)) ([2818920](https://github.com/midwayjs/midway/commit/2818920b9d3391c81666c5b8587a899b9b237d9e))
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
## [2.8.13](https://github.com/midwayjs/midway/compare/v2.8.12...v2.8.13) (2021-03-17)
|
|
343
|
-
|
|
344
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
## [2.8.11](https://github.com/midwayjs/midway/compare/v2.8.10...v2.8.11) (2021-03-12)
|
|
351
|
-
|
|
352
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
## [2.8.9](https://github.com/midwayjs/midway/compare/v2.8.8...v2.8.9) (2021-03-08)
|
|
359
|
-
|
|
360
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
## [2.8.8](https://github.com/midwayjs/midway/compare/v2.8.7...v2.8.8) (2021-03-06)
|
|
367
|
-
|
|
368
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
## [2.8.7](https://github.com/midwayjs/midway/compare/v2.8.6...v2.8.7) (2021-03-04)
|
|
375
|
-
|
|
376
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
## [2.8.6](https://github.com/midwayjs/midway/compare/v2.8.5...v2.8.6) (2021-03-03)
|
|
383
|
-
|
|
384
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
## [2.8.5](https://github.com/midwayjs/midway/compare/v2.8.4...v2.8.5) (2021-03-03)
|
|
391
|
-
|
|
392
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
## [2.8.4](https://github.com/midwayjs/midway/compare/v2.8.3...v2.8.4) (2021-03-03)
|
|
399
|
-
|
|
400
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
## [2.8.3](https://github.com/midwayjs/midway/compare/v2.8.2...v2.8.3) (2021-03-01)
|
|
407
|
-
|
|
408
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
## [2.8.2](https://github.com/midwayjs/midway/compare/v2.8.0...v2.8.2) (2021-02-27)
|
|
415
|
-
|
|
416
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
# [2.8.0](https://github.com/midwayjs/midway/compare/v2.7.7...v2.8.0) (2021-02-24)
|
|
423
|
-
|
|
424
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
## [2.7.7](https://github.com/midwayjs/midway/compare/v2.7.6...v2.7.7) (2021-02-20)
|
|
431
|
-
|
|
432
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
## [2.7.5](https://github.com/midwayjs/midway/compare/v2.7.4...v2.7.5) (2021-02-08)
|
|
439
|
-
|
|
440
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
## [2.7.2](https://github.com/midwayjs/midway/compare/v2.7.1...v2.7.2) (2021-01-28)
|
|
447
|
-
|
|
448
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
# [2.7.0](https://github.com/midwayjs/midway/compare/v2.6.13...v2.7.0) (2021-01-27)
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
### Features
|
|
458
|
-
|
|
459
|
-
* add midway gRPC framework ([#786](https://github.com/midwayjs/midway/issues/786)) ([d90362c](https://github.com/midwayjs/midway/commit/d90362c6bf15c00621ffc2981f19842f216395f8))
|
|
460
|
-
* rabbitmq component ([#802](https://github.com/midwayjs/midway/issues/802)) ([d40197a](https://github.com/midwayjs/midway/commit/d40197a66cdff4a49ad16c6cd1a3467003c9a0a1))
|
|
461
|
-
* support entry file in bootstrap ([#819](https://github.com/midwayjs/midway/issues/819)) ([49a5ff6](https://github.com/midwayjs/midway/commit/49a5ff662134bdd42dc3a80738b44a05138f8f7c))
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
## [2.6.13](https://github.com/midwayjs/midway/compare/v2.6.12...v2.6.13) (2021-01-21)
|
|
468
|
-
|
|
469
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
## [2.6.12](https://github.com/midwayjs/midway/compare/v2.6.11...v2.6.12) (2021-01-15)
|
|
476
|
-
|
|
477
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
## [2.6.10](https://github.com/midwayjs/midway/compare/v2.6.9...v2.6.10) (2021-01-10)
|
|
484
|
-
|
|
485
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
## [2.6.9](https://github.com/midwayjs/midway/compare/v2.6.8...v2.6.9) (2021-01-08)
|
|
492
|
-
|
|
493
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
## [2.6.8](https://github.com/midwayjs/midway/compare/v2.6.7...v2.6.8) (2021-01-06)
|
|
500
|
-
|
|
501
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
## [2.6.7](https://github.com/midwayjs/midway/compare/v2.6.6...v2.6.7) (2021-01-05)
|
|
508
|
-
|
|
509
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
## [2.6.6](https://github.com/midwayjs/midway/compare/v2.6.5...v2.6.6) (2021-01-04)
|
|
516
|
-
|
|
517
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
## [2.6.5](https://github.com/midwayjs/midway/compare/v2.6.4...v2.6.5) (2021-01-04)
|
|
524
|
-
|
|
525
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
## [2.6.4](https://github.com/midwayjs/midway/compare/v2.6.3...v2.6.4) (2021-01-02)
|
|
532
|
-
|
|
533
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
## [2.6.3](https://github.com/midwayjs/midway/compare/v2.6.2...v2.6.3) (2020-12-30)
|
|
540
|
-
|
|
541
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
## [2.6.2](https://github.com/midwayjs/midway/compare/v2.6.1...v2.6.2) (2020-12-30)
|
|
548
|
-
|
|
549
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
## [2.6.1](https://github.com/midwayjs/midway/compare/v2.6.0...v2.6.1) (2020-12-29)
|
|
556
|
-
|
|
557
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
# [2.6.0](https://github.com/midwayjs/midway/compare/v2.5.5...v2.6.0) (2020-12-28)
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
### Features
|
|
567
|
-
|
|
568
|
-
* add midway logger ([#743](https://github.com/midwayjs/midway/issues/743)) ([13e8cc7](https://github.com/midwayjs/midway/commit/13e8cc753d994e6f9f073688e22527f75d39984a))
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
## [2.5.5](https://github.com/midwayjs/midway/compare/v2.5.4...v2.5.5) (2020-12-15)
|
|
575
|
-
|
|
576
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
## [2.5.2](https://github.com/midwayjs/midway/compare/v2.5.1...v2.5.2) (2020-12-04)
|
|
583
|
-
|
|
584
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
# [2.5.0](https://github.com/midwayjs/midway/compare/v2.4.8...v2.5.0) (2020-11-28)
|
|
591
|
-
|
|
592
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
## [2.4.7](https://github.com/midwayjs/midway/compare/v2.4.6...v2.4.7) (2020-11-23)
|
|
599
|
-
|
|
600
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
## [2.4.5](https://github.com/midwayjs/midway/compare/v2.4.4...v2.4.5) (2020-11-19)
|
|
607
|
-
|
|
608
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
## [2.4.3](https://github.com/midwayjs/midway/compare/v2.4.2...v2.4.3) (2020-11-16)
|
|
615
|
-
|
|
616
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
## [2.4.2](https://github.com/midwayjs/midway/compare/v2.4.1...v2.4.2) (2020-11-13)
|
|
623
|
-
|
|
624
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
## [2.4.1](https://github.com/midwayjs/midway/compare/v2.4.0...v2.4.1) (2020-11-12)
|
|
631
|
-
|
|
632
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
# [2.4.0](https://github.com/midwayjs/midway/compare/v2.3.23...v2.4.0) (2020-11-11)
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
### Features
|
|
642
|
-
|
|
643
|
-
* support define custom egg framework ([#709](https://github.com/midwayjs/midway/issues/709)) ([f5baba1](https://github.com/midwayjs/midway/commit/f5baba18d10e3dc91ba9651effadd00b8f66cf8b))
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
## [2.3.23](https://github.com/midwayjs/midway/compare/v2.3.22...v2.3.23) (2020-11-03)
|
|
650
|
-
|
|
651
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
## [2.3.22](https://github.com/midwayjs/midway/compare/v2.3.21...v2.3.22) (2020-10-31)
|
|
658
|
-
|
|
659
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
## [2.3.20](https://github.com/midwayjs/midway/compare/v2.3.19...v2.3.20) (2020-10-29)
|
|
666
|
-
|
|
667
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
## [2.3.19](https://github.com/midwayjs/midway/compare/v2.3.18...v2.3.19) (2020-10-28)
|
|
674
|
-
|
|
675
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
## [2.3.18](https://github.com/midwayjs/midway/compare/v2.3.17...v2.3.18) (2020-10-27)
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
### Bug Fixes
|
|
685
|
-
|
|
686
|
-
* configuration inject plugin and more in production environment ([#680](https://github.com/midwayjs/midway/issues/680)) ([41bce5d](https://github.com/midwayjs/midway/commit/41bce5d8a60a6fde61ff62794612eecff2e260ed))
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
## [2.3.17](https://github.com/midwayjs/midway/compare/v2.3.16...v2.3.17) (2020-10-22)
|
|
693
|
-
|
|
694
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
## [2.3.15](https://github.com/midwayjs/midway/compare/v2.3.14...v2.3.15) (2020-10-15)
|
|
701
|
-
|
|
702
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
## [2.3.14](https://github.com/midwayjs/midway/compare/v2.3.13...v2.3.14) (2020-10-15)
|
|
709
|
-
|
|
710
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
## [2.3.13](https://github.com/midwayjs/midway/compare/v2.3.12...v2.3.13) (2020-10-13)
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
### Bug Fixes
|
|
720
|
-
|
|
721
|
-
* [@plugin](https://github.com/plugin) inject undefined in web middleware ([#667](https://github.com/midwayjs/midway/issues/667)) ([cacb2fa](https://github.com/midwayjs/midway/commit/cacb2faa61258172ef445db0a86e45c3f19014a6))
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
## [2.3.11](https://github.com/midwayjs/midway/compare/v2.3.10...v2.3.11) (2020-10-08)
|
|
728
|
-
|
|
729
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
## [2.3.10](https://github.com/midwayjs/midway/compare/v2.3.9...v2.3.10) (2020-10-08)
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
### Features
|
|
739
|
-
|
|
740
|
-
* replace configuration.imports to object directly and deprecated string ([#657](https://github.com/midwayjs/midway/issues/657)) ([f1b42a1](https://github.com/midwayjs/midway/commit/f1b42a1b338a69cdfaf63e2d951a65333e4f3007))
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
## [2.3.9](https://github.com/midwayjs/midway/compare/v2.3.8...v2.3.9) (2020-10-05)
|
|
747
|
-
|
|
748
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
## [2.3.8](https://github.com/midwayjs/midway/compare/v2.3.7...v2.3.8) (2020-10-05)
|
|
755
|
-
|
|
756
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
## [2.3.7](https://github.com/midwayjs/midway/compare/v2.3.6...v2.3.7) (2020-10-04)
|
|
763
|
-
|
|
764
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
## [2.3.6](https://github.com/midwayjs/midway/compare/v2.3.4...v2.3.6) (2020-10-02)
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
### Bug Fixes
|
|
774
|
-
|
|
775
|
-
* implement optional dep for amqplib in mock package ([#654](https://github.com/midwayjs/midway/issues/654)) ([3319872](https://github.com/midwayjs/midway/commit/33198727855ff042db7d96723992b49c632aa25d))
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
## [2.3.4](https://github.com/midwayjs/midway/compare/v2.3.3...v2.3.4) (2020-09-28)
|
|
782
|
-
|
|
783
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
## [2.3.2](https://github.com/midwayjs/midway/compare/v2.3.1...v2.3.2) (2020-09-28)
|
|
790
|
-
|
|
791
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
## [2.3.1](https://github.com/midwayjs/midway/compare/v2.3.0...v2.3.1) (2020-09-27)
|
|
798
|
-
|
|
799
|
-
**Note:** Version bump only for package @midwayjs/rabbitmq
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
# [2.3.0](https://github.com/midwayjs/midway/compare/v2.2.10...v2.3.0) (2020-09-27)
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
### Features
|
|
809
|
-
|
|
810
|
-
* add rabbitmq ([#647](https://github.com/midwayjs/midway/issues/647)) ([2c03eb4](https://github.com/midwayjs/midway/commit/2c03eb4f5e979d309048a11f17f7579a1d299ba1))
|