Skip to content

Commit

Permalink
BREAKING chore(ext/web): remove ReadableStream.getIterator (denolan…
Browse files Browse the repository at this point in the history
  • Loading branch information
crowlKats committed Nov 5, 2021
1 parent 26a5471 commit ed761bf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
9 changes: 0 additions & 9 deletions ext/web/06_streams.js
Original file line number Diff line number Diff line change
Expand Up @@ -4211,15 +4211,6 @@
return readableStreamCancel(this, reason);
}

/**
* @deprecated TODO(@kitsonk): Remove in Deno 1.8
* @param {ReadableStreamIteratorOptions=} options
* @returns {AsyncIterableIterator<R>}
*/
getIterator(options = {}) {
return this[SymbolAsyncIterator](options);
}

/**
* @param {ReadableStreamGetReaderOptions=} options
* @returns {ReadableStreamDefaultReader<R> | ReadableStreamBYOBReader}
Expand Down
6 changes: 0 additions & 6 deletions ext/web/lib.deno_web.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -565,12 +565,6 @@ declare var ByteLengthQueuingStrategy: {
interface ReadableStream<R = any> {
readonly locked: boolean;
cancel(reason?: any): Promise<void>;
/**
* @deprecated This is no longer part of the Streams standard and the async
* iterable should be obtained by just using the stream as an
* async iterator.
*/
getIterator(options?: { preventCancel?: boolean }): AsyncIterableIterator<R>;
getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;
getReader(options?: { mode?: undefined }): ReadableStreamDefaultReader<R>;
pipeThrough<T>(
Expand Down

0 comments on commit ed761bf

Please sign in to comment.