Skip to content

Commit

Permalink
Update mime, remove support for Node 16
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Oct 1, 2024
1 parent a3ba9ee commit 142c6e8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import fs from 'node:fs/promises'
import path from 'node:path'
import isRelativeUrl from 'is-relative-url'
import mimes from 'mime/lite.js'
import mimes from 'mime/lite'
import {visit} from 'unist-util-visit'

/**
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,11 @@
"dependencies": {
"@types/mdast": "^4.0.0",
"is-relative-url": "^4.0.0",
"mime": "^3.0.0",
"mime": "^4.0.0",
"unist-util-visit": "^5.0.0",
"vfile": "^6.0.0"
},
"devDependencies": {
"@types/mime": "^3.0.0",
"@types/node": "^22.0.0",
"c8": "^10.0.0",
"prettier": "^3.0.0",
Expand Down
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ This does makes the markdown quite hard to read and isn’t supported everywhere
## Install

This package is [ESM only][esm].
In Node.js (version 16+), install with [npm][]:
In Node.js (version 18+), install with [npm][]:

```sh
npm install remark-embed-images
Expand Down Expand Up @@ -118,8 +118,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, `remark-embed-images@^4`,
compatible with Node.js 16.
This means we try to keep the current release line, `remark-embed-images@4`,
compatible with Node.js 18.

This plugin works with `unified` version 6+ and `remark` version 7+.

Expand Down

0 comments on commit 142c6e8

Please sign in to comment.