Skip to content

Commit fec80ff

Browse files
committed
Whoops, counts should be Doubles cos 2^32 is 2^64 signed
1 parent 25e7783 commit fec80ff

File tree

3 files changed

+28
-28
lines changed

3 files changed

+28
-28
lines changed

api-reports/2_12.txt

+12-12
Original file line numberDiff line numberDiff line change
@@ -13535,7 +13535,7 @@ IDBCreateIndexOptions[JT] val multiEntry: js.UndefOr[Boolean]
1353513535
IDBCreateIndexOptions[JT] val unique: js.UndefOr[Boolean]
1353613536
IDBCreateObjectStoreOptions[JT] val autoIncrement: js.UndefOr[Boolean]
1353713537
IDBCreateObjectStoreOptions[JT] val keyPath: IDBKeyPath
13538-
IDBCursor[JC] def advance(count: Int): Unit
13538+
IDBCursor[JC] def advance(count: Double): Unit
1353913539
IDBCursor[JC] def continue(key: IDBKey?): Unit
1354013540
IDBCursor[JC] def delete(): IDBRequest[S, Unit]
1354113541
IDBCursor[JC] def direction: IDBCursorDirection
@@ -13548,13 +13548,13 @@ IDBCursorDirection[SO] def next: IDBCursorDirection
1354813548
IDBCursorDirection[SO] def nextunique: IDBCursorDirection
1354913549
IDBCursorDirection[SO] def prev: IDBCursorDirection
1355013550
IDBCursorDirection[SO] def prevunique: IDBCursorDirection
13551-
IDBCursorReadOnly[JC] def advance(count: Int): Unit
13551+
IDBCursorReadOnly[JC] def advance(count: Double): Unit
1355213552
IDBCursorReadOnly[JC] def continue(key: IDBKey?): Unit
1355313553
IDBCursorReadOnly[JC] def direction: IDBCursorDirection
1355413554
IDBCursorReadOnly[JC] def key: IDBKey
1355513555
IDBCursorReadOnly[JC] def primaryKey: IDBKey
1355613556
IDBCursorReadOnly[JC] def source: S
13557-
IDBCursorWithValue[JC] def advance(count: Int): Unit
13557+
IDBCursorWithValue[JC] def advance(count: Double): Unit
1355813558
IDBCursorWithValue[JC] def continue(key: IDBKey?): Unit
1355913559
IDBCursorWithValue[JC] def delete(): IDBRequest[S, Unit]
1356013560
IDBCursorWithValue[JC] def direction: IDBCursorDirection
@@ -13605,10 +13605,10 @@ IDBFactory[JC] def cmp(first: IDBValue, second: IDBValue): Int
1360513605
IDBFactory[JC] def databases(): js.Promise[js.Array[IDBDatabaseInfo]]
1360613606
IDBFactory[JC] def deleteDatabase(name: String): IDBOpenDBRequest[Unit]
1360713607
IDBFactory[JC] def open(name: String, version: Int?): IDBOpenDBRequest[IDBDatabase]
13608-
IDBIndex[JC] def count(query: IDBKey | IDBKeyRange?): IDBRequest[S, Int]
13608+
IDBIndex[JC] def count(query: IDBKey | IDBKeyRange?): IDBRequest[S, Double]
1360913609
IDBIndex[JC] def get(key: IDBKey | IDBKeyRange): IDBRequest[S, IDBValue]
13610-
IDBIndex[JC] def getAll(query: js.UndefOr[IDBKeyRange | IDBKey]?, count: js.UndefOr[Int]?): IDBRequest[S, js.Array[IDBValue]]
13611-
IDBIndex[JC] def getAllKeys(query: js.UndefOr[IDBKeyRange | IDBKey]?, count: js.UndefOr[Int]?): IDBRequest[S, js.Array[IDBKey]]
13610+
IDBIndex[JC] def getAll(query: js.UndefOr[IDBKeyRange | IDBKey]?, count: js.UndefOr[Double]?): IDBRequest[S, js.Array[IDBValue]]
13611+
IDBIndex[JC] def getAllKeys(query: js.UndefOr[IDBKeyRange | IDBKey]?, count: js.UndefOr[Double]?): IDBRequest[S, js.Array[IDBKey]]
1361213612
IDBIndex[JC] def getKey(key: IDBKey): IDBRequest[S, js.UndefOr[IDBKey]]
1361313613
IDBIndex[JC] def keyPath: IDBKeyPath
1361413614
IDBIndex[JC] val multiEntry: Boolean
@@ -13627,13 +13627,13 @@ IDBKeyRange[JO] def only(value: IDBValue): IDBKeyRange
1362713627
IDBKeyRange[JO] def upperBound(bound: IDBKey, open: Boolean?): IDBKeyRange
1362813628
IDBObjectStore[JC] def add(value: IDBValue, key: IDBKey?): IDBRequest[IDBObjectStore, IDBKey]
1362913629
IDBObjectStore[JC] def clear(): IDBRequest[IDBObjectStore, Unit]
13630-
IDBObjectStore[JC] def count(query: IDBKey | IDBKeyRange?): IDBRequest[S, Int]
13630+
IDBObjectStore[JC] def count(query: IDBKey | IDBKeyRange?): IDBRequest[S, Double]
1363113631
IDBObjectStore[JC] def createIndex(name: String, keyPath: IDBKeyPath, optionalParameters: IDBCreateIndexOptions?): IDBIndex
1363213632
IDBObjectStore[JC] def delete(key: IDBKey | IDBKeyRange): IDBRequest[IDBObjectStore, Unit]
1363313633
IDBObjectStore[JC] def deleteIndex(indexName: String): Unit
1363413634
IDBObjectStore[JC] def get(key: IDBKey | IDBKeyRange): IDBRequest[S, IDBValue]
13635-
IDBObjectStore[JC] def getAll(query: js.UndefOr[IDBKeyRange | IDBKey]?, count: js.UndefOr[Int]?): IDBRequest[S, js.Array[IDBValue]]
13636-
IDBObjectStore[JC] def getAllKeys(query: js.UndefOr[IDBKeyRange | IDBKey]?, count: js.UndefOr[Int]?): IDBRequest[S, js.Array[IDBKey]]
13635+
IDBObjectStore[JC] def getAll(query: js.UndefOr[IDBKeyRange | IDBKey]?, count: js.UndefOr[Double]?): IDBRequest[S, js.Array[IDBValue]]
13636+
IDBObjectStore[JC] def getAllKeys(query: js.UndefOr[IDBKeyRange | IDBKey]?, count: js.UndefOr[Double]?): IDBRequest[S, js.Array[IDBKey]]
1363713637
IDBObjectStore[JC] def getKey(key: IDBKey): IDBRequest[S, js.UndefOr[IDBKey]]
1363813638
IDBObjectStore[JC] def index(name: String): IDBIndex
1363913639
IDBObjectStore[JC] def indexNames: DOMStringList
@@ -13669,10 +13669,10 @@ IDBRequest[JC] def removeEventListener[T <: Event](`type`: String, listener: js.
1366913669
IDBRequest[JC] def result: A
1367013670
IDBRequest[JC] def source: S
1367113671
IDBRequest[JC] def transaction: IDBTransaction
13672-
IDBStoreLike[JT] def count(query: IDBKey | IDBKeyRange?): IDBRequest[S, Int]
13672+
IDBStoreLike[JT] def count(query: IDBKey | IDBKeyRange?): IDBRequest[S, Double]
1367313673
IDBStoreLike[JT] def get(key: IDBKey | IDBKeyRange): IDBRequest[S, IDBValue]
13674-
IDBStoreLike[JT] def getAll(query: js.UndefOr[IDBKeyRange | IDBKey]?, count: js.UndefOr[Int]?): IDBRequest[S, js.Array[IDBValue]]
13675-
IDBStoreLike[JT] def getAllKeys(query: js.UndefOr[IDBKeyRange | IDBKey]?, count: js.UndefOr[Int]?): IDBRequest[S, js.Array[IDBKey]]
13674+
IDBStoreLike[JT] def getAll(query: js.UndefOr[IDBKeyRange | IDBKey]?, count: js.UndefOr[Double]?): IDBRequest[S, js.Array[IDBValue]]
13675+
IDBStoreLike[JT] def getAllKeys(query: js.UndefOr[IDBKeyRange | IDBKey]?, count: js.UndefOr[Double]?): IDBRequest[S, js.Array[IDBKey]]
1367613676
IDBStoreLike[JT] def getKey(key: IDBKey): IDBRequest[S, js.UndefOr[IDBKey]]
1367713677
IDBStoreLike[JT] def keyPath: IDBKeyPath
1367813678
IDBStoreLike[JT] def name: String

api-reports/2_13.txt

+12-12
Original file line numberDiff line numberDiff line change
@@ -13535,7 +13535,7 @@ IDBCreateIndexOptions[JT] val multiEntry: js.UndefOr[Boolean]
1353513535
IDBCreateIndexOptions[JT] val unique: js.UndefOr[Boolean]
1353613536
IDBCreateObjectStoreOptions[JT] val autoIncrement: js.UndefOr[Boolean]
1353713537
IDBCreateObjectStoreOptions[JT] val keyPath: IDBKeyPath
13538-
IDBCursor[JC] def advance(count: Int): Unit
13538+
IDBCursor[JC] def advance(count: Double): Unit
1353913539
IDBCursor[JC] def continue(key: IDBKey?): Unit
1354013540
IDBCursor[JC] def delete(): IDBRequest[S, Unit]
1354113541
IDBCursor[JC] def direction: IDBCursorDirection
@@ -13548,13 +13548,13 @@ IDBCursorDirection[SO] def next: IDBCursorDirection
1354813548
IDBCursorDirection[SO] def nextunique: IDBCursorDirection
1354913549
IDBCursorDirection[SO] def prev: IDBCursorDirection
1355013550
IDBCursorDirection[SO] def prevunique: IDBCursorDirection
13551-
IDBCursorReadOnly[JC] def advance(count: Int): Unit
13551+
IDBCursorReadOnly[JC] def advance(count: Double): Unit
1355213552
IDBCursorReadOnly[JC] def continue(key: IDBKey?): Unit
1355313553
IDBCursorReadOnly[JC] def direction: IDBCursorDirection
1355413554
IDBCursorReadOnly[JC] def key: IDBKey
1355513555
IDBCursorReadOnly[JC] def primaryKey: IDBKey
1355613556
IDBCursorReadOnly[JC] def source: S
13557-
IDBCursorWithValue[JC] def advance(count: Int): Unit
13557+
IDBCursorWithValue[JC] def advance(count: Double): Unit
1355813558
IDBCursorWithValue[JC] def continue(key: IDBKey?): Unit
1355913559
IDBCursorWithValue[JC] def delete(): IDBRequest[S, Unit]
1356013560
IDBCursorWithValue[JC] def direction: IDBCursorDirection
@@ -13605,10 +13605,10 @@ IDBFactory[JC] def cmp(first: IDBValue, second: IDBValue): Int
1360513605
IDBFactory[JC] def databases(): js.Promise[js.Array[IDBDatabaseInfo]]
1360613606
IDBFactory[JC] def deleteDatabase(name: String): IDBOpenDBRequest[Unit]
1360713607
IDBFactory[JC] def open(name: String, version: Int?): IDBOpenDBRequest[IDBDatabase]
13608-
IDBIndex[JC] def count(query: IDBKey | IDBKeyRange?): IDBRequest[S, Int]
13608+
IDBIndex[JC] def count(query: IDBKey | IDBKeyRange?): IDBRequest[S, Double]
1360913609
IDBIndex[JC] def get(key: IDBKey | IDBKeyRange): IDBRequest[S, IDBValue]
13610-
IDBIndex[JC] def getAll(query: js.UndefOr[IDBKeyRange | IDBKey]?, count: js.UndefOr[Int]?): IDBRequest[S, js.Array[IDBValue]]
13611-
IDBIndex[JC] def getAllKeys(query: js.UndefOr[IDBKeyRange | IDBKey]?, count: js.UndefOr[Int]?): IDBRequest[S, js.Array[IDBKey]]
13610+
IDBIndex[JC] def getAll(query: js.UndefOr[IDBKeyRange | IDBKey]?, count: js.UndefOr[Double]?): IDBRequest[S, js.Array[IDBValue]]
13611+
IDBIndex[JC] def getAllKeys(query: js.UndefOr[IDBKeyRange | IDBKey]?, count: js.UndefOr[Double]?): IDBRequest[S, js.Array[IDBKey]]
1361213612
IDBIndex[JC] def getKey(key: IDBKey): IDBRequest[S, js.UndefOr[IDBKey]]
1361313613
IDBIndex[JC] def keyPath: IDBKeyPath
1361413614
IDBIndex[JC] val multiEntry: Boolean
@@ -13627,13 +13627,13 @@ IDBKeyRange[JO] def only(value: IDBValue): IDBKeyRange
1362713627
IDBKeyRange[JO] def upperBound(bound: IDBKey, open: Boolean?): IDBKeyRange
1362813628
IDBObjectStore[JC] def add(value: IDBValue, key: IDBKey?): IDBRequest[IDBObjectStore, IDBKey]
1362913629
IDBObjectStore[JC] def clear(): IDBRequest[IDBObjectStore, Unit]
13630-
IDBObjectStore[JC] def count(query: IDBKey | IDBKeyRange?): IDBRequest[S, Int]
13630+
IDBObjectStore[JC] def count(query: IDBKey | IDBKeyRange?): IDBRequest[S, Double]
1363113631
IDBObjectStore[JC] def createIndex(name: String, keyPath: IDBKeyPath, optionalParameters: IDBCreateIndexOptions?): IDBIndex
1363213632
IDBObjectStore[JC] def delete(key: IDBKey | IDBKeyRange): IDBRequest[IDBObjectStore, Unit]
1363313633
IDBObjectStore[JC] def deleteIndex(indexName: String): Unit
1363413634
IDBObjectStore[JC] def get(key: IDBKey | IDBKeyRange): IDBRequest[S, IDBValue]
13635-
IDBObjectStore[JC] def getAll(query: js.UndefOr[IDBKeyRange | IDBKey]?, count: js.UndefOr[Int]?): IDBRequest[S, js.Array[IDBValue]]
13636-
IDBObjectStore[JC] def getAllKeys(query: js.UndefOr[IDBKeyRange | IDBKey]?, count: js.UndefOr[Int]?): IDBRequest[S, js.Array[IDBKey]]
13635+
IDBObjectStore[JC] def getAll(query: js.UndefOr[IDBKeyRange | IDBKey]?, count: js.UndefOr[Double]?): IDBRequest[S, js.Array[IDBValue]]
13636+
IDBObjectStore[JC] def getAllKeys(query: js.UndefOr[IDBKeyRange | IDBKey]?, count: js.UndefOr[Double]?): IDBRequest[S, js.Array[IDBKey]]
1363713637
IDBObjectStore[JC] def getKey(key: IDBKey): IDBRequest[S, js.UndefOr[IDBKey]]
1363813638
IDBObjectStore[JC] def index(name: String): IDBIndex
1363913639
IDBObjectStore[JC] def indexNames: DOMStringList
@@ -13669,10 +13669,10 @@ IDBRequest[JC] def removeEventListener[T <: Event](`type`: String, listener: js.
1366913669
IDBRequest[JC] def result: A
1367013670
IDBRequest[JC] def source: S
1367113671
IDBRequest[JC] def transaction: IDBTransaction
13672-
IDBStoreLike[JT] def count(query: IDBKey | IDBKeyRange?): IDBRequest[S, Int]
13672+
IDBStoreLike[JT] def count(query: IDBKey | IDBKeyRange?): IDBRequest[S, Double]
1367313673
IDBStoreLike[JT] def get(key: IDBKey | IDBKeyRange): IDBRequest[S, IDBValue]
13674-
IDBStoreLike[JT] def getAll(query: js.UndefOr[IDBKeyRange | IDBKey]?, count: js.UndefOr[Int]?): IDBRequest[S, js.Array[IDBValue]]
13675-
IDBStoreLike[JT] def getAllKeys(query: js.UndefOr[IDBKeyRange | IDBKey]?, count: js.UndefOr[Int]?): IDBRequest[S, js.Array[IDBKey]]
13674+
IDBStoreLike[JT] def getAll(query: js.UndefOr[IDBKeyRange | IDBKey]?, count: js.UndefOr[Double]?): IDBRequest[S, js.Array[IDBValue]]
13675+
IDBStoreLike[JT] def getAllKeys(query: js.UndefOr[IDBKeyRange | IDBKey]?, count: js.UndefOr[Double]?): IDBRequest[S, js.Array[IDBKey]]
1367613676
IDBStoreLike[JT] def getKey(key: IDBKey): IDBRequest[S, js.UndefOr[IDBKey]]
1367713677
IDBStoreLike[JT] def keyPath: IDBKeyPath
1367813678
IDBStoreLike[JT] def name: String

src/main/scala/org/scalajs/dom/IDBTypes.scala

+4-4
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ object IDBTransactionDurability {
6161
@js.native
6262
trait IDBStoreLike[S] extends js.Object {
6363

64-
def count(query: IDBKey | IDBKeyRange = js.native): IDBRequest[S, Int] = js.native
64+
def count(query: IDBKey | IDBKeyRange = js.native): IDBRequest[S, Double] = js.native
6565

6666
/** Returns an [[IDBRequest]] object, and, in a separate thread, returns the object store selected by the specified
6767
* key. This is for retrieving specific records from an object store.
@@ -90,7 +90,7 @@ trait IDBStoreLike[S] extends js.Object {
9090
* - the [[count]] method with the same key, which will return 1 if the row exists and 0 if it doesn't.
9191
*/
9292
def getAll(query: js.UndefOr[IDBKeyRange | IDBKey] = js.native,
93-
count: js.UndefOr[Int] = js.native): IDBRequest[S, js.Array[IDBValue]] = js.native
93+
count: js.UndefOr[Double] = js.native): IDBRequest[S, js.Array[IDBValue]] = js.native
9494

9595
/** Returns an [[IDBRequest]] object retrieves record keys for all objects in the object store matching the specified
9696
* parameter or all objects in the store if no parameters are given.
@@ -107,7 +107,7 @@ trait IDBStoreLike[S] extends js.Object {
107107
* a cursor if the record exists, and no cursor if it does not.
108108
*/
109109
def getAllKeys(query: js.UndefOr[IDBKeyRange | IDBKey] = js.native,
110-
count: js.UndefOr[Int] = js.native): IDBRequest[S, js.Array[IDBKey]] = js.native
110+
count: js.UndefOr[Double] = js.native): IDBRequest[S, js.Array[IDBKey]] = js.native
111111

112112
/** Returns an [[IDBRequest]] object, and, in a separate thread, returns the key selected by the specified query. This
113113
* is for retrieving specific records from an object store.
@@ -290,7 +290,7 @@ class IDBCursorReadOnly[+S] extends js.Object {
290290
def primaryKey: IDBKey = js.native
291291

292292
/** This method may raise a DOMException of one of the following types: */
293-
def advance(count: Int): Unit = js.native
293+
def advance(count: Double): Unit = js.native
294294

295295
/** Sets cursor to key if specified, otherwise advances cursor by one.
296296
*

0 commit comments

Comments
 (0)