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.
@@ -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
- 
10
+ ⠙
11
11
  ./src/index.ts → ./dist/index.js, ./dist/index.mjs...
12
- created ./dist/index.js, ./dist/index.mjs in 1.4s
12
+ created ./dist/index.js, ./dist/index.mjs in 1.1s
13
13
  ⠙⠙
14
- > koatty@3.14.0-beta.1 build:dts
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
  ⠙
18
- api-extractor 7.53.2  - https://api-extractor.com/
18
+ api-extractor 7.55.2  - https://api-extractor.com/
19
19
  
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
- Writing: /home/richen/workspace/nodejs/koatty-monorepo/packages/koatty/temp/koatty.api.json
24
- Writing package typings: /home/richen/workspace/nodejs/koatty-monorepo/packages/koatty/dist/index.d.ts
25
- Warning: /home/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
26
- Warning: /home/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
27
- Warning: /home/richen/workspace/nodejs/koatty-monorepo/packages/koatty-core/dist/index.d.ts:663:4 - (tsdoc-undefined-tag) The TSDoc tag "@interface" is not defined in this configuration
28
- Warning: /home/richen/workspace/nodejs/koatty-monorepo/packages/koatty-core/dist/index.d.ts:664:4 - (tsdoc-undefined-tag) The TSDoc tag "@extends" is not defined in this configuration
23
+ Writing: /Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty/temp/koatty.api.json
24
+ Writing package typings: /Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty/dist/index.d.ts
25
+ Warning: /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
26
+ Warning: /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
27
+ Warning: /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
28
+ Warning: /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
29
29
  Warning: 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
30
30
  Warning: 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)
31
31
  Warning: 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
@@ -58,29 +58,22 @@ Analysis will use the bundled TypeScript version 5.8.2
58
58
 
59
59
  API Extractor completed successfully
60
60
  ⠙⠙
61
- > koatty@3.14.0-beta.1 build:doc
61
+ > koatty@4.0.3 build:doc
62
62
  > npx api-documenter markdown --input temp --output docs/api
63
63
 
64
64
  
65
- api-documenter 7.27.2  - https://api-extractor.com/
65
+ api-documenter 7.28.2  - https://api-extractor.com/
66
66
  
67
67
  Reading koatty.api.json
68
68
 
69
69
  Deleting old output from docs/api
70
70
  Writing koatty package
71
71
  ⠙⠙
72
- > koatty@3.14.0-beta.1 build:cp
73
- > node scripts/postBuild && npx copyfiles package.json LICENSE README.md dist/
74
-
75
- ⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏⠋⠙⠙
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
- ✓ Fixed dependencies.koatty_config: workspace:* → ^1.2.2
80
- Fixed dependencies.koatty_core: workspace:* → ^2.0.0
81
- Fixed dependencies.koatty_exception: workspace:* → ^2.0.1
82
- Fixed dependencies.koatty_router: workspace:* → ^2.0.2
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
+ Copied package.json to dist/
76
+ Copied LICENSE to dist/
77
+ Copied README.md to dist/
78
+ File copy completed
86
79
  ⠙
@@ -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
- * **scripts:** - Tag格式从 v{version} 改为 {package-name}@{version}
37
+ - **scripts:** - Tag 格式从 v{version} 改为 {package-name}@{version}
11
38
 
12
39
  ### Features
13
40
 
14
- * add examples directory with basic-app example ([ef49c6f](https://github.com/thinkkoa/koatty/commit/ef49c6f932b88ba947fc4c7f448d91b016e3e020))
15
- * add tsconfigRootDir to ESLint parser options ([89619bd](https://github.com/thinkkoa/koatty/commit/89619bd3c59ec184b0defa19dae468263a77b449))
16
- * enhance config decorator and update dependencies ([a0a13ab](https://github.com/thinkkoa/koatty/commit/a0a13ab8b316a7e3bb9e76137550bedb8f616c59))
17
- * enhance TypeScript support and fix package distribution paths ([20c0a9c](https://github.com/thinkkoa/koatty/commit/20c0a9c681fbb703d76fd6abc428f0f0f483c24b))
18
- * improve type safety in compress middleware ([61beb1d](https://github.com/thinkkoa/koatty/commit/61beb1d206bebfd5f6fec9a2d1297f420be217a2))
19
- * **koatty_core:** upgrade to Koa 3.0 ([fe246ad](https://github.com/thinkkoa/koatty/commit/fe246ad773521b6117d212378b07faa30abd17e0))
20
- * **koatty_router:** migrate from koa-graphql to graphql-http ([847821a](https://github.com/thinkkoa/koatty/commit/847821ac80109c6f4fd953e0701ad695e4fb771f))
21
- * **logger:** enhance Logger interface and update usage ([194978c](https://github.com/thinkkoa/koatty/commit/194978cbb9969ca1eed6556981e29f03386bec85))
22
- * make exception context fields optional and improve trace handling ([e0ec4db](https://github.com/thinkkoa/koatty/commit/e0ec4db1ba7299b1d22018558f61288cb2564dc6))
23
- * **release:** add release guide and automation script ([c5f01b1](https://github.com/thinkkoa/koatty/commit/c5f01b17765a9b1eeb07c448b27be5ade9278569))
24
- * sync version to dist/package.json during release ([c57ca04](https://github.com/thinkkoa/koatty/commit/c57ca04c91bfb9acb41238ee72b54afb0ee4a683))
25
- * **trace:** enhance tracing with timeout handling and status checks ([caa6a10](https://github.com/thinkkoa/koatty/commit/caa6a10d0d82064567f1a3f8f3146f28a7b7398d))
26
- * update sync script to use HTTPS instead of SSH for package repos ([91c9fd7](https://github.com/thinkkoa/koatty/commit/91c9fd74f080685cb2e8fab66e4765cbf86be57c))
27
- * upgrade to Koa 3.0 (WIP) ([d14114c](https://github.com/thinkkoa/koatty/commit/d14114c63d0f62fcd3a64296cbb6648ec1ee1e83))
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
- * **koatty_core:** attempt to fix test timeouts ([fb197ea](https://github.com/thinkkoa/koatty/commit/fb197eab7d193616ed4255753c22df0b400c1bc6))
33
- * **koatty-serve:** 修复不稳定的时间相关测试 ([cf2d6b5](https://github.com/thinkkoa/koatty/commit/cf2d6b5754a56217df1b912faf7cd40b01dbcbdc))
34
- * **koatty-trace:** 修复ESLint错误和测试mock问题 ([b24e1f9](https://github.com/thinkkoa/koatty/commit/b24e1f9dcc55c64f5d97f3ca01bc53161e7bdb7c))
35
- * resolve workspace dependencies in build process ([d8a2661](https://github.com/thinkkoa/koatty/commit/d8a266123fee1dea8ea7be6a39401bf0c052688b))
36
- * **scripts:** 修复monorepo中tag冲突问题 ([d2602bc](https://github.com/thinkkoa/koatty/commit/d2602bcc8c245e6f2137a678ec0e5e2fd6ef673a))
37
- * **scripts:** 增强release脚本的验证和调试信息 ([2e0db49](https://github.com/thinkkoa/koatty/commit/2e0db499234bd4f132bbfc65559105fd9f98f926))
38
- * 解决依赖问题以支持Koa 3.0升级 ([30cf0b5](https://github.com/thinkkoa/koatty/commit/30cf0b53ed032c7de5ea24b4c2ed965e8d4948df))
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