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

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,43 @@
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.4](https://github.com/midwayjs/midway/compare/v3.0.0-beta.3...v3.0.0-beta.4) (2021-11-24)
7
+
8
+ **Note:** Version bump only for package @midwayjs/sequelize
9
+
10
+
11
+
12
+
13
+
14
+ # [3.0.0-beta.3](https://github.com/midwayjs/midway/compare/v3.0.0-beta.2...v3.0.0-beta.3) (2021-11-18)
15
+
16
+
17
+ ### Features
18
+
19
+ * add component and framework config definition ([#1367](https://github.com/midwayjs/midway/issues/1367)) ([b2fe615](https://github.com/midwayjs/midway/commit/b2fe6157f99659471ff1333eca0b86bb889f61a3))
20
+
21
+
22
+
23
+
24
+
25
+ # [3.0.0-beta.2](https://github.com/midwayjs/midway/compare/v3.0.0-beta.1...v3.0.0-beta.2) (2021-11-16)
26
+
27
+ **Note:** Version bump only for package @midwayjs/sequelize
28
+
29
+
30
+
31
+
32
+
33
+ # [3.0.0-beta.1](https://github.com/midwayjs/midway/compare/v2.12.4...v3.0.0-beta.1) (2021-11-14)
34
+
35
+
36
+ ### Bug Fixes
37
+
38
+ * static prefix ([#1321](https://github.com/midwayjs/midway/issues/1321)) ([31fe961](https://github.com/midwayjs/midway/commit/31fe961931fed7656a144b1682ee4c4bb25fdff5))
39
+
40
+
41
+ ### Features
42
+
43
+ * 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.4",
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.4",
13
+ "@midwayjs/koa": "^3.0.0-beta.4",
14
+ "@midwayjs/mock": "^3.0.0-beta.4",
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": "02e2144e302f807770b512b0d89da3145b1cbf2e"
40
44
  }