koatty 4.3.0 → 4.3.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 +9 -9
- package/.turbo/turbo-lint.log +18 -0
- package/.turbo/turbo-test.log +114 -0
- package/CHANGELOG.md +30 -1
- 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 +11 -11
- package/tsconfig.tsbuildinfo +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
> koatty@4.3.
|
|
2
|
+
> koatty@4.3.3 build /Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty
|
|
3
3
|
> pnpm run build:js && pnpm run build:dts && pnpm run build:doc && pnpm run build:cp
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> koatty@4.3.
|
|
6
|
+
> koatty@4.3.3 build:js /Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty
|
|
7
7
|
> tsup
|
|
8
8
|
|
|
9
9
|
CLI Building entry: src/index.ts
|
|
@@ -14,14 +14,14 @@ CLI Target: node18
|
|
|
14
14
|
CLI Cleaning output folder
|
|
15
15
|
CJS Build start
|
|
16
16
|
ESM Build start
|
|
17
|
-
CJS dist/index.js 31.81 KB
|
|
18
|
-
CJS dist/index.js.map 66.93 KB
|
|
19
|
-
CJS ⚡️ Build success in 86ms
|
|
20
17
|
ESM dist/index.mjs 27.83 KB
|
|
21
18
|
ESM dist/index.mjs.map 66.78 KB
|
|
22
|
-
ESM ⚡️ Build success in
|
|
19
|
+
ESM ⚡️ Build success in 89ms
|
|
20
|
+
CJS dist/index.js 31.81 KB
|
|
21
|
+
CJS dist/index.js.map 66.93 KB
|
|
22
|
+
CJS ⚡️ Build success in 89ms
|
|
23
23
|
|
|
24
|
-
> koatty@4.3.
|
|
24
|
+
> koatty@4.3.3 build:dts /Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty
|
|
25
25
|
> bash scripts/build-dts.sh
|
|
26
26
|
|
|
27
27
|
🔨 Building type declarations for koatty...
|
|
@@ -71,7 +71,7 @@ Analysis will use the bundled TypeScript version 5.8.2
|
|
|
71
71
|
API Extractor completed successfully
|
|
72
72
|
✅ Type declarations built successfully
|
|
73
73
|
|
|
74
|
-
> koatty@4.3.
|
|
74
|
+
> koatty@4.3.3 build:doc /Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty
|
|
75
75
|
> api-documenter markdown --input temp --output docs/api
|
|
76
76
|
|
|
77
77
|
|
|
@@ -82,7 +82,7 @@ Reading koatty.api.json
|
|
|
82
82
|
Deleting old output from docs/api
|
|
83
83
|
Writing koatty package
|
|
84
84
|
|
|
85
|
-
> koatty@4.3.
|
|
85
|
+
> koatty@4.3.3 build:cp /Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty
|
|
86
86
|
> node scripts/copyFiles && node ../../scripts/postBuild.js
|
|
87
87
|
|
|
88
88
|
Copied package.json to dist/
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
> koatty@4.3.2 lint /Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty
|
|
3
|
+
> eslint --ext .ts,.js ./src
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
/Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty/src/core/Decorator.ts
|
|
7
|
+
31:39 warning The `Function` type accepts any function-like value.
|
|
8
|
+
Prefer explicitly defining any function parameters and return type @typescript-eslint/no-unsafe-function-type
|
|
9
|
+
62:39 warning The `Function` type accepts any function-like value.
|
|
10
|
+
Prefer explicitly defining any function parameters and return type @typescript-eslint/no-unsafe-function-type
|
|
11
|
+
87:39 warning The `Function` type accepts any function-like value.
|
|
12
|
+
Prefer explicitly defining any function parameters and return type @typescript-eslint/no-unsafe-function-type
|
|
13
|
+
|
|
14
|
+
/Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty/src/util/Helper.ts
|
|
15
|
+
14:13 warning A `require()` style import is forbidden @typescript-eslint/no-require-imports
|
|
16
|
+
|
|
17
|
+
✖ 4 problems (0 errors, 4 warnings)
|
|
18
|
+
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
|
|
2
|
+
> koatty@4.3.2 test /Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty
|
|
3
|
+
> pnpm run lint && jest --passWithNoTests
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
> koatty@4.3.2 lint /Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty
|
|
7
|
+
> eslint --ext .ts,.js ./src
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
/Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty/src/core/Decorator.ts
|
|
11
|
+
31:39 warning The `Function` type accepts any function-like value.
|
|
12
|
+
Prefer explicitly defining any function parameters and return type @typescript-eslint/no-unsafe-function-type
|
|
13
|
+
62:39 warning The `Function` type accepts any function-like value.
|
|
14
|
+
Prefer explicitly defining any function parameters and return type @typescript-eslint/no-unsafe-function-type
|
|
15
|
+
87:39 warning The `Function` type accepts any function-like value.
|
|
16
|
+
Prefer explicitly defining any function parameters and return type @typescript-eslint/no-unsafe-function-type
|
|
17
|
+
|
|
18
|
+
/Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty/src/util/Helper.ts
|
|
19
|
+
14:13 warning A `require()` style import is forbidden @typescript-eslint/no-require-imports
|
|
20
|
+
|
|
21
|
+
✖ 4 problems (0 errors, 4 warnings)
|
|
22
|
+
|
|
23
|
+
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-config/dist/index.js). To fix this:
|
|
24
|
+
- if you want TypeScript to process JS files, set `allowJs` to `true` in your TypeScript config (usually tsconfig.json)
|
|
25
|
+
- 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
|
|
26
|
+
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-lib/dist/index.js). To fix this:
|
|
27
|
+
- if you want TypeScript to process JS files, set `allowJs` to `true` in your TypeScript config (usually tsconfig.json)
|
|
28
|
+
- 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
|
|
29
|
+
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-logger/dist/index.js). To fix this:
|
|
30
|
+
- if you want TypeScript to process JS files, set `allowJs` to `true` in your TypeScript config (usually tsconfig.json)
|
|
31
|
+
- 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
|
|
32
|
+
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-core/dist/index.js). To fix this:
|
|
33
|
+
- if you want TypeScript to process JS files, set `allowJs` to `true` in your TypeScript config (usually tsconfig.json)
|
|
34
|
+
- 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
|
|
35
|
+
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-exception/dist/index.js). To fix this:
|
|
36
|
+
- if you want TypeScript to process JS files, set `allowJs` to `true` in your TypeScript config (usually tsconfig.json)
|
|
37
|
+
- 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
|
|
38
|
+
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-loader/dist/index.js). To fix this:
|
|
39
|
+
- if you want TypeScript to process JS files, set `allowJs` to `true` in your TypeScript config (usually tsconfig.json)
|
|
40
|
+
- 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
|
|
41
|
+
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-router/dist/index.js). To fix this:
|
|
42
|
+
- if you want TypeScript to process JS files, set `allowJs` to `true` in your TypeScript config (usually tsconfig.json)
|
|
43
|
+
- 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
|
|
44
|
+
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-graphql/dist/index.js). To fix this:
|
|
45
|
+
- if you want TypeScript to process JS files, set `allowJs` to `true` in your TypeScript config (usually tsconfig.json)
|
|
46
|
+
- 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
|
|
47
|
+
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-validation/dist/index.js). To fix this:
|
|
48
|
+
- if you want TypeScript to process JS files, set `allowJs` to `true` in your TypeScript config (usually tsconfig.json)
|
|
49
|
+
- 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
|
|
50
|
+
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-proto/dist/index.js). To fix this:
|
|
51
|
+
- if you want TypeScript to process JS files, set `allowJs` to `true` in your TypeScript config (usually tsconfig.json)
|
|
52
|
+
- 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
|
|
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
|
+
- if you want TypeScript to process JS files, set `allowJs` to `true` in your TypeScript config (usually tsconfig.json)
|
|
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-trace/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
|
|
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:
|
|
60
|
+
- if you want TypeScript to process JS files, set `allowJs` to `true` in your TypeScript config (usually tsconfig.json)
|
|
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
|
|
62
|
+
PASS test/regression/COR-02.bootstrap-failure.test.ts
|
|
63
|
+
PASS test/app.test.ts
|
|
64
|
+
● Console
|
|
65
|
+
|
|
66
|
+
console.log
|
|
67
|
+
[2026-09-28 07:46:50.881 +08:00] DEBUG MetadataCache initialized with 8 cache types, base capacity: 3000, TTL: 600000ms
|
|
68
|
+
|
|
69
|
+
at Console.log (../../node_modules/.pnpm/winston@3.19.0/node_modules/winston/lib/winston/transports/console.js:87:23)
|
|
70
|
+
|
|
71
|
+
console.log
|
|
72
|
+
[2026-09-28 07:46:50.881 +08:00] DEBUG Container initialized with metadata cache
|
|
73
|
+
|
|
74
|
+
at Console.log (../../node_modules/.pnpm/winston@3.19.0/node_modules/winston/lib/winston/transports/console.js:87:23)
|
|
75
|
+
|
|
76
|
+
console.log
|
|
77
|
+
[2026-09-28 07:46:50.881 +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
|
+
|
|
79
|
+
at Console.log (../../node_modules/.pnpm/winston@3.19.0/node_modules/winston/lib/winston/transports/console.js:87:23)
|
|
80
|
+
|
|
81
|
+
📦 report is created on: /Volumes/ExternalSSD/Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty/jest_html_reporters.html
|
|
82
|
+
----------------|---------|----------|---------|---------|-------------------------------------------------------------------------------------------------------
|
|
83
|
+
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
|
|
84
|
+
----------------|---------|----------|---------|---------|-------------------------------------------------------------------------------------------------------
|
|
85
|
+
All files | 70.36 | 43.63 | 65.9 | 70.68 |
|
|
86
|
+
src | 100 | 100 | 50 | 100 |
|
|
87
|
+
index.ts | 100 | 100 | 50 | 100 |
|
|
88
|
+
src/config | 100 | 100 | 100 | 100 |
|
|
89
|
+
config.ts | 100 | 100 | 100 | 100 |
|
|
90
|
+
middleware.ts | 100 | 100 | 100 | 100 |
|
|
91
|
+
plugin.ts | 100 | 100 | 100 | 100 |
|
|
92
|
+
router.ts | 100 | 100 | 100 | 100 |
|
|
93
|
+
server.ts | 100 | 100 | 100 | 100 |
|
|
94
|
+
src/core | 69.2 | 44.44 | 70.58 | 70.02 |
|
|
95
|
+
Bootstrap.ts | 67.64 | 31.57 | 71.42 | 70.76 | 33,55-58,66,78,123,135-136,181-184,197-206
|
|
96
|
+
Constants.ts | 100 | 100 | 100 | 100 |
|
|
97
|
+
Decorator.ts | 48 | 0 | 28.57 | 48 | 33,40-41,62-67,87-92
|
|
98
|
+
Loader.ts | 71.31 | 49.54 | 85 | 71.6 | 92-95,124-127,147-150,200,203,206-207,216-218,224-225,251,381,398,409,418,424-480,506,535,563,572-591
|
|
99
|
+
src/util | 67.27 | 28 | 50 | 66.66 |
|
|
100
|
+
Helper.ts | 67.27 | 28 | 50 | 66.66 | 33-34,47-52,61-66,83,89-92,96,99,120
|
|
101
|
+
----------------|---------|----------|---------|---------|-------------------------------------------------------------------------------------------------------
|
|
102
|
+
|
|
103
|
+
=============================== Coverage summary ===============================
|
|
104
|
+
Statements : 70.36% ( 292/415 )
|
|
105
|
+
Branches : 43.63% ( 72/165 )
|
|
106
|
+
Functions : 65.9% ( 29/44 )
|
|
107
|
+
Lines : 70.68% ( 287/406 )
|
|
108
|
+
================================================================================
|
|
109
|
+
|
|
110
|
+
Test Suites: 2 passed, 2 total
|
|
111
|
+
Tests: 4 passed, 4 total
|
|
112
|
+
Snapshots: 0 total
|
|
113
|
+
Time: 3.612 s, estimated 5 s
|
|
114
|
+
Ran all test suites.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# koatty
|
|
2
2
|
|
|
3
|
+
## 4.3.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- koatty_core@2.4.0
|
|
9
|
+
- koatty_router@2.4.0
|
|
10
|
+
- koatty_serve@3.4.0
|
|
11
|
+
- koatty_logger@3.1.0
|
|
12
|
+
- koatty_config@1.4.2
|
|
13
|
+
- koatty_trace@2.3.2
|
|
14
|
+
- koatty_container@4.0.0
|
|
15
|
+
- koatty_exception@2.2.2
|
|
16
|
+
|
|
17
|
+
## 4.3.2
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
- koatty_trace@2.3.1
|
|
23
|
+
|
|
24
|
+
## 4.3.1
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- Updated dependencies
|
|
29
|
+
- koatty_loader@2.0.1
|
|
30
|
+
- koatty_router@2.3.1
|
|
31
|
+
- koatty_config@1.4.1
|
|
32
|
+
|
|
3
33
|
## 4.3.0
|
|
4
34
|
|
|
5
35
|
### Minor Changes
|
|
@@ -7,7 +37,6 @@
|
|
|
7
37
|
- Phase B security hardening (koatty-hardening-and-ai-evolution-plan.md, ADR-101/102/103). Fail-closed defaults with a `security.legacyDefaults: true` rollback switch; see docs/migration/4.3.0.md for the full migration guide.
|
|
8
38
|
|
|
9
39
|
Highlights:
|
|
10
|
-
|
|
11
40
|
- SecurityProfile (strict/standard/development) exposed read-only as `app.security`, with a startup summary and per-item WARN when rolling back
|
|
12
41
|
- body parsing failures return 400/413/415 instead of silently producing `{}`; body size limit follows the security profile (1mb in production)
|
|
13
42
|
- DTO validation whitelist on by default (strict profile rejects unknown fields); `__proto__`/`constructor` keys never reach DTO instances
|
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-
|
|
37
|
+
* @Date: 2026-09-28 01:54:35
|
|
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.3.
|
|
54
|
+
version: "4.3.3",
|
|
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",
|