diff --git a/README.md b/README.md index fd8ed76..58e4f20 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,14 @@ $ npm install --save fontmin ``` +### Notice + +**fontmin v2.x only support ES Modules, and run on Node v16+.** + +If you need to use CommonJS version, please install `fontmin v1.x`: + +> npm install --save fontmin@1 + ## Usage ```js diff --git a/package.json b/package.json index 2f06e97..371e43b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fontmin", - "version": "1.1.0", + "version": "2.0.0", "description": "Minify font seamlessly, font subsetter, webfont (eot, woff, svg) converter.", "type": "module", "main": "index.js", @@ -32,7 +32,7 @@ "license": "MIT", "repository": "ecomfe/fontmin", "engines": { - "node": ">=18" + "node": ">=16" }, "bin": { "fontmin": "cli.js"