diff --git a/package.json b/package.json index 3f51c1b1c1..712dcfd90f 100644 --- a/package.json +++ b/package.json @@ -138,7 +138,6 @@ "eslint-plugin-unicorn": "^56.0.0", "jsdom": "^25.0.0", "minimist": "^1.2.6", - "mkdirp": "^3.0.1", "mockdate": "^3.0.2", "nyc": "^17.0.0", "openapi-examples-validator": "^5.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 501e70f93e..405e902be8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -425,9 +425,6 @@ importers: minimist: specifier: ^1.2.6 version: 1.2.8 - mkdirp: - specifier: ^3.0.1 - version: 3.0.1 mockdate: specifier: ^3.0.2 version: 3.0.5 @@ -6247,11 +6244,6 @@ packages: engines: {node: '>=10'} hasBin: true - mkdirp@3.0.1: - resolution: {integrity: sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==} - engines: {node: '>=10'} - hasBin: true - mockdate@3.0.5: resolution: {integrity: sha512-iniQP4rj1FhBdBYS/+eQv7j1tadJ9lJtdzgOpvsOHng/GbcDh2Fhdeq+ZRldrPYdXvCyfFUmFeEwEGXZB5I/AQ==} @@ -16134,8 +16126,6 @@ snapshots: mkdirp@1.0.4: {} - mkdirp@3.0.1: {} - mockdate@3.0.5: {} mouse-change@1.4.0: diff --git a/tools/screenshots/message-screenshot.js b/tools/screenshots/message-screenshot.js index 7b2837ad1d..db964b234d 100644 --- a/tools/screenshots/message-screenshot.js +++ b/tools/screenshots/message-screenshot.js @@ -2,11 +2,11 @@ /* global $, CSS */ +const fs = require("node:fs"); const path = require("node:path"); const {program} = require("commander"); require("css.escape"); -const mkdirp = require("mkdirp"); const puppeteer = require("puppeteer"); const options = {}; @@ -76,7 +76,7 @@ async function run() { clip.y += 5; const imagePath = options.imagePath; const imageDir = path.dirname(imagePath); - mkdirp.sync(imageDir); + await fs.promises.mkdir(imageDir, {recursive: true}); await page.screenshot({path: imagePath, clip}); } catch (error) { console.log(error); diff --git a/tools/screenshots/thread-screenshot.js b/tools/screenshots/thread-screenshot.js index 19a53fd758..b7bc9f8a4d 100644 --- a/tools/screenshots/thread-screenshot.js +++ b/tools/screenshots/thread-screenshot.js @@ -2,11 +2,11 @@ /* global $, CSS */ +const fs = require("node:fs"); const path = require("node:path"); const {program} = require("commander"); require("css.escape"); -const mkdirp = require("mkdirp"); const puppeteer = require("puppeteer"); const options = {}; @@ -93,7 +93,7 @@ async function run() { clip.height -= 8; const imagePath = options.imagePath; const imageDir = path.dirname(imagePath); - mkdirp.sync(imageDir); + await fs.promises.mkdir(imageDir, {recursive: true}); await page.screenshot({path: imagePath, clip}); } catch (error) { console.log(error); diff --git a/version.py b/version.py index e28f699596..c063fc8fd8 100644 --- a/version.py +++ b/version.py @@ -49,4 +49,4 @@ API_FEATURE_LEVEL = 319 # Last bumped for message-link class # historical commits sharing the same major version, in which case a # minor version bump suffices. -PROVISION_VERSION = (299, 1) # bumped 2024-11-08 to patch svgicons2svgfont +PROVISION_VERSION = (300, 0) # bumped 2024-11-10 to remove mkdirp