clear-router 2.4.0 → 2.5.1

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "clear-router",
3
- "version": "2.4.0",
4
- "description": "Laravel-style routing for Node.js with support for Express, H3, Fastify, and Hono, including CommonJS, ESM, and TypeScript support.",
3
+ "version": "2.5.1",
4
+ "description": "Laravel-style routing for Node.js with support for Express, H3, Fastify, Hono, and Koa, including CommonJS, ESM, and TypeScript support.",
5
5
  "keywords": [
6
6
  "h3",
7
7
  "srvx",
@@ -56,11 +56,16 @@
56
56
  "import": "./dist/hono/index.mjs",
57
57
  "require": "./dist/hono/index.cjs"
58
58
  },
59
+ "./koa": {
60
+ "import": "./dist/koa/index.mjs",
61
+ "require": "./dist/koa/index.cjs"
62
+ },
59
63
  "./types/basic": "./dist/types/basic.mjs",
60
64
  "./types/express": "./dist/types/express.mjs",
61
65
  "./types/fastify": "./dist/types/fastify.mjs",
62
66
  "./types/h3": "./dist/types/h3.mjs",
63
67
  "./types/hono": "./dist/types/hono.mjs",
68
+ "./types/koa": "./dist/types/koa.mjs",
64
69
  "./package.json": "./package.json"
65
70
  },
66
71
  "files": [
@@ -69,12 +74,17 @@
69
74
  "LICENSE"
70
75
  ],
71
76
  "peerDependencies": {
77
+ "@koa/router": "^15.0.0",
72
78
  "express": "^5.1.0",
73
79
  "fastify": "^5.0.0",
74
80
  "h3": "^2.0.1-rc.16",
75
- "hono": "^4.0.0"
81
+ "hono": "^4.0.0",
82
+ "koa": "^3.0.0"
76
83
  },
77
84
  "peerDependenciesMeta": {
85
+ "@koa/router": {
86
+ "optional": true
87
+ },
78
88
  "express": {
79
89
  "optional": true
80
90
  },
@@ -86,19 +96,25 @@
86
96
  },
87
97
  "hono": {
88
98
  "optional": true
99
+ },
100
+ "koa": {
101
+ "optional": true
89
102
  }
90
103
  },
91
104
  "devDependencies": {
92
105
  "@eslint/js": "^10.0.1",
93
106
  "@eslint/markdown": "^7.5.1",
107
+ "@koa/router": "^15.5.0",
94
108
  "@types/express": "^4.17.21",
109
+ "@types/koa": "^3.0.2",
110
+ "@types/koa__router": "^12.0.5",
95
111
  "@types/node": "^20.10.6",
96
- "@types/supertest": "^6.0.3",
97
112
  "@vitest/coverage-v8": "4.0.18",
98
113
  "eslint": "^10.0.2",
99
114
  "fastify": "^5.8.2",
100
115
  "hono": "^4.12.8",
101
- "supertest": "^7.1.1",
116
+ "koa": "^3.2.0",
117
+ "parasito": "^0.1.6",
102
118
  "tsdown": "^0.20.3",
103
119
  "tsx": "^4.21.0",
104
120
  "typescript": "^5.3.3",