@midwayjs/sequelize 3.0.0-alpha.41 → 3.0.0-beta.10

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 ADDED
@@ -0,0 +1,94 @@
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.10](https://github.com/midwayjs/midway/compare/v3.0.0-beta.9...v3.0.0-beta.10) (2021-12-20)
7
+
8
+ **Note:** Version bump only for package @midwayjs/sequelize
9
+
10
+
11
+
12
+
13
+
14
+ # [3.0.0-beta.9](https://github.com/midwayjs/midway/compare/v3.0.0-beta.8...v3.0.0-beta.9) (2021-12-09)
15
+
16
+ **Note:** Version bump only for package @midwayjs/sequelize
17
+
18
+
19
+
20
+
21
+
22
+ # [3.0.0-beta.8](https://github.com/midwayjs/midway/compare/v3.0.0-beta.7...v3.0.0-beta.8) (2021-12-08)
23
+
24
+ **Note:** Version bump only for package @midwayjs/sequelize
25
+
26
+
27
+
28
+
29
+
30
+ # [3.0.0-beta.7](https://github.com/midwayjs/midway/compare/v3.0.0-beta.6...v3.0.0-beta.7) (2021-12-03)
31
+
32
+
33
+ ### Bug Fixes
34
+
35
+ * add app.keys ([#1395](https://github.com/midwayjs/midway/issues/1395)) ([c44afc6](https://github.com/midwayjs/midway/commit/c44afc6cc6764a959d1fa7ae04d60099282d156a))
36
+
37
+
38
+
39
+
40
+
41
+ # [3.0.0-beta.6](https://github.com/midwayjs/midway/compare/v3.0.0-beta.5...v3.0.0-beta.6) (2021-11-26)
42
+
43
+ **Note:** Version bump only for package @midwayjs/sequelize
44
+
45
+
46
+
47
+
48
+
49
+ # [3.0.0-beta.5](https://github.com/midwayjs/midway/compare/v3.0.0-beta.4...v3.0.0-beta.5) (2021-11-25)
50
+
51
+ **Note:** Version bump only for package @midwayjs/sequelize
52
+
53
+
54
+
55
+
56
+
57
+ # [3.0.0-beta.4](https://github.com/midwayjs/midway/compare/v3.0.0-beta.3...v3.0.0-beta.4) (2021-11-24)
58
+
59
+ **Note:** Version bump only for package @midwayjs/sequelize
60
+
61
+
62
+
63
+
64
+
65
+ # [3.0.0-beta.3](https://github.com/midwayjs/midway/compare/v3.0.0-beta.2...v3.0.0-beta.3) (2021-11-18)
66
+
67
+
68
+ ### Features
69
+
70
+ * add component and framework config definition ([#1367](https://github.com/midwayjs/midway/issues/1367)) ([b2fe615](https://github.com/midwayjs/midway/commit/b2fe6157f99659471ff1333eca0b86bb889f61a3))
71
+
72
+
73
+
74
+
75
+
76
+ # [3.0.0-beta.2](https://github.com/midwayjs/midway/compare/v3.0.0-beta.1...v3.0.0-beta.2) (2021-11-16)
77
+
78
+ **Note:** Version bump only for package @midwayjs/sequelize
79
+
80
+
81
+
82
+
83
+
84
+ # [3.0.0-beta.1](https://github.com/midwayjs/midway/compare/v2.12.4...v3.0.0-beta.1) (2021-11-14)
85
+
86
+
87
+ ### Bug Fixes
88
+
89
+ * static prefix ([#1321](https://github.com/midwayjs/midway/issues/1321)) ([31fe961](https://github.com/midwayjs/midway/commit/31fe961931fed7656a144b1682ee4c4bb25fdff5))
90
+
91
+
92
+ ### Features
93
+
94
+ * add sequelize component ([#1283](https://github.com/midwayjs/midway/issues/1283)) ([9ad91d1](https://github.com/midwayjs/midway/commit/9ad91d1e3ef3cf4cd799a1f8ef3d57b7efae60cf))
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.SequelizeConfiguration = void 0;
13
13
  const decorator_1 = require("@midwayjs/decorator");
14
14
  const sequelize_typescript_1 = require("sequelize-typescript");
15
- const path = require("path");
15
+ const DefaultConfig = require("./config/config.default");
16
16
  let SequelizeConfiguration = class SequelizeConfiguration {
17
17
  async onReady() {
18
18
  const options = this.sequelizeConfig.options;
@@ -32,7 +32,11 @@ __decorate([
32
32
  SequelizeConfiguration = __decorate([
33
33
  (0, decorator_1.Configuration)({
34
34
  namespace: 'sequelize',
35
- importConfigs: [path.join(__dirname, 'config')],
35
+ importConfigs: [
36
+ {
37
+ default: DefaultConfig,
38
+ },
39
+ ],
36
40
  })
37
41
  ], SequelizeConfiguration);
38
42
  exports.SequelizeConfiguration = SequelizeConfiguration;
package/index.d.ts ADDED
@@ -0,0 +1,12 @@
1
+ import { SequelizeOptions } from 'sequelize-typescript';
2
+
3
+ export * from './dist/index';
4
+
5
+ declare module '@midwayjs/core/dist/interface' {
6
+ interface MidwayConfig {
7
+ sequelize?: {
8
+ options?: SequelizeOptions;
9
+ sync?: boolean;
10
+ };
11
+ }
12
+ }
package/package.json CHANGED
@@ -1,20 +1,21 @@
1
1
  {
2
2
  "name": "@midwayjs/sequelize",
3
- "version": "3.0.0-alpha.41",
3
+ "version": "3.0.0-beta.10",
4
4
  "main": "dist/index",
5
- "typings": "dist/index.d.ts",
5
+ "typings": "index.d.ts",
6
6
  "files": [
7
7
  "dist/**/*.js",
8
- "dist/**/*.d.ts"
8
+ "dist/**/*.d.ts",
9
+ "index.d.ts"
9
10
  ],
10
11
  "devDependencies": {
11
- "@midwayjs/decorator": "^3.0.0-alpha.41",
12
- "@midwayjs/koa": "^3.0.0-alpha.41",
13
- "@midwayjs/mock": "^3.0.0-alpha.41",
12
+ "@midwayjs/decorator": "^3.0.0-beta.10",
13
+ "@midwayjs/koa": "^3.0.0-beta.10",
14
+ "@midwayjs/mock": "^3.0.0-beta.10",
14
15
  "sqlite3": "^5.0.2"
15
16
  },
16
17
  "dependencies": {
17
- "sequelize": "6.6.2",
18
+ "sequelize": "~6.6.5",
18
19
  "sequelize-typescript": "^2.1.0"
19
20
  },
20
21
  "keywords": [
@@ -32,9 +33,12 @@
32
33
  "test": "NODE_ENV=development node --require=ts-node/register ../../node_modules/.bin/jest",
33
34
  "cov": "node --require=ts-node/register ../../node_modules/.bin/jest --coverage --forceExit"
34
35
  },
36
+ "engines": {
37
+ "node": ">=12"
38
+ },
35
39
  "repository": {
36
40
  "type": "git",
37
41
  "url": "http://github.com/midwayjs/midway.git"
38
42
  },
39
- "gitHead": "408a11a924283e98f298de85b22083ce18e247ca"
43
+ "gitHead": "153870f2e2dd6b17673ec7591e49224a6bd51b36"
40
44
  }