@midwayjs/mongoose 3.0.0-beta.2 → 3.0.0-beta.6

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,41 @@
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.6](https://github.com/midwayjs/midway/compare/v3.0.0-beta.5...v3.0.0-beta.6) (2021-11-26)
7
+
8
+ **Note:** Version bump only for package @midwayjs/mongoose
9
+
10
+
11
+
12
+
13
+
14
+ # [3.0.0-beta.5](https://github.com/midwayjs/midway/compare/v3.0.0-beta.4...v3.0.0-beta.5) (2021-11-25)
15
+
16
+ **Note:** Version bump only for package @midwayjs/mongoose
17
+
18
+
19
+
20
+
21
+
22
+ # [3.0.0-beta.4](https://github.com/midwayjs/midway/compare/v3.0.0-beta.3...v3.0.0-beta.4) (2021-11-24)
23
+
24
+ **Note:** Version bump only for package @midwayjs/mongoose
25
+
26
+
27
+
28
+
29
+
30
+ # [3.0.0-beta.3](https://github.com/midwayjs/midway/compare/v3.0.0-beta.2...v3.0.0-beta.3) (2021-11-18)
31
+
32
+
33
+ ### Features
34
+
35
+ * add component and framework config definition ([#1367](https://github.com/midwayjs/midway/issues/1367)) ([b2fe615](https://github.com/midwayjs/midway/commit/b2fe6157f99659471ff1333eca0b86bb889f61a3))
36
+
37
+
38
+
39
+
40
+
6
41
  # [3.0.0-beta.2](https://github.com/midwayjs/midway/compare/v3.0.0-beta.1...v3.0.0-beta.2) (2021-11-16)
7
42
 
8
43
  **Note:** Version bump only for package @midwayjs/mongoose
@@ -11,7 +11,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.MongooseConfiguration = void 0;
13
13
  const decorator_1 = require("@midwayjs/decorator");
14
- const DefaultConfig = require("./config.default");
15
14
  const manager_1 = require("./manager");
16
15
  let MongooseConfiguration = class MongooseConfiguration {
17
16
  async onReady(container) { }
@@ -28,7 +27,9 @@ MongooseConfiguration = __decorate([
28
27
  namespace: 'mongoose',
29
28
  importConfigs: [
30
29
  {
31
- default: DefaultConfig,
30
+ default: {
31
+ mongoose: {},
32
+ },
32
33
  },
33
34
  ],
34
35
  })
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export { MongooseConfiguration as Configuration } from './configuration';
2
+ export * from './interface';
2
3
  export * from './manager';
3
4
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -13,5 +13,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
13
13
  exports.Configuration = void 0;
14
14
  var configuration_1 = require("./configuration");
15
15
  Object.defineProperty(exports, "Configuration", { enumerable: true, get: function () { return configuration_1.MongooseConfiguration; } });
16
+ __exportStar(require("./interface"), exports);
16
17
  __exportStar(require("./manager"), exports);
17
18
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,19 @@
1
+ import * as mongoose from 'mongoose';
2
+ interface M5 {
3
+ ConnectionOptions: unknown;
4
+ }
5
+ interface M6 {
6
+ ConnectOptions: unknown;
7
+ }
8
+ declare type ExtractConnectionOptions<T> = T extends M5 ? T['ConnectionOptions'] : T extends M6 ? T['ConnectOptions'] : never;
9
+ declare type ConnectionOptions = ExtractConnectionOptions<typeof mongoose>;
10
+ declare module '@midwayjs/core/dist/interface' {
11
+ interface MidwayConfig {
12
+ mongoose?: ServiceFactoryConfigOption<{
13
+ uri: string;
14
+ options: ConnectionOptions;
15
+ }>;
16
+ }
17
+ }
18
+ export {};
19
+ //# sourceMappingURL=interface.d.ts.map
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=interface.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/mongoose",
3
- "version": "3.0.0-beta.2",
3
+ "version": "3.0.0-beta.6",
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.2",
25
- "@midwayjs/decorator": "^3.0.0-beta.2",
26
- "@midwayjs/mock": "^3.0.0-beta.2",
24
+ "@midwayjs/core": "^3.0.0-beta.6",
25
+ "@midwayjs/decorator": "^3.0.0-beta.6",
26
+ "@midwayjs/mock": "^3.0.0-beta.6",
27
27
  "mongoose": "~6.0.11"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "mongoose": "*"
31
31
  },
32
- "gitHead": "7f07de960da1155a9f7df554e1789c7a97bdd3fe"
32
+ "gitHead": "e4595d30b369e36bef21b36f2b3737d8bc2f802d"
33
33
  }
@@ -1,2 +0,0 @@
1
- export declare const mongoose: {};
2
- //# sourceMappingURL=config.default.d.ts.map
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.mongoose = void 0;
4
- exports.mongoose = {};
5
- //# sourceMappingURL=config.default.js.map