@vercube/h3 0.0.33 → 0.0.35
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 +19 -43
- package/dist/index.d.mts +0 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,59 +1,35 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<
|
|
2
|
+
<img src="https://raw.githubusercontent.com/vercube/vercube/refs/heads/main/.github/assets/cover.png" width="100%" alt="Vercube - Unleash your server development." />
|
|
3
3
|
<br>
|
|
4
4
|
<br>
|
|
5
5
|
|
|
6
|
-
#
|
|
7
|
-
|
|
8
|
-
Next generation HTTP framework
|
|
9
|
-
|
|
10
|
-
<a href="https://www.npmjs.com/package/@vercube/h3">
|
|
11
|
-
<img src="https://img.shields.io/npm/v/%40vercube%2Fh3?style=for-the-badge&logo=npm&color=%23767eff" alt="npm"/>
|
|
12
|
-
</a>
|
|
13
|
-
<a href="https://www.npmjs.com/package/@vercube/h3">
|
|
14
|
-
<img src="https://img.shields.io/npm/dm/%40vercube%2Fh3?style=for-the-badge&logo=npm&color=%23767eff" alt="npm"/>
|
|
15
|
-
</a>
|
|
16
|
-
<a href="https://github.com/vercube/vercube/blob/main/LICENSE" target="_blank">
|
|
17
|
-
<img src="https://img.shields.io/npm/l/%40vercube%2Fdi?style=for-the-badge&color=%23767eff" alt="License"/>
|
|
18
|
-
</a>
|
|
19
|
-
<a href="https://codecov.io/gh/vercube/vercube" target="_blank">
|
|
20
|
-
<img src="https://img.shields.io/codecov/c/github/vercube/vercube?style=for-the-badge&color=%23767eff" alt="Coverage"/>
|
|
21
|
-
</a>
|
|
22
|
-
<br/>
|
|
23
|
-
<br/>
|
|
24
|
-
</div>
|
|
25
|
-
|
|
26
|
-
An ultra-efficient JavaScript server framework that runs anywhere - Node.js, Bun, or Deno - with unmatched flexibility and complete configurability for developers who refuse to sacrifice speed or control.
|
|
6
|
+
# @vercube/h3
|
|
27
7
|
|
|
28
|
-
|
|
8
|
+
### H3 integration for Vercube
|
|
29
9
|
|
|
30
|
-
|
|
31
|
-
|
|
10
|
+
[&labelColor=%23000&color=%232f2f2f>)](https://deepwiki.com/vercube/vercube)
|
|
11
|
+
&labelColor=%23000&color=%232e2e2e&link=https%3A%2F%2Fwww.npmjs.com%2Fpackage%2F%40vercube%2Fh3>)
|
|
12
|
+
&labelColor=%23000&color=%232f2f2f>)
|
|
13
|
+
&labelColor=%23000&color=%232f2f2f>)
|
|
32
14
|
|
|
33
|
-
|
|
34
|
-
- Use H3's routing capabilities with Vercube's application logic
|
|
35
|
-
- Integrate Vercube with other H3-based frameworks
|
|
15
|
+
**Mount your Vercube app on [H3](https://h3.dev) servers. Useful when you need to integrate with Nitro, Nuxt, or other H3-based frameworks.**
|
|
36
16
|
|
|
37
|
-
|
|
17
|
+
[Website](https://vercube.dev) • [Documentation](https://vercube.dev/docs/getting-started)
|
|
38
18
|
|
|
39
|
-
|
|
40
|
-
import { createApp } from '@vercube/core';
|
|
41
|
-
import { toH3 } from '@vercube/h3';
|
|
42
|
-
import { H3, serve } from 'h3';
|
|
19
|
+
</div>
|
|
43
20
|
|
|
44
|
-
|
|
45
|
-
const app = await createApp();
|
|
21
|
+
## ✨ Features
|
|
46
22
|
|
|
47
|
-
|
|
48
|
-
|
|
23
|
+
- **Simple adapter** - `toH3(app)` and you're done
|
|
24
|
+
- **Path mounting** - mount at `/api` or any path you want
|
|
25
|
+
- **Mixed routes** - combine H3 routes with Vercube handlers
|
|
49
26
|
|
|
50
|
-
|
|
51
|
-
h3app.all('/api/**', toH3(app));
|
|
27
|
+
## 📦 Installation
|
|
52
28
|
|
|
53
|
-
|
|
54
|
-
|
|
29
|
+
```bash
|
|
30
|
+
pnpm add @vercube/h3
|
|
55
31
|
```
|
|
56
32
|
|
|
57
|
-
##
|
|
33
|
+
## 📜 License
|
|
58
34
|
|
|
59
|
-
|
|
35
|
+
[MIT](https://github.com/vercube/vercube/blob/main/LICENSE)
|
package/dist/index.d.mts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercube/h3",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.35",
|
|
4
4
|
"description": "H3 module for Vercube framework",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"h3": "beta",
|
|
26
|
-
"@vercube/core": "0.0.
|
|
26
|
+
"@vercube/core": "0.0.35"
|
|
27
27
|
},
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public"
|