Zhangyuan Nie
5bc18f5d86
BREAKING(encoding): remove module utf8.ts ( #728 )
2021-02-16 13:22:07 +01:00
grian
bcdbfea65c
docs(io/ioutil.ts): improve jsdoc ( #706 )
2021-02-07 01:21:58 +09:00
Bartek Iwańczuk
84ee144ba8
chore: Enforce ban-untagged-todo lint rule ( denoland/deno#9135 )
2021-02-01 10:46:59 +00:00
Kitson Kelly
9597b333b8
refactor(op_crate/fetch): align streams to spec ( denoland/deno#9103 )
...
Fixes denoland/deno#8814
2021-02-01 10:46:59 +00:00
Ryan Dahl
48a2496dbe
update copyright to 2021 ( denoland/deno#9081 )
2021-02-01 10:46:59 +00:00
tomholford
ec1e44b9d5
docs: fix naming in io
usage example ( denoland/deno#8700 )
...
Co-authored-by: tomholford <tomholford@users.noreply.github.com>
2021-02-01 10:46:58 +00:00
Yosi Pramajaya
fe6304a6a2
BREAKING(bytes): Adjust APIs based on std-wg discussion ( denoland/deno#8612 )
2021-02-01 10:46:58 +00:00
Iván Canales
a887ce6d43
fix(bufio): Remove '\r' at the end of Windows lines ( denoland/deno#8447 )
...
Co-authored-by: Nayeem Rahman <nayeemrmn99@gmail.com>
2021-02-01 10:46:58 +00:00
Bartek Iwańczuk
721205e2ff
build: fix linting problems ( denoland/deno#8431 )
2021-02-01 10:46:58 +00:00
crowlKats
82dbe19e9e
feat(io): ReadableStream from AsyncIterator & WritableStream from Writer ( denoland/deno#8378 )
2021-02-01 10:46:58 +00:00
Yusuke Tanaka
2d7871bb17
build: update dlint to v0.2.10 ( denoland/deno#8284 )
...
Update prebuilt "dlint" binary to v0.2.10 and fix diagnostics
for "require-await" rule.
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-02-01 10:46:58 +00:00
Fukuda Naoto
1070e666e3
docs: add some missing JSDoc ( denoland/deno#7765 )
...
Refs denoland/deno#7487
2021-02-01 10:46:58 +00:00
Casper Beyer
d167b85bd4
fix(io): remove trivial internal util.ts module ( denoland/deno#8032 )
2021-02-01 10:46:58 +00:00
Casper Beyer
0631d15c38
test(io): use a real tempdir ( denoland/deno#8019 )
...
This replaces a case of a temp file in the working tree with a tempfile
in a real temporary directory avoiding pollution of the working
directory.
2021-02-01 10:46:58 +00:00
tokiedokie
8567b960f8
docs: version all imports in README ( denoland/deno#7442 )
...
Use $STD_VERSION in README files to automatically
display proper version.
2021-02-01 10:46:58 +00:00
Trivikram Kamat
eb1c38cfbf
docs: end sentences with a period in markdown ( denoland/deno#7813 )
2021-02-01 10:46:58 +00:00
David Sherret
99e0dca320
feat(fmt): Sort named import and export specifiers ( denoland/deno#7711 )
2021-02-01 10:46:58 +00:00
tokiedokie
d3fa1bbf5d
chore: add copyright ( denoland/deno#7593 )
2021-02-01 10:46:58 +00:00
Casper Beyer
5a34e26c91
test: ensure mod.ts modules have a test coverage ( denoland/deno#7264 )
2021-02-01 10:46:58 +00:00
David Sherret
1425960509
Use dprint for internal formatting ( denoland/deno#6682 )
2021-02-01 10:46:58 +00:00
syumai
b4308cdea6
Remove unused property of StringReader ( denoland/deno#6743 )
2021-02-01 10:46:58 +00:00
Max Nest
7bc149f2a4
docs(io): error in the documentation ( denoland/deno#6709 )
2021-02-01 10:46:58 +00:00
Kitson Kelly
9d4117f963
feat: add --no-check option ( denoland/deno#6456 )
...
This commit adds a "--no-check" option to following subcommands:
- "deno cache"
- "deno info"
- "deno run"
- "deno test"
The "--no-check" options allows to skip type checking step and instead
directly transpiles TS sources to JS sources.
This solution uses `ts.transpileModule()` API and is just an interim
solution before implementing it fully in Rust.
2021-02-01 10:46:58 +00:00
Marcos Casagrande
4cee6a637a
fix(io): export streams.ts & added docs ( denoland/deno#6535 )
2021-02-01 10:46:58 +00:00
Marcos Casagrande
e14bb49e38
feat(io): add fromStreamReader, fromStreamWriter ( denoland/deno#5789 )
2021-02-01 10:46:58 +00:00
Marcos Casagrande
a1d5229e0f
fix(io): Make BufWriter/BufWriterSync.flush write all chunks ( denoland/deno#6269 )
2021-02-01 10:46:58 +00:00
Chris Knight
ac61553cdd
refactor: shift copyBytes and tweak deps to reduce dependencies ( denoland/deno#6469 )
2021-02-01 10:46:58 +00:00
Marcos Casagrande
d0276e10be
fix(io): Use Deno.test in writers_test ( denoland/deno#6273 )
2021-02-01 10:46:58 +00:00
Nayeem Rahman
ccb92613f0
refactor: Don't destructure the Deno namespace ( denoland/deno#6268 )
2021-02-01 10:46:58 +00:00
Marcos Casagrande
20f03ca9c4
fix(io): BufWriter/StringWriter bug ( denoland/deno#6247 )
2021-02-01 10:46:58 +00:00
Chris Knight
589fe4bd53
refactor: remove testing dependencies from non-test code ( denoland/deno#5838 )
2021-02-01 10:46:57 +00:00
Ryan Dahl
57fd7ac4b2
fix(io): StringReader implementation ( denoland/deno#6148 )
2021-02-01 10:46:57 +00:00
Deepak Vishwakarma
d996cbceb1
added documentation with sample for io mod ( denoland/deno#6106 )
2021-02-01 10:46:57 +00:00
hastri
3a5a455ec1
feat(io): add LimitedReader ( denoland/deno#6026 )
2021-02-01 10:46:57 +00:00
uki00a
4ca81f99b1
fix: compilation error introduced by denoland/deno#4543 ( denoland/deno#5673 )
2021-02-01 10:46:57 +00:00
uki00a
528765487d
fix(io): BufReader should not share the internal buffer across reads ( denoland/deno#4543 )
2021-02-01 10:46:57 +00:00
Bert Belder
d1dbf9be98
Miscellaneous documentation and spelling improvements ( denoland/deno#5527 )
...
* Extended/updated documentation on code editor setup and plugins.
* Moved documentation to the right file.
* Fixed spelling errors in documentation and code.
* Updated broken links.
Co-authored-by: 迷渡 <justjavac@gmail.com>
Co-authored-by: AlfieriChou <alfierichou@gmail.com>
Co-authored-by: Anil Seervi <anil13112000@gmail.com
Co-authored-by: Bert Belder <bertbelder@gmail.com>
Co-authored-by: Fernando Basso <fernandobasso.br@gmail.com>
Co-authored-by: József Sallai <jozsef@sallai.me>
Co-authored-by: S4ltyGo4t <mario.weidner@gmx.de>
Co-authored-by: Tommy May <tommymay37@gmail.com>
Co-authored-by: Turbinya <wownucleos@gmail.com>
Co-authored-by: ᴜɴвʏтᴇ <i@shangyes.net>
2021-02-01 10:46:57 +00:00
Nayeem Rahman
1eecc5c7d0
BREAKING: reorganization ( denoland/deno#5087 )
...
* Prepend underscores to private modules
* Remove collectUint8Arrays() It would be a misuse of Deno.iter()'s result.
* Move _util/async.ts to async
* Move util/sha*.ts to hash
2021-02-01 10:46:57 +00:00
Marcos Casagrande
94c9fbcd2e
BREAKING: reorder io/utils copyBytes arguments ( denoland/deno#5022 )
2021-02-01 10:46:57 +00:00
Bartek Iwańczuk
380f7e971b
BREAKING: remove custom implementation of Deno.Buffer.toString() ( denoland/deno#4992 )
...
Keep in mind Buffer.toString() still exists, but returns [object Object].
Reason for removal of Buffer.toString() was that it implicitly used
TextDecoder with fixed "utf-8" encoding and no way to customize
the encoding.
2021-02-01 10:46:57 +00:00
Marcos Casagrande
17a8d40127
fix: Make io copyN write the whole read buffer ( denoland/deno#4978 )
2021-02-01 10:46:57 +00:00
Nayeem Rahman
e4cb19d01d
BREAKING: Remove Deno.EOF, use null instead ( denoland/deno#4953 )
2021-02-01 10:46:57 +00:00
Bartek Iwańczuk
0a06926869
refactor: rename sync io interfaces ( denoland/deno#4945 )
...
This commit renames sync io interfaces:
* SyncReader -> ReaderSync
* SyncWriter -> WriterSync
* SyncSeeker -> SeekerSync
2021-02-01 10:46:57 +00:00
Bartek Iwańczuk
4facff44f2
BREAKING: remove overload of Deno.test() ( denoland/deno#4951 )
...
This commit removes overload of Deno.test() that accepted named
function.
2021-02-01 10:46:57 +00:00
Marcos Casagrande
a9739b84a3
Increase copyN buffer size to match go implementation ( denoland/deno#4904 )
2021-02-01 10:46:57 +00:00
Akshat Agarwal
f254160d91
reorder copyN arguments to match Deno.copy ( denoland/deno#4900 )
2021-02-01 10:46:57 +00:00
Bartek Iwańczuk
5f53c9808c
BREAKING CHANGE: remove Deno.OpenMode ( denoland/deno#4884 )
...
This commit removes Deno.OpenMode along with overloaded variants
of Deno.open() and Deno.openSync() that used OpenMode.
2021-02-01 10:46:57 +00:00
Bartek Iwańczuk
214d4bf8e4
BREAKING CHANGE: change order of args in Deno.copy() ( denoland/deno#4885 )
2021-02-01 10:46:57 +00:00
Chris Knight
65ffcf6b6b
feature: synchronous buffered writer ( denoland/deno#4693 )
2021-02-01 10:46:57 +00:00
Ryan Dahl
1f1818d379
Move encode, decode helpers to /encoding/utf8.ts, delete /strings/ ( denoland/deno#4565 )
...
also removes encoding/mod.ts and archive/mod.ts which are useless.
2021-02-01 10:46:57 +00:00
Kitson Kelly
7914eae5f0
Update to Prettier 2 and use ES Private Fields ( denoland/deno#4498 )
2021-02-01 10:46:57 +00:00
Samrith Shankar
204ebc523d
Add require-await lint rule ( denoland/deno#4401 )
2021-02-01 10:46:57 +00:00
Bartek Iwańczuk
a19e660a30
feat: Deno.test() sanitizes ops and resources ( denoland/deno#4399 )
...
This PR brings assertOps and assertResources sanitizers to Deno.test() API.
assertOps checks that test doesn't leak async ops, ie. there are no unresolved
promises originating from Deno APIs. Enabled by default, can be disabled using
Deno.TestDefinition.disableOpSanitizer.
assertResources checks that test doesn't leak resources, ie. all resources used
in test are closed. For example; if a file is opened during a test case it must be
explicitly closed before test case finishes. It's most useful for asynchronous
generators. Enabled by default, can be disabled using
Deno.TestDefinition.disableResourceSanitizer.
We've used those sanitizers in internal runtime tests and it proved very useful in
surfacing incorrect tests which resulted in interference between the tests.
All tests have been sanitized.
Closes denoland/deno#4208
2021-02-01 10:46:57 +00:00
Oliver Lenehan
9986475ca1
fix: Use Deno.errors where possible. ( denoland/deno#4356 )
2021-02-01 10:46:57 +00:00
Yusuke Sakurai
589ac5af6f
reduce unnecessary output on tests ( denoland/deno#4148 )
2021-02-01 10:46:57 +00:00
Yusuke Sakurai
b490e1199c
fix: [ws] sock shouldn't throw eof error when failed to read frame ( denoland/deno#4083 )
2021-02-01 10:46:57 +00:00
Maximilien Mellen
623a601fd5
Enable TS strict mode by default ( denoland/deno#3899 )
...
Fixes denoland/deno#3324
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2021-02-01 10:46:57 +00:00
Nayeem Rahman
2f43947408
feat(io): Export readDelim(), readStringDelim() and readLines() from bufio.ts ( denoland/deno#4019 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-02-01 10:46:57 +00:00
Bartek Iwańczuk
82a523639a
refactor: rewrite tests in to use Deno.test ( denoland/deno#3930 )
2021-02-01 10:46:57 +00:00
Yusuke Sakurai
7534d8390a
remove non-null assertion operator from std (part2) ( denoland/deno#3927 )
2021-02-01 10:46:57 +00:00
Yusuke Sakurai
ee8ec4b053
remove non-null assertion operator from std (part1) ( denoland/deno#3900 )
2021-02-01 10:46:57 +00:00
Ry Dahl
8c250d5668
fix: Deno.mkdir should conform to style guide ( denoland/deno#3617 )
2021-02-01 10:46:56 +00:00
Ry Dahl
3a9eb92372
Happy new year! ( denoland/deno#3578 )
2021-02-01 10:46:56 +00:00
Nayeem Rahman
90bd2ad881
feat: Add missing mod.ts files in std ( denoland/deno#3509 )
...
archive/tar.ts:
- Remove FileReader.
- Remove FileWriter.
encoding/csv.ts:
- ExtendedParseOptions -> ParseOptions
- HeaderOption -> HeaderOptions
- ParseOptions -> ReadOptions
- readAll() -> readMatrix()
encoding/yaml.ts:
- DumpOptions -> StringifyOptions
fmt/colors.ts:
- getEnabled() -> getColorEnabled()
- setEnabled() -> setColorEnabled()
testing/mod.ts:
- Re-export sibling modules.
2021-02-01 10:46:56 +00:00
Kitson Kelly
1c5db631f7
Update to TypeScript 3.7 ( denoland/deno#3275 )
...
and update to prettier 1.19
Also, update `assert()` and remove not null assertions where possibly
in `cli`.
Closes denoland/deno#3273
2021-02-01 10:46:56 +00:00
Robert Jack Will
4b3c56b714
std: fix BufReader.readString to actually return Deno.EOF at end ( denoland/deno#3191 )
2021-02-01 10:46:56 +00:00
Nayeem Rahman
5b2aec7a62
std: Move fs/path to the top-level ( denoland/deno#3100 )
2021-02-01 10:46:56 +00:00
Yoshiya Hinosawa
c3fe858f98
Update eslint and @typescript-eslint ( #621 )
2019-10-05 12:02:34 -04:00
timonson
f3bdf1a77b
added type number to 'size' parameter ( #618 )
2019-09-29 10:11:18 -04:00
Dmitry Sharshakov
20b6408e10
Implement readString ( #607 )
2019-09-22 13:04:46 -04:00
Bartek Iwańczuk
c44e5367bf
feat: test runner ( #516 )
2019-08-14 20:04:56 -04:00
Yoshiya Hinosawa
3ea90d54f6
Upgrade to v0.11.0 (update Reader interface) ( #527 )
2019-07-07 15:20:41 -04:00
Axetroy
b04fda30c8
lint: add max line length rules ( #507 )
2019-06-18 21:22:01 -07:00
Bert Belder
679b203053
io: make port BufReader.readByte() return number | EOF
2019-05-30 18:35:00 -07:00
Bartek Iwańczuk
be24677d15
chore: Implement strict mode ( #453 )
2019-05-30 08:59:30 -04:00
Bert Belder
0ee6334b69
io: refactor BufReader/Writer interfaces to be more idiomatic ( #444 )
...
Thanks Vincent Le Goff (@zekth) for porting over the CSV reader
implementation.
Fixes : #436
2019-05-29 09:50:12 -07:00
Axetroy
2f003fa35c
rename strings/strings.ts to strings/mod.ts ( #449 )
2019-05-27 02:58:31 +03:00
Yusuke Sakurai
782e3f690f
feat: ws client ( #394 )
2019-05-14 15:19:11 -04:00
Vincent LE GOFF
4543b563a9
Eslint fixes ( #356 )
...
Make warnings fail
2019-04-24 07:41:22 -04:00
Vincent LE GOFF
0bb040e8d4
Test reorganization ( #290 )
2019-03-18 12:49:54 -04:00
Yoshiya Hinosawa
395392912d
Use Deno global var instead of built-in "deno" module ( #247 )
2019-03-07 19:25:16 -05:00
Ryan Dahl
4cf39d4a14
Rename assertEq to assertEquals ( #242 )
...
After some discussion it was found that assertEquals is more common
in JS (vs assertEqual, assertEq) and sounds better in the negated form:
assertNotEquals vs assertNE.
2019-03-06 19:42:24 -05:00
Vincent LE GOFF
e1d5c00279
Testing refactor ( #240 )
2019-03-06 16:39:50 -05:00
Kitson Kelly
c0390ade3d
Add eslint for linting ( #235 )
2019-03-04 19:53:35 -05:00
Bert Belder
6063378a92
Change import { x } from "deno"
to const { x } = Deno
( #218 )
2019-02-26 00:35:50 -05:00
Ryan Dahl
57c9176b19
Revert "Redesign of http server module ( #188 )"
...
We need to consider the API changes here more carefully.
This reverts commit da188a7d30
.
and commit 8569f15207
.
2019-02-19 13:18:41 -05:00
Yusuke Sakurai
8569f15207
Redesign of http server module ( #188 )
2019-02-15 11:03:57 -05:00
Yusuke Sakurai
fda9c98d05
feat: multipart, etc.. ( #180 )
2019-02-10 18:49:48 -05:00
Dmitry Sharshakov
f2d23f8fcd
Clean up tests ( #176 )
2019-02-08 12:23:51 -05:00
Dmitry Sharshakov
5440377495
Add missiong copyright headers ( #177 )
2019-02-07 11:45:47 -05:00
Max Graey
2081f03a07
fix possible range issues for copyBytes in io/util ( #146 )
2019-01-21 21:56:35 -06:00
Andy Hayden
e28c9a4079
Remove race-condition in file_server tests ( #125 )
2019-01-17 13:08:59 -05:00
Andy Hayden
c5e6e015b5
Reorgnanize repos, examples and tests ( #105 )
2019-01-12 16:50:04 -05:00