@fedify/hono 2.0.0-dev.1961 → 2.0.0-dev.211
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/LICENSE +1 -1
- package/README.md +16 -14
- package/package.json +3 -3
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -26,6 +26,16 @@ const app = new Hono();
|
|
|
26
26
|
app.use(federation(fedi, (ctx) => "context data"));
|
|
27
27
|
~~~~
|
|
28
28
|
|
|
29
|
+
[JSR badge]: https://jsr.io/badges/@fedify/hono
|
|
30
|
+
[JSR]: https://jsr.io/@fedify/hono
|
|
31
|
+
[npm badge]: https://img.shields.io/npm/v/@fedify/hono?logo=npm
|
|
32
|
+
[npm]: https://www.npmjs.com/package/@fedify/hono
|
|
33
|
+
[@fedify@hollo.social badge]: https://fedi-badge.deno.dev/@fedify@hollo.social/followers.svg
|
|
34
|
+
[@fedify@hollo.social]: https://hollo.social/@fedify
|
|
35
|
+
[Fedify]: https://fedify.dev/
|
|
36
|
+
[Hono]: https://hono.dev/
|
|
37
|
+
|
|
38
|
+
|
|
29
39
|
How it works
|
|
30
40
|
------------
|
|
31
41
|
|
|
@@ -37,12 +47,13 @@ application to coexist in the same domain and port.
|
|
|
37
47
|
|
|
38
48
|
For example, if you make a request to */.well-known/webfinger* Fedify will
|
|
39
49
|
handle the request by itself, but if you make a request to */users/alice*
|
|
40
|
-
(assuming your Hono app has a handler for `/users/:handle`) with
|
|
41
|
-
text/html` header, Fedify will dispatch the request to the Hono app's
|
|
50
|
+
(assuming your Hono app has a handler for `/users/:handle`) with
|
|
51
|
+
`Accept: text/html` header, Fedify will dispatch the request to the Hono app's
|
|
42
52
|
appropriate handler for `/users/:handle`. Or if you define an actor dispatcher
|
|
43
|
-
for `/users/{handle}` in Fedify, and the request is made with
|
|
44
|
-
application/activity+json` header, Fedify will dispatch the request to
|
|
45
|
-
appropriate actor dispatcher.
|
|
53
|
+
for `/users/{handle}` in Fedify, and the request is made with
|
|
54
|
+
`Accept: application/activity+json` header, Fedify will dispatch the request to
|
|
55
|
+
the appropriate actor dispatcher.
|
|
56
|
+
|
|
46
57
|
|
|
47
58
|
Installation
|
|
48
59
|
------------
|
|
@@ -54,12 +65,3 @@ pnpm add @fedify/hono # pnpm
|
|
|
54
65
|
yarn add @fedify/hono # Yarn
|
|
55
66
|
bun add @fedify/hono # Bun
|
|
56
67
|
~~~~
|
|
57
|
-
|
|
58
|
-
[JSR]: https://jsr.io/@fedify/hono
|
|
59
|
-
[JSR badge]: https://jsr.io/badges/@fedify/hono
|
|
60
|
-
[npm]: https://www.npmjs.com/package/@fedify/hono
|
|
61
|
-
[npm badge]: https://img.shields.io/npm/v/@fedify/hono?logo=npm
|
|
62
|
-
[@fedify@hollo.social badge]: https://fedi-badge.deno.dev/@fedify@hollo.social/followers.svg
|
|
63
|
-
[@fedify@hollo.social]: https://hollo.social/@fedify
|
|
64
|
-
[Fedify]: https://fedify.dev/
|
|
65
|
-
[Hono]: https://hono.dev/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/hono",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.211+ec32aaad",
|
|
4
4
|
"description": "Integrate Fedify with Hono",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Fedify",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
],
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"hono": "^4.0.0",
|
|
53
|
-
"@fedify/fedify": "^2.0.0-dev.
|
|
53
|
+
"@fedify/fedify": "^2.0.0-dev.211+ec32aaad"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"tsdown": "^0.12.9",
|
|
@@ -59,6 +59,6 @@
|
|
|
59
59
|
"scripts": {
|
|
60
60
|
"build": "tsdown",
|
|
61
61
|
"prepublish": "tsdown",
|
|
62
|
-
"test": "
|
|
62
|
+
"test": "node --experimental-transform-types --test"
|
|
63
63
|
}
|
|
64
64
|
}
|