Commit Graph

204 Commits

Author SHA1 Message Date
Simon Lecoq
9ad71ee178
fix(io): don't use Deno.Buffer in examples (#5889) 2024-09-02 08:47:54 +10:00
Ian Bull
3b3a7617ab
refactor(assert,datetime,fmt,io,streams): consistently throw new Error() instead of throw Error() (#5855)
refactor(assert, datetime, fmt, io, streams): use `throw new Error` instead of `throw`

To ensure consistency across the codebase, this commit refactors the
codebase to use `throw new Error` instead of `throw` for throwing
errors.

https://github.com/denoland/std/issues/5854
2024-08-29 08:55:24 +10:00
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
11513e0655
refactor(io): create a style guide for error messages, align error messages to the style guide (#5671)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-08-20 12:27:43 +09: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
Yoshiya Hinosawa
d93b33aff8
docs(io): document std/io (#5656)
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-08-08 23:20:43 +09:00
Asher Gomez
1047864eda
refactor(io): cleanup BufferFullError and PartialReadError logic (#5657)
* refactor(io): define `BufferFullError` name in constructor

* fix

* work

* work
2024-08-08 22:31:06 +09:00
denobot
0e4f294cdf
chore: release 2024.08.02 (#5621)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-08-02 20:27:08 +09:00
Jesse Jackson
9253dcbd87
refactor(io): use writeAll() within copy() (#5580)
* refactor(io): `copy`

- deduplicate logic by importing `writeAll`
- add JSDoc description of returned value

* add test step for return value
2024-07-30 15:52:20 +10:00
Asher Gomez
e0c493e34e
docs(http): fix options argument display (#5489) 2024-07-19 13:11:06 +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
denobot
7d1d9cc34a
chore: release 2024.06.21 (#5107)
Co-authored-by: kt3k <kt3k@users.noreply.github.com>
2024-06-21 19:15:49 +09:00
Madhav Ganesan
ab458a38fa
refactor(archive,expect,io,log,toml,yaml): remove private and public access modifiers (#5077)
* replaced public and private access modifiers #5066

* fix: run `deno fmt`

* fix: apply suggestions

* fix

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-06-21 14:13:08 +10:00
Yoshiya Hinosawa
48379971dd
BREAKING(streams): remove iterateReader, readableStreamFromReader, readerFromIterable, readerFromStreamReader, writableStreamFromWriter, and writerFromStreamWriter (#5060) 2024-06-17 19:02:38 +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
cb06f797ff
refactor(io): cleanup use of @std/assert (#4979)
* refactor(io): cleanup use of `@std/assert`

* update graph

* Update io/buf_reader.ts

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>

---------

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2024-06-05 23:37:24 +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
Javier Hernández
980764ac41
refactor(io): format test names (#4413)
* refactor(io): format test names

ref #3754

* Update io/buffer_test.ts

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-03-14 17:26:48 +11:00
Gabriele Belluardo
57605ecc0e
refactor(io): prepare for noUncheckedIndexedAccess (#4470)
* refactor(io): prepare for `noUncheckedIndexedAccess`

* tweak

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-03-12 15:33:32 +11: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
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
David Luis
4b73416cbc
docs(io): fix io module is marked deprecated (#4252) 2024-01-31 16:13:58 +11:00
David Luis
593e344543
docs: fix broken {@link} hyperlinks (#4241) 2024-01-26 01:08:29 +11:00
Asher Gomez
993143ab4b
BREAKING(io): remove types.d.ts (#4237) 2024-01-25 17:22:09 +11: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
240a110cc0
feat(io): un-deprecate Buffer (#4184) 2024-01-14 20:18:36 +09: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
109ebbd9c3
deprecation(io): IO types in favour of Web Streams API (#3903) 2023-12-06 17:32:54 +11: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
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
Oscar
33684a2403
chore: remove deprecated BytesList() in readDelim() (#3726)
* chore: remove deprecated `BytesList` in readDelim

Signed-off-by: Oscar <71343264+0scvr@users.noreply.github.com>

* fix

---------

Signed-off-by: Oscar <71343264+0scvr@users.noreply.github.com>
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2023-10-29 06:18:31 +09:00
Lino Le Van
b62f528baf
BREAKING(io): deprecate io top level module (#3556) 2023-09-20 20:20:00 +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
Asher Gomez
239e85ad6a
BREAKING(testing, assert): move std/testing/asserts to std/assert (#3445) 2023-07-13 16:04:30 +09:00
Martin Fischer
a5b1d80736
chore: fix typos (#3458)
The typos were found with the typos[1] spell checker.  That spell
checker will be incorporated into the CI in a followup PR.

[1]: https://github.com/crate-ci/typos
2023-06-22 01:27:37 +09:00
Zuo Zongyuan
f54969ac4f
refactor(io): remove unused PartialReadError introduced in #1171 (#3340) 2023-05-01 12:11:08 +09:00
Asher Gomez
cf14c9b212
chore(tools): improved web-compatibility checks (#3263) 2023-03-18 21:36:00 +09:00
Yichao
1d39219f68
docs(io/buf_writer): fix doc for io.BufWriter.write (#3192) 2023-02-14 12:46:32 +09:00
Asher Gomez
c1637bdcbb
BREAKING(dotenv,fmt,io): remove deprecated APIs (#3134) 2023-01-27 16:24:10 +09:00
ayame113
b4239898d6
chore: update copyright header (#3082) 2023-01-03 19:47:44 +09:00
Asher Gomez
67802542bb
refactor(io): rework single-export files (#3056) 2022-12-27 00:01:13 +09:00