nexus-agents 14.0.0 → 14.0.2

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.
Files changed (502) hide show
  1. package/dist/{ast-rule-runner-3PYXOOLH.js → ast-rule-runner-2PEUHSHO.js} +5 -5
  2. package/dist/{child-mcp-config-AKQYBMMC.js → child-mcp-config-AYVMLJDV.js} +4 -4
  3. package/dist/{chunk-YKCJJP5X.js → chunk-236T3AOZ.js} +4 -4
  4. package/dist/{chunk-GCD3OFFM.js → chunk-5QNWRC7B.js} +2 -2
  5. package/dist/{chunk-LD6QCSHT.js → chunk-B5RDZLU3.js} +4 -4
  6. package/dist/{chunk-UZZHLCYW.js → chunk-CZSEUZFE.js} +2 -2
  7. package/dist/{chunk-6FBREJER.js → chunk-DCPN7F5J.js} +2 -2
  8. package/dist/{chunk-XRMP4PP4.js → chunk-DXDKAVWV.js} +5 -5
  9. package/dist/{chunk-K5MAYIHL.js → chunk-FEAWCZ7E.js} +2 -2
  10. package/dist/{chunk-FLIBWADL.js → chunk-GDCIDLUF.js} +36 -25
  11. package/dist/chunk-GDCIDLUF.js.map +1 -0
  12. package/dist/{chunk-CUPOUBBN.js → chunk-GPZQVYKV.js} +2 -2
  13. package/dist/{chunk-IBGLJEW7.js → chunk-GR4BMQAS.js} +9 -7
  14. package/dist/chunk-GR4BMQAS.js.map +1 -0
  15. package/dist/{chunk-MB2UUFF7.js → chunk-H6SGSQJM.js} +2 -2
  16. package/dist/{chunk-KVFNI2UZ.js → chunk-HJJRUYNR.js} +7 -6
  17. package/dist/chunk-HJJRUYNR.js.map +1 -0
  18. package/dist/{chunk-AJBRMUGK.js → chunk-IZSJWIHK.js} +40 -9
  19. package/dist/chunk-IZSJWIHK.js.map +1 -0
  20. package/dist/{chunk-K6CUB3IV.js → chunk-JV3UBRRA.js} +2 -2
  21. package/dist/{chunk-6EUYMTVU.js → chunk-KXWLZDQR.js} +5 -5
  22. package/dist/{chunk-CQ6FAAOO.js → chunk-LBVPKHHU.js} +3 -3
  23. package/dist/{chunk-EFE6ORME.js → chunk-LC34UPDQ.js} +2 -2
  24. package/dist/{chunk-NA55VLER.js → chunk-LE6TQVXF.js} +2 -2
  25. package/dist/{chunk-KZ5R5HL7.js → chunk-MFUJU7RO.js} +3 -3
  26. package/dist/{chunk-7S6ANELD.js → chunk-MQSSTTZU.js} +4 -4
  27. package/dist/{chunk-CP73UYNV.js → chunk-OQR2C64M.js} +5 -5
  28. package/dist/{chunk-UBCGX47E.js → chunk-P3CFDAW5.js} +2 -2
  29. package/dist/{chunk-G2MC6WXA.js → chunk-PG6NTUTS.js} +8 -8
  30. package/dist/{chunk-HQMIDROO.js → chunk-PQ3V2SYP.js} +2 -2
  31. package/dist/{chunk-36B7J7CZ.js → chunk-Q6R3JTXH.js} +3 -3
  32. package/dist/{chunk-PI54VS4I.js → chunk-SNSV6GGV.js} +10 -10
  33. package/dist/{chunk-BSGMAUA4.js → chunk-SQPFJLCI.js} +3 -3
  34. package/dist/{chunk-7VMEUGNV.js → chunk-TV6RX3ZL.js} +4 -4
  35. package/dist/{chunk-7BKOWPKX.js → chunk-TYIIAIXA.js} +7 -7
  36. package/dist/{chunk-2A4P2DX3.js → chunk-VH4T4O5L.js} +2 -2
  37. package/dist/{chunk-ABTRD52Y.js → chunk-WWBYNWYB.js} +4 -4
  38. package/dist/{chunk-BELY4VU4.js → chunk-YE3T4X2U.js} +4 -4
  39. package/dist/{chunk-XU6N5OKA.js → chunk-YSEMHACQ.js} +36 -37
  40. package/dist/{chunk-XU6N5OKA.js.map → chunk-YSEMHACQ.js.map} +1 -1
  41. package/dist/{cli-circuit-breaker-37UQWOAA.js → cli-circuit-breaker-HWMTEEYI.js} +5 -5
  42. package/dist/{cli-readiness-RSBS6FN3.js → cli-readiness-6C6E2T2O.js} +9 -9
  43. package/dist/{cli-server-gateway-C5QPDUWS.js → cli-server-gateway-HHRF22EB.js} +14 -14
  44. package/dist/cli.js +505 -409
  45. package/dist/cli.js.map +1 -1
  46. package/dist/{composite-router-WERJYE7X.js → composite-router-CX2W7RVA.js} +4 -4
  47. package/dist/{consensus-vote-G2MKNTMW.js → consensus-vote-CQGIWMYY.js} +17 -17
  48. package/dist/{context-retriever-H34LHPWB.js → context-retriever-G4LMWEN5.js} +10 -10
  49. package/dist/{doctor-deep-XBUWYYXO.js → doctor-deep-VOX7KVGK.js} +5 -5
  50. package/dist/{doctor-gateway-report-JRENPRNM.js → doctor-gateway-report-GMYX62JU.js} +7 -7
  51. package/dist/{doctor-live-CFUUN5K4.js → doctor-live-AES3PON5.js} +14 -14
  52. package/dist/{expert-bridge-FPFMGB3W.js → expert-bridge-WEZXYIGA.js} +6 -6
  53. package/dist/{factory-RQ5Q2TMY.js → factory-L2DIM3PM.js} +7 -7
  54. package/dist/{factory-HYRMAIGW.js → factory-L6CLXVPW.js} +13 -13
  55. package/dist/{gemini-adapter-EHQUG5QP.js → gemini-adapter-CL7YW7UZ.js} +8 -8
  56. package/dist/{improvement-review-SMUO5UVF.js → improvement-review-EBC3I55P.js} +6 -6
  57. package/dist/index.d.ts +1 -1
  58. package/dist/index.js +27 -27
  59. package/dist/{init-opencode-56GNUSHL.js → init-opencode-F6FV63VR.js} +6 -6
  60. package/dist/{issue-triage-LPX3EU4I.js → issue-triage-3EJ5DSGG.js} +7 -7
  61. package/dist/{model-config-helpers-XBHRUWIC.js → model-config-helpers-27GO3OEU.js} +3 -3
  62. package/dist/{openai-compat-adapter-WEHE5LKH.js → openai-compat-adapter-JJD7VWZC.js} +6 -6
  63. package/dist/{pr-reviewer-helpers-XPT57QHF.js → pr-reviewer-helpers-KGGKESLT.js} +5 -5
  64. package/dist/{registry-command-D5TA6433.js → registry-command-SQQNXDGS.js} +2 -2
  65. package/dist/{repo-security-plan-OH7IPPQU.js → repo-security-plan-CIGD7QBY.js} +4 -4
  66. package/dist/{research-helpers-synthesize-UYICMMMM.js → research-helpers-synthesize-HAQSK2RL.js} +6 -6
  67. package/dist/{routing-memory-PKD2T674.js → routing-memory-AFHV5NDT.js} +4 -4
  68. package/dist/{session-memory-IRR7GLZT.js → session-memory-RBY5SHFK.js} +5 -5
  69. package/dist/{setup-config-N4OYZSCY.js → setup-config-47NNRD4E.js} +5 -5
  70. package/dist/{setup-custom-api-4VLHKKBF.js → setup-custom-api-H74QY7EM.js} +5 -5
  71. package/dist/{tool-memory-MSOEUVUX.js → tool-memory-QESESDGS.js} +7 -7
  72. package/dist/{unified-registry-W2DCYXUT.js → unified-registry-HWZRXFQ6.js} +13 -13
  73. package/dist/{weather-report-FANVIPXZ.js → weather-report-QZLXDT5L.js} +4 -4
  74. package/node_modules/@protobufjs/aspromise/LICENSE +26 -0
  75. package/node_modules/@protobufjs/aspromise/README.md +13 -0
  76. package/node_modules/{protobufjs/src/util/aspromise.d.ts → @protobufjs/aspromise/index.d.ts} +13 -13
  77. package/node_modules/{protobufjs/src/util/aspromise.js → @protobufjs/aspromise/index.js} +52 -52
  78. package/node_modules/@protobufjs/aspromise/package.json +21 -0
  79. package/node_modules/@protobufjs/aspromise/tests/index.js +130 -0
  80. package/node_modules/@protobufjs/base64/LICENSE +26 -0
  81. package/node_modules/@protobufjs/base64/README.md +19 -0
  82. package/node_modules/{protobufjs/src/util/base64.d.ts → @protobufjs/base64/index.d.ts} +32 -32
  83. package/node_modules/{protobufjs/src/util/base64.js → @protobufjs/base64/index.js} +139 -146
  84. package/node_modules/@protobufjs/base64/package.json +21 -0
  85. package/node_modules/@protobufjs/base64/tests/index.js +46 -0
  86. package/node_modules/@protobufjs/codegen/LICENSE +26 -0
  87. package/node_modules/@protobufjs/codegen/README.md +49 -0
  88. package/node_modules/{protobufjs/src/util/codegen.d.ts → @protobufjs/codegen/index.d.ts} +31 -31
  89. package/node_modules/{protobufjs/src/util/codegen.js → @protobufjs/codegen/index.js} +112 -120
  90. package/node_modules/@protobufjs/codegen/package.json +13 -0
  91. package/node_modules/@protobufjs/codegen/tests/index.js +13 -0
  92. package/node_modules/@protobufjs/eventemitter/CHANGELOG.md +8 -0
  93. package/node_modules/@protobufjs/eventemitter/LICENSE +26 -0
  94. package/node_modules/@protobufjs/eventemitter/README.md +22 -0
  95. package/node_modules/{protobufjs/src/util/eventemitter.d.ts → @protobufjs/eventemitter/index.d.ts} +45 -45
  96. package/node_modules/{protobufjs/src/util/eventemitter.js → @protobufjs/eventemitter/index.js} +86 -86
  97. package/node_modules/@protobufjs/eventemitter/package.json +21 -0
  98. package/node_modules/@protobufjs/eventemitter/tests/index.js +83 -0
  99. package/node_modules/@protobufjs/fetch/CHANGELOG.md +8 -0
  100. package/node_modules/@protobufjs/fetch/LICENSE +26 -0
  101. package/node_modules/@protobufjs/fetch/README.md +13 -0
  102. package/node_modules/{protobufjs/src/util/fetch.d.ts → @protobufjs/fetch/index.d.ts} +56 -56
  103. package/node_modules/{protobufjs/src/util/fetch.js → @protobufjs/fetch/index.js} +112 -112
  104. package/node_modules/@protobufjs/fetch/package.json +27 -0
  105. package/node_modules/@protobufjs/fetch/tests/data/file.txt +1 -0
  106. package/node_modules/@protobufjs/fetch/tests/index.js +158 -0
  107. package/node_modules/@protobufjs/fetch/util/fs.js +11 -0
  108. package/node_modules/@protobufjs/float/LICENSE +26 -0
  109. package/node_modules/@protobufjs/float/README.md +102 -0
  110. package/node_modules/@protobufjs/float/bench/index.js +87 -0
  111. package/node_modules/@protobufjs/float/bench/suite.js +46 -0
  112. package/node_modules/{protobufjs/src/util/float.js → @protobufjs/float/index.js} +335 -335
  113. package/node_modules/@protobufjs/float/package.json +26 -0
  114. package/node_modules/@protobufjs/float/tests/index.js +100 -0
  115. package/node_modules/@protobufjs/path/LICENSE +26 -0
  116. package/node_modules/@protobufjs/path/README.md +19 -0
  117. package/node_modules/{protobufjs/src/util/path.d.ts → @protobufjs/path/index.d.ts} +22 -22
  118. package/node_modules/{protobufjs/src/util/path.js → @protobufjs/path/index.js} +65 -100
  119. package/node_modules/@protobufjs/path/package.json +21 -0
  120. package/node_modules/@protobufjs/path/tests/index.js +60 -0
  121. package/node_modules/@protobufjs/pool/.npmignore +3 -0
  122. package/node_modules/@protobufjs/pool/LICENSE +26 -0
  123. package/node_modules/@protobufjs/pool/README.md +13 -0
  124. package/node_modules/{protobufjs/src/util/pool.d.ts → @protobufjs/pool/index.d.ts} +32 -32
  125. package/node_modules/{protobufjs/src/util/pool.js → @protobufjs/pool/index.js} +48 -48
  126. package/node_modules/@protobufjs/pool/package.json +21 -0
  127. package/node_modules/@protobufjs/pool/tests/index.js +33 -0
  128. package/node_modules/@protobufjs/utf8/CHANGELOG.md +8 -0
  129. package/node_modules/@protobufjs/utf8/LICENSE +26 -0
  130. package/node_modules/@protobufjs/utf8/README.md +20 -0
  131. package/node_modules/{protobufjs/src/util/utf8.d.ts → @protobufjs/utf8/index.d.ts} +24 -24
  132. package/node_modules/@protobufjs/utf8/index.js +115 -0
  133. package/node_modules/@protobufjs/utf8/package.json +21 -0
  134. package/node_modules/@protobufjs/utf8/tests/data/surrogate_pair_bug.txt +207 -0
  135. package/node_modules/@protobufjs/utf8/tests/data/utf8.txt +216 -0
  136. package/node_modules/@protobufjs/utf8/tests/index.js +79 -0
  137. package/node_modules/@types/node/LICENSE +21 -0
  138. package/node_modules/@types/node/README.md +15 -0
  139. package/node_modules/@types/node/assert/strict.d.ts +68 -0
  140. package/node_modules/@types/node/assert.d.ts +1077 -0
  141. package/node_modules/@types/node/async_hooks.d.ts +711 -0
  142. package/node_modules/@types/node/buffer.buffer.d.ts +471 -0
  143. package/node_modules/@types/node/buffer.d.ts +1800 -0
  144. package/node_modules/@types/node/child_process.d.ts +1361 -0
  145. package/node_modules/@types/node/cluster.d.ts +432 -0
  146. package/node_modules/@types/node/console.d.ts +93 -0
  147. package/node_modules/@types/node/constants.d.ts +14 -0
  148. package/node_modules/@types/node/crypto.d.ts +3964 -0
  149. package/node_modules/@types/node/dgram.d.ts +652 -0
  150. package/node_modules/@types/node/diagnostics_channel.d.ts +794 -0
  151. package/node_modules/@types/node/dns/promises.d.ts +497 -0
  152. package/node_modules/@types/node/dns.d.ts +876 -0
  153. package/node_modules/@types/node/domain.d.ts +150 -0
  154. package/node_modules/@types/node/events.d.ts +1008 -0
  155. package/node_modules/@types/node/ffi.d.ts +500 -0
  156. package/node_modules/@types/node/fs/promises.d.ts +1477 -0
  157. package/node_modules/@types/node/fs.d.ts +4803 -0
  158. package/node_modules/@types/node/globals.d.ts +150 -0
  159. package/node_modules/@types/node/globals.typedarray.d.ts +101 -0
  160. package/node_modules/@types/node/http.d.ts +2218 -0
  161. package/node_modules/@types/node/http2.d.ts +2498 -0
  162. package/node_modules/@types/node/https.d.ts +400 -0
  163. package/node_modules/@types/node/index.d.ts +116 -0
  164. package/node_modules/@types/node/inspector/promises.d.ts +35 -0
  165. package/node_modules/@types/node/inspector.d.ts +265 -0
  166. package/node_modules/@types/node/inspector.generated.d.ts +4406 -0
  167. package/node_modules/@types/node/module.d.ts +726 -0
  168. package/node_modules/@types/node/net.d.ts +1074 -0
  169. package/node_modules/@types/node/os.d.ts +498 -0
  170. package/node_modules/@types/node/package.json +140 -0
  171. package/node_modules/@types/node/path/posix.d.ts +8 -0
  172. package/node_modules/@types/node/path/win32.d.ts +8 -0
  173. package/node_modules/@types/node/path.d.ts +178 -0
  174. package/node_modules/@types/node/perf_hooks.d.ts +617 -0
  175. package/node_modules/@types/node/process.d.ts +2269 -0
  176. package/node_modules/@types/node/punycode.d.ts +89 -0
  177. package/node_modules/@types/node/querystring.d.ts +139 -0
  178. package/node_modules/@types/node/quic.d.ts +2191 -0
  179. package/node_modules/@types/node/readline/promises.d.ts +158 -0
  180. package/node_modules/@types/node/readline.d.ts +508 -0
  181. package/node_modules/@types/node/repl.d.ts +420 -0
  182. package/node_modules/@types/node/sea.d.ts +47 -0
  183. package/node_modules/@types/node/sqlite.d.ts +1140 -0
  184. package/node_modules/@types/node/stream/consumers.d.ts +114 -0
  185. package/node_modules/@types/node/stream/iter.d.ts +449 -0
  186. package/node_modules/@types/node/stream/promises.d.ts +211 -0
  187. package/node_modules/@types/node/stream/web.d.ts +320 -0
  188. package/node_modules/@types/node/stream.d.ts +1806 -0
  189. package/node_modules/@types/node/string_decoder.d.ts +27 -0
  190. package/node_modules/@types/node/test/reporters.d.ts +60 -0
  191. package/node_modules/@types/node/test.d.ts +2558 -0
  192. package/node_modules/@types/node/timers/promises.d.ts +93 -0
  193. package/node_modules/@types/node/timers.d.ts +149 -0
  194. package/node_modules/@types/node/tls.d.ts +1232 -0
  195. package/node_modules/@types/node/trace_events.d.ts +103 -0
  196. package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +467 -0
  197. package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  198. package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +36 -0
  199. package/node_modules/@types/node/ts5.6/index.d.ts +118 -0
  200. package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  201. package/node_modules/@types/node/ts5.7/index.d.ts +118 -0
  202. package/node_modules/@types/node/tty.d.ts +226 -0
  203. package/node_modules/@types/node/url.d.ts +556 -0
  204. package/node_modules/@types/node/util/types.d.ts +558 -0
  205. package/node_modules/@types/node/util.d.ts +1680 -0
  206. package/node_modules/@types/node/v8.d.ts +1059 -0
  207. package/node_modules/@types/node/vfs.d.ts +211 -0
  208. package/node_modules/@types/node/vm.d.ts +1137 -0
  209. package/node_modules/@types/node/wasi.d.ts +131 -0
  210. package/node_modules/@types/node/web-globals/abortcontroller.d.ts +59 -0
  211. package/node_modules/@types/node/web-globals/blob.d.ts +23 -0
  212. package/node_modules/@types/node/web-globals/console.d.ts +9 -0
  213. package/node_modules/@types/node/web-globals/crypto.d.ts +39 -0
  214. package/node_modules/@types/node/web-globals/domexception.d.ts +83 -0
  215. package/node_modules/@types/node/web-globals/encoding.d.ts +11 -0
  216. package/node_modules/@types/node/web-globals/events.d.ts +106 -0
  217. package/node_modules/@types/node/web-globals/fetch.d.ts +69 -0
  218. package/node_modules/@types/node/web-globals/importmeta.d.ts +13 -0
  219. package/node_modules/@types/node/web-globals/messaging.d.ts +23 -0
  220. package/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
  221. package/node_modules/@types/node/web-globals/performance.d.ts +45 -0
  222. package/node_modules/@types/node/web-globals/storage.d.ts +24 -0
  223. package/node_modules/@types/node/web-globals/streams.d.ts +119 -0
  224. package/node_modules/@types/node/web-globals/timers.d.ts +44 -0
  225. package/node_modules/@types/node/web-globals/url.d.ts +24 -0
  226. package/node_modules/@types/node/worker_threads.d.ts +672 -0
  227. package/node_modules/@types/node/zlib/iter.d.ts +131 -0
  228. package/node_modules/@types/node/zlib.d.ts +612 -0
  229. package/node_modules/fast-uri/.github/dependabot.yml +2 -42
  230. package/node_modules/fast-uri/.github/workflows/ci.yml +6 -54
  231. package/node_modules/fast-uri/.github/workflows/lock-threads.yml +1 -1
  232. package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +24 -0
  233. package/node_modules/fast-uri/.github/workflows/release.yml +2 -1
  234. package/node_modules/fast-uri/README.md +10 -12
  235. package/node_modules/fast-uri/benchmark/benchmark.mjs +0 -71
  236. package/node_modules/fast-uri/index.js +20 -94
  237. package/node_modules/fast-uri/lib/schemes.js +4 -439
  238. package/node_modules/fast-uri/lib/utils.js +113 -230
  239. package/node_modules/fast-uri/package.json +5 -5
  240. package/node_modules/fast-uri/test/equal.test.js +0 -63
  241. package/node_modules/fast-uri/test/fixtures/uri-js-parse.json +1 -23
  242. package/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +1 -23
  243. package/node_modules/fast-uri/test/ipv6-validation.test.js +0 -160
  244. package/node_modules/fast-uri/test/parse.test.js +5 -150
  245. package/node_modules/fast-uri/test/relative-normalization-security.test.js +4 -0
  246. package/node_modules/fast-uri/test/scheme-validation.test.js +5 -3
  247. package/node_modules/fast-uri/test/security.test.js +2 -2
  248. package/node_modules/fast-uri/test/serialize.test.js +0 -144
  249. package/node_modules/fast-uri/test/uri-js-compatibility.test.js +3 -0
  250. package/node_modules/fast-uri/test/uri-js.test.js +9 -11
  251. package/node_modules/fast-uri/test/urn-full-input.test.js +0 -18
  252. package/node_modules/fast-uri/test/util.test.js +0 -9
  253. package/node_modules/fast-uri/tsconfig.json +7 -8
  254. package/node_modules/fast-uri/types/index.d.ts +9 -20
  255. package/node_modules/fast-uri/types/index.test-d.ts +17 -0
  256. package/node_modules/hono/README.md +2 -3
  257. package/node_modules/hono/dist/cjs/helper/css/common.js +8 -3
  258. package/node_modules/hono/dist/cjs/helper/css/index.js +1 -1
  259. package/node_modules/hono/dist/cjs/helper/route/index.js +3 -1
  260. package/node_modules/hono/dist/cjs/jsx/base.js +1 -1
  261. package/node_modules/hono/dist/cjs/middleware/bearer-auth/index.js +8 -0
  262. package/node_modules/hono/dist/cjs/middleware/serve-static/index.js +3 -1
  263. package/node_modules/hono/dist/cjs/router/trie-router/node.js +2 -2
  264. package/node_modules/hono/dist/cjs/utils/url.js +11 -6
  265. package/node_modules/hono/dist/helper/css/common.js +8 -3
  266. package/node_modules/hono/dist/helper/css/index.js +1 -1
  267. package/node_modules/hono/dist/helper/route/index.js +3 -1
  268. package/node_modules/hono/dist/jsx/base.js +1 -1
  269. package/node_modules/hono/dist/middleware/bearer-auth/index.js +8 -0
  270. package/node_modules/hono/dist/middleware/serve-static/index.js +3 -1
  271. package/node_modules/hono/dist/router/trie-router/node.js +2 -2
  272. package/node_modules/hono/dist/types/adapter/aws-lambda/conninfo.d.ts +1 -1
  273. package/node_modules/hono/dist/types/adapter/bun/conninfo.d.ts +1 -1
  274. package/node_modules/hono/dist/types/adapter/bun/ssg.d.ts +1 -1
  275. package/node_modules/hono/dist/types/adapter/cloudflare-pages/conninfo.d.ts +1 -1
  276. package/node_modules/hono/dist/types/adapter/cloudflare-workers/conninfo.d.ts +1 -1
  277. package/node_modules/hono/dist/types/adapter/deno/conninfo.d.ts +1 -1
  278. package/node_modules/hono/dist/types/adapter/deno/ssg.d.ts +1 -1
  279. package/node_modules/hono/dist/types/adapter/lambda-edge/conninfo.d.ts +1 -1
  280. package/node_modules/hono/dist/types/adapter/netlify/conninfo.d.ts +1 -1
  281. package/node_modules/hono/dist/types/adapter/vercel/conninfo.d.ts +1 -1
  282. package/node_modules/hono/dist/types/helper/testing/index.d.ts +2 -1
  283. package/node_modules/hono/dist/types/hono-base.d.ts +21 -9
  284. package/node_modules/hono/dist/types/index.d.ts +1 -1
  285. package/node_modules/hono/dist/types/jsx/components.d.ts +2 -2
  286. package/node_modules/hono/dist/types/jsx/context.d.ts +2 -2
  287. package/node_modules/hono/dist/types/jsx/dom/components.d.ts +2 -2
  288. package/node_modules/hono/dist/types/jsx/dom/css.d.ts +2 -2
  289. package/node_modules/hono/dist/types/jsx/streaming.d.ts +4 -3
  290. package/node_modules/hono/dist/types/middleware/bearer-auth/index.d.ts +2 -1
  291. package/node_modules/hono/dist/types/middleware/ip-restriction/index.d.ts +3 -3
  292. package/node_modules/hono/dist/types/middleware/jsx-renderer/index.d.ts +3 -3
  293. package/node_modules/hono/dist/types/utils/ipaddr.d.ts +1 -1
  294. package/node_modules/hono/dist/utils/url.js +11 -6
  295. package/node_modules/hono/package.json +1 -1
  296. package/node_modules/ip-address/dist/common.js +2 -2
  297. package/node_modules/ip-address/dist/common.js.map +1 -1
  298. package/node_modules/ip-address/package.json +2 -2
  299. package/node_modules/path-to-regexp/Readme.md +7 -1
  300. package/node_modules/path-to-regexp/dist/index.d.ts +12 -7
  301. package/node_modules/path-to-regexp/dist/index.js +99 -99
  302. package/node_modules/path-to-regexp/dist/index.js.map +1 -1
  303. package/node_modules/path-to-regexp/package.json +8 -9
  304. package/node_modules/protobufjs/README.md +562 -259
  305. package/node_modules/protobufjs/dist/light/protobuf.js +1915 -3267
  306. package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
  307. package/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
  308. package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
  309. package/node_modules/protobufjs/dist/minimal/protobuf.js +1173 -2018
  310. package/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -1
  311. package/node_modules/protobufjs/dist/minimal/protobuf.min.js +3 -3
  312. package/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -1
  313. package/node_modules/protobufjs/dist/protobuf.js +1982 -3483
  314. package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
  315. package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
  316. package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
  317. package/node_modules/protobufjs/ext/descriptor/README.md +70 -3
  318. package/node_modules/protobufjs/ext/descriptor/index.d.ts +193 -0
  319. package/node_modules/protobufjs/ext/descriptor/index.js +1185 -1
  320. package/node_modules/protobufjs/ext/descriptor/test.js +54 -0
  321. package/node_modules/protobufjs/google/api/annotations.json +1 -3
  322. package/node_modules/protobufjs/google/api/http.json +1 -2
  323. package/node_modules/protobufjs/google/protobuf/api.json +6 -12
  324. package/node_modules/protobufjs/google/protobuf/descriptor.json +88 -194
  325. package/node_modules/protobufjs/google/protobuf/descriptor.proto +9 -15
  326. package/node_modules/protobufjs/google/protobuf/source_context.json +1 -2
  327. package/node_modules/protobufjs/google/protobuf/type.json +7 -14
  328. package/node_modules/protobufjs/index.d.ts +685 -1077
  329. package/node_modules/protobufjs/package.json +51 -25
  330. package/node_modules/protobufjs/scripts/postinstall.js +32 -0
  331. package/node_modules/protobufjs/src/common.js +8 -14
  332. package/node_modules/protobufjs/src/converter.js +52 -90
  333. package/node_modules/protobufjs/src/decoder.js +67 -211
  334. package/node_modules/protobufjs/src/encoder.js +7 -27
  335. package/node_modules/protobufjs/src/enum.js +7 -33
  336. package/node_modules/protobufjs/src/field.js +20 -77
  337. package/node_modules/protobufjs/src/index-light.js +29 -29
  338. package/node_modules/protobufjs/src/index-minimal.js +13 -12
  339. package/node_modules/protobufjs/src/index.js +6 -6
  340. package/node_modules/protobufjs/src/mapfield.js +8 -26
  341. package/node_modules/protobufjs/src/message.js +11 -5
  342. package/node_modules/protobufjs/src/method.js +7 -30
  343. package/node_modules/protobufjs/src/namespace.js +10 -26
  344. package/node_modules/protobufjs/src/object.js +31 -44
  345. package/node_modules/protobufjs/src/oneof.js +1 -12
  346. package/node_modules/protobufjs/src/parse.js +67 -194
  347. package/node_modules/protobufjs/src/reader.js +58 -520
  348. package/node_modules/protobufjs/src/reader_buffer.js +5 -31
  349. package/node_modules/protobufjs/src/root.js +4 -16
  350. package/node_modules/protobufjs/src/rpc/service.js +5 -18
  351. package/node_modules/protobufjs/src/service.js +2 -15
  352. package/node_modules/protobufjs/src/tokenize.js +4 -20
  353. package/node_modules/protobufjs/src/type.js +37 -91
  354. package/node_modules/protobufjs/src/typescript.jsdoc +15 -0
  355. package/node_modules/protobufjs/src/util/longbits.js +6 -10
  356. package/node_modules/protobufjs/src/util/minimal.js +51 -71
  357. package/node_modules/protobufjs/src/util.js +17 -51
  358. package/node_modules/protobufjs/src/verifier.js +14 -19
  359. package/node_modules/protobufjs/src/wrappers.js +3 -2
  360. package/node_modules/protobufjs/src/writer.js +189 -428
  361. package/node_modules/protobufjs/src/writer_buffer.js +26 -41
  362. package/node_modules/protobufjs/tsconfig.json +5 -3
  363. package/node_modules/undici-types/LICENSE +21 -0
  364. package/node_modules/undici-types/README.md +6 -0
  365. package/node_modules/undici-types/agent.d.ts +30 -0
  366. package/node_modules/undici-types/api.d.ts +43 -0
  367. package/node_modules/undici-types/balanced-pool.d.ts +30 -0
  368. package/node_modules/undici-types/cache-interceptor.d.ts +179 -0
  369. package/node_modules/undici-types/cache.d.ts +36 -0
  370. package/node_modules/undici-types/client-stats.d.ts +15 -0
  371. package/node_modules/undici-types/client.d.ts +134 -0
  372. package/node_modules/undici-types/connector.d.ts +37 -0
  373. package/node_modules/undici-types/content-type.d.ts +21 -0
  374. package/node_modules/undici-types/cookies.d.ts +30 -0
  375. package/node_modules/undici-types/diagnostics-channel.d.ts +74 -0
  376. package/node_modules/undici-types/dispatcher.d.ts +253 -0
  377. package/node_modules/undici-types/dispatcher1-wrapper.d.ts +7 -0
  378. package/node_modules/undici-types/env-http-proxy-agent.d.ts +22 -0
  379. package/node_modules/undici-types/errors.d.ts +187 -0
  380. package/node_modules/undici-types/eventsource.d.ts +66 -0
  381. package/node_modules/undici-types/fetch.d.ts +235 -0
  382. package/node_modules/undici-types/formdata.d.ts +108 -0
  383. package/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  384. package/node_modules/undici-types/global-origin.d.ts +7 -0
  385. package/node_modules/undici-types/h2c-client.d.ts +73 -0
  386. package/node_modules/undici-types/handlers.d.ts +16 -0
  387. package/node_modules/undici-types/header.d.ts +165 -0
  388. package/node_modules/undici-types/index.d.ts +93 -0
  389. package/node_modules/undici-types/interceptors.d.ts +80 -0
  390. package/node_modules/undici-types/mock-agent.d.ts +68 -0
  391. package/node_modules/undici-types/mock-call-history.d.ts +111 -0
  392. package/node_modules/undici-types/mock-client.d.ts +27 -0
  393. package/node_modules/undici-types/mock-errors.d.ts +12 -0
  394. package/node_modules/undici-types/mock-interceptor.d.ts +98 -0
  395. package/node_modules/undici-types/mock-pool.d.ts +27 -0
  396. package/node_modules/undici-types/package.json +55 -0
  397. package/node_modules/undici-types/patch.d.ts +29 -0
  398. package/node_modules/undici-types/pool-stats.d.ts +19 -0
  399. package/node_modules/undici-types/pool.d.ts +39 -0
  400. package/node_modules/undici-types/proxy-agent.d.ts +36 -0
  401. package/node_modules/undici-types/readable.d.ts +68 -0
  402. package/node_modules/undici-types/retry-agent.d.ts +8 -0
  403. package/node_modules/undici-types/retry-handler.d.ts +125 -0
  404. package/node_modules/undici-types/round-robin-pool.d.ts +39 -0
  405. package/node_modules/undici-types/snapshot-agent.d.ts +113 -0
  406. package/node_modules/undici-types/socks5-proxy-agent.d.ts +25 -0
  407. package/node_modules/undici-types/util.d.ts +18 -0
  408. package/node_modules/undici-types/utility.d.ts +7 -0
  409. package/node_modules/undici-types/webidl.d.ts +346 -0
  410. package/node_modules/undici-types/websocket.d.ts +188 -0
  411. package/package.json +19 -7
  412. package/dist/chunk-AJBRMUGK.js.map +0 -1
  413. package/dist/chunk-FLIBWADL.js.map +0 -1
  414. package/dist/chunk-IBGLJEW7.js.map +0 -1
  415. package/dist/chunk-KVFNI2UZ.js.map +0 -1
  416. package/node_modules/fast-uri/.github/workflows/ossf-scorecard.yml +0 -45
  417. package/node_modules/fast-uri/SECURITY.md +0 -222
  418. package/node_modules/fast-uri/benchmark/encoder.mjs +0 -54
  419. package/node_modules/fast-uri/test/c0-reference-security.test.js +0 -137
  420. package/node_modules/fast-uri/test/host-encoding.test.js +0 -60
  421. package/node_modules/fast-uri/test/mailto-authority-security.test.js +0 -125
  422. package/node_modules/fast-uri/test/mailto-field-name-security.test.js +0 -151
  423. package/node_modules/fast-uri/test/scheme-normalization.test.js +0 -16
  424. package/node_modules/fast-uri/test/security-utf8-encoding.test.js +0 -0
  425. package/node_modules/fast-uri/types/index.tst.ts +0 -31
  426. package/node_modules/protobufjs/ext/README.md +0 -70
  427. package/node_modules/protobufjs/ext/descriptor.d.ts +0 -87
  428. package/node_modules/protobufjs/ext/descriptor.generated.d.ts +0 -424
  429. package/node_modules/protobufjs/ext/descriptor.js +0 -1405
  430. package/node_modules/protobufjs/ext/protojson.LICENSE +0 -201
  431. package/node_modules/protobufjs/ext/protojson.d.ts +0 -20
  432. package/node_modules/protobufjs/ext/protojson.generated.d.ts +0 -49
  433. package/node_modules/protobufjs/ext/protojson.js +0 -972
  434. package/node_modules/protobufjs/ext/textformat.d.ts +0 -19
  435. package/node_modules/protobufjs/ext/textformat.generated.d.ts +0 -33
  436. package/node_modules/protobufjs/ext/textformat.js +0 -1280
  437. package/node_modules/protobufjs/google/protobuf/compiler/plugin.json +0 -126
  438. package/node_modules/protobufjs/google/protobuf/compiler/plugin.proto +0 -47
  439. package/node_modules/protobufjs/google/protobuf/json_enumvalue_options.json +0 -56
  440. package/node_modules/protobufjs/google/protobuf/json_enumvalue_options.proto +0 -31
  441. package/node_modules/protobufjs/src/typescript.js +0 -25
  442. package/node_modules/protobufjs/src/util/utf8.js +0 -164
  443. /package/dist/{ast-rule-runner-3PYXOOLH.js.map → ast-rule-runner-2PEUHSHO.js.map} +0 -0
  444. /package/dist/{child-mcp-config-AKQYBMMC.js.map → child-mcp-config-AYVMLJDV.js.map} +0 -0
  445. /package/dist/{chunk-YKCJJP5X.js.map → chunk-236T3AOZ.js.map} +0 -0
  446. /package/dist/{chunk-GCD3OFFM.js.map → chunk-5QNWRC7B.js.map} +0 -0
  447. /package/dist/{chunk-LD6QCSHT.js.map → chunk-B5RDZLU3.js.map} +0 -0
  448. /package/dist/{chunk-UZZHLCYW.js.map → chunk-CZSEUZFE.js.map} +0 -0
  449. /package/dist/{chunk-6FBREJER.js.map → chunk-DCPN7F5J.js.map} +0 -0
  450. /package/dist/{chunk-XRMP4PP4.js.map → chunk-DXDKAVWV.js.map} +0 -0
  451. /package/dist/{chunk-K5MAYIHL.js.map → chunk-FEAWCZ7E.js.map} +0 -0
  452. /package/dist/{chunk-CUPOUBBN.js.map → chunk-GPZQVYKV.js.map} +0 -0
  453. /package/dist/{chunk-MB2UUFF7.js.map → chunk-H6SGSQJM.js.map} +0 -0
  454. /package/dist/{chunk-K6CUB3IV.js.map → chunk-JV3UBRRA.js.map} +0 -0
  455. /package/dist/{chunk-6EUYMTVU.js.map → chunk-KXWLZDQR.js.map} +0 -0
  456. /package/dist/{chunk-CQ6FAAOO.js.map → chunk-LBVPKHHU.js.map} +0 -0
  457. /package/dist/{chunk-EFE6ORME.js.map → chunk-LC34UPDQ.js.map} +0 -0
  458. /package/dist/{chunk-NA55VLER.js.map → chunk-LE6TQVXF.js.map} +0 -0
  459. /package/dist/{chunk-KZ5R5HL7.js.map → chunk-MFUJU7RO.js.map} +0 -0
  460. /package/dist/{chunk-7S6ANELD.js.map → chunk-MQSSTTZU.js.map} +0 -0
  461. /package/dist/{chunk-CP73UYNV.js.map → chunk-OQR2C64M.js.map} +0 -0
  462. /package/dist/{chunk-UBCGX47E.js.map → chunk-P3CFDAW5.js.map} +0 -0
  463. /package/dist/{chunk-G2MC6WXA.js.map → chunk-PG6NTUTS.js.map} +0 -0
  464. /package/dist/{chunk-HQMIDROO.js.map → chunk-PQ3V2SYP.js.map} +0 -0
  465. /package/dist/{chunk-36B7J7CZ.js.map → chunk-Q6R3JTXH.js.map} +0 -0
  466. /package/dist/{chunk-PI54VS4I.js.map → chunk-SNSV6GGV.js.map} +0 -0
  467. /package/dist/{chunk-BSGMAUA4.js.map → chunk-SQPFJLCI.js.map} +0 -0
  468. /package/dist/{chunk-7VMEUGNV.js.map → chunk-TV6RX3ZL.js.map} +0 -0
  469. /package/dist/{chunk-7BKOWPKX.js.map → chunk-TYIIAIXA.js.map} +0 -0
  470. /package/dist/{chunk-2A4P2DX3.js.map → chunk-VH4T4O5L.js.map} +0 -0
  471. /package/dist/{chunk-ABTRD52Y.js.map → chunk-WWBYNWYB.js.map} +0 -0
  472. /package/dist/{chunk-BELY4VU4.js.map → chunk-YE3T4X2U.js.map} +0 -0
  473. /package/dist/{cli-circuit-breaker-37UQWOAA.js.map → cli-circuit-breaker-HWMTEEYI.js.map} +0 -0
  474. /package/dist/{cli-readiness-RSBS6FN3.js.map → cli-readiness-6C6E2T2O.js.map} +0 -0
  475. /package/dist/{cli-server-gateway-C5QPDUWS.js.map → cli-server-gateway-HHRF22EB.js.map} +0 -0
  476. /package/dist/{composite-router-WERJYE7X.js.map → composite-router-CX2W7RVA.js.map} +0 -0
  477. /package/dist/{consensus-vote-G2MKNTMW.js.map → consensus-vote-CQGIWMYY.js.map} +0 -0
  478. /package/dist/{context-retriever-H34LHPWB.js.map → context-retriever-G4LMWEN5.js.map} +0 -0
  479. /package/dist/{doctor-deep-XBUWYYXO.js.map → doctor-deep-VOX7KVGK.js.map} +0 -0
  480. /package/dist/{doctor-gateway-report-JRENPRNM.js.map → doctor-gateway-report-GMYX62JU.js.map} +0 -0
  481. /package/dist/{doctor-live-CFUUN5K4.js.map → doctor-live-AES3PON5.js.map} +0 -0
  482. /package/dist/{expert-bridge-FPFMGB3W.js.map → expert-bridge-WEZXYIGA.js.map} +0 -0
  483. /package/dist/{factory-HYRMAIGW.js.map → factory-L2DIM3PM.js.map} +0 -0
  484. /package/dist/{factory-RQ5Q2TMY.js.map → factory-L6CLXVPW.js.map} +0 -0
  485. /package/dist/{gemini-adapter-EHQUG5QP.js.map → gemini-adapter-CL7YW7UZ.js.map} +0 -0
  486. /package/dist/{improvement-review-SMUO5UVF.js.map → improvement-review-EBC3I55P.js.map} +0 -0
  487. /package/dist/{init-opencode-56GNUSHL.js.map → init-opencode-F6FV63VR.js.map} +0 -0
  488. /package/dist/{issue-triage-LPX3EU4I.js.map → issue-triage-3EJ5DSGG.js.map} +0 -0
  489. /package/dist/{model-config-helpers-XBHRUWIC.js.map → model-config-helpers-27GO3OEU.js.map} +0 -0
  490. /package/dist/{openai-compat-adapter-WEHE5LKH.js.map → openai-compat-adapter-JJD7VWZC.js.map} +0 -0
  491. /package/dist/{pr-reviewer-helpers-XPT57QHF.js.map → pr-reviewer-helpers-KGGKESLT.js.map} +0 -0
  492. /package/dist/{registry-command-D5TA6433.js.map → registry-command-SQQNXDGS.js.map} +0 -0
  493. /package/dist/{repo-security-plan-OH7IPPQU.js.map → repo-security-plan-CIGD7QBY.js.map} +0 -0
  494. /package/dist/{research-helpers-synthesize-UYICMMMM.js.map → research-helpers-synthesize-HAQSK2RL.js.map} +0 -0
  495. /package/dist/{routing-memory-PKD2T674.js.map → routing-memory-AFHV5NDT.js.map} +0 -0
  496. /package/dist/{session-memory-IRR7GLZT.js.map → session-memory-RBY5SHFK.js.map} +0 -0
  497. /package/dist/{setup-config-N4OYZSCY.js.map → setup-config-47NNRD4E.js.map} +0 -0
  498. /package/dist/{setup-custom-api-4VLHKKBF.js.map → setup-custom-api-H74QY7EM.js.map} +0 -0
  499. /package/dist/{tool-memory-MSOEUVUX.js.map → tool-memory-QESESDGS.js.map} +0 -0
  500. /package/dist/{unified-registry-W2DCYXUT.js.map → unified-registry-HWZRXFQ6.js.map} +0 -0
  501. /package/dist/{weather-report-FANVIPXZ.js.map → weather-report-QZLXDT5L.js.map} +0 -0
  502. /package/node_modules/{protobufjs/src/util/float.d.ts → @protobufjs/float/index.d.ts} +0 -0
