Skip to content

Commit 27ce299

Browse files
committed
Present deprecated type aliases in api reports, nicely
1 parent eb0fd94 commit 27ce299

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

api-reports/2_12.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2090,10 +2090,10 @@ html[SO] type UList = raw.HTMLUListElement
20902090
html[SO] type Unknown = raw.HTMLUnknownElement
20912091
html[SO] type Video = raw.HTMLVideoElement
20922092
html[SO] def Media = raw.HTMLMediaElement
2093-
idb[SO] @deprecated( "Removed. This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible. See https://developer.mozilla.org/en-US/docs/Web/API/IDBEnvironment", "1.2.0") type Environment = raw.IDBEnvironment
20942093
idb[SO] type Cursor = raw.IDBCursor
20952094
idb[SO] type CursorWithValue = raw.IDBCursorWithValue
20962095
idb[SO] type Database = raw.IDBDatabase
2096+
idb[SO] type Environment = raw.IDBEnvironment (@deprecated in 1.2.0)
20972097
idb[SO] type Factory = raw.IDBFactory
20982098
idb[SO] type Index = raw.IDBIndex
20992099
idb[SO] type KeyRange = raw.IDBKeyRange

api-reports/2_13.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2090,10 +2090,10 @@ html[SO] type UList = raw.HTMLUListElement
20902090
html[SO] type Unknown = raw.HTMLUnknownElement
20912091
html[SO] type Video = raw.HTMLVideoElement
20922092
html[SO] def Media = raw.HTMLMediaElement
2093-
idb[SO] @deprecated( "Removed. This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible. See https://developer.mozilla.org/en-US/docs/Web/API/IDBEnvironment", "1.2.0") type Environment = raw.IDBEnvironment
20942093
idb[SO] type Cursor = raw.IDBCursor
20952094
idb[SO] type CursorWithValue = raw.IDBCursorWithValue
20962095
idb[SO] type Database = raw.IDBDatabase
2096+
idb[SO] type Environment = raw.IDBEnvironment (@deprecated in 1.2.0)
20972097
idb[SO] type Factory = raw.IDBFactory
20982098
idb[SO] type Index = raw.IDBIndex
20992099
idb[SO] type KeyRange = raw.IDBKeyRange

scalafix/src/main/scala/org/scalajs/dom/scalafix/GenerateApiReport.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ class GenerateApiReport extends SemanticRule("GenerateApiReport") {
7676
case Decl.Def(mods, name, tparams, paramss, tpe) => t2 = Decl.Def(inspectAnnotations(mods), name, tparams, paramss, tpe)
7777
case Decl.Val(mods, pats, tpe) => t2 = Decl.Val(inspectAnnotations(mods), pats, tpe)
7878
case Decl.Var(mods, pats, tpe) => t2 = Decl.Var(inspectAnnotations(mods), pats, tpe)
79+
case Defn.Type(mods, names, params, tpe) => t2 = Defn.Type(inspectAnnotations(mods), names, params, tpe)
7980
case _ =>
8081
}
8182

0 commit comments

Comments
 (0)