Commit Graph

133 Commits

Author SHA1 Message Date
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
ayame113
b4239898d6
chore: update copyright header (#3082) 2023-01-03 19:47:44 +09:00
Asher Gomez
a98606f736
refactor(streams): rework single-export files (#3061) 2022-12-27 13:39:31 +09:00
Lino Le Van
a7cc83fe6c
docs: fix typo in readable_stream_from_reader (#3045) 2022-12-23 14:49:04 +09:00
Asher Gomez
2f9baf6794
refactor: remove Deno namespace IO types (#3030) 2022-12-23 14:33:12 +09:00
Asher Gomez
ae3663e74c
chore: move deprecated removal versions back (#3032) 2022-12-22 17:01:00 +09:00
Asher Gomez
4dd1ae7a56
refactor(streams): clean up mod.ts (#3003) 2022-12-15 14:24:37 +09:00
Asher Gomez
5dabeb2d91
refactor(streams): move to single-export files (#2957) 2022-11-29 08:55:38 -05:00
Asher Gomez
e1117a8c0d
refactor(bytes): move to single-export files (#2955) 2022-11-29 15:01:21 +09:00
Leo Kettmeir
aba5017d43
docs: reorganize docs (#2658) 2022-11-25 12:40:23 +01:00
Asher Gomez
792f1334fe
refactor: use _util/asserts.ts for non-test code (#2857) 2022-11-10 16:28:20 +09:00
Asher Gomez
b25e5808e8
feat(streams): add ByteSliceStream (#2795) 2022-11-03 15:34:08 +09:00
Yoshiya Hinosawa
e91bc6318e
docs(streams): remove obsolete note (#2803) 2022-10-24 13:30:20 -04:00
ayame113
6b04b730b1
chore: Avoid using rid-based filesystem functions (#2763) 2022-10-10 10:07:24 -04:00
ayame113
e6189c08e9
docs: Using absolute paths in jsdoc import statements (#2762) 2022-10-10 10:05:56 -04:00
FUJI Goro
c5323d365a
perf(streams): memory optimizations by avoiding large buffer allocation in a loop (#2748) 2022-10-05 14:10:54 +09:00
Yoshiya Hinosawa
16ca2a1930
fix(streams): don't use shared buffer for iterateReader outputs (#2735) 2022-10-03 20:09:52 +09:00
Asher Gomez
bddda3c473
chore: remove deprecated APIs across collections, streams, textproto and uuid (#2720) 2022-09-30 16:27:11 +09:00
Tim Reichen
2f7713a164
chore(tools): add deprecation check (#2613) 2022-09-15 16:06:04 +09:00
Asher Gomez
3b9fb39ddd
chore: remove void and Promise<void> return types (#2550) 2022-08-24 10:21:57 +09:00
Kitson Kelly
e83306672e
docs: improve module documentation (#2511) 2022-08-11 21:51:20 +10:00
ud2
883fe0f401
fix(streams/delimiter): avoid recursion in TextLineStream (#2318) 2022-06-29 17:09:42 +09:00
Bartek Iwańczuk
a06298b0b5
chore: Update top level module JSDocs (#2343)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2022-06-14 11:20:56 +02:00
Kid
2d07e4c326
chore(streams): remove deprecated Deno.copy from example (#2324) 2022-06-08 20:58:57 +02:00
ayame113
4ab49091e9
chore(stream/conversion.ts): handle errors in toTransformStream correctly (#2314) 2022-06-07 18:25:31 +09:00
Leo Kettmeir
b84c4ebab8
fix: put TextLineStream CR handling behind option (#2277) 2022-05-29 16:32:14 +02:00
Leo Kettmeir
8c994de9f9
feat(streams/merge): earlyZipReadableStreams (#2264) 2022-05-26 13:26:17 +02:00
Leo Kettmeir
fae2224e7a
feat(streams/delimiter): support \r in TextLineStream (#2267) 2022-05-25 10:30:21 +02:00
ayame113
ce671dbd30
feat(streams): toTransformStream (#2227) 2022-05-20 13:43:47 +02:00
like-nanhai
c75454c44b
docs: add module level docs (#2190) 2022-05-04 19:34:37 +09:00
Leo Kettmeir
f2682c6936
feat(streams): LimitedTransformStream & LimitedBytesTransformStream (#2007) 2022-03-07 17:47:06 +01:00
Leo Kettmeir
6a69da921c
feat(streams): TextDelimiterStream (#2006) 2022-03-07 17:46:37 +01:00
Leo Kettmeir
5502575363
feat: streams based Buffer (#1970) 2022-03-05 02:20:14 +01:00
Leo Kettmeir
e0f74688e7
feat(streams): TextLineStream (#1978) 2022-03-02 11:42:06 +01:00
Jesse Jackson
58204e6f56
refactor: mark modules as browser compatible (#1972) 2022-03-01 13:25:50 +09:00
Bartek Iwańczuk
737ea15bb9
chore: don't use deprecated Deno.File API (#1935) 2022-02-17 16:58:54 -05:00
Yoshiya Hinosawa
808fe203e0
chore: update copyright header (#1871) 2022-02-02 23:21:39 +09:00
Bartek Iwańczuk
3f6263547e
[BREAKING] Remove 'server_legacy' from 'http' module (#1648) 2021-12-13 14:18:17 +01:00
Leo K
b58b10c229
feat: streams utilities (#1141) 2021-10-12 11:51:48 +02:00