From 2361c99bbdd6258c566909e02a2ee2ed84007d52 Mon Sep 17 00:00:00 2001 From: zetashift Date: Sun, 21 Aug 2022 21:17:18 +0200 Subject: [PATCH 1/2] add URLSearchParams to BodyInit --- dom/src/main/scala/org/scalajs/dom/package.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dom/src/main/scala/org/scalajs/dom/package.scala b/dom/src/main/scala/org/scalajs/dom/package.scala index caeea520b..96b116cad 100644 --- a/dom/src/main/scala/org/scalajs/dom/package.scala +++ b/dom/src/main/scala/org/scalajs/dom/package.scala @@ -30,9 +30,9 @@ package object dom { /** This type should capture strings consisting only of ASCII chars todo: is there a way to capture this type? */ type ByteString = String - /** defined at [[https://fetch.spec.whatwg.org/#body-mixin ΒΆ6.2 Body mixin]] in whatwg Fetch spec */ + /** defined at [[https://fetch.spec.whatwg.org/#bodyinit-unions]] in whatwg Fetch spec */ type BodyInit = - Blob | BufferSource | FormData | String | ReadableStream[Uint8Array] // todo: add URLSearchParams + Blob | BufferSource | FormData | String | ReadableStream[Uint8Array] | URLSearchParams /** WebIDL sequence is js.Array[T] | JSIterable[T]. However @mseddon knows at least Blink's IDL compiler treats * these as simply js.Array[T] for now. We keep this type as a reminder to check in more detail From 2f4d34e6522f7c3cdbf0f3a9f3ba0c7a0be0dbe9 Mon Sep 17 00:00:00 2001 From: zetashift Date: Sun, 21 Aug 2022 21:20:32 +0200 Subject: [PATCH 2/2] prePR api-reports --- api-reports/2_12.txt | 2 +- api-reports/2_13.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api-reports/2_12.txt b/api-reports/2_12.txt index 0c7e86bb3..0e85ccf5c 100644 --- a/api-reports/2_12.txt +++ b/api-reports/2_12.txt @@ -26797,7 +26797,7 @@ intl/NumberFormatOptions[JT] var useGrouping: js.UndefOr[Boolean] intl/NumberFormatOptions[SO] def apply(localeMatcher: js.UndefOr[String]?, style: js.UndefOr[String]?, currency: js.UndefOr[String]?, currencyDisplay: js.UndefOr[String]?, useGrouping: js.UndefOr[Boolean]?, minimumIntegerDigits: js.UndefOr[Double]?, minimumFractionDigits: js.UndefOr[Double]?, maximumFractionDigits: js.UndefOr[Double]?, minimumSignificantDigits: js.UndefOr[Double]?, maximumSignificantDigits: js.UndefOr[Double]?): NumberFormatOptions (@deprecated in 2.0.0) package[SO] type AlgorithmIdentifier = Algorithm | String package[SO] type BigInteger = js.typedarray.Uint8Array -package[SO] type BodyInit = Blob | BufferSource | FormData | String | ReadableStream[Uint8Array] +package[SO] type BodyInit = Blob | BufferSource | FormData | String | ReadableStream[Uint8Array] | URLSearchParams package[SO] type BufferSource = ArrayBufferView | ArrayBuffer package[SO] type ByteString = String package[SO] type ClientRect = DOMRect (@deprecated in 2.0.0) diff --git a/api-reports/2_13.txt b/api-reports/2_13.txt index 0c7e86bb3..0e85ccf5c 100644 --- a/api-reports/2_13.txt +++ b/api-reports/2_13.txt @@ -26797,7 +26797,7 @@ intl/NumberFormatOptions[JT] var useGrouping: js.UndefOr[Boolean] intl/NumberFormatOptions[SO] def apply(localeMatcher: js.UndefOr[String]?, style: js.UndefOr[String]?, currency: js.UndefOr[String]?, currencyDisplay: js.UndefOr[String]?, useGrouping: js.UndefOr[Boolean]?, minimumIntegerDigits: js.UndefOr[Double]?, minimumFractionDigits: js.UndefOr[Double]?, maximumFractionDigits: js.UndefOr[Double]?, minimumSignificantDigits: js.UndefOr[Double]?, maximumSignificantDigits: js.UndefOr[Double]?): NumberFormatOptions (@deprecated in 2.0.0) package[SO] type AlgorithmIdentifier = Algorithm | String package[SO] type BigInteger = js.typedarray.Uint8Array -package[SO] type BodyInit = Blob | BufferSource | FormData | String | ReadableStream[Uint8Array] +package[SO] type BodyInit = Blob | BufferSource | FormData | String | ReadableStream[Uint8Array] | URLSearchParams package[SO] type BufferSource = ArrayBufferView | ArrayBuffer package[SO] type ByteString = String package[SO] type ClientRect = DOMRect (@deprecated in 2.0.0)