From 76b1a4ac6414c7d202aeeddd138d263d1a44445f Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sat, 17 Jun 2023 18:43:27 -0700 Subject: [PATCH] tools: prepare tools/doc for to-vfile 8.0.0 toVFile.readSync() is removed in favor of readSync(). PR-URL: https://github.com/nodejs/node/pull/48485 Reviewed-By: Rich Trott Reviewed-By: Moshe Atlow --- tools/doc/addon-verify.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/doc/addon-verify.mjs b/tools/doc/addon-verify.mjs index 8760d0c206fea3..999fcc1c553ada 100644 --- a/tools/doc/addon-verify.mjs +++ b/tools/doc/addon-verify.mjs @@ -8,14 +8,14 @@ import { mkdir, writeFile } from 'fs/promises'; import gfm from 'remark-gfm'; import remarkParse from 'remark-parse'; -import { toVFile } from 'to-vfile'; +import { readSync } from 'to-vfile'; import { unified } from 'unified'; const rootDir = new URL('../../', import.meta.url); const doc = new URL('./doc/api/addons.md', rootDir); const verifyDir = new URL('./test/addons/', rootDir); -const file = toVFile.readSync(doc, 'utf8'); +const file = readSync(doc, 'utf8'); const tree = unified().use(remarkParse).use(gfm).parse(file); const addons = {}; let id = 0;