@@ -29,15 +29,6 @@ test('removeDotSegments', (t) => {
29
29
  // https://github.com/fastify/fast-uri/issues/139
30
30
  testCases.push(['WS:/WS://1305G130505:1&%0D:1&C(XXXXX*)))))))XXX130505:UUVUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa$aaaaaaaaaaaa13a',
31
31
  'WS:/WS://1305G130505:1&%0D:1&C(XXXXX*)))))))XXX130505:UUVUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa$aaaaaaaaaaaa13a'])
32
- // trailing empty segments must be preserved: RFC 3986 5.2.4 only removes
33
- // complete "." / ".." segments, never an empty segment
34
- testCases.push(['//', '//'])
35
- testCases.push(['/foo//', '/foo//'])
36
- testCases.push(['/a/b//', '/a/b//'])
37
- testCases.push(['/x//y//z', '/x//y//z'])
38
- // "." / ".." segments still collapse
39
- testCases.push(['/a/b/c/./../../g', '/a/g'])
40
- testCases.push(['/.', '/'])
41
32
 
42
33
  t.plan(testCases.length)
43
34
 
@@ -1,10 +1,9 @@
1
1
  {
2
- "compilerOptions": {
3
- "allowJs": true,
4
- "checkJs": true,
5
- "strict": true,
6
- "noImplicitAny": true,
7
- "target": "es2022",
8
- "noEmit": true
9
- }
2
+ "compilerOptions": {
3
+ "allowJs": true,
4
+ "checkJs": true,
5
+ "strict": true,
6
+ "noImplicitAny": true,
7
+ "target": "es2015"
8
+ }
10
9
  }
@@ -5,22 +5,6 @@ declare namespace fastUri {
5
5
  scheme?: string;
6
6
  userinfo?: string;
7
7
  host?: string;
8
- /**
9
- * Zone identifier of a zoned IPv6 host, e.g. `"eth0"` or `"25eth0"`. Set by
10
- * `parse` for a bracketed IPv6 literal so `serialize`/`normalize` can
11
- * reproduce the exact zone without re-deriving it from the ambiguous
12
- * single-`%` form. It is validated on use, so a value that does not match
13
- * `host` (for example after `host` is reassigned) is ignored.
14
- *
15
- * When building a component object by hand, set `ipv6Zone` to disambiguate
16
- * a single-`%` host whose zone is ambiguous (a zone beginning with `25`
17
- * is re-read as a `%25` separator). Without it, `serialize` falls back to
18
- * a best-effort heuristic and may reinterpret such a zone, e.g. `{ host:
19
- * "fe80::1%25eth0" }` serializes to `[fe80::1%25eth0]` (zone `eth0`), while
20
- * `{ host: "fe80::1%25eth0", ipv6Zone: "25eth0" }` serializes to
21
- * `[fe80::1%2525eth0]` (zone `25eth0`).
22
- */
23
- ipv6Zone?: string;
24
8
  port?: number | string;
25
9
  path?: string;
26
10
  query?: string;
@@ -32,10 +16,6 @@ declare namespace fastUri {
32
16
  secure?: boolean;
33
17
  uuid?: string;
34
18
  error?: string;
35
- to?: string[];
36
- subject?: string;
37
- body?: string;
38
- headers?: { [hfname: string]: string };
39
19
  }
40
20
  export interface Options {
41
21
  scheme?: string;
@@ -48,6 +28,15 @@ declare namespace fastUri {
48
28
  nid?: string;
49
29
  }
50
30
 
31
+ /**
32
+ * @deprecated Use Options instead
33
+ */
34
+ export type options = Options
35
+ /**
36
+ * @deprecated Use URIComponent instead
37
+ */
38
+ export type URIComponents = URIComponent
39
+
51
40
  export function normalize (uri: string, opts?: Options): string
52
41
  export function normalize (uri: URIComponent, opts?: Options): URIComponent
53
42
  export function normalize (uri: any, opts?: Options): any
@@ -0,0 +1,17 @@
1
+ import uri, { URIComponents, URIComponent, Options, options } from '..'
2
+ import { expectDeprecated, expectType } from 'tsd'
3
+
4
+ const parsed = uri.parse('foo')
5
+ expectType<URIComponents>(parsed)
6
+ const parsed2 = uri.parse('foo', {
7
+ domainHost: true,
8
+ scheme: 'https',
9
+ unicodeSupport: false
10
+ })
11
+ expectType<URIComponents>(parsed2)
12
+
13
+ expectType<URIComponent>({} as URIComponents)
14
+ expectDeprecated({} as URIComponents)
15
+
16
+ expectType<Options>({} as options)
17
+ expectDeprecated({} as options)
@@ -17,7 +17,6 @@
17
17
  [![GitHub last commit](https://img.shields.io/github/last-commit/honojs/hono)](https://github.com/honojs/hono/commits/main)
18
18
  [![codecov](https://codecov.io/github/honojs/hono/graph/badge.svg)](https://codecov.io/github/honojs/hono)
19
19
  [![Discord badge](https://img.shields.io/discord/1011308539819597844?label=Discord&logo=Discord)](https://discord.gg/KMh2eNSdxV)
20
- [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/honojs/hono)
21
20
 
22
21
  Hono - _**means flame🔥 in Japanese**_ - is a small, simple, and ultrafast web framework built on Web Standards. It works on any JavaScript runtime: Cloudflare Workers, Fastly Compute, Deno, Bun, Vercel, AWS Lambda, Lambda@Edge, and Node.js.
23
22
 
@@ -63,9 +62,9 @@ The migration guide is available on [docs/MIGRATION.md](docs/MIGRATION.md).
63
62
  Contributions Welcome! You can contribute in the following ways.
64
63
 
65
64
  - Create an Issue - Propose a new feature. Report a bug.
66
- - Pull Request - Fix a bug or typo. Refactor the code.
67
- - Create third-party middleware - See [Third-party middleware](docs/CONTRIBUTING.md#third-party-middleware).
65
+ - Build middleware and libraries - Grow the Hono ecosystem.
68
66
  - Share - Share your thoughts on the Blog, X, and others.
67
+ - Sponsor - Support the maintainers through GitHub Sponsors: [@yusukebe](https://github.com/sponsors/yusukebe) and [@usualoma](https://github.com/sponsors/usualoma).
69
68
  - Make your application - Please try to use Hono.
70
69
 
71
70
  For more details, see [docs/CONTRIBUTING.md](docs/CONTRIBUTING.md).
@@ -46,7 +46,11 @@ const isValidKeyframeName = (name) => isValidClassName(name) && !RESERVED_KEYFRA
46
46
  const defaultOnInvalidSlug = (slug) => {
47
47
  console.warn(`Invalid slug: ${slug}`);
48
48
  };
49
- const cssStringReStr = ["\"(?:(?:\\\\[\\s\\S]|[^\"\\\\])*)\"", "'(?:(?:\\\\[\\s\\S]|[^'\\\\])*)'"].join("|");
49
+ const cssStringReStr = [
50
+ "\"(?:(?:\\\\[\\s\\S]|[^\"\\\\])*)\"",
51
+ "'(?:(?:\\\\[\\s\\S]|[^'\\\\])*)'",
52
+ "url\\(\\s*[^)\"'\\s]*\\s*\\)"
53
+ ].join("|");
50
54
  const minifyCssRe = new RegExp([
51
55
  "(" + cssStringReStr + ")",
52
56
  "(?:" + [
@@ -56,11 +60,12 @@ const minifyCssRe = new RegExp([
56
60
  "\\s+$"
57
61
  ].join("|") + ")",
58
62
  "\\s*;\\s*(}|$)\\s*",
59
- "\\s*([{};:,])\\s*",
63
+ "\\s*([{};,])\\s*",
64
+ "(:)\\s*",
60
65
  "(\\s)\\s+"
61
66
  ].join("|"), "g");
62
67
  const minify = (css) => {
63
- return css.replace(minifyCssRe, (_, $1, $2, $3, $4) => $1 || $2 || $3 || $4 || "");
68
+ return css.replace(minifyCssRe, (_, $1, $2, $3, $4, $5) => $1 || $2 || $3 || $4 || $5 || "");
64
69
  };
65
70
  const buildStyleString = (strings, values) => {
66
71
  const selectors = [];
@@ -21,7 +21,7 @@ const createCssContext = ({ id, classNameSlug, onInvalidSlug }) => {
21
21
  const [cssJsxDomObject, StyleRenderToDom] = require_jsx_dom_css.createCssJsxDomObjects({ id });
22
22
  const contextMap = /* @__PURE__ */ new WeakMap();
23
23
  const nonceMap = /* @__PURE__ */ new WeakMap();
24
- const replaceStyleRe = new RegExp(`(<style id="${id}"(?: nonce="[^"]*")?>.*?)(</style>)`);
24
+ const replaceStyleRe = new RegExp(`(<style id="${id}"(?: nonce="[^"]*")?>.*?)(</style>)`, "s");
25
25
  const newCssClassNameObject = (cssClassName) => {
26
26
  const appendStyle = ({ buffer, context }) => {
27
27
  const [toAdd, added] = contextMap.get(context);
@@ -111,7 +111,9 @@ const basePath = (c, index) => {
111
111
  const pattern = require_utils_url.getPattern(paths[i], paths[i + 1]);
112
112
  if (pattern) {
113
113
  const re = pattern[2] === true || pattern === "*" ? /[^\/]+/ : pattern[2];
114
- basePathLength += reqPath.substring(basePathLength + 1).match(re)?.[0].length || 0;
114
+ const restPath = reqPath.substring(basePathLength + 1);
115
+ const segment = restPath.split("/", 1)[0];
116
+ basePathLength += (restPath.match(re)?.[0] ?? (re.test(segment) ? segment : "")).length;
115
117
  } else basePathLength += paths[i].length;
116
118
  basePathLength += 1;
117
119
  }
@@ -240,7 +240,7 @@ const cloneElement = (element, props, ...children) => {
240
240
  if (children.length > 0) childrenToClone = children;
241
241
  else {
242
242
  const c = element.props.children;
243
- childrenToClone = Array.isArray(c) ? c : [c];
243
+ childrenToClone = c !== void 0 ? Array.isArray(c) ? c : [c] : [];
244
244
  }
245
245
  return jsx(element.tag, {
246
246
  ...element.props,
@@ -53,6 +53,14 @@ const bearerAuth = (options) => {
53
53
  const wwwAuthenticateHeaderValue = typeof wwwAuthenticateHeader === "function" ? await wwwAuthenticateHeader(c) : wwwAuthenticateHeader;
54
54
  const headers = { "WWW-Authenticate": typeof wwwAuthenticateHeaderValue === "string" ? wwwAuthenticateHeaderValue : `${wwwAuthenticatePrefix}${Object.entries(wwwAuthenticateHeaderValue).map(([key, value]) => `${key}="${value}"`).join(",")}` };
55
55
  const responseMessage = typeof messageOption === "function" ? await messageOption(c) : messageOption;
56
+ if (responseMessage instanceof Response) {
57
+ const resHeaders = new Headers(responseMessage.headers);
58
+ if (!resHeaders.has("WWW-Authenticate")) resHeaders.set("WWW-Authenticate", headers["WWW-Authenticate"]);
59
+ throw new require_http_exception.HTTPException(responseMessage.status, { res: new Response(responseMessage.body, {
60
+ status: responseMessage.status,
61
+ headers: resHeaders
62
+ }) });
63
+ }
56
64
  const res = typeof responseMessage === "string" ? new Response(responseMessage, {
57
65
  status,
58
66
  headers
@@ -1,5 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_utils_url = require("../../utils/url.js");
3
+ const require_utils_accept = require("../../utils/accept.js");
3
4
  const require_utils_compress = require("../../utils/compress.js");
4
5
  const require_utils_mime = require("../../utils/mime.js");
5
6
  const require_middleware_serve_static_path = require("./path.js");
@@ -20,6 +21,7 @@ const serveStatic = (options) => {
20
21
  const join = options.join ?? require_middleware_serve_static_path.defaultJoin;
21
22
  return async (c, next) => {
22
23
  if (c.finalized) return next();
24
+ if (c.req.method !== "GET" && c.req.method !== "HEAD") return next();
23
25
  let filename;
24
26
  if (options.path) filename = options.path;
25
27
  else try {
@@ -39,7 +41,7 @@ const serveStatic = (options) => {
39
41
  const mimeType = options.mimes && require_utils_mime.getMimeType(path, options.mimes) || require_utils_mime.getMimeType(path);
40
42
  c.header("Content-Type", mimeType || "application/octet-stream");
41
43
  if (options.precompressed && (!mimeType || require_utils_compress.COMPRESSIBLE_CONTENT_TYPE_REGEX.test(mimeType))) {
42
- const acceptEncodingSet = new Set(c.req.header("Accept-Encoding")?.split(",").map((encoding) => encoding.trim()));
44
+ const acceptEncodingSet = new Set(require_utils_accept.parseAccept(c.req.header("Accept-Encoding") ?? "").filter((encoding) => encoding.q > 0).map((encoding) => encoding.type));
43
45
  for (const encoding of ENCODINGS_ORDERED_KEYS) {
44
46
  if (!acceptEncodingSet.has(encoding)) continue;
45
47
  const compressedContent = await getContent(path + ENCODINGS[encoding], c);
@@ -98,7 +98,7 @@ var Node = class Node {
98
98
  const restPathString = path.slice(partOffsets[i]);
99
99
  const m = matcher.exec(restPathString);
100
100
  if (m) {
101
- params[name] = m[0];
101
+ if (!Object.hasOwn(params, name)) params[name] = m[0];
102
102
  this.#pushHandlerSets(handlerSets, child, method, node.#params, params);
103
103
  if (m[0].length === restPathString.length && child.#children["*"]) this.#pushHandlerSets(handlerSets, child.#children["*"], method, node.#params, params);
104
104
  for (const _ in child.#children) {
@@ -111,7 +111,7 @@ var Node = class Node {
111
111
  }
112
112
  }
113
113
  if (matcher === true || matcher.test(part)) {
114
- params[name] = part;
114
+ if (!Object.hasOwn(params, name)) params[name] = part;
115
115
  if (isLast) {
116
116
  this.#pushHandlerSets(handlerSets, child, method, params, node.#params);
117
117
  if (child.#children["*"]) this.#pushHandlerSets(handlerSets, child.#children["*"], method, params, node.#params);
@@ -154,16 +154,21 @@ const _getQueryParam = (url, key, multiple) => {
154
154
  if (hashIndex !== -1) url = url.slice(0, hashIndex);
155
155
  let encoded;
156
156
  if (!multiple && key && key.indexOf("%") === -1 && key.indexOf("+") === -1) {
157
- let keyIndex = url.indexOf("?", 8);
157
+ const queryIndex = url.indexOf("?", 8);
158
+ let keyIndex = queryIndex;
158
159
  if (keyIndex === -1) return;
159
160
  if (!url.startsWith(key, keyIndex + 1)) keyIndex = url.indexOf(`&${key}`, keyIndex + 1);
160
161
  while (keyIndex !== -1) {
161
162
  const trailingKeyCode = url.charCodeAt(keyIndex + key.length + 1);
162
- if (trailingKeyCode === 61) {
163
- const valueIndex = keyIndex + key.length + 2;
164
- const endIndex = url.indexOf("&", valueIndex);
165
- return _decodeURI(url.slice(valueIndex, endIndex === -1 ? void 0 : endIndex));
166
- } else if (trailingKeyCode == 38 || isNaN(trailingKeyCode)) return "";
163
+ if (trailingKeyCode === 61 || trailingKeyCode === 38 || isNaN(trailingKeyCode)) {
164
+ if (keyIndex > queryIndex && /(?:^|&)[^=&]*[%+]/.test(url.slice(queryIndex + 1, keyIndex))) break;
165
+ if (trailingKeyCode === 61) {
166
+ const valueIndex = keyIndex + key.length + 2;
167
+ const endIndex = url.indexOf("&", valueIndex);
168
+ return _decodeURI(url.slice(valueIndex, endIndex === -1 ? void 0 : endIndex));
169
+ }
170
+ return "";
171
+ }
167
172
  keyIndex = url.indexOf(`&${key}`, keyIndex + 1);
168
173
  }
169
174
  encoded = /[%+]/.test(url);
@@ -45,7 +45,11 @@ const isValidKeyframeName = (name) => isValidClassName(name) && !RESERVED_KEYFRA
45
45
  const defaultOnInvalidSlug = (slug) => {
46
46
  console.warn(`Invalid slug: ${slug}`);
47
47
  };
48
- const cssStringReStr = ["\"(?:(?:\\\\[\\s\\S]|[^\"\\\\])*)\"", "'(?:(?:\\\\[\\s\\S]|[^'\\\\])*)'"].join("|");
48
+ const cssStringReStr = [
49
+ "\"(?:(?:\\\\[\\s\\S]|[^\"\\\\])*)\"",
50
+ "'(?:(?:\\\\[\\s\\S]|[^'\\\\])*)'",
51
+ "url\\(\\s*[^)\"'\\s]*\\s*\\)"
52
+ ].join("|");
49
53
  const minifyCssRe = new RegExp([
50
54
  "(" + cssStringReStr + ")",
51
55
  "(?:" + [
@@ -55,11 +59,12 @@ const minifyCssRe = new RegExp([
55
59
  "\\s+$"
56
60
  ].join("|") + ")",
57
61
  "\\s*;\\s*(}|$)\\s*",
58
- "\\s*([{};:,])\\s*",
62
+ "\\s*([{};,])\\s*",
63
+ "(:)\\s*",
59
64
  "(\\s)\\s+"
60
65
  ].join("|"), "g");
61
66
  const minify = (css) => {
62
- return css.replace(minifyCssRe, (_, $1, $2, $3, $4) => $1 || $2 || $3 || $4 || "");
67
+ return css.replace(minifyCssRe, (_, $1, $2, $3, $4, $5) => $1 || $2 || $3 || $4 || $5 || "");
63
68
  };
64
69
  const buildStyleString = (strings, values) => {
65
70
  const selectors = [];
@@ -20,7 +20,7 @@ const createCssContext = ({ id, classNameSlug, onInvalidSlug }) => {
20
20
  const [cssJsxDomObject, StyleRenderToDom] = createCssJsxDomObjects({ id });
21
21
  const contextMap = /* @__PURE__ */ new WeakMap();
22
22
  const nonceMap = /* @__PURE__ */ new WeakMap();
23
- const replaceStyleRe = new RegExp(`(<style id="${id}"(?: nonce="[^"]*")?>.*?)(</style>)`);
23
+ const replaceStyleRe = new RegExp(`(<style id="${id}"(?: nonce="[^"]*")?>.*?)(</style>)`, "s");
24
24
  const newCssClassNameObject = (cssClassName) => {
25
25
  const appendStyle = ({ buffer, context }) => {
26
26
  const [toAdd, added] = contextMap.get(context);
@@ -110,7 +110,9 @@ const basePath = (c, index) => {
110
110
  const pattern = getPattern(paths[i], paths[i + 1]);
111
111
  if (pattern) {
112
112
  const re = pattern[2] === true || pattern === "*" ? /[^\/]+/ : pattern[2];
113
- basePathLength += reqPath.substring(basePathLength + 1).match(re)?.[0].length || 0;
113
+ const restPath = reqPath.substring(basePathLength + 1);
114
+ const segment = restPath.split("/", 1)[0];
115
+ basePathLength += (restPath.match(re)?.[0] ?? (re.test(segment) ? segment : "")).length;
114
116
  } else basePathLength += paths[i].length;
115
117
  basePathLength += 1;
116
118
  }
@@ -239,7 +239,7 @@ const cloneElement = (element, props, ...children) => {
239
239
  if (children.length > 0) childrenToClone = children;
240
240
  else {
241
241
  const c = element.props.children;
242
- childrenToClone = Array.isArray(c) ? c : [c];
242
+ childrenToClone = c !== void 0 ? Array.isArray(c) ? c : [c] : [];
243
243
  }
244
244
  return jsx(element.tag, {
245
245
  ...element.props,
@@ -52,6 +52,14 @@ const bearerAuth = (options) => {
52
52
  const wwwAuthenticateHeaderValue = typeof wwwAuthenticateHeader === "function" ? await wwwAuthenticateHeader(c) : wwwAuthenticateHeader;
53
53
  const headers = { "WWW-Authenticate": typeof wwwAuthenticateHeaderValue === "string" ? wwwAuthenticateHeaderValue : `${wwwAuthenticatePrefix}${Object.entries(wwwAuthenticateHeaderValue).map(([key, value]) => `${key}="${value}"`).join(",")}` };
54
54
  const responseMessage = typeof messageOption === "function" ? await messageOption(c) : messageOption;
55
+ if (responseMessage instanceof Response) {
56
+ const resHeaders = new Headers(responseMessage.headers);
57
+ if (!resHeaders.has("WWW-Authenticate")) resHeaders.set("WWW-Authenticate", headers["WWW-Authenticate"]);
58
+ throw new HTTPException(responseMessage.status, { res: new Response(responseMessage.body, {
59
+ status: responseMessage.status,
60
+ headers: resHeaders
61
+ }) });
62
+ }
55
63
  const res = typeof responseMessage === "string" ? new Response(responseMessage, {
56
64
  status,
57
65
  headers
@@ -1,4 +1,5 @@
1
1
  import { tryDecodeURI } from "../../utils/url.js";
2
+ import { parseAccept } from "../../utils/accept.js";
2
3
  import { COMPRESSIBLE_CONTENT_TYPE_REGEX } from "../../utils/compress.js";
3
4
  import { getMimeType } from "../../utils/mime.js";
4
5
  import { defaultJoin } from "./path.js";
@@ -19,6 +20,7 @@ const serveStatic = (options) => {
19
20
  const join = options.join ?? defaultJoin;
20
21
  return async (c, next) => {
21
22
  if (c.finalized) return next();
23
+ if (c.req.method !== "GET" && c.req.method !== "HEAD") return next();
22
24
  let filename;
23
25
  if (options.path) filename = options.path;
24
26
  else try {
@@ -38,7 +40,7 @@ const serveStatic = (options) => {
38
40
  const mimeType = options.mimes && getMimeType(path, options.mimes) || getMimeType(path);
39
41
  c.header("Content-Type", mimeType || "application/octet-stream");
40
42
  if (options.precompressed && (!mimeType || COMPRESSIBLE_CONTENT_TYPE_REGEX.test(mimeType))) {
41
- const acceptEncodingSet = new Set(c.req.header("Accept-Encoding")?.split(",").map((encoding) => encoding.trim()));
43
+ const acceptEncodingSet = new Set(parseAccept(c.req.header("Accept-Encoding") ?? "").filter((encoding) => encoding.q > 0).map((encoding) => encoding.type));
42
44
  for (const encoding of ENCODINGS_ORDERED_KEYS) {
43
45
  if (!acceptEncodingSet.has(encoding)) continue;
44
46
  const compressedContent = await getContent(path + ENCODINGS[encoding], c);
@@ -97,7 +97,7 @@ var Node = class Node {
97
97
  const restPathString = path.slice(partOffsets[i]);
98
98
  const m = matcher.exec(restPathString);
99
99
  if (m) {
100
- params[name] = m[0];
100
+ if (!Object.hasOwn(params, name)) params[name] = m[0];
101
101
  this.#pushHandlerSets(handlerSets, child, method, node.#params, params);
102
102
  if (m[0].length === restPathString.length && child.#children["*"]) this.#pushHandlerSets(handlerSets, child.#children["*"], method, node.#params, params);
103
103
  for (const _ in child.#children) {
@@ -110,7 +110,7 @@ var Node = class Node {
110
110
  }
111
111
  }
112
112
  if (matcher === true || matcher.test(part)) {
113
- params[name] = part;
113
+ if (!Object.hasOwn(params, name)) params[name] = part;
114
114
  if (isLast) {
115
115
  this.#pushHandlerSets(handlerSets, child, method, params, node.#params);
116
116
  if (child.#children["*"]) this.#pushHandlerSets(handlerSets, child.#children["*"], method, params, node.#params);
@@ -1,4 +1,4 @@
1
- import { GetConnInfo } from "../../helper/conninfo/types.js";
1
+ import { GetConnInfo } from "../../helper/conninfo/index.js";
2
2
  //#region src/adapter/aws-lambda/conninfo.d.ts
3
3
  /**
4
4
  * Get connection information from AWS Lambda
@@ -1,4 +1,4 @@
1
- import { GetConnInfo } from "../../helper/conninfo/types.js";
1
+ import { GetConnInfo } from "../../helper/conninfo/index.js";
2
2
  //#region src/adapter/bun/conninfo.d.ts
3
3
  /**
4
4
  * Get ConnInfo with Bun
@@ -1,4 +1,4 @@
1
- import { FileSystemModule, ToSSGAdaptorInterface } from "../../helper/ssg/ssg.js";
1
+ import { FileSystemModule, ToSSGAdaptorInterface } from "../../helper/ssg/index.js";
2
2
  //#region src/adapter/bun/ssg.d.ts
3
3
  /**
4
4
  * @experimental
@@ -1,4 +1,4 @@
1
- import { GetConnInfo } from "../../helper/conninfo/types.js";
1
+ import { GetConnInfo } from "../../helper/conninfo/index.js";
2
2
  //#region src/adapter/cloudflare-pages/conninfo.d.ts
3
3
  /**
4
4
  * Get connection information from Cloudflare Pages
@@ -1,4 +1,4 @@
1
- import { GetConnInfo } from "../../helper/conninfo/types.js";
1
+ import { GetConnInfo } from "../../helper/conninfo/index.js";
2
2
  //#region src/adapter/cloudflare-workers/conninfo.d.ts
3
3
  /**
4
4
  * @deprecated `hono/cloudflare-workers` will be removed in v5. Install `@hono/cloudflare-workers` and import from there instead.
@@ -1,4 +1,4 @@
1
- import { GetConnInfo } from "../../helper/conninfo/types.js";
1
+ import { GetConnInfo } from "../../helper/conninfo/index.js";
2
2
  //#region src/adapter/deno/conninfo.d.ts
3
3
  /**
4
4
  * Get conninfo with Deno
@@ -1,4 +1,4 @@
1
- import { FileSystemModule, ToSSGAdaptorInterface } from "../../helper/ssg/ssg.js";
1
+ import { FileSystemModule, ToSSGAdaptorInterface } from "../../helper/ssg/index.js";
2
2
  //#region src/adapter/deno/ssg.d.ts
3
3
  /**
4
4
  * @experimental
@@ -1,4 +1,4 @@
1
- import { GetConnInfo } from "../../helper/conninfo/types.js";
1
+ import { GetConnInfo } from "../../helper/conninfo/index.js";
2
2
  //#region src/adapter/lambda-edge/conninfo.d.ts
3
3
  /**
4
4
  * @deprecated `hono/lambda-edge` will be removed in v5. Install `@hono/lambda-edge` and import from there instead.
@@ -1,4 +1,4 @@
1
- import { GetConnInfo } from "../../helper/conninfo/types.js";
1
+ import { GetConnInfo } from "../../helper/conninfo/index.js";
2
2
  //#region src/adapter/netlify/conninfo.d.ts
3
3
  /**
4
4
  * Get connection information from Netlify
@@ -1,4 +1,4 @@
1
- import { GetConnInfo } from "../../helper/conninfo/types.js";
1
+ import { GetConnInfo } from "../../helper/conninfo/index.js";
2
2
  //#region src/adapter/vercel/conninfo.d.ts
3
3
  /**
4
4
  * @deprecated `hono/vercel` will be removed in v5. Install `@hono/vercel` and import from there instead.
@@ -2,7 +2,8 @@ import { UnionToIntersection } from "../../utils/types.js";
2
2
  import { Schema } from "../../types.js";
3
3
  import { ExecutionContext } from "../../context.js";
4
4
  import { Hono } from "../../hono.js";
5
- import { Client, ClientRequestOptions } from "../../client/types.js";
5
+ import { ClientRequestOptions } from "../../client/index.js";
6
+ import { Client } from "../../client/types.js";
6
7
  //#region src/helper/testing/index.d.ts
7
8
  type ExtractEnv<T> = T extends Hono<infer E, Schema, string> ? E : never;
8
9
  export declare const testClient: <T extends Hono<any, Schema, string>>(app: T, Env?: ExtractEnv<T>["Bindings"] | {}, executionCtx?: ExecutionContext, options?: Omit<ClientRequestOptions, "fetch">) => UnionToIntersection<Client<T, "http://localhost">>;
@@ -6,14 +6,6 @@ type GetPath<E extends Env> = (request: Request, options?: {
6
6
  env?: E['Bindings'];
7
7
  }) => string;
8
8
  export type HonoOptions<E extends Env> = {
9
- /**
10
- * `strict` option specifies whether to distinguish whether the last path is a directory or not.
11
- *
12
- * @see {@link https://hono.dev/docs/api/hono#strict-mode}
13
- *
14
- * @default true
15
- */
16
- strict?: boolean;
17
9
  /**
18
10
  * `router` option specifies which router to use.
19
11
  *
@@ -25,6 +17,15 @@ export type HonoOptions<E extends Env> = {
25
17
  * ```
26
18
  */
27
19
  router?: Router<[H, RouterRoute]>;
20
+ } & ({
21
+ /**
22
+ * `strict` option specifies whether to distinguish whether the last path is a directory or not.
23
+ *
24
+ * @see {@link https://hono.dev/docs/api/hono#strict-mode}
25
+ *
26
+ * @default true
27
+ */
28
+ strict?: true;
28
29
  /**
29
30
  * `getPath` can handle the host header value.
30
31
  *
@@ -46,7 +47,18 @@ export type HonoOptions<E extends Env> = {
46
47
  * ```
47
48
  */
48
49
  getPath?: GetPath<E>;
49
- };
50
+ } | {
51
+ /**
52
+ * `strict` option specifies whether to distinguish whether the last path is a directory or not.
53
+ * When `strict` is `false`, `getPath` is not used.
54
+ *
55
+ * @see {@link https://hono.dev/docs/api/hono#strict-mode}
56
+ *
57
+ * @default true
58
+ */
59
+ strict: false;
60
+ getPath?: never;
61
+ });
50
62
  type MountOptionHandler = (c: Context) => unknown;
51
63
  type MountReplaceRequest = (originalRequest: Request) => Request;
52
64
  type MountOptions = MountOptionHandler | {
@@ -2,5 +2,5 @@ import { Env, ErrorHandler, Handler, Input, MiddlewareHandler, Next, NotFoundHan
2
2
  import { HonoRequest } from "./request.js";
3
3
  import { Context, ContextRenderer, ContextVariableMap, ExecutionContext } from "./context.js";
4
4
  import { Hono } from "./hono.js";
5
- import { ClientRequestOptions, InferRequestType, InferResponseType } from "./client/types.js";
5
+ import { ClientRequestOptions, InferRequestType, InferResponseType } from "./client/index.js";
6
6
  export { type ClientRequestOptions, Context, type ContextRenderer, type ContextVariableMap, type Env, type ErrorHandler, type ExecutionContext, type Handler, Hono, type HonoRequest, type InferRequestType, type InferResponseType, type Input, type MiddlewareHandler, type Next, type NotFoundHandler, type NotFoundResponse, type Schema, type ToSchema, type TypedResponse, type ValidationTargets };
@@ -1,6 +1,6 @@
1
1
  import { HtmlEscapedString } from "../utils/html.js";
2
- import { PropsWithChildren } from "./types.js";
3
- import { Child, FC } from "./base.js";
2
+ import { PropsWithChildren } from "./index.js";
3
+ import { Child, FC } from "./index.js";
4
4
  //#region src/jsx/components.d.ts
5
5
  export declare const childrenToString: (children: Child[]) => Promise<HtmlEscapedString[]>;
6
6
  export type ErrorHandler = (error: Error) => void;
@@ -1,5 +1,5 @@
1
- import { PropsWithChildren } from "./types.js";
2
- import { FC } from "./base.js";
1
+ import { PropsWithChildren } from "./index.js";
2
+ import { FC } from "./index.js";
3
3
  //#region src/jsx/context.d.ts
4
4
  export interface Context<T> extends FC<PropsWithChildren<{
5
5
  value: T;
@@ -1,6 +1,6 @@
1
1
  import { ErrorHandler, FallbackRender } from "../components.js";
2
- import { PropsWithChildren } from "../types.js";
3
- import { Child, FC } from "../base.js";
2
+ import { PropsWithChildren } from "../index.js";
3
+ import { Child, FC } from "../index.js";
4
4
  //#region src/jsx/dom/components.d.ts
5
5
  export declare const ErrorBoundary: FC<PropsWithChildren<{
6
6
  fallback?: Child;
@@ -1,6 +1,6 @@
1
1
  import { ClassNameSlug, CssClassName, CssVariableType, OnInvalidSlug, rawCssString } from "../../helper/css/common.js";
2
- import { PropsWithChildren } from "../types.js";
3
- import { FC } from "../base.js";
2
+ import { PropsWithChildren } from "../index.js";
3
+ import { FC } from "../index.js";
4
4
  //#region src/jsx/dom/css.d.ts
5
5
  interface CreateCssJsxDomObjectsType {
6
6
  (args: {
@@ -1,7 +1,8 @@
1
1
  import { HtmlEscapedString } from "../utils/html.js";
2
- import { PropsWithChildren } from "./types.js";
3
- import { Context } from "./context.js";
4
- import { FC, JSXNode } from "./base.js";
2
+ import { PropsWithChildren } from "./index.js";
3
+ import { Context } from "./index.js";
4
+ import { FC } from "./index.js";
5
+ import { JSXNode } from "./base.js";
5
6
  //#region src/jsx/streaming.d.ts
6
7
  /**
7
8
  * Used to specify nonce for scripts generated by `Suspense` and `ErrorBoundary`.
@@ -1,7 +1,8 @@
1
1
  import { Env, MiddlewareHandler } from "../../types.js";
2
2
  import { Context } from "../../context.js";
3
3
  //#region src/middleware/bearer-auth/index.d.ts
4
- type MessageFunction = (c: Context) => string | object | Promise<string | object>;
4
+ type MessageValue = string | object | Response;
5
+ type MessageFunction = (c: Context) => MessageValue | Promise<MessageValue>;
5
6
  type CustomizedErrorResponseOptions = {
6
7
  wwwAuthenticateHeader?: string | object | MessageFunction;
7
8
  message?: string | object | MessageFunction;
@@ -1,6 +1,6 @@
1
- import { MiddlewareHandler } from "../../types.js";
2
- import { Context } from "../../context.js";
3
- import { AddressType, GetConnInfo } from "../../helper/conninfo/types.js";
1
+ import { MiddlewareHandler } from "../../index.js";
2
+ import { Context } from "../../index.js";
3
+ import { AddressType, GetConnInfo } from "../../helper/conninfo/index.js";
4
4
  //#region src/middleware/ip-restriction/index.d.ts
5
5
  /**
6
6
  * Function to get IP Address