Skip to content

Commit ce1f7ef

Browse files
authored
fix!: removes @fastify/express support (#29)
1 parent 95fcf1a commit ce1f7ef

7 files changed

Lines changed: 22 additions & 574 deletions

File tree

README.md

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ app.use(
5858
app.listen(3000, () => console.log("Example app listening on port 3000!"));
5959
```
6060

61-
See [below](#other-servers) for an example of use with fastify.
61+
See [below](#other-servers) for examples of use with other servers.
6262

6363
## Options
6464

@@ -685,26 +685,6 @@ process.on("unhandledRejection", (err) => {
685685
});
686686
```
687687

688-
### Fastify
689-
690-
Fastify interop will require the use of `fastify-express` instead of `middie` for providing middleware support. As the authors of `fastify-express` recommend, this should only be used as a stopgap while full Fastify support is worked on.
691-
692-
```js
693-
const { devMiddleware } = require("@rspack/dev-middleware");
694-
const fastify = require("fastify")();
695-
const { rspack } = require("@rspack/core");
696-
const rspackConfig = require("./rspack.config.js");
697-
698-
const compiler = rspack(rspackConfig);
699-
const devMiddlewareOptions = {
700-
// options
701-
};
702-
703-
await fastify.register(require("@fastify/express"));
704-
await fastify.use(devMiddleware(compiler, devMiddlewareOptions));
705-
await fastify.listen(3000);
706-
```
707-
708688
### Hono
709689

710690
```js

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
"bump": "npx bumpp"
3333
},
3434
"devDependencies": {
35-
"@fastify/express": "^4.0.2",
3635
"@hapi/hapi": "^21.3.7",
3736
"@hono/node-server": "^1.12.0",
3837
"@rslib/core": "^0.20.0",
@@ -48,7 +47,6 @@
4847
"deepmerge": "^4.2.2",
4948
"execa": "^5.1.1",
5049
"express": "^5.1.0",
51-
"fastify": "^5.2.1",
5250
"file-loader": "^6.2.0",
5351
"finalhandler": "^2.1.0",
5452
"hono": "^4.4.13",

0 commit comments

Comments
 (0)