@midwayjs/sequelize 3.0.0-alpha.43 → 3.0.0-beta.12

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,110 @@
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.12](https://github.com/midwayjs/midway/compare/v3.0.0-beta.11...v3.0.0-beta.12) (2021-12-28)
7
+
8
+ **Note:** Version bump only for package @midwayjs/sequelize
9
+
10
+
11
+
12
+
13
+
14
+ # [3.0.0-beta.11](https://github.com/midwayjs/midway/compare/v3.0.0-beta.10...v3.0.0-beta.11) (2021-12-21)
15
+
16
+ **Note:** Version bump only for package @midwayjs/sequelize
17
+
18
+
19
+
20
+
21
+
22
+ # [3.0.0-beta.10](https://github.com/midwayjs/midway/compare/v3.0.0-beta.9...v3.0.0-beta.10) (2021-12-20)
23
+
24
+ **Note:** Version bump only for package @midwayjs/sequelize
25
+
26
+
27
+
28
+
29
+
30
+ # [3.0.0-beta.9](https://github.com/midwayjs/midway/compare/v3.0.0-beta.8...v3.0.0-beta.9) (2021-12-09)
31
+
32
+ **Note:** Version bump only for package @midwayjs/sequelize
33
+
34
+
35
+
36
+
37
+
38
+ # [3.0.0-beta.8](https://github.com/midwayjs/midway/compare/v3.0.0-beta.7...v3.0.0-beta.8) (2021-12-08)
39
+
40
+ **Note:** Version bump only for package @midwayjs/sequelize
41
+
42
+
43
+
44
+
45
+
46
+ # [3.0.0-beta.7](https://github.com/midwayjs/midway/compare/v3.0.0-beta.6...v3.0.0-beta.7) (2021-12-03)
47
+
48
+
49
+ ### Bug Fixes
50
+
51
+ * add app.keys ([#1395](https://github.com/midwayjs/midway/issues/1395)) ([c44afc6](https://github.com/midwayjs/midway/commit/c44afc6cc6764a959d1fa7ae04d60099282d156a))
52
+
53
+
54
+
55
+
56
+
57
+ # [3.0.0-beta.6](https://github.com/midwayjs/midway/compare/v3.0.0-beta.5...v3.0.0-beta.6) (2021-11-26)
58
+
59
+ **Note:** Version bump only for package @midwayjs/sequelize
60
+
61
+
62
+
63
+
64
+
65
+ # [3.0.0-beta.5](https://github.com/midwayjs/midway/compare/v3.0.0-beta.4...v3.0.0-beta.5) (2021-11-25)
66
+
67
+ **Note:** Version bump only for package @midwayjs/sequelize
68
+
69
+
70
+
71
+
72
+
73
+ # [3.0.0-beta.4](https://github.com/midwayjs/midway/compare/v3.0.0-beta.3...v3.0.0-beta.4) (2021-11-24)
74
+
75
+ **Note:** Version bump only for package @midwayjs/sequelize
76
+
77
+
78
+
79
+
80
+
81
+ # [3.0.0-beta.3](https://github.com/midwayjs/midway/compare/v3.0.0-beta.2...v3.0.0-beta.3) (2021-11-18)
82
+
83
+
84
+ ### Features
85
+
86
+ * add component and framework config definition ([#1367](https://github.com/midwayjs/midway/issues/1367)) ([b2fe615](https://github.com/midwayjs/midway/commit/b2fe6157f99659471ff1333eca0b86bb889f61a3))
87
+
88
+
89
+
90
+
91
+
92
+ # [3.0.0-beta.2](https://github.com/midwayjs/midway/compare/v3.0.0-beta.1...v3.0.0-beta.2) (2021-11-16)
93
+
94
+ **Note:** Version bump only for package @midwayjs/sequelize
95
+
96
+
97
+
98
+
99
+
100
+ # [3.0.0-beta.1](https://github.com/midwayjs/midway/compare/v2.12.4...v3.0.0-beta.1) (2021-11-14)
101
+
102
+
103
+ ### Bug Fixes
104
+
105
+ * static prefix ([#1321](https://github.com/midwayjs/midway/issues/1321)) ([31fe961](https://github.com/midwayjs/midway/commit/31fe961931fed7656a144b1682ee4c4bb25fdff5))
106
+
107
+
108
+ ### Features
109
+
110
+ * 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.43+8b8075f0",
3
+ "version": "3.0.0-beta.12",
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.43+8b8075f0",
12
- "@midwayjs/koa": "^3.0.0-alpha.43+8b8075f0",
13
- "@midwayjs/mock": "^3.0.0-alpha.43+8b8075f0",
12
+ "@midwayjs/decorator": "^3.0.0-beta.12",
13
+ "@midwayjs/koa": "^3.0.0-beta.12",
14
+ "@midwayjs/mock": "^3.0.0-beta.12",
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": "8b8075f0d40c5de19bb9026f0950e738ca512c7e"
43
+ "gitHead": "1c46e53eb934248007eeb7fe3920f5ac24e272c6"
40
44
  }