Skip to content

Commit 3920bfc

Browse files
committed
feature: edward: drop support of node < 22
1 parent f9b20dd commit 3920bfc

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,9 @@ For this purpuse API could be used.
6161
Middleware of `edward`. Options could be omitted.
6262

6363
```js
64-
const edward = require('edward');
65-
const express = require('express');
64+
import {edward} from 'edward';
65+
import express from 'express';
66+
6667
const app = express();
6768

6869
app.use(edward({
@@ -82,8 +83,9 @@ app.listen(31_337);
8283
Could be used with [socket.io](http://socket.io "Socket.io") to handle editor events with.
8384

8485
```js
85-
const io = require('socket.io');
86-
const socket = io.listen(server);
86+
import {Server} from 'socket.io';
87+
88+
const socket = new Server(server);
8789

8890
edward.listen(socket, {
8991
root: '/', // optional

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"homepage": "https://github.com/cloudcmd/edward",
2323
"engines": {
24-
"node": ">=18"
24+
"node": ">=22"
2525
},
2626
"scripts": {
2727
"start": "madrun start",

0 commit comments

Comments
 (0)