@midwayjs/rabbitmq 3.0.0-beta.1 → 3.0.0-beta.5

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/CHANGELOG.md CHANGED
@@ -3,6 +3,44 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.0.0-beta.5](https://github.com/midwayjs/midway/compare/v3.0.0-beta.4...v3.0.0-beta.5) (2021-11-25)
7
+
8
+ **Note:** Version bump only for package @midwayjs/rabbitmq
9
+
10
+
11
+
12
+
13
+
14
+ # [3.0.0-beta.4](https://github.com/midwayjs/midway/compare/v3.0.0-beta.3...v3.0.0-beta.4) (2021-11-24)
15
+
16
+
17
+ ### Features
18
+
19
+ * add i18n ([#1375](https://github.com/midwayjs/midway/issues/1375)) ([bffefe0](https://github.com/midwayjs/midway/commit/bffefe07afe45777d49b5a76b9ab17fc2b9d9a55))
20
+
21
+
22
+
23
+
24
+
25
+ # [3.0.0-beta.3](https://github.com/midwayjs/midway/compare/v3.0.0-beta.2...v3.0.0-beta.3) (2021-11-18)
26
+
27
+
28
+ ### Features
29
+
30
+ * add component and framework config definition ([#1367](https://github.com/midwayjs/midway/issues/1367)) ([b2fe615](https://github.com/midwayjs/midway/commit/b2fe6157f99659471ff1333eca0b86bb889f61a3))
31
+
32
+
33
+
34
+
35
+
36
+ # [3.0.0-beta.2](https://github.com/midwayjs/midway/compare/v3.0.0-beta.1...v3.0.0-beta.2) (2021-11-16)
37
+
38
+ **Note:** Version bump only for package @midwayjs/rabbitmq
39
+
40
+
41
+
42
+
43
+
6
44
  # [3.0.0-beta.1](https://github.com/midwayjs/midway/compare/v2.12.4...v3.0.0-beta.1) (2021-11-14)
7
45
 
8
46
 
@@ -2,6 +2,5 @@ import { MidwayRabbitMQFramework } from './framework';
2
2
  export declare class RabbitMQConfiguration {
3
3
  framework: MidwayRabbitMQFramework;
4
4
  onReady(): Promise<void>;
5
- onServerReady(): Promise<void>;
6
5
  }
7
6
  //# sourceMappingURL=configuration.d.ts.map
@@ -14,11 +14,6 @@ const decorator_1 = require("@midwayjs/decorator");
14
14
  const framework_1 = require("./framework");
15
15
  let RabbitMQConfiguration = class RabbitMQConfiguration {
16
16
  async onReady() { }
17
- async onServerReady() {
18
- if (this.framework.isEnable()) {
19
- await this.framework.run();
20
- }
21
- }
22
17
  };
23
18
  __decorate([
24
19
  (0, decorator_1.Inject)(),
@@ -1,4 +1,4 @@
1
- import { IConfigurationOptions, IMidwayApplication, IMidwayContext } from '@midwayjs/core';
1
+ import { IConfigurationOptions, IMidwayApplication, IMidwayContext, NextFunction as BaseNextFunction } from '@midwayjs/core';
2
2
  import { ConsumeMessage, Options } from 'amqplib/properties';
3
3
  import { RabbitMQListenerOptions } from '@midwayjs/decorator';
4
4
  import type { ConfirmChannel, Channel, Options as AmqpOptions } from 'amqplib';
@@ -29,5 +29,11 @@ export declare type IMidwayRabbitMQContext = IMidwayContext<{
29
29
  export declare type Application = IMidwayRabbitMQApplication;
30
30
  export interface Context extends IMidwayRabbitMQContext {
31
31
  }
32
+ export declare type NextFunction = BaseNextFunction;
32
33
  export declare type DefaultConfig = string | AmqpOptions.Connect;
34
+ declare module '@midwayjs/core/dist/interface' {
35
+ interface MidwayConfig {
36
+ rabbitMQServer?: PowerPartial<IMidwayRabbitMQConfigurationOptions>;
37
+ }
38
+ }
33
39
  //# sourceMappingURL=interface.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/rabbitmq",
3
- "version": "3.0.0-beta.1",
3
+ "version": "3.0.0-beta.5",
4
4
  "description": "Midway Framework for rabbitmq",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index.d.ts",
@@ -23,14 +23,14 @@
23
23
  ],
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@midwayjs/decorator": "^3.0.0-beta.1",
27
- "@midwayjs/mock": "^3.0.0-beta.1",
26
+ "@midwayjs/decorator": "^3.0.0-beta.5",
27
+ "@midwayjs/mock": "^3.0.0-beta.5",
28
28
  "@types/amqplib": "*",
29
29
  "fs-extra": "^8.0.1"
30
30
  },
31
31
  "dependencies": {
32
- "@midwayjs/core": "^3.0.0-beta.1",
33
- "@midwayjs/logger": "^3.0.0-beta.1",
32
+ "@midwayjs/core": "^3.0.0-beta.5",
33
+ "@midwayjs/logger": "^3.0.0-beta.5",
34
34
  "amqp-connection-manager": "^3.2.2",
35
35
  "amqplib": "*"
36
36
  },
@@ -46,5 +46,5 @@
46
46
  "engines": {
47
47
  "node": ">=12"
48
48
  },
49
- "gitHead": "72e4d20c678e65a5440c4e9a6d3b70046daa497c"
49
+ "gitHead": "ab0bf05ae6d13f6435db2f7223202be61d585a1b"
50
50
  }