Skip to content

Commit 98633fa

Browse files
committed
update version check
1 parent ccb1eee commit 98633fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/update_bcd_version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import subprocess
1414
from pathlib import Path
1515

16-
CDN_URL = "https://unpkg.com/@mdn/browser-compat-data/data.json"
16+
CDN_URL = "https://unpkg.com/web-features/package.json"
1717
VERSION_FILE = "bcd_version"
1818

1919
# We are going to respect semantic versioning and only
@@ -30,7 +30,7 @@ def validateNotMajor(prevVersion, nextVersion):
3030

3131
with urllib.request.urlopen(CDN_URL) as raw:
3232
data = json.load(raw)
33-
version = data["__meta"]["version"]
33+
version = data["version"]
3434

3535
with open(VERSION_FILE, "r+") as file:
3636
if (validateNotMajor(file.read(), version)):

0 commit comments

Comments
 (0)