Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions inputfiles/deprecatedMessage.json

This file was deleted.

4 changes: 4 additions & 0 deletions inputfiles/patches/deprecated.kdl
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
interface PerformanceTiming deprecated="This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead."
interface PerformanceNavigation deprecated="This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead."
interface AudioProcessingEvent deprecated="As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and is soon to be replaced by AudioWorklet."
interface ScriptProcessorNode deprecated="As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and was replaced by AudioWorklet (see AudioWorkletNode)."
20 changes: 0 additions & 20 deletions src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ async function emitDom() {
const addedItems = await readInputJSON("addedTypes.jsonc");
const patches = await readPatches();
const comments = await readInputJSON("comments.json");
const deprecatedInfo = await readInputJSON("deprecatedMessage.json");
const documentationFromMDN = await generateDescriptions();
const removedItems = await readInputJSON("removedTypes.jsonc");

Expand Down Expand Up @@ -152,24 +151,6 @@ async function emitDom() {
return idl;
}

function mergeDeprecatedMessage(
idl: Browser.WebIdl,
descriptions: Record<string, string>,
) {
const namespaces = arrayToMap(
idl.namespaces!,
(i) => i.name,
(i) => i,
);
for (const [key, value] of Object.entries(descriptions)) {
const target = idl.interfaces!.interface[key] || namespaces[key];
if (target) {
target.deprecated = value;
}
}
return idl;
}

/// Load the input file
let webidl: Browser.WebIdl = {
events: await getInterfaceToEventMap(),
Expand Down Expand Up @@ -242,7 +223,6 @@ async function emitDom() {
webidl = merge(webidl, overriddenItems);
webidl = merge(webidl, patches);
webidl = merge(webidl, comments);
webidl = mergeDeprecatedMessage(webidl, deprecatedInfo);
for (const name in webidl.interfaces!.interface) {
const i = webidl.interfaces!.interface[name];
if (i.overrideExposed) {
Expand Down