Commit Graph

37 Commits

Author SHA1 Message Date
Asher Gomez
d902c24651
BREAKING(io): remove StringReader (#6062)
* BREAKING(io): remove `StringWriter`

* BREAKING(io): remove `StringReader`
2024-09-26 03:25:37 +00: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
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
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
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
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
240a110cc0
feat(io): un-deprecate Buffer (#4184) 2024-01-14 20:18:36 +09: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
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
Lino Le Van
b62f528baf
BREAKING(io): deprecate io top level module (#3556) 2023-09-20 20:20:00 +09:00
Asher Gomez
239e85ad6a
BREAKING(testing, assert): move std/testing/asserts to std/assert (#3445) 2023-07-13 16:04:30 +09:00
Asher Gomez
cf14c9b212
chore(tools): improved web-compatibility checks (#3263) 2023-03-18 21:36:00 +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
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
8b8950e64c
BREAKING(io): single-export files (#2975) 2022-12-05 15:51:08 +09: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
1453e7c0a0
refactor(io): remove obsolete check in readLine (#2574) 2022-08-30 13:00:15 +09:00
Asher Gomez
3b9fb39ddd
chore: remove void and Promise<void> return types (#2550) 2022-08-24 10:21:57 +09:00
Elisée Maurer
0bda42d822
chore: Enable "noImplicitOverride" compiler option and fix errors (#1940)
This commit makes deno_std "noImplicitOverride"-compliant and 
enables the compiler option in deno.json so that further changes 
don't regress it
2022-02-20 17:35:40 +01:00
Kitson Kelly
a9f6a1c4a7
fix(io/buffer): super and initialized prop (#1917) 2022-02-14 15:03:52 +11:00
Yoshiya Hinosawa
808fe203e0
chore: update copyright header (#1871) 2022-02-02 23:21:39 +09:00
Carter Snook
4304aff02f
chore(node/buffer): convert to js private variables (#1655) 2021-11-30 14:18:28 +09:00
Zheyu Zhang
8159420484
fix(std/io): fix readline when catch BufferFullError (#1377) 2021-10-14 02:04:08 +09:00
Nayeem Rahman
d21aa79126
BREAKING(io): Reorganize modules (#813)
This commit reogranizes many modules:
- Move exports of io/bufio.ts (removed) into io/buffer.ts.
- Move exports of io/util.ts (repurposed, see next bullet) into io/streams.ts.
* With the exception of readRange() and readRangeSync(), which have been moved to io/files.ts (new).
*Also rename iter() and iterSync() to iterateReader() and iterateReaderSync() respectively.
- Move exports of io/ioutil.ts (removed) into io/util.ts.

Deprecation messages were added to old modules to make this change backwards compatible.

Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2021-10-08 03:42:33 +02:00
Kitson Kelly
039271fa6c
chore: update std for TypeScript 4.3 changes (#938)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2021-05-30 10:46:38 +10:00
Yoshiya Hinosawa
b20aee7eef
fix(io/buffer): make Buffer compatible with Deploy (#912) 2021-05-14 09:26:00 +09:00
Kitson Kelly
ac321613e2
feat(io): add readRange, readRangeSync (#884) 2021-04-28 16:05:09 +10:00
defectivepixel
762c4fa021
refactor(io/buffer): use std/bytes copy (#853) 2021-04-15 17:32:34 +09:00
Luca Casonato
be89f5a714
feat: add io/buffer and io/util module (#808)
This moves the `Deno.Buffer` and `Deno.readAll` / `Deno.readAllSync` /
`Deno.writeAll` / `Deno.writeAllSync` implementations to std, so we can
deprecate them in Deno 1.9, and remove them in Deno 2.0.
2021-03-22 22:45:35 +01:00