From a80823bdaa2c5a8a1ee8c79b0cb076bf7dee9d3e Mon Sep 17 00:00:00 2001 From: Robert Kieffer Date: Sat, 2 Dec 2023 05:48:56 -1000 Subject: [PATCH] Note deprecation of direct imports (see #295) --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0856326..540e742 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,9 @@ An API for MIME type information. > [!Note] > `mime@4` is now `latest`. If you're upgrading from `mime@3`, note the following: -> * `mime@4` is API-compatible with `mime@3`, with one exception: `mime.define()` cannot be called on the default `mime` object. +> * `mime@4` is API-compatible with `mime@3`, with ~~one~~ two exceptions: +> * Direct imports of `mime` properties [no longer supported](https://github.com/broofa/mime/issues/295) +> * `mime.define()` cannot be called on the default `mime` object > * ESM module support is required. [ESM Module FAQ](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c). > * Requires an [ES2020](https://caniuse.com/?search=es2020) or newer runtime > * Built-in Typescript types (`@types/mime` no longer needed)