Commit Graph

88 Commits

Author SHA1 Message Date
Yusuke Tanaka
9c3c53e65b
docs(streams): improve docs for stabilization (#4852)
This commit improves docs of the streams module.

Towards #3764

---------

Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-05-27 18:27:40 -07:00
denobot
51dc36d563
chore: release 2024.05.22 (#4830)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-05-22 19:57:28 +09:00
Doctor
39c2a4c076
feat(streams): concatReadableStreams() (#4747)
* feat(streams): `new ConcatStreams()`

* refactor(streams): new ConcatStream to be a ReadableStream instead

- Converted ConcatStream from a TransformStream into a ReadableStream, also now with proper cleaning up if the `.cancel()` method is called.

* adjust(streams): ConcatStreams class into function

* Adjust(streams): based off comments

* adjust(streams): Remove redundant locking

* adjust(streams): based off comments

* tweaks

* fix

* tweak

* add Leo as co-author

Co-authored-by: crowlKats <crowlkats@toaxl.com>

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
Co-authored-by: crowlKats <crowlkats@toaxl.com>
2024-05-20 22:22:01 +00:00
Yoshiya Hinosawa
3155f0050a
chore: switch to JSR-oriented codebase (#4650) 2024-04-29 11:57:30 +09:00
Asher Gomez
3f9d4a8494
chore: simplify deprecation notice check (#4577) 2024-04-17 15:36:50 +09:00
David Sherret
ef6b95f0c7
refactor: make the code work under verbatimModuleSyntax (#4406)
* Start

* Update

* Format

* Revert deno.json change

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-02-27 21:57:25 +00:00
Tim Reichen
b1b048d759
chore(streams): format test names (#4378)
* initial commit

* Update buffer_test.ts

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>

* remove brackets for classes

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-02-28 08:12:47 +12:00
Gabriele Belluardo
271a100e8f
refactor(streams): prepare for noUncheckedIndexedAccess (#4377) 2024-02-25 07:22:50 +11:00
Asher Gomez
a828744083
feat(io): iterateReader[Sync]() (#4247) 2024-02-19 19:24:22 +09:00
Asher Gomez
253e329d1d
feat(io): un-deprecate readerFromStreamReader() (#4343)
* feat(io): un-deprecate `readerFromStreamReader()`

* adjust removal version
2024-02-19 16:34:51 +11:00
David Luis
ad4abccb66
docs: replace markdown hyperlink syntax with {@link} tag where necessary. (#4253)
docs: replaces markdown hyperlink syntax with `{@link}` tag when necessary.
2024-02-01 09:19:46 +11:00
Asher Gomez
0e654e37d5
BREAKING(streams): remove readAll(), writeAll() and copy() (#4238) 2024-01-25 16:23:25 +09:00
Asher Gomez
88b5f471ed
feat: print warning on use of deprecated API (#4200)
* feat: `warnDeprecatedApi()`

* refactor: fixes and tweaks

* refactor: tweaks and improvements

* refactor: further work

* refactor

* fix

* tweaks

* tweak

* tweak

* tweaks

* tweak

* add test

* tweaks

* make compatible with Deploy

* tweak

* fix
2024-01-22 15:21:31 +11:00
Asher Gomez
175601a084
docs(streams): remove Deno.metrics() use in example (#4217) 2024-01-17 16:13:05 +09:00
Asher Gomez
5b0ff30bbf
refactor: cleanup deprecated-related APIs in std/io and std/streams (#4201) 2024-01-15 13:23:04 +09:00
Anwesh
3fcb0a8b24
refactor(using): use using keyword for Explicit Resource Management (#4143)
* refactor(using): add using keyword for Explicit Resource Management

* refactor(using): fix fmt

* refactor(using): add more fixes

* refactor(using): fix fmt

* refactor: add more `using` cases

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-01-15 08:35:50 +11:00
Asher Gomez
a9fe1603e0
feat(io): re-introduce IO functions (#4128) 2024-01-12 18:34:12 +11:00
Asher Gomez
22fba79092
deprecation(io): move types file (#4133) 2024-01-09 16:14:28 +11:00
Lino Le Van
c46143f0ac
chore: update copyright year (#4046)
* chore: update copyright year

* fix

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-01-02 08:11:32 +11:00
David Sherret
ceb107f4ef
chore: add more explicit types (#4018)
* Add explicit types

* Format.

* Revert
2023-12-22 15:35:15 +11:00
Asher Gomez
9f03d915e7
perf(streams): make toBlob() 20-30% faster (#3934)
perf(streams): use `Response.blob()` in `toBlob()`
2023-12-14 14:12:10 +11:00
Asher Gomez
4df10f6b54
chore(streams): complete documentation (#3893)
* chore(streams): complete documentation

* tweaks
2023-12-04 06:12:52 +00:00
Asher Gomez
451efa6243
deprecation: move types.d.ts to std/io (#3885)
* deprecation: move `types.d.ts` to `std/io`

* fix
2023-12-01 11:46:43 +09:00
Asher Gomez
e21c1fc903
BREAKING(bytes): remove spread concat() overload (#3854) 2023-11-24 19:19:11 +11:00
Asher Gomez
7d5344d775
docs: improve deprecation notices (#3804) 2023-11-16 05:33:11 +11:00
Asher Gomez
029a3edc7d
BREAKING(bytes): deprecate concat() signatures that don't use Uint8Array[] argument (#3784)
* BREAKING(bytes): deprecate spreaded `concat()`

* fix

* cleanup
2023-11-13 16:34:32 +11:00
Asher Gomez
56e2bc10e0
chore: use Array.fromAsync() where possible (#3788) 2023-11-11 06:00:28 +11:00
Asher Gomez
af6c2d66f3
chore: use ReadableStream.from() where possible (#3787) 2023-11-10 14:57:52 +11:00
Asher Gomez
88477d1117
refactor: remove use of deferred() (#3786)
* refactor: remove use of `deferred()`

* fix

* fix
2023-11-10 14:31:16 +11:00
Aapo Alasuutari
1d99bacae7
perf(streams): add single-character fast path for DelimiterStream() (#3739)
* perf(DelimiterStream): Implement fast path for char delimiter streams

* factor out flush and simplify constructor

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-11-10 11:21:37 +11:00
Asher Gomez
4e50956b4d work 2023-11-06 14:33:29 +11:00
Asher Gomez
fdcec21070 refactor: use Array.fromAsync() 2023-11-06 14:33:29 +11:00
Asher Gomez
5cf794ad06 simplifications and tweaks 2023-11-06 14:33:29 +11:00
Asher Gomez
111e15d629 simplify 2023-11-06 14:33:29 +11:00
Asher Gomez
51c7fcf9d2 refactor: cleanup TextLineStream() and tests 2023-11-06 14:33:29 +11:00
Tiger Oakes
52dfbebf59
refactor: avoid internally using strings for numbers (#3665) 2023-09-21 19:23:28 +09:00
Yoshiya Hinosawa
3f7bf5e5f1
BREAKING(streams): deprecate APIs based on legacy Reader/Writer interfaces (#3640) 2023-09-15 17:12:07 +09:00
Lino Le Van
5c5ca87361
feat(streams): to ArrayBuffer/Blob/Json/Text (#3631) 2023-09-13 17:21:52 +09:00
Aapo Alasuutari
e195dce9f5
fix(streams): DelimiterStream regression (#3611) 2023-09-04 09:41:24 +09:00
Aapo Alasuutari
6d75c4ed7f
BREAKING(bytes): deprecate BytesList class (#3589) 2023-08-31 19:40:32 +09:00
Lino Le Van
8043078a21
BREAKING(streams): remove readable_stream_from_iterable (#3579) 2023-08-28 15:39:55 +09:00
Lino Le Van
2b5d71224f
refactor: cleanup usage of double equals (#3566)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2023-08-25 18:04:43 +09:00
Lino Le Van
c18a701af3
BREAKING(streams): deprecate readableStreamFromIterable (#3486) 2023-07-17 15:08:20 +09:00
Asher Gomez
239e85ad6a
BREAKING(testing, assert): move std/testing/asserts to std/assert (#3445) 2023-07-13 16:04:30 +09:00
Garn
64a0d90682
fix(streams/mergeReadableStreams): better error handling (#3395) 2023-05-30 19:46:57 +09:00
Lino Le Van
96b8e2fee7
feat: disposition on TextDelimiterStream (#3273) 2023-03-30 00:21:00 +02:00
Asher Gomez
cf14c9b212
chore(tools): improved web-compatibility checks (#3263) 2023-03-18 21:36:00 +09:00
Deniz
46af534b34
feat(streams/delimiter_stream): add disposition option (#3189) 2023-02-13 18:46:22 +01:00
Asher Gomez
a11c957053
chore(streams, archive): remove deprecated exports (#3107) 2023-01-14 19:10:03 +09:00
Jesse Jackson
fab170ee4c
fix(streams): prevent artificial terminal newline in TextLineStream (#3103) 2023-01-14 02:18:40 +01:00