This package provides a simple way to integrate Fedify with Express.
The integration code looks like this:
import express from "express";
import { integrateFederation } from "@fedify/express";
import { federation } from "./federation"; // Your `Federation` instance
export const app = express();
app.set("trust proxy", true);
app.use(integrateFederation(federation, (req) => "context data goes here"));
Released on September 30, 2024.
- Relaxed the requirement for the peer dependency
@fedify/fedify
to allow any version under 2.0.0.
Released on August 31, 2024.
- Fixed a bug where it throws
TypeError
with messageRequestInit: duplex option is required when sending a body.
Released on August 5, 2024.
- Fixed the middleware to not fill
Request.body
when the request method isGET
orHEAD
. - Fixed the middleware to content-negotiate the response based on
the
Accept
header.
Released on August 5, 2024.
- Fixed incorrectly configured export targets in package.json.
Released on August 5, 2024.
- Added missing entry points to the package.json.
Initial release. Released on August 5, 2024.