Skip to content

Commit 749c2c5

Browse files
committed
Revert "update version check"
This reverts commit 98633fa.
1 parent 6e764ad commit 749c2c5

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
@@ -10,7 +10,7 @@
1010

1111
import urllib.request, json
1212

13-
CDN_URL = "https://unpkg.com/web-features/package.json"
13+
CDN_URL = "https://unpkg.com/@mdn/browser-compat-data/data.json"
1414
VERSION_FILE = "bcd_version"
1515

1616
# We are going to respect semantic versioning and only
@@ -27,7 +27,7 @@ def validateNotMajor(prevVersion, nextVersion):
2727

2828
with urllib.request.urlopen(CDN_URL) as raw:
2929
data = json.load(raw)
30-
version = data["version"]
30+
version = data["__meta"]["version"]
3131

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

0 commit comments

Comments
 (0)