Commit Graph

107 Commits

Author SHA1 Message Date
denobot
f54eab4355
chore: release 2024.07.12 (#5431)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-07-12 19:45:19 +09:00
liang
fd9286e10e
fix(streams): toText() incorrect with multibyte strings in different chunks (#5381) 2024-07-10 19:52:35 +09:00
denobot
940568c62d
chore: release 2024.07.02 (#5254)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-07-02 20:43:42 +09:00
Asher Gomez
d102a10235
refactor(assert,async,bytes,cli,collections,crypto,csv,data-structures,datetime,dotenv,encoding,expect,fmt,front-matter,fs,html,http,ini,internal,io,json,jsonc,log,media-types,msgpack,net,path,semver,streams,testing,text,toml,ulid,url,uuid,webgpu,yaml): import from @std/assert (#5199)
* refactor: import from `@std/assert`

* update
2024-06-30 08:30:10 +00:00
Yoshiya Hinosawa
365f989bde
chore: ignore test utils in coverage reporting (#5133) 2024-06-25 16:35:00 +09:00
Doctor
5bcbb8f7f1
fix(streams): prevent earlyZipReadableStreams() from possibly using excessive memory (#5082)
* refactor(streams): `earlyZipReadableStreams`

* add(streams): test for cancelling stream

* chore(streams): fmt

* nit(streams): Make one line into two

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

* improve(streams): test to assert all streams were actually cancelled

* adjust(streams): reason for cancelling streams

* tweak cancel reason

* tweak

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-06-20 05:36:58 +00:00
Asher Gomez
572a53704b
test(streams): improve test coverage (#5078)
* tests(streams): improve test coverage

* tweak

* work

* work

* work

* work

* revert

* revert
2024-06-20 12:58:45 +10:00
Asher Gomez
1e12f5018c
chore(streams): release streams@1.0.0-rc.1 (#5074)
* chore(streams): release `streams@1.0.0`

* chore: add -rc.1

---------

Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-06-20 12:18:43 +10:00
Yoshiya Hinosawa
6997e8b1fd
test(streams): improve DelimiterStream test cases (#5070) 2024-06-18 15:09:29 +09:00
Yoshiya Hinosawa
f92bfe9659
test(streams): improve Buffer test (#5061) 2024-06-17 19:09:36 +09:00
Yoshiya Hinosawa
48379971dd
BREAKING(streams): remove iterateReader, readableStreamFromReader, readerFromIterable, readerFromStreamReader, writableStreamFromWriter, and writerFromStreamWriter (#5060) 2024-06-17 19:02:38 +09:00
denobot
cea0a14578
chore: release 2024.06.17 (#5062)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-06-17 18:53:28 +09:00
Yoshiya Hinosawa
43bf28efcc
chore(streams): remove unused test util (#5048) 2024-06-17 11:27:30 +09:00
denobot
0ea4868542
chore: release 2024.06.06 (#4984)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-06-06 20:26:57 +09:00
Asher Gomez
9130ff65f5
refactor(streams): cleanup use of @std/assert (#4980)
* refactor(streams): cleanup use of `@std/assert`

* work

* update graph
2024-06-05 22:12:42 +00:00
denobot
b9374d3715
chore: release 2024.06.03 (#4935)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-06-03 15:44:03 +09:00
Asher Gomez
31b906db99
chore: ensure code examples use assertions in Doc Linter (#4911) 2024-06-03 14:10:27 +10:00
Asher Gomez
79d6a70729
docs(assert,cli,data-structures,expect,fmt,front-matter,html,http,jsonc,semver,streams,text,toml,webgpu): add snippet checks in module, function and class docs to doc checker (#4855)
* chore: add snippet checks to module docs

* fix

* work

* tweak
2024-05-31 12:01:46 +10:00
denobot
673c436739
chore: release 2024.05.29 (#4883)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-05-29 18:56:12 +09:00
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