Repository: denoland/deno
Pull request: BREAKING(ext/web): remove remaining web types for compatibility

<!--
Before submitting a PR, please read https://docs.deno.com/runtime/manual/references/contributing

1. Give the PR a descriptive title.

  Examples of good title:
    - fix(std/http): Fix race condition in server
    - docs(console): Update docstrings
    - feat(doc): Handle nested reexports

  Examples of bad title:
    - fix #7123
    - update docs
    - fix bugs

2. Ensure there is a related issue and it is referenced in the PR text.
3. Ensure there are tests that cover the changes.
4. Ensure `cargo test` passes.
5. Ensure `./tools/format.js` passes without changing files.
6. Ensure `./tools/lint.js` passes.
7. Open as a draft PR if your work is still in progress. The CI won't run
   all steps, but you can add '[ci]' to a commit message to force it to.
8. If you would like to run the benchmarks on the CI, add the 'ci-bench' label.
-->

Related https://github.com/denoland/deno/pull/24599

Changed files:
filename: ext/web/lib.deno_web.d.ts
patch: @@ -706,15 +706,6 @@ declare var ReadableStreamBYOBRequest: {
   new (): never;
 };
 
-// TODO(petamoriken): Will be removed in v2.0.
-/**
- * @deprecated use `UnderlyingByteSource["pull"]` instead.
- * @category Streams
- */
-declare interface ReadableByteStreamControllerCallback {
-  (controller: ReadableByteStreamController): void | PromiseLike<void>;
-}
-
 /** @category Streams */
 declare interface UnderlyingByteSource {
   autoAllocateChunkSize?: number;
@@ -755,13 +746,6 @@ declare interface UnderlyingSource<R = any> {
   type?: ReadableStreamType;
 }
 
-// TODO(petamoriken): Will be removed in v2.0.
-/**
- * @deprecated use `UnderlyingSourceCancelCallback` instead.
- * @category Streams
- */
-declare type ReadableStreamErrorCallback = UnderlyingSourceCancelCallback;
-
 /** @category Streams */
 declare interface UnderlyingSourceCancelCallback {
   (reason?: any): void | PromiseLike<void>;
@@ -777,15 +761,6 @@ declare interface UnderlyingSourceStartCallback<R> {
   (controller: ReadableStreamController<R>): any;
 }
 
-// TODO(petamoriken): Will be removed in v2.0.
-/**
- * @deprecated use `(controller: ReadableStreamDefaultController<R>) => void | PromiseLike<void>` type instead.
- * @category Streams
- */
-declare type ReadableStreamDefaultControllerCallback<R> = (
-  controller: ReadableStreamDefaultController<R>,
-) => void | PromiseLike<void>;
-
 /** @category Streams */
 declare interface ReadableStreamDefaultController<R = any> {
   readonly desiredSize: number | null;
@@ -815,13 +790,6 @@ declare var ReadableByteStreamController: {
   new (): never;
 };
 
-// TODO(petamoriken): Will be removed in v2.0.
-/**
- * @deprecated use `StreamPipeOptions` instead.
- * @category Streams
- */
-declare type PipeOptions = StreamPipeOptions;
-
 /** @category Streams */
 declare interface StreamPipeOptions {
   preventAbort?: boolean;
@@ -830,13 +798,6 @@ declare interface StreamPipeOptions {
   signal?: AbortSignal;
 }
 
-// TODO(petamoriken): Will be removed in v2.0.
-/**
- * @deprecated use `QueuingStrategySize` instead.
- * @category Streams
- */
-declare type QueuingStrategySizeCallback<T = any> = QueuingStrategySize<T>;
-
 /** @category Streams */
 declare interface QueuingStrategySize<T = any> {
   (chunk: T): number;
@@ -948,40 +909,16 @@ declare interface ReadableWritablePair<R = any, W = any> {
   writable: WritableStream<W>;
 }
 
-// TODO(petamoriken): Will be removed in v2.0.
-/**
- * @deprecated use `UnderlyingSinkCloseCallback` instead.
- * @category Streams
- */
-declare type WritableStreamDefaultControllerCloseCallback =
-  UnderlyingSinkCloseCallback;
-
 /** @category Streams */
 declare interface UnderlyingSinkCloseCallback {
   (): void | PromiseLike<void>;
 }
 
-// TODO(petamoriken): Will be removed in v2.0.
-/**
- * @deprecated use `UnderlyingSinkStartCallback` instead.
- * @category Streams
- */
-declare type WritableStreamDefaultControllerStartCallback =
-  UnderlyingSinkStartCallback;
-
 /** @category Streams */
 declare interface UnderlyingSinkStartCallback {
   (controller: WritableStreamDefaultController): any;
 }
 
-// TODO(petamoriken): Will be removed in v2.0.
-/**
- * @deprecated use `UnderlyingSinkWriteCallback` instead.
- * @category Streams
- */
-declare type WritableStreamDefaultControllerWriteCallback<W> =
-  UnderlyingSinkWriteCallback<W>;
-
 /** @category Streams */
 declare interface UnderlyingSinkWriteCallback<W> {
   (
@@ -990,13 +927,6 @@ declare interface UnderlyingSinkWriteCallback<W> {
   ): void | PromiseLike<void>;
 }
 
-// TODO(petamoriken): Will be removed in v2.0.
-/**
- * @deprecated use `UnderlyingSinkAbortCallback` instead.
- * @category Streams
- */
-declare type WritableStreamErrorCallback = UnderlyingSinkAbortCallback;
-
 /** @category Streams */
 declare interface UnderlyingSinkAbortCallback {
   (reason?: any): void | PromiseLike<void>;
@@ -1105,14 +1035,6 @@ declare interface Transformer<I = any, O = any> {
   writableType?: undefined;
 }
 
-// TODO(petamoriken): Will be removed in v2.0.
-/**
- * @deprecated use `TransformerFlushCallback` instead.
- * @category Streams
- */
-declare type TransformStreamDefaultControllerCallback<O> =
-  TransformerFlushCallback<O>;
-
 /** @category Streams */
 declare interface TransformerFlushCallback<O> {
   (controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
@@ -1123,14 +1045,6 @@ declare interface TransformerStartCallback<O> {
   (controller: TransformStreamDefaultController<O>): any;
 }
 
-// TODO(petamoriken): Will be removed in v2.0.
-/**
- * @deprecated use `TransformerTransformCallback` instead.
- * @category Streams
- */
-declare type TransformStreamDefaultControllerTransformCallback<I, O> =
-  TransformerTransformCallback<I, O>;
-
 /** @category Streams */
 declare interface TransformerTransformCallback<I, O> {
   (
@@ -1203,13 +1117,6 @@ declare var MessageEvent: {
 /** @category Events */
 declare type Transferable = MessagePort | ArrayBuffer;
 
-// TODO(petamoriken): Will be removed in v2.0.
-/**
- * @deprecated use `StructuredSerializeOptions` instead.
- * @category Events
- */
-declare type PostMessageOptions = StructuredSerializeOptions;
-
 /** @category Platform */
 declare interface StructuredSerializeOptions {
   transfer?: Transferable[];