clear-router 2.3.5 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.d.mts +1 -1
- package/dist/core/index.mjs +1 -1
- package/dist/express/index.cjs +31 -3
- package/dist/express/index.d.cts +1 -0
- package/dist/express/index.d.mts +2 -1
- package/dist/express/index.mjs +31 -3
- package/dist/fastify/index.cjs +26 -3
- package/dist/fastify/index.d.cts +1 -0
- package/dist/fastify/index.d.mts +2 -1
- package/dist/fastify/index.mjs +26 -3
- package/dist/h3/index.cjs +21 -3
- package/dist/h3/index.d.cts +1 -0
- package/dist/h3/index.d.mts +2 -1
- package/dist/h3/index.mjs +21 -3
- package/dist/hono/index.cjs +15 -10
- package/dist/hono/index.d.mts +1 -1
- package/dist/hono/index.mjs +15 -10
- package/dist/index.cjs +5 -0
- package/dist/index.mjs +5 -0
- package/dist/koa/index.cjs +169 -0
- package/dist/koa/index.d.cts +63 -0
- package/dist/koa/index.d.mts +63 -0
- package/dist/koa/index.mjs +168 -0
- package/dist/responses-HOePPAl8.mjs +73 -0
- package/dist/responses-r-O3jS-S.cjs +91 -0
- package/dist/{router-C-c43ybe.cjs → router-Cxi21bzi.cjs} +5 -0
- package/dist/{router-CHaZi7NS.mjs → router-Dxc8FQOl.mjs} +5 -0
- package/dist/types/koa.d.mts +22 -0
- package/dist/types/koa.mjs +1 -0
- package/package.json +21 -5
- /package/dist/{router-DhF8f80v.d.mts → router-CVeqd7Ro.d.mts} +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clear-router",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"description": "Laravel-style routing for Node.js with support for Express, H3, Fastify, and
|
|
3
|
+
"version": "2.5.0",
|
|
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
|
-
"
|
|
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",
|
|
File without changes
|