From 1fc536cc0ae901c2e4cb83213310c65233dc4e97 Mon Sep 17 00:00:00 2001 From: kekee000 Date: Fri, 22 Nov 2024 11:51:00 +0800 Subject: [PATCH] feat: v2 support ES Modules --- README.md | 8 ++++++++ package.json | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) 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"