Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,24 @@ Connect is a simple framework to glue together various "middleware" to handle re
$ npm install connect-next
```

### Migrate from `connect`

If you are migrating from `connect`, remove the previous packages and install `connect-next`:

```sh
$ npm remove connect @types/connect
$ npm install connect-next
```

`connect-next` ships its own TypeScript types, so `@types/connect` is no longer needed.

The package also exposes a named `connect` export instead of a default import:

```diff
-import connect from 'connect';
+import { connect } from 'connect-next';
```

### Create an app

The main component is a Connect "app". This will store all the middleware
Expand Down