Skip to content

Commit e0d044a

Browse files
committed
(core:deps-dev): bump web-specs from 2.79.0 to 3.0.0
In the new major version of web-specs, spec entries are no longer guaranteed to have a `nightly` property. This change was made to include specs that do not have a public URL, such as ISO specs. The logic that processed web-specs needed to be adjusted accordingly.
1 parent 9024655 commit e0d044a

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

Diff for: build/web-specs.ts

+8-7
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ interface WebSpec {
1010
currentSpecification: string;
1111
title: string;
1212
shortTitle: string;
13-
nightlyUrl: string;
13+
nightlyUrl?: string;
1414
};
15-
nightly: {
15+
nightly?: {
1616
url: string;
1717
status: string;
1818
sourcePath: string;
@@ -49,10 +49,11 @@ export async function getWebSpec(url: string): Promise<WebSpec | undefined> {
4949
return specs.find(
5050
(spec) =>
5151
url.startsWith(spec.url) ||
52-
url.startsWith(spec.nightly.url) ||
53-
spec.nightly.alternateUrls.some((s) => url.startsWith(s)) ||
54-
// When grabbing series nightly, make sure we're grabbing the latest spec version
55-
(spec.shortname === spec.series.currentSpecification &&
56-
url.startsWith(spec.series.nightlyUrl))
52+
(spec.nightly &&
53+
(url.startsWith(spec.nightly.url) ||
54+
spec.nightly.alternateUrls.some((s) => url.startsWith(s)) ||
55+
// When grabbing series nightly, make sure we're grabbing the latest spec version
56+
(spec.shortname === spec.series.currentSpecification &&
57+
url.startsWith(spec.series.nightlyUrl))))
5758
);
5859
}

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
"unist-builder": "^4.0.0",
147147
"unist-util-visit": "^5.0.0",
148148
"web-features": "^0.5.1",
149-
"web-specs": "^2.79.0"
149+
"web-specs": "^3.0.0"
150150
},
151151
"devDependencies": {
152152
"@babel/core": "^7.23.9",

Diff for: yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -15446,10 +15446,10 @@ web-namespaces@^2.0.0:
1544615446
resolved "https://registry.yarnpkg.com/web-namespaces/-/web-namespaces-2.0.1.tgz#1010ff7c650eccb2592cebeeaf9a1b253fd40692"
1544715447
integrity sha512-bKr1DkiNa2krS7qxNtdrtHAmzuYGFQLiQ13TsorsdT6ULTkPLKuu5+GsFpDlg6JFjUTwX2DyhMPG2be8uPrqsQ==
1544815448

15449-
web-specs@^2.79.0:
15450-
version "2.79.0"
15451-
resolved "https://registry.yarnpkg.com/web-specs/-/web-specs-2.79.0.tgz#c6db408943387cc1a95608ba77a0fae51f131f25"
15452-
integrity sha512-364IxMgYLUjWDeTPrfNtO/+zZxIJ2ZzV4STzbOdVn6DANptLBo3aNTEJ0SS2Qe2P331apSfnU0b4K6wxl6cuew==
15449+
web-specs@^3.0.0:
15450+
version "3.0.0"
15451+
resolved "https://registry.yarnpkg.com/web-specs/-/web-specs-3.0.0.tgz#b564c3f1e3f935f78c2a055e6390f48662fee8f8"
15452+
integrity sha512-iFIqX1Zu13dJ9slgPlnxs0ndb1v/oB3WilmTAQRIm/RxyuAdjghoxWWnG6ypYOKdr+zv9lX+q/p9JLMZ1gi1GQ==
1545315453

1545415454
1545515455
version "4.0.0-beta.3"

0 commit comments

Comments
 (0)