Commit Graph

121 Commits

Author SHA1 Message Date
denobot
2b3683b6fb
chore: release 2024.08.26 (#5824)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-08-26 17:33:29 +09:00
Ian Bull
f1d3885994
refactor(path,streams): align additional error messages (#5718) 2024-08-23 12:31:01 +09:00
Asher Gomez
dea7d7701a
docs(archive,assert,cache,cli,encoding,html,http,net,streams,text): remove unstable Markdown alert (#5672)
* docs(archive,cli,html,http,net,streams,text): remove unstable Markdown alert

* update

* fix

* update

* fmt

* fix
2024-08-22 02:55:17 -04:00
denobot
f7f275bd3b
chore: release 2024.08.16 (#5687)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-08-16 15:33:08 +09:00
Doctor
d5e31807c5
feat(streams/unstable): toLines() (#5121)
* feat(streams): add toLines

* chore(streams): remove testing code

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

* chore(streams): fmt

* adjust(streams): change toLines return type to `ReadableStream<string>`

- Change the return type from `AsyncGenerator<string>` to `ReadableStream<string>`
- Change `readable` to only be of type `ReadableStream<Uint8Array>`
- Add `options` argument of type `PipeOptions.`

* work

* work

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-08-09 13:26:39 +02:00
denobot
ce02d496a4
chore: release 2024.08.07 (#5650)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-08-07 21:42:08 +09:00
Doctor
77345498a2
feat(streams/unstable): FixedChunkStream (#4995)
* feat(streams): new ResizeStreams(size)

* chore(streams): Renamed ResizeStream to FixedChunkStream

* Update streams/fixed_chunk_stream_test.ts

* update

* tweaks

* tweak test

* fix(streams): chunks getting lost if size was equally divisible by `size`

* work

* work

---------

Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-08-07 10:34:54 +02:00
Asher Gomez
7a8b51f723
fix(csv,streams): use string arrays in ReadableStream.from() in docs and tests (#5635)
* tests(csv,streams): use string arrays in `ReadableStream.from()`

* fix
2024-08-06 02:21:57 -07:00
Asher Gomez
164fef7204
chore(streams): release streams@1.0.0 (#5518) 2024-07-23 12:24:03 +09:00
Asher Gomez
a04a2ed798
fix(streams): strictly define toJson() and toText() input (#5517)
* fix(streams): strictly define `toJson()` and `toText()` input

* fix
2024-07-23 12:23:35 +09:00
Asher Gomez
2081cafc2d
chore(streams): remove redundant constructor examples (#5514)
chore(streams): remove constructor examples
2024-07-23 12:07:22 +09:00
Yoshiya Hinosawa
db670b1c5e
chore: streams@1.0.0-rc.4 (extending RC phase) (#5493) 2024-07-19 19:39:01 +09:00
Asher Gomez
649757b867
chore(streams): release streams@1.0.0 (#5213)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-07-19 13:20:12 +10:00
Asher Gomez
350544e370
docs(streams): address documentation issues (#5480) 2024-07-18 23:05:16 +00:00
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