Skip to content

Commit a80823b

Browse files
authored
Note deprecation of direct imports (see #295)
1 parent 81252d6 commit a80823b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ An API for MIME type information.
1515

1616
> [!Note]
1717
> `mime@4` is now `latest`. If you're upgrading from `mime@3`, note the following:
18-
> * `mime@4` is API-compatible with `mime@3`, with one exception: `mime.define()` cannot be called on the default `mime` object.
18+
> * `mime@4` is API-compatible with `mime@3`, with ~~one~~ two exceptions:
19+
> * Direct imports of `mime` properties [no longer supported](https://github.com/broofa/mime/issues/295)
20+
> * `mime.define()` cannot be called on the default `mime` object
1921
> * ESM module support is required. [ESM Module FAQ](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).
2022
> * Requires an [ES2020](https://caniuse.com/?search=es2020) or newer runtime
2123
> * Built-in Typescript types (`@types/mime` no longer needed)

0 commit comments

Comments
 (0)