@midwayjs/mongoose 3.0.0-beta.4 → 3.0.0-beta.8

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,42 @@
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.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
+ * mongoose remote config bug ([#1399](https://github.com/midwayjs/midway/issues/1399)) ([e37602d](https://github.com/midwayjs/midway/commit/e37602d54ae503aeee48afa320709aae3d18b329))
13
+
14
+
15
+
16
+
17
+
18
+ # [3.0.0-beta.7](https://github.com/midwayjs/midway/compare/v3.0.0-beta.6...v3.0.0-beta.7) (2021-12-03)
19
+
20
+ **Note:** Version bump only for package @midwayjs/mongoose
21
+
22
+
23
+
24
+
25
+
26
+ # [3.0.0-beta.6](https://github.com/midwayjs/midway/compare/v3.0.0-beta.5...v3.0.0-beta.6) (2021-11-26)
27
+
28
+ **Note:** Version bump only for package @midwayjs/mongoose
29
+
30
+
31
+
32
+
33
+
34
+ # [3.0.0-beta.5](https://github.com/midwayjs/midway/compare/v3.0.0-beta.4...v3.0.0-beta.5) (2021-11-25)
35
+
36
+ **Note:** Version bump only for package @midwayjs/mongoose
37
+
38
+
39
+
40
+
41
+
6
42
  # [3.0.0-beta.4](https://github.com/midwayjs/midway/compare/v3.0.0-beta.3...v3.0.0-beta.4) (2021-11-24)
7
43
 
8
44
  **Note:** Version bump only for package @midwayjs/mongoose
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  this is a sub package for midway.
7
7
 
8
- Document: [https://midwayjs.org/midway](https://midwayjs.org/midway)
8
+ Document: [https://midwayjs.org](https://midwayjs.org)
9
9
 
10
10
  ## License
11
11
 
@@ -1,8 +1,6 @@
1
1
  import { ILifeCycle, IMidwayContainer } from '@midwayjs/core';
2
- import { MongooseConnectionServiceFactory } from './manager';
3
2
  export declare class MongooseConfiguration implements ILifeCycle {
4
- factoryService: MongooseConnectionServiceFactory;
5
3
  onReady(container: IMidwayContainer): Promise<void>;
6
- onStop(): Promise<void>;
4
+ onStop(container: IMidwayContainer): Promise<void>;
7
5
  }
8
6
  //# sourceMappingURL=configuration.d.ts.map
@@ -5,23 +5,19 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
5
5
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
6
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
7
  };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
8
  Object.defineProperty(exports, "__esModule", { value: true });
12
9
  exports.MongooseConfiguration = void 0;
13
10
  const decorator_1 = require("@midwayjs/decorator");
14
11
  const manager_1 = require("./manager");
15
12
  let MongooseConfiguration = class MongooseConfiguration {
16
- async onReady(container) { }
17
- async onStop() {
18
- await this.factoryService.stop();
13
+ async onReady(container) {
14
+ await container.getAsync(manager_1.MongooseConnectionServiceFactory);
15
+ }
16
+ async onStop(container) {
17
+ const factory = await container.getAsync(manager_1.MongooseConnectionServiceFactory);
18
+ await factory.stop();
19
19
  }
20
20
  };
21
- __decorate([
22
- (0, decorator_1.Inject)(),
23
- __metadata("design:type", manager_1.MongooseConnectionServiceFactory)
24
- ], MongooseConfiguration.prototype, "factoryService", void 0);
25
21
  MongooseConfiguration = __decorate([
26
22
  (0, decorator_1.Configuration)({
27
23
  namespace: 'mongoose',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/mongoose",
3
- "version": "3.0.0-beta.4",
3
+ "version": "3.0.0-beta.8",
4
4
  "description": "Midway Component for mongoose",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -21,13 +21,13 @@
21
21
  },
22
22
  "license": "MIT",
23
23
  "devDependencies": {
24
- "@midwayjs/core": "^3.0.0-beta.4",
25
- "@midwayjs/decorator": "^3.0.0-beta.4",
26
- "@midwayjs/mock": "^3.0.0-beta.4",
24
+ "@midwayjs/core": "^3.0.0-beta.8",
25
+ "@midwayjs/decorator": "^3.0.0-beta.8",
26
+ "@midwayjs/mock": "^3.0.0-beta.8",
27
27
  "mongoose": "~6.0.11"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "mongoose": "*"
31
31
  },
32
- "gitHead": "02e2144e302f807770b512b0d89da3145b1cbf2e"
32
+ "gitHead": "bfafbdf8798f48d4daac5dd88ad53c6b2f33c110"
33
33
  }