Skip to content

Commit

Permalink
Change to require Node.js 16
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jun 14, 2023
1 parent 33f33d1 commit 6532621
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
10 changes: 3 additions & 7 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,13 @@
* Nothing (note: has to be `void` for TSs `Promise` interface).
*/

import fs from 'fs'
import path from 'path'
import {URL} from 'url'
import fs from 'node:fs'
import path from 'node:path'
import {VFile} from 'vfile'

// To do: next next major: remove `toVFile`, only accept `VFile`s,
// To do: next major: remove `toVFile`, only accept `VFile`s,
// do not return anything.

// To do: next major: use `node:` prefix.
// To do: next major: use `URL` from global.

/**
* Create a virtual file and read it in, async.
*
Expand Down
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,6 @@
"strict": true
},
"xo": {
"prettier": true,
"rules": {
"unicorn/prefer-node-protocol": "off"
}
"prettier": true
}
}
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@ versions of Node.js.
When we cut a new major release, we drop support for unmaintained versions of
Node.
This means we try to keep the current release line, `vfile@^7`,
compatible with Node.js 12.
This means we try to keep the current release line, `vfile@^8`,
compatible with Node.js 16.
## Contribute
Expand Down

0 comments on commit 6532621

Please sign in to comment.