Skip to content

Commit

Permalink
Chore: Use new utils-compat-data package
Browse files Browse the repository at this point in the history
  • Loading branch information
molant committed Oct 12, 2019
1 parent e766cde commit 28ee784
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 13 deletions.
4 changes: 2 additions & 2 deletions packages/hint-compat-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
"timeout": "1m"
},
"dependencies": {
"@hint/utils": "^5.0.2"
"@hint/utils": "^5.0.2",
"@hint/utils-compat-data": "^1.0.0"
},
"description": "hint to validate if the HTML, CSS, and JavaScript APIs of the project are deprecated or not broadly supported",
"devDependencies": {
"@hint/parser-css": "^3.0.12",
"@hint/utils": "^5.0.2",
"@hint/utils-tests-helpers": "^5.0.10",
"@types/debug": "^4.1.5",
"@types/node": "^12.7.5",
Expand Down
3 changes: 1 addition & 2 deletions packages/hint-compat-api/src/css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import { vendor, AtRule, Rule, Declaration, ChildNode, ContainerBase } from 'pos
import { HintContext } from 'hint/dist/src/lib/hint-context';
import { IHint, ProblemLocation } from 'hint/dist/src/lib/types';
import { StyleEvents } from '@hint/parser-css/dist/src/types';
import { getUnsupportedDetails } from '@hint/utils/dist/src/compat';
import { UnsupportedBrowsers } from '@hint/utils/dist/src/compat/browsers';
import { getUnsupportedDetails, UnsupportedBrowsers } from '@hint/utils-compat-data';
import { getCSSCodeSnippet } from '@hint/utils/dist/src/report';

import { formatAlternatives } from './utils/alternatives';
Expand Down
2 changes: 1 addition & 1 deletion packages/hint-compat-api/src/html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import { HintContext } from 'hint/dist/src/lib/hint-context';
import { IHint } from 'hint/dist/src/lib/types';
import { HTMLAttribute, HTMLElement } from '@hint/utils';
import { getUnsupportedDetails, UnsupportedBrowsers } from '@hint/utils/dist/src/compat';
import { getUnsupportedDetails, UnsupportedBrowsers } from '@hint/utils-compat-data';

import { filterBrowsers, joinBrowsers } from './utils/browsers';
import { resolveIgnore } from './utils/ignore';
Expand Down
2 changes: 1 addition & 1 deletion packages/hint-compat-api/src/utils/alternatives.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AlternativeDetails, UnsupportedBrowsers } from '@hint/utils/dist/src/compat/browsers';
import { AlternativeDetails, UnsupportedBrowsers } from '@hint/utils-compat-data';

import { getMessage } from '../i18n.import';

Expand Down
3 changes: 1 addition & 2 deletions packages/hint-compat-api/src/utils/browsers.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { UnsupportedBrowsers } from '@hint/utils/dist/src/compat';
import { getFriendlyName } from '@hint/utils/dist/src/compat/browsers';
import { getFriendlyName, UnsupportedBrowsers } from '@hint/utils-compat-data';

/**
* Apply temporary filters to the list of target browsers to reduce
Expand Down
2 changes: 1 addition & 1 deletion packages/hint-compat-api/src/utils/filter-supports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import difference = require('lodash/difference');
import intersection = require('lodash/intersection');
import union = require('lodash/union');

import { getSupported } from '@hint/utils/dist/src/compat/support';
import { getSupported } from '@hint/utils-compat-data';

import { parseSupports, Declaration, DeclarationGroup } from './parse-supports';

Expand Down
3 changes: 2 additions & 1 deletion packages/hint-disown-opener/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"timeout": "1m"
},
"dependencies": {
"@hint/utils": "^5.0.2"
"@hint/utils": "^5.0.2",
"@hint/utils-compat-data": "^1.0.0"
},
"description": "hint that that checks if external links disown the opener",
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/hint-disown-opener/src/hint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import { URL } from 'url';

import { debug as d } from '@hint/utils/dist/src/debug';
import { isSupported } from '@hint/utils/dist/src/compat';
import { isSupported } from '@hint/utils-compat-data';
import { isRegularProtocol } from '@hint/utils/dist/src/network/is-regular-protocol';
import { HTMLElement } from '@hint/utils/dist/src/dom/html';
import { cutString } from '@hint/utils/dist/src/misc/cut-string';
Expand Down
1 change: 1 addition & 0 deletions packages/hint-manifest-is-valid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
},
"dependencies": {
"@hint/utils": "^5.0.2",
"@hint/utils-compat-data": "^1.0.0",
"bcp47": "^1.1.2",
"color-string": "^1.5.3"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/hint-manifest-is-valid/src/hint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
IHint,
IJSONLocationFunction
} from 'hint/dist/src/lib/types';
import { isSupported } from '@hint/utils/dist/src/compat';
import { isSupported } from '@hint/utils-compat-data';
import { normalizeString } from '@hint/utils/dist/src/misc/normalize-string';
import {
Manifest,
Expand Down
1 change: 1 addition & 0 deletions packages/hint-meta-theme-color/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
},
"dependencies": {
"@hint/utils": "^5.0.2",
"@hint/utils-compat-data": "^1.0.0",
"color-string": "^1.5.3"
},
"description": "hint for best practices related to the 'theme-color' meta tag",
Expand Down
3 changes: 2 additions & 1 deletion packages/hint-meta-theme-color/src/hint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ import {
IHint,
TraverseEnd
} from 'hint';
import { HTMLElement, isSupported, misc } from '@hint/utils';
import { HTMLElement, misc } from '@hint/utils';
import { isSupported } from '@hint/utils-compat-data';

import meta from './meta';
import { getMessage } from './i18n.import';
Expand Down

0 comments on commit 28ee784

Please sign in to comment.