Commit Graph

76 Commits

Author SHA1 Message Date
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