diff --git a/package-lock.json b/package-lock.json index e949fea8c38b..92dd19fcf1e1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,7 +20,7 @@ "css-tree": "2.3.1", "flags": "0.1.3", "mocha": "10.7.0", - "reffy": "16.1.2", + "reffy": "17.0.1", "rimraf": "5.0.7", "strudy": "^2.2.0", "webidl2": "24.4.1" @@ -2474,10 +2474,11 @@ } }, "node_modules/reffy": { - "version": "16.1.2", - "resolved": "https://registry.npmjs.org/reffy/-/reffy-16.1.2.tgz", - "integrity": "sha512-yiLpfuI8Ft6TZoL5dXAgWk2qdSc1SyKXyod1+C7zd50EvQgALRp0y539mL++fH2RrfiyRkvjKHAwCfxuMKsp3A==", + "version": "17.0.1", + "resolved": "https://registry.npmjs.org/reffy/-/reffy-17.0.1.tgz", + "integrity": "sha512-rhmfe4WKBM3wklMp3vGMKdYtfJfK7edjzJ+WevNGFapxxhj0STWL2PX+jO3gJmY9G63bPqidb+wPsHI8OXKTRw==", "dev": true, + "license": "MIT", "dependencies": { "ajv": "8.17.1", "ajv-formats": "3.0.1", @@ -5426,9 +5427,9 @@ } }, "reffy": { - "version": "16.1.2", - "resolved": "https://registry.npmjs.org/reffy/-/reffy-16.1.2.tgz", - "integrity": "sha512-yiLpfuI8Ft6TZoL5dXAgWk2qdSc1SyKXyod1+C7zd50EvQgALRp0y539mL++fH2RrfiyRkvjKHAwCfxuMKsp3A==", + "version": "17.0.1", + "resolved": "https://registry.npmjs.org/reffy/-/reffy-17.0.1.tgz", + "integrity": "sha512-rhmfe4WKBM3wklMp3vGMKdYtfJfK7edjzJ+WevNGFapxxhj0STWL2PX+jO3gJmY9G63bPqidb+wPsHI8OXKTRw==", "dev": true, "requires": { "ajv": "8.17.1", diff --git a/package.json b/package.json index 583b88a6b200..5b1831e45373 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "css-tree": "2.3.1", "flags": "0.1.3", "mocha": "10.7.0", - "reffy": "16.1.2", + "reffy": "17.0.1", "rimraf": "5.0.7", "strudy": "^2.2.0", "webidl2": "24.4.1" diff --git a/test/events/all.js b/test/events/all.js index 5f97b914334b..436143ba059d 100644 --- a/test/events/all.js +++ b/test/events/all.js @@ -12,8 +12,7 @@ import path from 'node:path'; import { fileURLToPath } from 'node:url'; import events from '@webref/events'; import idl from '@webref/idl'; -import reffy from 'reffy'; -const getInterfaceTreeInfo = reffy.getInterfaceTreeInfo; +import { getInterfaceTreeInfo } from 'reffy'; const scriptPath = path.dirname(fileURLToPath(import.meta.url)); const curatedFolder = path.join(scriptPath, '..', '..', 'curated'); diff --git a/test/schemas.js b/test/schemas.js index f5d6ef4006c8..8b018fb3164d 100644 --- a/test/schemas.js +++ b/test/schemas.js @@ -8,14 +8,14 @@ import { strict as assert } from 'node:assert'; import fs from 'node:fs'; import path from 'node:path'; import { fileURLToPath } from 'node:url'; -import reffy from 'reffy'; +import { getSchemaValidationFunction } from 'reffy'; import { loadJSON } from '../tools/utils.js'; const scriptPath = path.dirname(fileURLToPath(import.meta.url)); const curatedFolder = path.join(scriptPath, '..', 'curated'); const files = fs.readdirSync(curatedFolder); for (const file of files) { - const validate = reffy.getSchemaValidationFunction(file); + const validate = await getSchemaValidationFunction(file); if (file.endsWith('.json')) { describe(`The ${file} file`, function () { it('contains valid data', async function () { diff --git a/tools/amend-event-data.js b/tools/amend-event-data.js index 9dee18d71c9c..eae41d4751bf 100644 --- a/tools/amend-event-data.js +++ b/tools/amend-event-data.js @@ -14,8 +14,7 @@ import fs from 'node:fs/promises'; import path from 'node:path'; import { fileURLToPath } from 'node:url'; import { loadJSON } from './utils.js'; -import reffy from 'reffy'; -const expandCrawlResult = reffy.expandCrawlResult; +import { expandCrawlResult } from 'reffy'; const patches = { 'IndexedDB-3': [ diff --git a/tools/drop-css-property-duplicates.js b/tools/drop-css-property-duplicates.js index 1548f0318c70..5aa9e277c7f0 100644 --- a/tools/drop-css-property-duplicates.js +++ b/tools/drop-css-property-duplicates.js @@ -16,8 +16,7 @@ import util from 'node:util'; import { fileURLToPath } from 'node:url'; import { execFile as execFileCb } from 'node:child_process'; import { loadJSON } from './utils.js'; -import reffy from 'reffy'; -const expandCrawlResult = reffy.expandCrawlResult; +import { expandCrawlResult } from 'reffy'; const execFile = util.promisify(execFileCb); diff --git a/tools/prepare-curated.js b/tools/prepare-curated.js index cc14398e263a..d2cb00bdb77b 100644 --- a/tools/prepare-curated.js +++ b/tools/prepare-curated.js @@ -27,8 +27,7 @@ import { import { applyPatches } from './apply-patches.js'; import { dropCSSPropertyDuplicates } from './drop-css-property-duplicates.js'; import { curateEvents } from './amend-event-data.js'; -import reffy from 'reffy'; -const crawlSpecs = reffy.crawlSpecs; +import { crawlSpecs } from 'reffy'; /**