Skip to content

Commit e6ad417

Browse files
authored
chore: replace connect with connect-next (#37)
1 parent 57676bb commit e6ad417

4 files changed

Lines changed: 16 additions & 72 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,13 +580,15 @@ app.use((req, res) => {
580580

581581
Examples of use with other servers will follow here.
582582

583-
### Connect
583+
### connect-next
584+
585+
[connect-next](https://github.com/rstackjs/connect-next) is an actively maintained fork of Connect.
584586

585587
```js
586588
import { createServer } from "node:http";
587589
import { rspack } from "@rspack/core";
588590
import { devMiddleware } from "@rspack/dev-middleware";
589-
import connect from "connect";
591+
import { connect } from "connect-next";
590592
import rspackConfig from "./rspack.config.js";
591593

592594
const compiler = rspack(rspackConfig);

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,11 @@
3939
"@rslint/core": "^0.3.3",
4040
"@rspack/core": "2.0.0-beta.5",
4141
"@rstest/core": "0.9.2",
42-
"@types/connect": "^3.4.35",
4342
"@types/express": "^5.0.2",
4443
"@types/node": "^22.3.0",
4544
"@types/on-finished": "^2.3.4",
4645
"@types/range-parser": "^1.2.7",
47-
"connect": "^3.7.0",
46+
"connect-next": "^4.0.0",
4847
"cspell": "^9.6.2",
4948
"deepmerge": "^4.2.2",
5049
"execa": "^5.1.1",

pnpm-lock.yaml

Lines changed: 9 additions & 66 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/middleware.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import path from "node:path";
55
import Hapi from "@hapi/hapi";
66
import { serve } from "@hono/node-server";
77
import { Stats } from "@rspack/core";
8-
import connect from "connect";
8+
import { connect } from "connect-next";
99
import express from "express";
1010
import finalhandler from "finalhandler";
1111
import { Hono } from "hono";
@@ -357,7 +357,7 @@ function parseHttpDate(date) {
357357
}
358358

359359
describe.each([
360-
["connect", connect],
360+
["connect-next", connect],
361361
["express", express],
362362
["router", router],
363363
["koa", koa],

0 commit comments

Comments
 (0)