Skip to content

Commit 0043056

Browse files
authored
Exclude features with version_added: preview (microsoft#1142)
See mdn/browser-compat-data#12344 for the reasoning.
1 parent 37ef979 commit 0043056

File tree

5 files changed

+3
-10
lines changed

5 files changed

+3
-10
lines changed

baselines/dom.generated.d.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5591,7 +5591,6 @@ interface GlobalEventHandlers {
55915591
* @param ev The event.
55925592
*/
55935593
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5594-
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
55955594
/**
55965595
* Occurs when the seek operation ends.
55975596
* @param ev The event.
@@ -8511,7 +8510,6 @@ interface IDBTransactionEventMap {
85118510
interface IDBTransaction extends EventTarget {
85128511
/** Returns the transaction's connection. */
85138512
readonly db: IDBDatabase;
8514-
readonly durability: IDBTransactionDurability;
85158513
/** If the transaction was aborted, returns the error (a DOMException) providing the reason. */
85168514
readonly error: DOMException | null;
85178515
/** Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. */
@@ -17341,7 +17339,6 @@ declare var onresize: ((this: Window, ev: UIEvent) => any) | null;
1734117339
* @param ev The event.
1734217340
*/
1734317341
declare var onscroll: ((this: Window, ev: Event) => any) | null;
17344-
declare var onsecuritypolicyviolation: ((this: Window, ev: SecurityPolicyViolationEvent) => any) | null;
1734517342
/**
1734617343
* Occurs when the seek operation ends.
1734717344
* @param ev The event.
@@ -17556,7 +17553,6 @@ type GamepadMappingType = "" | "standard" | "xr-standard";
1755617553
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
1755717554
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
1755817555
type IDBRequestReadyState = "done" | "pending";
17559-
type IDBTransactionDurability = "default" | "relaxed" | "strict";
1756017556
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
1756117557
type ImageOrientation = "flipY" | "none";
1756217558
type ImageSmoothingQuality = "high" | "low" | "medium";

baselines/serviceworker.generated.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1899,7 +1899,6 @@ interface IDBTransactionEventMap {
18991899
interface IDBTransaction extends EventTarget {
19001900
/** Returns the transaction's connection. */
19011901
readonly db: IDBDatabase;
1902-
readonly durability: IDBTransactionDurability;
19031902
/** If the transaction was aborted, returns the error (a DOMException) providing the reason. */
19041903
readonly error: DOMException | null;
19051904
/** Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. */
@@ -5392,7 +5391,6 @@ type FrameType = "auxiliary" | "nested" | "none" | "top-level";
53925391
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
53935392
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
53945393
type IDBRequestReadyState = "done" | "pending";
5395-
type IDBTransactionDurability = "default" | "relaxed" | "strict";
53965394
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
53975395
type ImageOrientation = "flipY" | "none";
53985396
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";

baselines/sharedworker.generated.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1819,7 +1819,6 @@ interface IDBTransactionEventMap {
18191819
interface IDBTransaction extends EventTarget {
18201820
/** Returns the transaction's connection. */
18211821
readonly db: IDBDatabase;
1822-
readonly durability: IDBTransactionDurability;
18231822
/** If the transaction was aborted, returns the error (a DOMException) providing the reason. */
18241823
readonly error: DOMException | null;
18251824
/** Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. */
@@ -5413,7 +5412,6 @@ type FontFaceSetLoadStatus = "loaded" | "loading";
54135412
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
54145413
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
54155414
type IDBRequestReadyState = "done" | "pending";
5416-
type IDBTransactionDurability = "default" | "relaxed" | "strict";
54175415
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
54185416
type ImageOrientation = "flipY" | "none";
54195417
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";

baselines/webworker.generated.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1951,7 +1951,6 @@ interface IDBTransactionEventMap {
19511951
interface IDBTransaction extends EventTarget {
19521952
/** Returns the transaction's connection. */
19531953
readonly db: IDBDatabase;
1954-
readonly durability: IDBTransactionDurability;
19551954
/** If the transaction was aborted, returns the error (a DOMException) providing the reason. */
19561955
readonly error: DOMException | null;
19571956
/** Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. */
@@ -5639,7 +5638,6 @@ type FrameType = "auxiliary" | "nested" | "none" | "top-level";
56395638
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
56405639
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
56415640
type IDBRequestReadyState = "done" | "pending";
5642-
type IDBTransactionDurability = "default" | "relaxed" | "strict";
56435641
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
56445642
type ImageOrientation = "flipY" | "none";
56455643
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";

src/build/bcd/stable.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ export function hasStableImplementation(
1515
}
1616
return (
1717
!!latest.version_added &&
18+
// "preview" means BCD has no idea about whether it will ride the train
19+
// https://github.com/mdn/browser-compat-data/issues/12344
20+
latest.version_added !== "preview" &&
1821
!latest.version_removed &&
1922
!latest.flags &&
2023
latest.prefix === prefix &&

0 commit comments

Comments
 (0)