From fee2a6f08717db7b13bcc633cf34cbe1babd0eb7 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Sat, 23 Sep 2023 17:05:29 +0200 Subject: [PATCH] Update `@types/mdast`, utilities, etc --- lib/get-contributors-from-package.js | 4 ++-- package.json | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/get-contributors-from-package.js b/lib/get-contributors-from-package.js index 0ef3001..926f897 100644 --- a/lib/get-contributors-from-package.js +++ b/lib/get-contributors-from-package.js @@ -6,7 +6,7 @@ */ import path from 'node:path' -import {findUpOne} from 'vfile-find-up' +import {findUp} from 'vfile-find-up' import {read} from 'to-vfile' /** @@ -18,7 +18,7 @@ import {read} from 'to-vfile' export async function getContributorsFromPackage(file) { if (file.dirname) { // `dirname` is always set if there is a path: to `.` or a folder. - const packageFile = await findUpOne( + const packageFile = await findUp( 'package.json', path.resolve(file.cwd, file.dirname) ) diff --git a/package.json b/package.json index ff11813..d3ee8f3 100644 --- a/package.json +++ b/package.json @@ -44,16 +44,16 @@ "index.js" ], "dependencies": { - "@types/mdast": "^3.0.0", + "@types/mdast": "^4.0.0", "is-url": "^1.0.0", - "mdast-util-heading-range": "^3.0.0", + "mdast-util-heading-range": "^4.0.0", "parse-author": "^2.0.0", - "to-vfile": "^7.0.0", + "to-vfile": "^8.0.0", "type-fest": "^4.0.0", - "unified": "^10.0.0", - "unist-builder": "^3.0.0", - "vfile": "^5.0.0", - "vfile-find-up": "^6.0.0" + "unified": "^11.0.0", + "unist-builder": "^4.0.0", + "vfile": "^6.0.0", + "vfile-find-up": "^7.0.0" }, "devDependencies": { "@types/is-url": "^1.0.0", @@ -61,9 +61,9 @@ "@types/parse-author": "^2.0.0", "c8": "^8.0.0", "prettier": "^3.0.0", - "remark": "^14.0.0", + "remark": "^15.0.0", "remark-cli": "^11.0.0", - "remark-gfm": "^3.0.0", + "remark-gfm": "^4.0.0", "remark-preset-wooorm": "^9.0.0", "type-coverage": "^2.0.0", "typescript": "^5.0.0",