From 75682c2fa7a8900ba706c3c9817d6feb0bc308f6 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Thu, 23 Jun 2022 14:46:20 +0200 Subject: [PATCH] Require Node.js 14 Closes #22 --- .github/workflows/main.yml | 6 +++--- package.json | 16 ++++++++-------- readme.md | 4 ++-- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3b8aa86..d50ada6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,12 +10,12 @@ jobs: fail-fast: false matrix: node-version: + - 18 - 16 - 14 - - 12 steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - run: npm install diff --git a/package.json b/package.json index c7ef8af..667bb86 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "type": "module", "exports": "./index.js", "engines": { - "node": ">=12.20" + "node": ">=14.16" }, "scripts": { "test": "xo && ava && tsd" @@ -33,14 +33,14 @@ "module" ], "dependencies": { - "package-json": "^7.0.0" + "package-json": "^8.1.0" }, "devDependencies": { - "ava": "^3.15.0", - "semver": "^7.3.5", - "semver-regex": "^4.0.0", - "tsd": "^0.17.0", - "typescript": "^4.3.5", - "xo": "^0.42.0" + "ava": "^4.3.0", + "semver": "^7.3.7", + "semver-regex": "^4.0.5", + "tsd": "^0.21.0", + "typescript": "^4.7.4", + "xo": "^0.50.0" } } diff --git a/readme.md b/readme.md index f8036f7..c937e3d 100644 --- a/readme.md +++ b/readme.md @@ -6,8 +6,8 @@ Fetches the version directly from the registry instead of depending on the massi ## Install -``` -$ npm install latest-version +```sh +npm install latest-version ``` ## Usage