koatty 4.0.0 → 4.0.3
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/.turbo/turbo-build.log +23 -30
- package/.vscode/launch.json +42 -0
- package/CHANGELOG.md +50 -24
- package/TASKS.md +1227 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +180 -136
- package/dist/index.mjs +244 -200
- package/dist/package.json +17 -26
- package/package.json +24 -33
- package/reports/backup-branch.txt +1 -0
- package/reports/node-version.txt +2 -0
- package/reports/pnpm-version.txt +2 -0
- package/tsconfig.test.json +0 -0
- package/.package.json.backup +0 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
|
|
2
|
+
|
|
3
|
+
> koatty@4.0.3 build /Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty
|
|
4
|
+
> npm run build:js && npm run build:dts && npm run build:doc && npm run build:cp
|
|
2
5
|
|
|
3
|
-
> koatty@3.14.0-beta.1 build /home/richen/workspace/nodejs/koatty-monorepo/packages/koatty
|
|
4
|
-
> npm run build:js && npm run build:dts && npm run build:doc && npm run build:cp && npm run build:fix
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
> koatty@3.14.0-beta.1 build:js
|
|
7
|
+
> koatty@4.0.3 build:js
|
|
8
8
|
> npx rollup --bundleConfigAsCjs -c .rollup.config.js
|
|
9
9
|
|
|
10
|
-
[1G[0K[1G[0K[36m
|
|
10
|
+
[1G[0K[1G[0K⠙[1G[0K[36m
|
|
11
11
|
[1m./src/index.ts[22m → [1m./dist/index.js, ./dist/index.mjs[22m...[39m
|
|
12
|
-
[32mcreated [1m./dist/index.js, ./dist/index.mjs[22m in [1m1.
|
|
12
|
+
[32mcreated [1m./dist/index.js, ./dist/index.mjs[22m in [1m1.1s[22m[39m
|
|
13
13
|
[1G[0K⠙[1G[0K[1G[0K⠙[1G[0K
|
|
14
|
-
> koatty@
|
|
15
|
-
> npx tsc && npx api-extractor run --local --verbose
|
|
14
|
+
> koatty@4.0.3 build:dts
|
|
15
|
+
> npx tsc --skipLibCheck && npx api-extractor run --local --verbose
|
|
16
16
|
|
|
17
17
|
[1G[0K[1G[0K[1G[0K⠙[1G[0K[1G[0K
|
|
18
|
-
[1mapi-extractor 7.
|
|
18
|
+
[1mapi-extractor 7.55.2 [36m - https://api-extractor.com/[39m
|
|
19
19
|
[22m
|
|
20
20
|
Using configuration from ./api-extractor.json
|
|
21
21
|
Analysis will use the bundled TypeScript version 5.8.2
|
|
22
22
|
*** The target project appears to use TypeScript 5.9.3 which is newer than the bundled compiler engine; consider upgrading API Extractor.
|
|
23
|
-
[36mWriting: /
|
|
24
|
-
[36mWriting package typings: /
|
|
25
|
-
[33mWarning: /
|
|
26
|
-
[33mWarning: /
|
|
27
|
-
[33mWarning: /
|
|
28
|
-
[33mWarning: /
|
|
23
|
+
[36mWriting: /Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty/temp/koatty.api.json[39m
|
|
24
|
+
[36mWriting package typings: /Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty/dist/index.d.ts[39m
|
|
25
|
+
[33mWarning: /Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-core/dist/index.d.ts:35:4 - (tsdoc-undefined-tag) The TSDoc tag "@export" is not defined in this configuration[39m
|
|
26
|
+
[33mWarning: /Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-core/dist/index.d.ts:36:4 - (tsdoc-undefined-tag) The TSDoc tag "@enum" is not defined in this configuration[39m
|
|
27
|
+
[33mWarning: /Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-core/dist/index.d.ts:718:4 - (tsdoc-undefined-tag) The TSDoc tag "@interface" is not defined in this configuration[39m
|
|
28
|
+
[33mWarning: /Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-core/dist/index.d.ts:719:4 - (tsdoc-undefined-tag) The TSDoc tag "@extends" is not defined in this configuration[39m
|
|
29
29
|
[33mWarning: src/core/Bootstrap.ts:21:4 - (tsdoc-param-tag-missing-hyphen) The @param block should be followed by a parameter name and then a hyphen[39m
|
|
30
30
|
[33mWarning: src/core/Bootstrap.ts:33:1 - (ae-missing-release-tag) "Bootstrap" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)[39m
|
|
31
31
|
[33mWarning: src/core/Bootstrap.ts:46:4 - (tsdoc-param-tag-missing-hyphen) The @param block should be followed by a parameter name and then a hyphen[39m
|
|
@@ -58,29 +58,22 @@ Analysis will use the bundled TypeScript version 5.8.2
|
|
|
58
58
|
|
|
59
59
|
API Extractor completed successfully
|
|
60
60
|
[1G[0K⠙[1G[0K[1G[0K⠙[1G[0K
|
|
61
|
-
> koatty@
|
|
61
|
+
> koatty@4.0.3 build:doc
|
|
62
62
|
> npx api-documenter markdown --input temp --output docs/api
|
|
63
63
|
|
|
64
64
|
[1G[0K[1G[0K
|
|
65
|
-
[1mapi-documenter 7.
|
|
65
|
+
[1mapi-documenter 7.28.2 [36m - https://api-extractor.com/[39m
|
|
66
66
|
[22m
|
|
67
67
|
Reading koatty.api.json
|
|
68
68
|
|
|
69
69
|
Deleting old output from docs/api
|
|
70
70
|
Writing koatty package
|
|
71
71
|
[1G[0K⠙[1G[0K[1G[0K⠙[1G[0K
|
|
72
|
-
> koatty@
|
|
73
|
-
> node scripts/
|
|
74
|
-
|
|
75
|
-
[1G[0K[1G[0K⠙[1G[0K⠹[1G[0K⠸[1G[0K⠼[1G[0K⠴[1G[0K⠦[1G[0K⠧[1G[0K⠇[1G[0K⠏[1G[0K⠋[1G[0K⠙[1G[0K⠹[1G[0K⠸[1G[0K⠼[1G[0K⠴[1G[0K⠦[1G[0K⠧[1G[0K⠇[1G[0K⠏[1G[0K⠋[1G[0K⠙[1G[0K⠹[1G[0K⠸[1G[0K⠼[1G[0K⠴[1G[0K⠦[1G[0K⠧[1G[0K⠇[1G[0K⠏[1G[0K⠋[1G[0K⠙[1G[0K⠹[1G[0K⠸[1G[0K⠼[1G[0K⠴[1G[0K⠦[1G[0K⠧[1G[0K⠇[1G[0K⠏[1G[0K⠋[1G[0K⠙[1G[0K⠹[1G[0K⠸[1G[0K⠼[1G[0K⠴[1G[0K⠦[1G[0K⠧[1G[0K⠇[1G[0K⠏[1G[0K⠋[1G[0K⠙[1G[0K⠹[1G[0K⠸[1G[0K⠼[1G[0K⠴[1G[0K⠦[1G[0K⠧[1G[0K⠇[1G[0K⠏[1G[0K⠋[1G[0K⠙[1G[0K⠹[1G[0K⠸[1G[0K⠼[1G[0K⠴[1G[0K⠦[1G[0K⠧[1G[0K⠇[1G[0K⠏[1G[0K⠋[1G[0K[1G[0K⠙[1G[0K[1G[0K⠙[1G[0K
|
|
76
|
-
> koatty@3.14.0-beta.1 build:fix
|
|
77
|
-
> node scripts/fixWorkspaceDeps
|
|
72
|
+
> koatty@4.0.3 build:cp
|
|
73
|
+
> node scripts/copyFiles && node scripts/postBuild
|
|
78
74
|
|
|
79
|
-
[1G[
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
✓ Fixed dependencies.koatty_serve: workspace:* → ^3.0.0
|
|
84
|
-
✓ Fixed dependencies.koatty_trace: workspace:* → ^2.0.0
|
|
85
|
-
✅ Fixed workspace:* dependencies in dist/package.json
|
|
75
|
+
[1G[0KCopied package.json to dist/
|
|
76
|
+
Copied LICENSE to dist/
|
|
77
|
+
Copied README.md to dist/
|
|
78
|
+
File copy completed
|
|
86
79
|
[1G[0K⠙[1G[0K
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.2.0",
|
|
3
|
+
"configurations": [
|
|
4
|
+
{
|
|
5
|
+
"type": "node",
|
|
6
|
+
"request": "launch",
|
|
7
|
+
"name": "Koatty Demo Program",
|
|
8
|
+
"args": [
|
|
9
|
+
"${workspaceRoot}/demo/src/App.ts"
|
|
10
|
+
],
|
|
11
|
+
"runtimeArgs": [
|
|
12
|
+
"--nolazy",
|
|
13
|
+
"-r",
|
|
14
|
+
"ts-node/register"
|
|
15
|
+
],
|
|
16
|
+
"env": {
|
|
17
|
+
"NODE_ENV": "development"
|
|
18
|
+
},
|
|
19
|
+
"outputCapture": "std",
|
|
20
|
+
"sourceMaps": true,
|
|
21
|
+
"cwd": "${workspaceRoot}",
|
|
22
|
+
"protocol": "inspector",
|
|
23
|
+
"internalConsoleOptions": "neverOpen"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"type": "node",
|
|
27
|
+
"name": "vscode-jest-tests",
|
|
28
|
+
"request": "launch",
|
|
29
|
+
"console": "integratedTerminal",
|
|
30
|
+
"internalConsoleOptions": "neverOpen",
|
|
31
|
+
"disableOptimisticBPs": true,
|
|
32
|
+
"program": "${workspaceFolder}/node_modules/.bin/jest",
|
|
33
|
+
"cwd": "${workspaceFolder}",
|
|
34
|
+
"args": [
|
|
35
|
+
"--config",
|
|
36
|
+
"jest.config.js",
|
|
37
|
+
"--runInBand",
|
|
38
|
+
"--watchAll=false"
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,41 +1,67 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 4.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- build
|
|
8
|
+
|
|
9
|
+
## 4.0.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- build
|
|
14
|
+
|
|
15
|
+
## 4.0.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
- koatty_lib@1.4.2
|
|
21
|
+
- koatty_container@1.17.1
|
|
22
|
+
- koatty_config@1.2.5
|
|
23
|
+
- koatty_core@2.0.11
|
|
24
|
+
- koatty_exception@2.0.7
|
|
25
|
+
- koatty_loader@1.1.1
|
|
26
|
+
- koatty_logger@2.3.1
|
|
27
|
+
- koatty_router@2.0.5
|
|
28
|
+
- koatty_serve@3.0.3
|
|
29
|
+
- koatty_trace@2.0.3
|
|
30
|
+
|
|
3
31
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
32
|
|
|
5
33
|
## 4.0.0 (2025-11-02)
|
|
6
34
|
|
|
7
|
-
|
|
8
35
|
### ⚠ BREAKING CHANGES
|
|
9
36
|
|
|
10
|
-
|
|
37
|
+
- **scripts:** - Tag 格式从 v{version} 改为 {package-name}@{version}
|
|
11
38
|
|
|
12
39
|
### Features
|
|
13
40
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
41
|
+
- add examples directory with basic-app example ([ef49c6f](https://github.com/thinkkoa/koatty/commit/ef49c6f932b88ba947fc4c7f448d91b016e3e020))
|
|
42
|
+
- add tsconfigRootDir to ESLint parser options ([89619bd](https://github.com/thinkkoa/koatty/commit/89619bd3c59ec184b0defa19dae468263a77b449))
|
|
43
|
+
- enhance config decorator and update dependencies ([a0a13ab](https://github.com/thinkkoa/koatty/commit/a0a13ab8b316a7e3bb9e76137550bedb8f616c59))
|
|
44
|
+
- enhance TypeScript support and fix package distribution paths ([20c0a9c](https://github.com/thinkkoa/koatty/commit/20c0a9c681fbb703d76fd6abc428f0f0f483c24b))
|
|
45
|
+
- improve type safety in compress middleware ([61beb1d](https://github.com/thinkkoa/koatty/commit/61beb1d206bebfd5f6fec9a2d1297f420be217a2))
|
|
46
|
+
- **koatty_core:** upgrade to Koa 3.0 ([fe246ad](https://github.com/thinkkoa/koatty/commit/fe246ad773521b6117d212378b07faa30abd17e0))
|
|
47
|
+
- **koatty_router:** migrate from koa-graphql to graphql-http ([847821a](https://github.com/thinkkoa/koatty/commit/847821ac80109c6f4fd953e0701ad695e4fb771f))
|
|
48
|
+
- **logger:** enhance Logger interface and update usage ([194978c](https://github.com/thinkkoa/koatty/commit/194978cbb9969ca1eed6556981e29f03386bec85))
|
|
49
|
+
- make exception context fields optional and improve trace handling ([e0ec4db](https://github.com/thinkkoa/koatty/commit/e0ec4db1ba7299b1d22018558f61288cb2564dc6))
|
|
50
|
+
- **release:** add release guide and automation script ([c5f01b1](https://github.com/thinkkoa/koatty/commit/c5f01b17765a9b1eeb07c448b27be5ade9278569))
|
|
51
|
+
- sync version to dist/package.json during release ([c57ca04](https://github.com/thinkkoa/koatty/commit/c57ca04c91bfb9acb41238ee72b54afb0ee4a683))
|
|
52
|
+
- **trace:** enhance tracing with timeout handling and status checks ([caa6a10](https://github.com/thinkkoa/koatty/commit/caa6a10d0d82064567f1a3f8f3146f28a7b7398d))
|
|
53
|
+
- update sync script to use HTTPS instead of SSH for package repos ([91c9fd7](https://github.com/thinkkoa/koatty/commit/91c9fd74f080685cb2e8fab66e4765cbf86be57c))
|
|
54
|
+
- upgrade to Koa 3.0 (WIP) ([d14114c](https://github.com/thinkkoa/koatty/commit/d14114c63d0f62fcd3a64296cbb6648ec1ee1e83))
|
|
29
55
|
|
|
30
56
|
### Bug Fixes
|
|
31
57
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
58
|
+
- **koatty_core:** attempt to fix test timeouts ([fb197ea](https://github.com/thinkkoa/koatty/commit/fb197eab7d193616ed4255753c22df0b400c1bc6))
|
|
59
|
+
- **koatty-serve:** 修复不稳定的时间相关测试 ([cf2d6b5](https://github.com/thinkkoa/koatty/commit/cf2d6b5754a56217df1b912faf7cd40b01dbcbdc))
|
|
60
|
+
- **koatty-trace:** 修复 ESLint 错误和测试 mock 问题 ([b24e1f9](https://github.com/thinkkoa/koatty/commit/b24e1f9dcc55c64f5d97f3ca01bc53161e7bdb7c))
|
|
61
|
+
- resolve workspace dependencies in build process ([d8a2661](https://github.com/thinkkoa/koatty/commit/d8a266123fee1dea8ea7be6a39401bf0c052688b))
|
|
62
|
+
- **scripts:** 修复 monorepo 中 tag 冲突问题 ([d2602bc](https://github.com/thinkkoa/koatty/commit/d2602bcc8c245e6f2137a678ec0e5e2fd6ef673a))
|
|
63
|
+
- **scripts:** 增强 release 脚本的验证和调试信息 ([2e0db49](https://github.com/thinkkoa/koatty/commit/2e0db499234bd4f132bbfc65559105fd9f98f926))
|
|
64
|
+
- 解决依赖问题以支持 Koa 3.0 升级 ([30cf0b5](https://github.com/thinkkoa/koatty/commit/30cf0b53ed032c7de5ea24b4c2ed965e8d4948df))
|
|
39
65
|
|
|
40
66
|
## 3.13.3
|
|
41
67
|
|