@fedify/next 2.2.0-dev.869 → 2.2.0-pr.695.23

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.
Files changed (2) hide show
  1. package/README.md +5 -8
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -12,19 +12,16 @@ This package provides a simple way to integrate [Fedify] with [Next.js].
12
12
  > [Fedify CLI] rather than installing this package directly.
13
13
 
14
14
  > [!IMPORTANT]
15
- > This package relies on Next.js request interception on the Node.js runtime.
16
- > Therefore, you must use Next.js 15.4.6 or later.
17
- > On Next.js 16, `proxy.ts` is preferred and `middleware.ts` is deprecated but
18
- > still supported. If you switch to `proxy.ts`, omit `runtime: "nodejs"` from
19
- > the exported `config`, because Proxy always runs on the Node.js runtime.
20
- > For more details, refer to the [official documentation of `proxy`].
15
+ > This package runs Next.js middleware on the Node.js runtime.
16
+ > Therefore, you must use version 15.5 or later, or at least 15.4 canary.
17
+ > For more details, refer to the [official documentation of `middleware`].
21
18
 
22
19
  [@fedify@hollo.social badge]: https://fedi-badge.deno.dev/@fedify@hollo.social/followers.svg
23
20
  [@fedify@hollo.social]: https://hollo.social/@fedify
24
21
  [Fedify]: https://fedify.dev/
25
22
  [Next.js]: https://nextjs.org/
26
23
  [Fedify CLI]: https://www.npmjs.com/package/@fedify/cli
27
- [official documentation of `proxy`]: https://nextjs.org/docs/app/api-reference/file-conventions/proxy
24
+ [official documentation of `middleware`]: https://nextjs.org/docs/app/api-reference/file-conventions/middleware#runtime
28
25
 
29
26
 
30
27
  Usage
@@ -37,7 +34,7 @@ import { federation } from "./federation";
37
34
 
38
35
  export default fedifyWith(federation)();
39
36
 
40
- // This config must be defined in the same file.
37
+ // This config must be defined on `middleware.ts`.
41
38
  export const config = {
42
39
  runtime: "nodejs",
43
40
  matcher: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/next",
3
- "version": "2.2.0-dev.869+97ccad7a",
3
+ "version": "2.2.0-pr.695.23+d0b31ca2",
4
4
  "description": "Integrate Fedify with Next.js",
5
5
  "keywords": [
6
6
  "Fedify",
@@ -50,8 +50,8 @@
50
50
  "package.json"
51
51
  ],
52
52
  "peerDependencies": {
53
- "next": ">=15.4.6 <17",
54
- "@fedify/fedify": "^2.2.0-dev.869+97ccad7a"
53
+ "next": "^15.4.6",
54
+ "@fedify/fedify": "^2.2.0-pr.695.23+d0b31ca2"
55
55
  },
56
56
  "devDependencies": {
57
57
  "tsdown": "^0.21.6",