Skip to content

Commit

Permalink
Bump Reffy to v17.0.1 and adjust code accordingly (#1299)
Browse files Browse the repository at this point in the history
  • Loading branch information
tidoust committed Jul 25, 2024
1 parent 5b4a98d commit 1583463
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 18 deletions.
15 changes: 8 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 1 addition & 2 deletions test/events/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
4 changes: 2 additions & 2 deletions test/schemas.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
3 changes: 1 addition & 2 deletions tools/amend-event-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -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': [
Expand Down
3 changes: 1 addition & 2 deletions tools/drop-css-property-duplicates.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);


Expand Down
3 changes: 1 addition & 2 deletions tools/prepare-curated.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';


/**
Expand Down

0 comments on commit 1583463

Please sign in to comment.