Skip to content

Commit ca45db6

Browse files
authored
Fix: Forcing resolution of mdn/browser-compat-data on package.json
There were a couple of version of @mdn/browser-compat-data due to a indirect reference, this PR forces all dependencies to be on the same version. ------ Fix: #5886
1 parent a900be8 commit ca45db6

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@
4444
"json-schema": "^0.4.0",
4545
"node-fetch": "^2.x",
4646
"thenify": "^3.3.1",
47-
"tsconfig-paths": "^4.1.2"
47+
"tsconfig-paths": "^4.1.2",
48+
"@mdn/browser-compat-data": "^5.5.23"
4849
},
4950
"scripts": {
5051
"build": "yarn clean && yarn update:references && node scripts/build-or-test-all.js build",

packages/utils-compat-data/tests/support.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,12 @@ test('Nested property value type query works', (t) => {
138138

139139
test('At-rule query works', (t) => {
140140
const unsupported = getUnsupported(
141-
{ rule: 'supports' },
142-
['edge 12', 'ie 11']
141+
{ rule: 'scope' },
142+
['edge 117']
143143
);
144144

145145
t.is(unsupported && unsupported.length, 1);
146-
t.is(unsupported && unsupported[0], 'ie 11');
146+
t.is(unsupported && unsupported[0], 'edge 117');
147147
});
148148

149149
test('Selector query works', (t) => {

yarn.lock

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -483,12 +483,7 @@
483483
semver "^7.3.4"
484484
tar "^6.1.0"
485485

486-
"@mdn/browser-compat-data@5.2.17":
487-
version "5.2.17"
488-
resolved "https://registry.yarnpkg.com/@mdn/browser-compat-data/-/browser-compat-data-5.2.17.tgz#2aae9599f17793730af298da0dc5dcfa4a4b8d0f"
489-
integrity sha512-aA+rFHhXmq14GVIcEWNk8OntLEOQFwEZk9ZgG5VcDquz+pQhIjJPXacR+rwL9Z0Elfg909EcRRHC96p06/CNUg==
490-
491-
"@mdn/browser-compat-data@^5.5.23":
486+
"@mdn/browser-compat-data@5.2.17", "@mdn/browser-compat-data@^5.5.23":
492487
version "5.5.23"
493488
resolved "https://registry.yarnpkg.com/@mdn/browser-compat-data/-/browser-compat-data-5.5.23.tgz#14b8f80118b5ab5e5cb2e40f07e0e70b23bf107a"
494489
integrity sha512-nIy38qL3nfNcGOz5J2BJQpBXa7vM9QO1+wbyvqqS89lgNTWE8Q10whLsmE0sTVBooXiEaRc4fVME5IXjCYiHAw==

0 commit comments

Comments
 (0)