clear-router 2.3.0 → 2.3.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/README.md +15 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
[](https://github.com/arkstack-hq/clear-router/actions/workflows/npm-publish.yml)
|
|
7
7
|
[](https://github.com/arkstack-hq/clear-router/actions/workflows/ci.yml)
|
|
8
8
|
|
|
9
|
-
Laravel-style routing
|
|
9
|
+
Laravel-style routing for Node.js with support for Express, H3, Fastify, and Hono, including CommonJS, ESM, and TypeScript support.
|
|
10
10
|
|
|
11
11
|
## Installation
|
|
12
12
|
|
|
@@ -51,20 +51,30 @@ yarn add clear-router express
|
|
|
51
51
|
- `clearRequest` is passed as second handler argument for controller handlers
|
|
52
52
|
- Auto-binds controller methods
|
|
53
53
|
- Full CommonJS, ESM, and TypeScript support
|
|
54
|
-
- Error handling delegated to Express | H3
|
|
54
|
+
- Error handling delegated to Express | H3 | Fastify | Hono
|
|
55
55
|
- Route inspection with the `allRoutes` method
|
|
56
56
|
- Fully Express-compatible
|
|
57
57
|
- Fully H3-compatible
|
|
58
|
+
- Fully Fastify-compatible
|
|
59
|
+
- Fully Hono-compatible
|
|
58
60
|
|
|
59
61
|
## Quick Start
|
|
60
62
|
|
|
61
63
|
### Express JS
|
|
62
64
|
|
|
63
|
-
See the [Express JS documentation](https://arkstack-hq.github.io/clear-router/express) for details.
|
|
65
|
+
See the [Express JS documentation](https://arkstack-hq.github.io/clear-router/guide/express) for details.
|
|
64
66
|
|
|
65
67
|
### H3
|
|
66
68
|
|
|
67
|
-
See the [H3 documentation](https://arkstack-hq.github.io/clear-router/h3) for details.
|
|
69
|
+
See the [H3 documentation](https://arkstack-hq.github.io/clear-router/guide/h3) for details.
|
|
70
|
+
|
|
71
|
+
### Fastify
|
|
72
|
+
|
|
73
|
+
See the [Fastify documentation](https://arkstack-hq.github.io/clear-router/guide/fastify) for details.
|
|
74
|
+
|
|
75
|
+
### Hono
|
|
76
|
+
|
|
77
|
+
See the [Hono documentation](https://arkstack-hq.github.io/clear-router/guide/hono) for details.
|
|
68
78
|
|
|
69
79
|
## API Reference
|
|
70
80
|
|
|
@@ -92,7 +102,7 @@ npm run test:esm # Test ESM
|
|
|
92
102
|
npm run test:ts # Test TypeScript
|
|
93
103
|
```
|
|
94
104
|
|
|
95
|
-
See [TESTING.md](https://arkstack-hq.github.io/clear-router/
|
|
105
|
+
See [TESTING.md](https://arkstack-hq.github.io/clear-router/testing) for a detailed testing guide.
|
|
96
106
|
|
|
97
107
|
## Examples
|
|
98
108
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clear-router",
|
|
3
|
-
"version": "2.3.
|
|
4
|
-
"description": "Laravel-style routing
|
|
3
|
+
"version": "2.3.1",
|
|
4
|
+
"description": "Laravel-style routing for Node.js with support for Express, H3, Fastify, and Hono, including CommonJS, ESM, and TypeScript support.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"h3",
|
|
7
7
|
"srvx",
|