From 75774acc61ac93bd92c31109c6acedd52527ad87 Mon Sep 17 00:00:00 2001 From: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> Date: Mon, 10 Jul 2023 12:19:57 +0900 Subject: [PATCH] Remove support for older Node.js versions than `14.18.0` (#23) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `np` (`npm run release`) now requires the `engines.node` field in `package.json`, so this change adds the field. The minimum version is determined by `ls-engines`. ```console $ npx ls-engines@latest ... ┌────────────────────────┬───────────────────────────┐ │ package engines: │ dependency graph engines: │ ├────────────────────────┼───────────────────────────┤ │ "engines": { │ "engines": { │ │ "node": ">= 14.18.0" │ "node": ">= 14.18" │ │ } │ } │ └────────────────────────┴───────────────────────────┘ ... Your “engines” field exactly matches your dependency graph’s requirements! ``` --- CHANGELOG.md | 1 + package-lock.json | 3 +++ package.json | 3 +++ 3 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f45172c..c5b8311 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## Head - Removed: Prettier 2 support. +- Removed: support for older Node.js versions than `14.18.0`. - Changed: package type to pure ESM. ## 2.0.0 diff --git a/package-lock.json b/package-lock.json index dc7c291..135400b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,6 +20,9 @@ "npm-run-all": "^4.1.5", "prettier": "^3.0.0" }, + "engines": { + "node": ">= 14.18" + }, "peerDependencies": { "prettier": ">=3.0.0" } diff --git a/package.json b/package.json index fb60101..728407c 100644 --- a/package.json +++ b/package.json @@ -47,6 +47,9 @@ "peerDependencies": { "prettier": ">=3.0.0" }, + "engines": { + "node": ">=14.18.0" + }, "publishConfig": { "access": "public" }