@aomex/console 3.30.8-alpha.7326d75.0 → 4.0.0
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 +25 -0
- package/dist/index.js +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,31 @@
|
|
|
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
|
+
# [4.0.0](https://github.com/aomex/aomex/compare/v3.30.7...v4.0.0) (2026-11-17)
|
|
7
|
+
|
|
8
|
+
* chore!: 升级依赖至最新 ([9a679fa](https://github.com/aomex/aomex/commit/9a679faf0a4e2b313e8ce9081c1ecc65356b844c))
|
|
9
|
+
* feat(service)!: 服务改为懒加载代理 ([6e68e80](https://github.com/aomex/aomex/commit/6e68e80ffc33ff3cdc11216bbdb50badaf485566))
|
|
10
|
+
* feat(prisma)!: 生成 schema 并通过 definePrismaSchema 作为唯一业务入口 ([7dad8a4](https://github.com/aomex/aomex/commit/7dad8a478eaf3a9b4953aca19c5a2294986a7e36))
|
|
11
|
+
* chore!: 升级至 TypeScript 7 并将构建工具迁移到 tsdown ([a111409](https://github.com/aomex/aomex/commit/a111409021e2ee81ee5fb20ccc75480c9b5fa4c0))
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* **middleware:** 新增 dependsOn 借用上游中间件类型提示 ([8066ac0](https://github.com/aomex/aomex/commit/8066ac0a92bf740e17f75a2c39033c9ff807eefb))
|
|
16
|
+
* **validator:** 抽出 toDocument 并为 object schema 写入 x-ref ([3dceddc](https://github.com/aomex/aomex/commit/3dceddc675eb9c15ab96794fbea744ab95d1576a))
|
|
17
|
+
|
|
18
|
+
### BREAKING CHANGES
|
|
19
|
+
|
|
20
|
+
* `destroyServices` 改为内部 API
|
|
21
|
+
* combineServices 仅接受 `() => import(...)` 工厂,不再直接传 Class
|
|
22
|
+
* mongoose 最低版本为v9
|
|
23
|
+
* Node.js 最低版本提升至 `>=24.0.0`。
|
|
24
|
+
* 最低 TypeScript 版本为 7。
|
|
25
|
+
* 对外服务方法一律返回 Promise;字段不再对外暴露
|
|
26
|
+
* 服务生命周期 `init`/`destroy` 重命名为 `onInit`/`onDestroy`
|
|
27
|
+
* 移除 Service 构造注入的 `services`,类内互调改为直接 import
|
|
28
|
+
* 请改用 definePrismaSchema(generated) 获取 prismaInput/prismaOutput/prismaEnum
|
|
29
|
+
|
|
30
|
+
|
|
6
31
|
## [3.30.7](https://github.com/aomex/aomex/compare/v3.30.6...v3.30.7) (2026-11-01)
|
|
7
32
|
|
|
8
33
|
**Note:** Version bump only for package @aomex/console
|
package/dist/index.js
CHANGED
|
@@ -12,7 +12,7 @@ import yargs from "yargs";
|
|
|
12
12
|
import { toArray } from "@aomex/internal-tools";
|
|
13
13
|
import { getFileValues, pathToFiles } from "@aomex/internal-file-import";
|
|
14
14
|
// src/utils/meta.ts
|
|
15
|
-
const version = "
|
|
15
|
+
const version = "4.0.0";
|
|
16
16
|
const scriptName = "aomex";
|
|
17
17
|
// src/override/console-middleware.ts
|
|
18
18
|
var ConsoleMiddleware = class extends Middleware {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aomex/console",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "控制台应用",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"@aomex/logger": "^4.0.0"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@aomex/internal-file-import": "
|
|
38
|
-
"@aomex/internal-tools": "
|
|
37
|
+
"@aomex/internal-file-import": "4.0.0",
|
|
38
|
+
"@aomex/internal-tools": "4.0.0",
|
|
39
39
|
"ansi-escapes": "^7.3.0",
|
|
40
40
|
"glob": "^14.0.6",
|
|
41
41
|
"is-unicode-supported": "^2.1.0",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"yargs-parser": "^22.0.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@aomex/common": "
|
|
51
|
-
"@aomex/logger": "
|
|
50
|
+
"@aomex/common": "4.0.0",
|
|
51
|
+
"@aomex/logger": "4.0.0",
|
|
52
52
|
"@types/yargs": "^17.0.35",
|
|
53
53
|
"@types/yargs-parser": "^21.0.3"
|
|
54
54
|
},
|