From b2d563dbd78b41a68cf12f848214875907f7a468 Mon Sep 17 00:00:00 2001 From: Saneef Ansari Date: Tue, 31 Jan 2023 12:03:58 +0530 Subject: [PATCH] Bumps to Eleventy Image v3.0.0 - Bump other NPM packages. - Updates tests new rimraf. --- README.md | 2 +- package.json | 24 ++++++++++++------------ tests/ignores.js | 3 +-- tests/jpgs.js | 3 +-- tests/pngs.js | 3 +-- tests/remote.js | 3 +-- 6 files changed, 17 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index dc1b97c..747e850 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Eleventy plugin to replace `` using `` with resized and optimized This plugin is inspired by [eleventy-plugin-local-respimg](https://github.com/chromeos/static-site-scaffold-modules/tree/main/modules/eleventy-plugin-local-respimg) by [Sam Richard](https://twitter.com/Snugug/). -Requires Node 12+ +Requires **Node 14.15+**. ## Features diff --git a/package.json b/package.json index 36d5865..340b3be 100644 --- a/package.json +++ b/package.json @@ -22,22 +22,22 @@ "author": "Saneef Ansari (https://saneef.com/)", "license": "MIT", "dependencies": { - "@11ty/eleventy-img": "^2.0.1", - "cheerio": "^1.0.0-rc.11", + "@11ty/eleventy-img": "^3.0.0", + "cheerio": "^1.0.0-rc.12", "debug": "^4.3.4" }, "devDependencies": { - "ava": "^3.15.0", - "eslint": "^8.16.0", - "eslint-config-prettier": "^8.5.0", - "eslint-config-xo-space": "^0.33.0", - "eslint-plugin-prettier": "^4.0.0", - "husky": "^8.0.1", - "image-size": "^1.0.1", - "lint-staged": "^13.0.0", + "ava": "^5.1.1", + "eslint": "^8.33.0", + "eslint-config-prettier": "^8.6.0", + "eslint-config-xo-space": "^0.34.0", + "eslint-plugin-prettier": "^4.2.1", + "husky": "^8.0.3", + "image-size": "^1.0.2", + "lint-staged": "^13.1.0", "nyc": "^15.1.0", - "prettier": "^2.6.2", - "rimraf": "^3.0.2" + "prettier": "^2.8.3", + "rimraf": "^4.1.2" }, "lint-staged": { "*.js": "eslint --cache --fix", diff --git a/tests/ignores.js b/tests/ignores.js index 8e7e5d3..9bd4816 100644 --- a/tests/ignores.js +++ b/tests/ignores.js @@ -1,7 +1,6 @@ const path = require("path"); const test = require("ava"); -const { promisify } = require("util"); -const rimraf = promisify(require("rimraf")); +const rimraf = require("rimraf"); const img2picture = require("../lib/img2picture.js"); diff --git a/tests/jpgs.js b/tests/jpgs.js index 5e9b6be..c835f4e 100644 --- a/tests/jpgs.js +++ b/tests/jpgs.js @@ -1,7 +1,6 @@ const path = require("path"); const test = require("ava"); -const { promisify } = require("util"); -const rimraf = promisify(require("rimraf")); +const rimraf = require("rimraf"); const imageSize = require("image-size"); const img2picture = require("../lib/img2picture.js"); diff --git a/tests/pngs.js b/tests/pngs.js index 3ba6b9a..a56df1f 100644 --- a/tests/pngs.js +++ b/tests/pngs.js @@ -1,7 +1,6 @@ const path = require("path"); const test = require("ava"); -const { promisify } = require("util"); -const rimraf = promisify(require("rimraf")); +const rimraf = require("rimraf"); const imageSize = require("image-size"); const img2picture = require("../lib/img2picture.js"); diff --git a/tests/remote.js b/tests/remote.js index b047e0f..4a487bc 100644 --- a/tests/remote.js +++ b/tests/remote.js @@ -1,7 +1,6 @@ const path = require("path"); const test = require("ava"); -const { promisify } = require("util"); -const rimraf = promisify(require("rimraf")); +const rimraf = require("rimraf"); const imageSize = require("image-size"); const img2picture = require("../lib/img2picture.js");