koatty_router 2.0.5 → 2.0.9

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/.rollup.config.js CHANGED
@@ -49,9 +49,16 @@ export default [
49
49
  compilerOptions: {
50
50
  declaration: false,
51
51
  declarationMap: false,
52
- module: "ESNext"
52
+ module: "ESNext",
53
+ skipLibCheck: true,
54
+ // 不使用 paths,让 TypeScript 使用 node_modules 中的类型
55
+ // 这样可以避免类型冲突
53
56
  }
54
- }
57
+ },
58
+ // 使用 cache 来提高性能
59
+ useTsconfigDeclarationDir: false,
60
+ // 忽略类型错误,只做转译(类型检查由 build:dts 步骤完成)
61
+ check: false
55
62
  }),
56
63
  terser({
57
64
  compress: {
@@ -1,167 +1,180 @@
1
-
2
- > koatty_router@2.0.5 build /Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-router
3
- > npm run build:js && npm run build:dts && npm run build:doc && npm run build:cp
4
-
5
-
6
- > koatty_router@2.0.5 build:js
7
- > npx rollup --bundleConfigAsCjs -c .rollup.config.js
8
-
9
- 
10
- ./src/index.ts → ./dist/index.js, ./dist/index.mjs...
11
- created ./dist/index.js, ./dist/index.mjs in 3.6s
12
-
13
- > koatty_router@2.0.5 build:dts
14
- > npx tsc && npx api-extractor run --local --verbose
15
-
16
-
17
- api-extractor 7.55.2  - https://api-extractor.com/
18
- 
19
- Using configuration from ./api-extractor.json
20
- Analysis will use the bundled TypeScript version 5.8.2
21
- *** The target project appears to use TypeScript 5.9.3 which is newer than the bundled compiler engine; consider upgrading API Extractor.
22
- Writing: /Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-router/temp/koatty_router.api.json
23
- Writing package typings: /Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-router/dist/index.d.ts
24
- Warning: src/params/mapping.ts:33:4 - (tsdoc-undefined-tag) The TSDoc tag "@export" is not defined in this configuration
25
- Warning: src/params/mapping.ts:34:4 - (tsdoc-undefined-tag) The TSDoc tag "@interface" is not defined in this configuration
26
- Warning: src/params/mapping.ts:47:4 - (tsdoc-undefined-tag) The TSDoc tag "@export" is not defined in this configuration
27
- Warning: src/params/mapping.ts:48:4 - (tsdoc-undefined-tag) The TSDoc tag "@var" is not defined in this configuration
28
- Warning: src/params/mapping.ts:64:20 - (tsdoc-param-tag-with-invalid-optional-name) The @param should not include a JSDoc-style optional name; it must not be enclosed in '[ ]' brackets.
29
- Warning: src/params/mapping.ts:64:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
30
- Warning: src/params/mapping.ts:65:27 - (tsdoc-param-tag-with-invalid-optional-name) The @param should not include a JSDoc-style optional name; it must not be enclosed in '[ ]' brackets.
31
- Warning: src/params/mapping.ts:65:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
32
- Warning: src/params/mapping.ts:66:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
33
- Warning: src/params/mapping.ts:69:11 - (tsdoc-param-tag-with-invalid-optional-name) The @param should not include a JSDoc-style optional name; it must not be enclosed in '[ ]' brackets.
34
- Warning: src/params/mapping.ts:70:15 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
35
- Warning: src/params/mapping.ts:70:34 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
36
- Warning: src/params/mapping.ts:70:13 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
37
- Warning: src/params/mapping.ts:70:18 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
38
- Warning: src/params/params.ts:19:4 - (tsdoc-undefined-tag) The TSDoc tag "@export" is not defined in this configuration
39
- Warning: src/params/params.ts:20:20 - (tsdoc-param-tag-with-invalid-optional-name) The @param should not include a JSDoc-style optional name; it must not be enclosed in '[ ]' brackets.
40
- Warning: src/params/params.ts:20:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
41
- Warning: src/params/params.ts:21:17 - (tsdoc-param-tag-with-invalid-optional-name) The @param should not include a JSDoc-style optional name; it must not be enclosed in '[ ]' brackets.
42
- Warning: src/params/params.ts:21:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
43
- Warning: src/params/params.ts:37:4 - (tsdoc-undefined-tag) The TSDoc tag "@export" is not defined in this configuration
44
- Warning: src/params/params.ts:38:20 - (tsdoc-param-tag-with-invalid-optional-name) The @param should not include a JSDoc-style optional name; it must not be enclosed in '[ ]' brackets.
45
- Warning: src/params/params.ts:38:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
46
- Warning: src/params/params.ts:39:17 - (tsdoc-param-tag-with-invalid-optional-name) The @param should not include a JSDoc-style optional name; it must not be enclosed in '[ ]' brackets.
47
- Warning: src/params/params.ts:39:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
48
- Warning: src/params/params.ts:58:4 - (tsdoc-undefined-tag) The TSDoc tag "@export" is not defined in this configuration
49
- Warning: src/params/params.ts:59:20 - (tsdoc-param-tag-with-invalid-optional-name) The @param should not include a JSDoc-style optional name; it must not be enclosed in '[ ]' brackets.
50
- Warning: src/params/params.ts:59:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
51
- Warning: src/params/params.ts:60:17 - (tsdoc-param-tag-with-invalid-optional-name) The @param should not include a JSDoc-style optional name; it must not be enclosed in '[ ]' brackets.
52
- Warning: src/params/params.ts:60:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
53
- Warning: src/params/params.ts:79:4 - (tsdoc-undefined-tag) The TSDoc tag "@export" is not defined in this configuration
54
- Warning: src/params/params.ts:80:20 - (tsdoc-param-tag-with-invalid-optional-name) The @param should not include a JSDoc-style optional name; it must not be enclosed in '[ ]' brackets.
55
- Warning: src/params/params.ts:80:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
56
- Warning: src/params/params.ts:81:17 - (tsdoc-param-tag-with-invalid-optional-name) The @param should not include a JSDoc-style optional name; it must not be enclosed in '[ ]' brackets.
57
- Warning: src/params/params.ts:81:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
58
- Warning: src/params/params.ts:101:4 - (tsdoc-undefined-tag) The TSDoc tag "@export" is not defined in this configuration
59
- Warning: src/params/params.ts:102:20 - (tsdoc-param-tag-with-invalid-optional-name) The @param should not include a JSDoc-style optional name; it must not be enclosed in '[ ]' brackets.
60
- Warning: src/params/params.ts:102:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
61
- Warning: src/params/params.ts:103:17 - (tsdoc-param-tag-with-invalid-optional-name) The @param should not include a JSDoc-style optional name; it must not be enclosed in '[ ]' brackets.
62
- Warning: src/params/params.ts:103:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
63
- Warning: src/params/params.ts:124:4 - (tsdoc-undefined-tag) The TSDoc tag "@export" is not defined in this configuration
64
- Warning: src/params/params.ts:125:28 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
65
- Warning: src/params/params.ts:125:41 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
66
- Warning: src/params/params.ts:125:42 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
67
- Warning: src/params/params.ts:125:17 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
68
- Warning: src/params/params.ts:125:24 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
69
- Warning: src/params/params.ts:125:37 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
70
- Warning: src/params/params.ts:136:13 - (tsdoc-undefined-tag) The TSDoc tag "@RequestBody" is not defined in this configuration
71
- Warning: src/params/params.ts:137:13 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
72
- Warning: src/params/params.ts:137:11 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
73
- Warning: src/params/params.ts:137:4 - (tsdoc-param-tag-with-invalid-name) The @param block should be followed by a parameter name
74
- Warning: src/params/params.ts:137:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
75
- Warning: src/params/params.ts:138:14 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
76
- Warning: src/params/params.ts:138:12 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
77
- Warning: src/params/params.ts:138:4 - (tsdoc-undefined-tag) The TSDoc tag "@return" is not defined in this configuration
78
- Warning: src/params/params.ts:146:4 - (tsdoc-undefined-tag) The TSDoc tag "@export" is not defined in this configuration
79
- Warning: src/params/params.ts:147:32 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
80
- Warning: src/params/params.ts:147:13 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
81
- Warning: src/params/params.ts:158:13 - (tsdoc-undefined-tag) The TSDoc tag "@RequestParam" is not defined in this configuration
82
- Warning: src/params/params.ts:159:13 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
83
- Warning: src/params/params.ts:159:11 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
84
- Warning: src/params/params.ts:159:4 - (tsdoc-param-tag-with-invalid-name) The @param block should be followed by a parameter name
85
- Warning: src/params/params.ts:159:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
86
- Warning: src/params/params.ts:160:14 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
87
- Warning: src/params/params.ts:160:12 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
88
- Warning: src/params/params.ts:160:4 - (tsdoc-undefined-tag) The TSDoc tag "@return" is not defined in this configuration
89
- Warning: src/router/router.ts:20:4 - (tsdoc-undefined-tag) The TSDoc tag "@export" is not defined in this configuration
90
- Warning: src/router/router.ts:21:4 - (tsdoc-undefined-tag) The TSDoc tag "@interface" is not defined in this configuration
91
- Warning: src/router/router.ts:48:3 - (ae-forgotten-export) The symbol "PayloadOptions" needs to be exported by the entry point index.d.ts
92
- Warning: src/router/router.ts:53:74 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
93
- Warning: src/router/router.ts:53:19 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
94
- Warning: src/router/router.ts:54:66 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
95
- Warning: src/router/router.ts:54:14 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
96
- Warning: src/router/router.ts:55:62 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
97
- Warning: src/router/router.ts:55:17 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
98
- Warning: src/router/router.ts:87:4 - (tsdoc-undefined-tag) The TSDoc tag "@export" is not defined in this configuration
99
- Warning: src/router/router.ts:88:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
100
- Warning: src/router/router.ts:89:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
101
- Warning: src/router/router.ts:90:15 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
102
- Warning: src/router/router.ts:90:31 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
103
- Warning: src/router/router.ts:90:13 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
104
- Warning: src/router/router.ts:90:18 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
105
-
106
- API Extractor completed successfully
107
-
108
- > koatty_router@2.0.5 build:doc
109
- > npx api-documenter markdown --input temp --output docs/api
110
-
111
-
112
- api-documenter 7.28.2  - https://api-extractor.com/
113
- 
114
- Reading koatty_router.api.json
115
-
116
- Deleting old output from docs/api
117
- Writing koatty_router package
118
- Unsupported block tag: @RequestBody
119
- Unsupported block tag: @export
120
- Unsupported block tag: @export
121
- Unsupported block tag: @export
122
- Unsupported block tag: @export
123
- Unsupported block tag: @RequestParam
124
- Unsupported block tag: @export
125
- Unsupported block tag: @export
126
- Unsupported block tag: @export
127
- Unsupported block tag: @export
128
- Unsupported block tag: @var
129
- Unsupported block tag: @export
130
- Unsupported block tag: @export
131
- Unsupported block tag: @interface
132
- Unsupported block tag: @export
133
- Unsupported block tag: @interface
134
- Unsupported block tag: @export
135
- Unsupported block tag: @var
136
- Unsupported block tag: @export
137
- Unsupported block tag: @export
138
- Unsupported block tag: @export
139
- Unsupported block tag: @export
140
- Unsupported block tag: @export
141
- Unsupported block tag: @export
142
- Unsupported block tag: @export
143
- Unsupported block tag: @export
144
- Unsupported block tag: @export
145
- Unsupported block tag: @interface
146
- Unsupported block tag: @export
147
- Unsupported block tag: @interface
148
- Unsupported block tag: @RequestBody
149
- Unsupported block tag: @RequestParam
150
-
151
- > koatty_router@2.0.5 build:cp
152
- > copyfiles package.json LICENSE README.md dist/ && node scripts/postBuild
153
-
154
- Fixed dependencies.koatty_container: workspace:* → ^1.17.1
155
- Fixed dependencies.koatty_core: workspace:* → ^2.0.11
156
- Fixed dependencies.koatty_exception: workspace:* → ^2.0.7
157
- Fixed dependencies.koatty_graphql: workspace:* → ^1.1.1
158
- Fixed dependencies.koatty_lib: workspace:* → ^1.4.2
159
- Fixed dependencies.koatty_logger: workspace:* → ^2.3.1
160
- Fixed dependencies.koatty_proto: workspace:* → ^1.3.1
161
- Fixed dependencies.koatty_validation: workspace:* → ^1.6.3
162
- Fixed main: ./dist/... → ./index.js
163
- Fixed types: ./dist/... → ./index.d.ts
164
- Fixed exports.require: ./dist/index.js → ./index.js
165
- Fixed exports.import: ./dist/index.mjs → ./index.mjs
166
- Fixed exports.types: ./dist/index.d.ts → ./index.d.ts
167
- Fixed workspace:* dependencies and paths in dist/package.json
1
+
2
+ 
3
+ > koatty_router@2.0.9 build /Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-router
4
+ > npm run build:js && npm run build:dts && npm run build:doc && npm run build:cp
5
+
6
+
7
+ > koatty_router@2.0.9 build:js
8
+ > npx rollup --bundleConfigAsCjs -c .rollup.config.js
9
+
10
+ 
11
+ ./src/index.ts ./dist/index.js, ./dist/index.mjs...
12
+ created ./dist/index.js, ./dist/index.mjs in 15.5s
13
+ ⠙⠙
14
+ > koatty_router@2.0.9 build:dts
15
+ > bash ../../scripts/build-dts.sh
16
+
17
+ 🔨 Building type declarations for koatty-router...
18
+ ⏳ Waiting for dependencies to be ready...
19
+
20
+ 🔍 Checking dependencies: koatty_container, koatty_core, koatty_exception, koatty_graphql, koatty_lib, koatty_logger, koatty_proto, koatty_validation
21
+ koatty_container type declarations ready
22
+ koatty_exception type declarations ready
23
+ koatty_graphql type declarations ready
24
+ koatty_lib type declarations ready
25
+ koatty_logger type declarations ready
26
+ koatty_proto type declarations ready
27
+ koatty_validation type declarations ready
28
+ Waiting for: koatty_core (0s)
29
+ ✗ koatty_core: missing .d.ts
30
+ koatty_core type declarations ready
31
+
32
+ All dependencies ready (waited 1004ms)
33
+ 📝 Running TypeScript compiler...
34
+ ⠙⠙📦 Running API Extractor...
35
+ 
36
+ api-extractor 7.55.2  - https://api-extractor.com/
37
+ 
38
+ Using configuration from ./api-extractor.json
39
+ Analysis will use the bundled TypeScript version 5.8.2
40
+ *** The target project appears to use TypeScript 5.9.3 which is newer than the bundled compiler engine; consider upgrading API Extractor.
41
+ Writing: /Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-router/temp/koatty_router.api.json
42
+ Writing package typings: /Users/richen/Workspace/nodejs/koatty-monorepo/packages/koatty-router/dist/index.d.ts
43
+ Warning: src/params/mapping.ts:33:4 - (tsdoc-undefined-tag) The TSDoc tag "@export" is not defined in this configuration
44
+ Warning: src/params/mapping.ts:34:4 - (tsdoc-undefined-tag) The TSDoc tag "@interface" is not defined in this configuration
45
+ Warning: src/params/mapping.ts:47:4 - (tsdoc-undefined-tag) The TSDoc tag "@export" is not defined in this configuration
46
+ Warning: src/params/mapping.ts:48:4 - (tsdoc-undefined-tag) The TSDoc tag "@var" is not defined in this configuration
47
+ Warning: src/params/mapping.ts:64:20 - (tsdoc-param-tag-with-invalid-optional-name) The @param should not include a JSDoc-style optional name; it must not be enclosed in '[ ]' brackets.
48
+ Warning: src/params/mapping.ts:64:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
49
+ Warning: src/params/mapping.ts:65:27 - (tsdoc-param-tag-with-invalid-optional-name) The @param should not include a JSDoc-style optional name; it must not be enclosed in '[ ]' brackets.
50
+ Warning: src/params/mapping.ts:65:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
51
+ Warning: src/params/mapping.ts:66:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
52
+ Warning: src/params/mapping.ts:69:11 - (tsdoc-param-tag-with-invalid-optional-name) The @param should not include a JSDoc-style optional name; it must not be enclosed in '[ ]' brackets.
53
+ Warning: src/params/mapping.ts:70:15 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
54
+ Warning: src/params/mapping.ts:70:34 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
55
+ Warning: src/params/mapping.ts:70:13 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
56
+ Warning: src/params/mapping.ts:70:18 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
57
+ Warning: src/params/params.ts:19:4 - (tsdoc-undefined-tag) The TSDoc tag "@export" is not defined in this configuration
58
+ Warning: src/params/params.ts:20:20 - (tsdoc-param-tag-with-invalid-optional-name) The @param should not include a JSDoc-style optional name; it must not be enclosed in '[ ]' brackets.
59
+ Warning: src/params/params.ts:20:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
60
+ Warning: src/params/params.ts:21:17 - (tsdoc-param-tag-with-invalid-optional-name) The @param should not include a JSDoc-style optional name; it must not be enclosed in '[ ]' brackets.
61
+ Warning: src/params/params.ts:21:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
62
+ Warning: src/params/params.ts:37:4 - (tsdoc-undefined-tag) The TSDoc tag "@export" is not defined in this configuration
63
+ Warning: src/params/params.ts:38:20 - (tsdoc-param-tag-with-invalid-optional-name) The @param should not include a JSDoc-style optional name; it must not be enclosed in '[ ]' brackets.
64
+ Warning: src/params/params.ts:38:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
65
+ Warning: src/params/params.ts:39:17 - (tsdoc-param-tag-with-invalid-optional-name) The @param should not include a JSDoc-style optional name; it must not be enclosed in '[ ]' brackets.
66
+ Warning: src/params/params.ts:39:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
67
+ Warning: src/params/params.ts:58:4 - (tsdoc-undefined-tag) The TSDoc tag "@export" is not defined in this configuration
68
+ Warning: src/params/params.ts:59:20 - (tsdoc-param-tag-with-invalid-optional-name) The @param should not include a JSDoc-style optional name; it must not be enclosed in '[ ]' brackets.
69
+ Warning: src/params/params.ts:59:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
70
+ Warning: src/params/params.ts:60:17 - (tsdoc-param-tag-with-invalid-optional-name) The @param should not include a JSDoc-style optional name; it must not be enclosed in '[ ]' brackets.
71
+ Warning: src/params/params.ts:60:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
72
+ Warning: src/params/params.ts:79:4 - (tsdoc-undefined-tag) The TSDoc tag "@export" is not defined in this configuration
73
+ Warning: src/params/params.ts:80:20 - (tsdoc-param-tag-with-invalid-optional-name) The @param should not include a JSDoc-style optional name; it must not be enclosed in '[ ]' brackets.
74
+ Warning: src/params/params.ts:80:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
75
+ Warning: src/params/params.ts:81:17 - (tsdoc-param-tag-with-invalid-optional-name) The @param should not include a JSDoc-style optional name; it must not be enclosed in '[ ]' brackets.
76
+ Warning: src/params/params.ts:81:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
77
+ Warning: src/params/params.ts:101:4 - (tsdoc-undefined-tag) The TSDoc tag "@export" is not defined in this configuration
78
+ Warning: src/params/params.ts:102:20 - (tsdoc-param-tag-with-invalid-optional-name) The @param should not include a JSDoc-style optional name; it must not be enclosed in '[ ]' brackets.
79
+ Warning: src/params/params.ts:102:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
80
+ Warning: src/params/params.ts:103:17 - (tsdoc-param-tag-with-invalid-optional-name) The @param should not include a JSDoc-style optional name; it must not be enclosed in '[ ]' brackets.
81
+ Warning: src/params/params.ts:103:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
82
+ Warning: src/params/params.ts:124:4 - (tsdoc-undefined-tag) The TSDoc tag "@export" is not defined in this configuration
83
+ Warning: src/params/params.ts:125:28 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
84
+ Warning: src/params/params.ts:125:41 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
85
+ Warning: src/params/params.ts:125:42 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
86
+ Warning: src/params/params.ts:125:17 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
87
+ Warning: src/params/params.ts:125:24 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
88
+ Warning: src/params/params.ts:125:37 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
89
+ Warning: src/params/params.ts:136:13 - (tsdoc-undefined-tag) The TSDoc tag "@RequestBody" is not defined in this configuration
90
+ Warning: src/params/params.ts:137:13 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
91
+ Warning: src/params/params.ts:137:11 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
92
+ Warning: src/params/params.ts:137:4 - (tsdoc-param-tag-with-invalid-name) The @param block should be followed by a parameter name
93
+ Warning: src/params/params.ts:137:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
94
+ Warning: src/params/params.ts:138:14 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
95
+ Warning: src/params/params.ts:138:12 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
96
+ Warning: src/params/params.ts:138:4 - (tsdoc-undefined-tag) The TSDoc tag "@return" is not defined in this configuration
97
+ Warning: src/params/params.ts:146:4 - (tsdoc-undefined-tag) The TSDoc tag "@export" is not defined in this configuration
98
+ Warning: src/params/params.ts:147:32 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
99
+ Warning: src/params/params.ts:147:13 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
100
+ Warning: src/params/params.ts:158:13 - (tsdoc-undefined-tag) The TSDoc tag "@RequestParam" is not defined in this configuration
101
+ Warning: src/params/params.ts:159:13 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
102
+ Warning: src/params/params.ts:159:11 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
103
+ Warning: src/params/params.ts:159:4 - (tsdoc-param-tag-with-invalid-name) The @param block should be followed by a parameter name
104
+ Warning: src/params/params.ts:159:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
105
+ Warning: src/params/params.ts:160:14 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
106
+ Warning: src/params/params.ts:160:12 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
107
+ Warning: src/params/params.ts:160:4 - (tsdoc-undefined-tag) The TSDoc tag "@return" is not defined in this configuration
108
+ Warning: src/router/router.ts:20:4 - (tsdoc-undefined-tag) The TSDoc tag "@export" is not defined in this configuration
109
+ Warning: src/router/router.ts:21:4 - (tsdoc-undefined-tag) The TSDoc tag "@interface" is not defined in this configuration
110
+ Warning: src/router/router.ts:48:3 - (ae-forgotten-export) The symbol "PayloadOptions" needs to be exported by the entry point index.d.ts
111
+ Warning: src/router/router.ts:53:74 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
112
+ Warning: src/router/router.ts:53:19 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
113
+ Warning: src/router/router.ts:54:66 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
114
+ Warning: src/router/router.ts:54:14 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
115
+ Warning: src/router/router.ts:55:62 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
116
+ Warning: src/router/router.ts:55:17 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
117
+ Warning: src/router/router.ts:87:4 - (tsdoc-undefined-tag) The TSDoc tag "@export" is not defined in this configuration
118
+ Warning: src/router/router.ts:88:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
119
+ Warning: src/router/router.ts:89:11 - (tsdoc-param-tag-with-invalid-type) The @param block should not include a JSDoc-style '{type}'
120
+ Warning: src/router/router.ts:90:15 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
121
+ Warning: src/router/router.ts:90:31 - (tsdoc-escape-right-brace) The "}" character should be escaped using a backslash to avoid confusion with a TSDoc inline tag
122
+ Warning: src/router/router.ts:90:13 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
123
+ Warning: src/router/router.ts:90:18 - (tsdoc-malformed-inline-tag) Expecting a TSDoc tag starting with "{@"
124
+
125
+ API Extractor completed successfully
126
+ ⠙✅ Type declarations built successfully
127
+ ⠙
128
+ > koatty_router@2.0.9 build:doc
129
+ > npx api-documenter markdown --input temp --output docs/api
130
+
131
+ 
132
+ api-documenter 7.28.2  - https://api-extractor.com/
133
+ 
134
+ Reading koatty_router.api.json
135
+
136
+ Deleting old output from docs/api
137
+ Writing koatty_router package
138
+ Unsupported block tag: @RequestBody
139
+ Unsupported block tag: @export
140
+ Unsupported block tag: @export
141
+ Unsupported block tag: @export
142
+ Unsupported block tag: @export
143
+ Unsupported block tag: @RequestParam
144
+ Unsupported block tag: @export
145
+ Unsupported block tag: @export
146
+ Unsupported block tag: @export
147
+ Unsupported block tag: @export
148
+ Unsupported block tag: @var
149
+ Unsupported block tag: @export
150
+ Unsupported block tag: @export
151
+ Unsupported block tag: @interface
152
+ Unsupported block tag: @export
153
+ Unsupported block tag: @interface
154
+ Unsupported block tag: @export
155
+ Unsupported block tag: @var
156
+ Unsupported block tag: @export
157
+ Unsupported block tag: @export
158
+ Unsupported block tag: @export
159
+ Unsupported block tag: @export
160
+ Unsupported block tag: @export
161
+ Unsupported block tag: @export
162
+ Unsupported block tag: @export
163
+ Unsupported block tag: @export
164
+ Unsupported block tag: @export
165
+ Unsupported block tag: @interface
166
+ Unsupported block tag: @export
167
+ Unsupported block tag: @interface
168
+ Unsupported block tag: @RequestBody
169
+ Unsupported block tag: @RequestParam
170
+ ⠙⠙
171
+ > koatty_router@2.0.9 build:cp
172
+ > copyfiles package.json LICENSE README.md dist/ && node scripts/postBuild
173
+
174
+ ✓ Fixed main: ./dist/... → ./index.js
175
+ ✓ Fixed types: ./dist/... → ./index.d.ts
176
+ ✓ Fixed exports.require: ./dist/index.js → ./index.js
177
+ ✓ Fixed exports.import: ./dist/index.mjs → ./index.mjs
178
+ ✓ Fixed exports.types: ./dist/index.d.ts → ./index.d.ts
179
+ ✅ Fixed workspace:* dependencies and paths in dist/package.json
180
+ ⠙
package/CHANGELOG.md CHANGED
@@ -1,5 +1,56 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.0.9
4
+
5
+ ### Patch Changes
6
+
7
+ - build
8
+ - Updated dependencies
9
+ - koatty_container@1.17.4
10
+ - koatty_core@2.0.14
11
+ - koatty_exception@2.0.10
12
+ - koatty_graphql@1.1.4
13
+ - koatty_lib@1.4.5
14
+ - koatty_logger@2.3.4
15
+ - koatty_proto@1.3.5
16
+ - koatty_validation@1.6.6
17
+
18
+ ## 2.0.8
19
+
20
+ ### Patch Changes
21
+
22
+ - build
23
+ - Updated dependencies
24
+ - koatty_container@1.17.3
25
+ - koatty_core@2.0.13
26
+ - koatty_exception@2.0.9
27
+ - koatty_graphql@1.1.3
28
+ - koatty_lib@1.4.4
29
+ - koatty_logger@2.3.3
30
+ - koatty_proto@1.3.4
31
+ - koatty_validation@1.6.5
32
+
33
+ ## 2.0.7
34
+
35
+ ### Patch Changes
36
+
37
+ - Updated dependencies
38
+ - koatty_container@1.17.2
39
+ - koatty_graphql@1.1.2
40
+ - koatty_lib@1.4.3
41
+ - koatty_logger@2.3.2
42
+ - koatty_proto@1.3.3
43
+ - koatty_validation@1.6.4
44
+ - koatty_core@2.0.12
45
+ - koatty_exception@2.0.8
46
+
47
+ ## 2.0.6
48
+
49
+ ### Patch Changes
50
+
51
+ - Updated dependencies
52
+ - koatty_proto@1.3.2
53
+
3
54
  ## 2.0.5
4
55
 
5
56
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @Author: richen
3
- * @Date: 2026-01-28 10:57:32
3
+ * @Date: 2026-01-28 17:21:09
4
4
  * @License: BSD (3-Clause)
5
5
  * @Copyright (c) - <richenlin(at)gmail.com>
6
6
  * @HomePage: https://koatty.org/
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @Author: richen
3
- * @Date: 2026-01-28 10:57:22
3
+ * @Date: 2026-01-28 17:20:37
4
4
  * @License: BSD (3-Clause)
5
5
  * @Copyright (c) - <richenlin(at)gmail.com>
6
6
  * @HomePage: https://koatty.org/
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @Author: richen
3
- * @Date: 2026-01-28 10:57:22
3
+ * @Date: 2026-01-28 17:20:37
4
4
  * @License: BSD (3-Clause)
5
5
  * @Copyright (c) - <richenlin(at)gmail.com>
6
6
  * @HomePage: https://koatty.org/
package/dist/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "koatty_router",
3
- "version": "2.0.5",
3
+ "version": "2.0.9",
4
4
  "description": "Koatty routing component, adapt to http1/2, websocket, gRPC.",
5
5
  "scripts": {
6
6
  "build": "npm run build:js && npm run build:dts && npm run build:doc && npm run build:cp",
7
7
  "build:cp": "copyfiles package.json LICENSE README.md dist/ && node scripts/postBuild",
8
8
  "build:js": "npx rollup --bundleConfigAsCjs -c .rollup.config.js",
9
9
  "build:doc": "npx api-documenter markdown --input temp --output docs/api",
10
- "build:dts": "npx tsc && npx api-extractor run --local --verbose",
10
+ "build:dts": "bash ../../scripts/build-dts.sh",
11
11
  "eslint": "eslint --ext .ts,.js ./",
12
12
  "lock": "npx del-cli --force node_modules && npm i --package-lock-only && npx pnpm i",
13
13
  "test": "npm run eslint && jest --passWithNoTests",
@@ -75,24 +75,24 @@
75
75
  "typescript": "^5.x.x"
76
76
  },
77
77
  "dependencies": {
78
- "@koa/router": "^14.0.0",
78
+ "@koa/router": "^15.3.0",
79
79
  "fast-querystring": "^1.1.2",
80
- "fast-xml-parser": "^5.3.0",
80
+ "fast-xml-parser": "^5.3.3",
81
81
  "formidable": "^3.5.4",
82
82
  "graphql-depth-limit": "^1.1.0",
83
83
  "graphql-http": "^1.22.4",
84
84
  "inflation": "^2.1.0",
85
85
  "koa-compose": "^4.1.0",
86
- "koatty_container": "^1.17.1",
87
- "koatty_core": "^2.0.11",
88
- "koatty_exception": "^2.0.7",
89
- "koatty_graphql": "^1.1.1",
90
- "koatty_lib": "^1.4.2",
91
- "koatty_logger": "^2.3.1",
92
- "koatty_proto": "^1.3.1",
93
- "koatty_validation": "^1.6.3",
94
- "lru-cache": "^11.2.2",
86
+ "koatty_container": "^1.17.4",
87
+ "koatty_core": "^2.0.14",
88
+ "koatty_exception": "^2.0.10",
89
+ "koatty_graphql": "^1.1.4",
90
+ "koatty_lib": "^1.4.5",
91
+ "koatty_logger": "^2.3.4",
92
+ "koatty_proto": "^1.3.5",
93
+ "koatty_validation": "^1.6.6",
94
+ "lru-cache": "^11.2.5",
95
95
  "on-finished": "^2.4.1",
96
- "raw-body": "^3.0.1"
96
+ "raw-body": "^3.0.2"
97
97
  }
98
98
  }
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "koatty_router",
3
- "version": "2.0.5",
3
+ "version": "2.0.9",
4
4
  "description": "Koatty routing component, adapt to http1/2, websocket, gRPC.",
5
5
  "scripts": {
6
6
  "build": "npm run build:js && npm run build:dts && npm run build:doc && npm run build:cp",
7
7
  "build:cp": "copyfiles package.json LICENSE README.md dist/ && node scripts/postBuild",
8
8
  "build:js": "npx rollup --bundleConfigAsCjs -c .rollup.config.js",
9
9
  "build:doc": "npx api-documenter markdown --input temp --output docs/api",
10
- "build:dts": "npx tsc && npx api-extractor run --local --verbose",
10
+ "build:dts": "bash ../../scripts/build-dts.sh",
11
11
  "eslint": "eslint --ext .ts,.js ./",
12
12
  "lock": "npx del-cli --force node_modules && npm i --package-lock-only && npx pnpm i",
13
13
  "test": "npm run eslint && jest --passWithNoTests",
@@ -75,24 +75,24 @@
75
75
  "typescript": "^5.x.x"
76
76
  },
77
77
  "dependencies": {
78
- "@koa/router": "^14.0.0",
78
+ "@koa/router": "^15.3.0",
79
79
  "fast-querystring": "^1.1.2",
80
- "fast-xml-parser": "^5.3.0",
80
+ "fast-xml-parser": "^5.3.3",
81
81
  "formidable": "^3.5.4",
82
82
  "graphql-depth-limit": "^1.1.0",
83
83
  "graphql-http": "^1.22.4",
84
84
  "inflation": "^2.1.0",
85
85
  "koa-compose": "^4.1.0",
86
- "koatty_container": "workspace:*",
87
- "koatty_core": "workspace:*",
88
- "koatty_exception": "workspace:*",
89
- "koatty_graphql": "workspace:*",
90
- "koatty_lib": "workspace:*",
91
- "koatty_logger": "workspace:*",
92
- "koatty_proto": "workspace:*",
93
- "koatty_validation": "workspace:*",
94
- "lru-cache": "^11.2.2",
86
+ "koatty_container": "^1.17.4",
87
+ "koatty_core": "^2.0.14",
88
+ "koatty_exception": "^2.0.10",
89
+ "koatty_graphql": "^1.1.4",
90
+ "koatty_lib": "^1.4.5",
91
+ "koatty_logger": "^2.3.4",
92
+ "koatty_proto": "^1.3.5",
93
+ "koatty_validation": "^1.6.6",
94
+ "lru-cache": "^11.2.5",
95
95
  "on-finished": "^2.4.1",
96
- "raw-body": "^3.0.1"
96
+ "raw-body": "^3.0.2"
97
97
  }
98
- }
98
+ }