koatty 4.3.3 → 4.4.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/.turbo/turbo-build.log +100 -99
- package/.turbo/turbo-lint.log +1 -1
- package/.turbo/turbo-test.log +9 -6
- package/CHANGELOG.md +8 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +12 -12
- package/package.json +9 -9
- package/tsconfig.tsbuildinfo +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,99 +1,100 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
>
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
>
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
✓
|
|
33
|
-
✓
|
|
34
|
-
✓
|
|
35
|
-
✓
|
|
36
|
-
✓
|
|
37
|
-
✓
|
|
38
|
-
✓
|
|
39
|
-
✓
|
|
40
|
-
✓
|
|
41
|
-
✓
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
[
|
|
48
|
-
[
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
[36mWriting
|
|
54
|
-
[
|
|
55
|
-
[33mWarning: /Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-core/dist/index.d.ts:
|
|
56
|
-
[33mWarning:
|
|
57
|
-
[33mWarning: src/core/Bootstrap.ts:
|
|
58
|
-
[33mWarning: src/core/Bootstrap.ts:
|
|
59
|
-
[33mWarning: src/core/Bootstrap.ts:
|
|
60
|
-
[33mWarning: src/core/
|
|
61
|
-
[33mWarning: src/core/Decorator.ts:
|
|
62
|
-
[33mWarning: src/core/Decorator.ts:
|
|
63
|
-
[33mWarning: src/core/Decorator.ts:50:
|
|
64
|
-
[33mWarning: src/core/Decorator.ts:
|
|
65
|
-
[33mWarning: src/core/Decorator.ts:51:
|
|
66
|
-
[33mWarning: src/core/Decorator.ts:
|
|
67
|
-
[33mWarning: src/core/Decorator.ts:52:
|
|
68
|
-
[33mWarning: src/core/Decorator.ts:
|
|
69
|
-
[33mWarning: src/core/Decorator.ts:
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
>
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
[
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
>
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
Copied
|
|
90
|
-
Copied
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
✓ Copied
|
|
95
|
-
✓ Copied
|
|
96
|
-
✓
|
|
97
|
-
✓
|
|
98
|
-
|
|
99
|
-
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
> koatty@4.4.0 build /Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty
|
|
4
|
+
> pnpm run build:js && pnpm run build:dts && pnpm run build:doc && pnpm run build:cp
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
> koatty@4.4.0 build:js /Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty
|
|
8
|
+
> tsup
|
|
9
|
+
|
|
10
|
+
[34mCLI[39m Building entry: src/index.ts
|
|
11
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
12
|
+
[34mCLI[39m tsup v8.5.1
|
|
13
|
+
[34mCLI[39m Using tsup config: /Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty/tsup.config.ts
|
|
14
|
+
[34mCLI[39m Target: node18
|
|
15
|
+
[34mCLI[39m Cleaning output folder
|
|
16
|
+
[34mCJS[39m Build start
|
|
17
|
+
[34mESM[39m Build start
|
|
18
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m27.83 KB[39m
|
|
19
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m66.78 KB[39m
|
|
20
|
+
[32mESM[39m ⚡️ Build success in 104ms
|
|
21
|
+
[32mCJS[39m [1mdist/index.js [22m[32m31.81 KB[39m
|
|
22
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m66.93 KB[39m
|
|
23
|
+
[32mCJS[39m ⚡️ Build success in 104ms
|
|
24
|
+
|
|
25
|
+
> koatty@4.4.0 build:dts /Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty
|
|
26
|
+
> bash scripts/build-dts.sh
|
|
27
|
+
|
|
28
|
+
🔨 Building type declarations for koatty...
|
|
29
|
+
⏳ Waiting for dependencies to be ready...
|
|
30
|
+
|
|
31
|
+
🔍 Checking dependencies: koatty_config, koatty_container, koatty_core, koatty_exception, koatty_lib, koatty_loader, koatty_logger, koatty_router, koatty_serve, koatty_trace, koatty_validation
|
|
32
|
+
✓ koatty_config type declarations ready
|
|
33
|
+
✓ koatty_container type declarations ready
|
|
34
|
+
✓ koatty_core type declarations ready
|
|
35
|
+
✓ koatty_exception type declarations ready
|
|
36
|
+
✓ koatty_lib type declarations ready
|
|
37
|
+
✓ koatty_loader type declarations ready
|
|
38
|
+
✓ koatty_logger type declarations ready
|
|
39
|
+
✓ koatty_router type declarations ready
|
|
40
|
+
✓ koatty_serve type declarations ready
|
|
41
|
+
✓ koatty_trace type declarations ready
|
|
42
|
+
✓ koatty_validation type declarations ready
|
|
43
|
+
|
|
44
|
+
✅ All dependencies ready (waited 1ms)
|
|
45
|
+
📝 Running TypeScript compiler...
|
|
46
|
+
[1G[0K[1G[0K⠙[1G[0K📦 Running API Extractor...
|
|
47
|
+
[1G[0K
|
|
48
|
+
[1mapi-extractor 7.55.2 [36m - https://api-extractor.com/[39m
|
|
49
|
+
[22m
|
|
50
|
+
Using configuration from ./api-extractor.json
|
|
51
|
+
Analysis will use the bundled TypeScript version 5.8.2
|
|
52
|
+
*** The target project appears to use TypeScript 5.9.3 which is newer than the bundled compiler engine; consider upgrading API Extractor.
|
|
53
|
+
[36mWriting: /Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty/temp/koatty.api.json[39m
|
|
54
|
+
[36mWriting package typings: /Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty/dist/index.d.ts[39m
|
|
55
|
+
[33mWarning: /Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-core/dist/index.d.ts:921:4 - (tsdoc-undefined-tag) The TSDoc tag "@interface" is not defined in this configuration[39m
|
|
56
|
+
[33mWarning: /Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-core/dist/index.d.ts:922:4 - (tsdoc-undefined-tag) The TSDoc tag "@extends" is not defined in this configuration[39m
|
|
57
|
+
[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
|
|
58
|
+
[33mWarning: src/core/Bootstrap.ts:30:1 - (ae-missing-release-tag) "ExecBootStrap" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)[39m
|
|
59
|
+
[33mWarning: src/core/Bootstrap.ts:148:64 - (tsdoc-characters-after-block-tag) The token "@Bootstrap" looks like a TSDoc tag but contains an invalid character "("; if it is not a tag, use a backslash to escape the "@"[39m
|
|
60
|
+
[33mWarning: src/core/Bootstrap.ts:173:1 - (ae-missing-release-tag) "createApplication" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)[39m
|
|
61
|
+
[33mWarning: src/core/Decorator.ts:18:4 - (tsdoc-param-tag-missing-hyphen) The @param block should be followed by a parameter name and then a hyphen[39m
|
|
62
|
+
[33mWarning: src/core/Decorator.ts:30: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
|
|
63
|
+
[33mWarning: src/core/Decorator.ts:50:31 - (tsdoc-param-tag-with-invalid-optional-name) The @param should not include a JSDoc-style optional name; it must not be enclosed in '[ ]' brackets.[39m
|
|
64
|
+
[33mWarning: src/core/Decorator.ts:50:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'[39m
|
|
65
|
+
[33mWarning: src/core/Decorator.ts:51:28 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag[39m
|
|
66
|
+
[33mWarning: src/core/Decorator.ts:51:13 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"[39m
|
|
67
|
+
[33mWarning: src/core/Decorator.ts:52:18 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag[39m
|
|
68
|
+
[33mWarning: src/core/Decorator.ts:52:12 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"[39m
|
|
69
|
+
[33mWarning: src/core/Decorator.ts:61:1 - (ae-missing-release-tag) "ComponentScan" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)[39m
|
|
70
|
+
[33mWarning: src/core/Decorator.ts:86:1 - (ae-missing-release-tag) "ConfigurationScan" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)[39m
|
|
71
|
+
|
|
72
|
+
API Extractor completed successfully
|
|
73
|
+
[1G[0K⠙[1G[0K✅ Type declarations built successfully
|
|
74
|
+
|
|
75
|
+
> koatty@4.4.0 build:doc /Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty
|
|
76
|
+
> api-documenter markdown --input temp --output docs/api
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
[1mapi-documenter 7.28.2 [36m - https://api-extractor.com/[39m
|
|
80
|
+
[22m
|
|
81
|
+
Reading koatty.api.json
|
|
82
|
+
|
|
83
|
+
Deleting old output from docs/api
|
|
84
|
+
Writing koatty package
|
|
85
|
+
|
|
86
|
+
> koatty@4.4.0 build:cp /Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty
|
|
87
|
+
> node scripts/copyFiles && node ../../scripts/postBuild.js
|
|
88
|
+
|
|
89
|
+
Copied package.json to dist/
|
|
90
|
+
Copied LICENSE to dist/
|
|
91
|
+
Copied README.md to dist/
|
|
92
|
+
File copy completed
|
|
93
|
+
📦 postBuild: koatty
|
|
94
|
+
✓ Copied package.json to dist/
|
|
95
|
+
✓ Copied LICENSE to dist/
|
|
96
|
+
✓ Copied README.md to dist/
|
|
97
|
+
✓ Fixed paths in dist/package.json
|
|
98
|
+
✓ Cleaned DTS declarations
|
|
99
|
+
✅ Done
|
|
100
|
+
|
package/.turbo/turbo-lint.log
CHANGED
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
> koatty@4.
|
|
2
|
+
> koatty@4.4.0 test /Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty
|
|
3
3
|
> pnpm run lint && jest --passWithNoTests
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> koatty@4.
|
|
6
|
+
> koatty@4.4.0 lint /Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty
|
|
7
7
|
> eslint --ext .ts,.js ./src
|
|
8
8
|
|
|
9
9
|
|
|
@@ -53,6 +53,9 @@ ts-jest[ts-compiler] (WARN) Got a `.js` file to compile while `allowJs` option i
|
|
|
53
53
|
ts-jest[ts-compiler] (WARN) Got a `.js` file to compile while `allowJs` option is not set to `true` (file: /Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-serve/dist/index.js). To fix this:
|
|
54
54
|
- if you want TypeScript to process JS files, set `allowJs` to `true` in your TypeScript config (usually tsconfig.json)
|
|
55
55
|
- if you do not want TypeScript to process your `.js` files, in your Jest config change the `transform` key which value is `ts-jest` so that it does not match `.js` files anymore
|
|
56
|
+
ts-jest[ts-compiler] (WARN) Got a `.js` file to compile while `allowJs` option is not set to `true` (file: /Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-serve/dist/index.js). To fix this:
|
|
57
|
+
- if you want TypeScript to process JS files, set `allowJs` to `true` in your TypeScript config (usually tsconfig.json)
|
|
58
|
+
- if you do not want TypeScript to process your `.js` files, in your Jest config change the `transform` key which value is `ts-jest` so that it does not match `.js` files anymore
|
|
56
59
|
ts-jest[ts-compiler] (WARN) Got a `.js` file to compile while `allowJs` option is not set to `true` (file: /Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-trace/dist/index.js). To fix this:
|
|
57
60
|
- if you want TypeScript to process JS files, set `allowJs` to `true` in your TypeScript config (usually tsconfig.json)
|
|
58
61
|
- if you do not want TypeScript to process your `.js` files, in your Jest config change the `transform` key which value is `ts-jest` so that it does not match `.js` files anymore
|
|
@@ -64,17 +67,17 @@ PASS test/app.test.ts
|
|
|
64
67
|
● Console
|
|
65
68
|
|
|
66
69
|
console.log
|
|
67
|
-
[2026-09-28
|
|
70
|
+
[2026-09-28 12:14:50.093 +08:00] DEBUG MetadataCache initialized with 8 cache types, base capacity: 3000, TTL: 600000ms
|
|
68
71
|
|
|
69
72
|
at Console.log (../../node_modules/.pnpm/winston@3.19.0/node_modules/winston/lib/winston/transports/console.js:87:23)
|
|
70
73
|
|
|
71
74
|
console.log
|
|
72
|
-
[2026-09-28
|
|
75
|
+
[2026-09-28 12:14:50.093 +08:00] DEBUG Container initialized with metadata cache
|
|
73
76
|
|
|
74
77
|
at Console.log (../../node_modules/.pnpm/winston@3.19.0/node_modules/winston/lib/winston/transports/console.js:87:23)
|
|
75
78
|
|
|
76
79
|
console.log
|
|
77
|
-
[2026-09-28
|
|
80
|
+
[2026-09-28 12:14:50.093 +08:00] DEBUG [TIMER_MANAGER] Timer manager initialized with optimization | Data: {"config":{"enableConsolidation":true,"enableAdaptiveFrequency":true,"maxTimersPerFrequency":10,"loadThreshold":0.7},"supportedFrequencies":[5000,30000,60000]}
|
|
78
81
|
|
|
79
82
|
at Console.log (../../node_modules/.pnpm/winston@3.19.0/node_modules/winston/lib/winston/transports/console.js:87:23)
|
|
80
83
|
|
|
@@ -110,5 +113,5 @@ Lines : 70.68% ( 287/406 )
|
|
|
110
113
|
Test Suites: 2 passed, 2 total
|
|
111
114
|
Tests: 4 passed, 4 total
|
|
112
115
|
Snapshots: 0 total
|
|
113
|
-
Time:
|
|
116
|
+
Time: 4.009 s
|
|
114
117
|
Ran all test suites.
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -34,7 +34,7 @@ var path__namespace = /*#__PURE__*/_interopNamespace(path);
|
|
|
34
34
|
|
|
35
35
|
/*!
|
|
36
36
|
* @Author: richen
|
|
37
|
-
* @Date: 2026-09-28
|
|
37
|
+
* @Date: 2026-09-28 04:29:21
|
|
38
38
|
* @License: BSD (3-Clause)
|
|
39
39
|
* @Copyright (c) - <richenlin(at)gmail.com>
|
|
40
40
|
* @HomePage: https://koatty.org/
|
|
@@ -51,7 +51,7 @@ var require_package = __commonJS({
|
|
|
51
51
|
"package.json"(exports$1, module) {
|
|
52
52
|
module.exports = {
|
|
53
53
|
name: "koatty",
|
|
54
|
-
version: "4.
|
|
54
|
+
version: "4.4.0",
|
|
55
55
|
description: "Koa + Typescript = koatty. Use Typescript's decorator implement auto injection.",
|
|
56
56
|
scripts: {
|
|
57
57
|
build: "pnpm run build:js && pnpm run build:dts && pnpm run build:doc && pnpm run build:cp",
|