Bartek Iwańczuk
34b99fec8e
rename dial to connect and dialTLS to connectTLS ( #3710 )
2020-01-18 18:35:12 +01:00
Kevin (Kun) "Kassimo" Qian
fc077cd315
std/http: allow response body to be string ( #3705 )
2020-01-17 18:44:35 -05:00
Ry Dahl
a4dde552de
Revert "feat(flags): script arguments come after '--'" ( #3681 )
...
Due to complaints about ergonomics and because it breaks shebang on
linux.
This reverts commit 2d5457df15
.
BREAKING CHANGE
2020-01-15 19:21:35 -05:00
Ry Dahl
d492c5abe3
feat: Deno.args now does not include script ( #3628 )
...
Previously Deno.args was ["script.js", "arg1", "arg2"]
Now it is just ["arg1", "arg2"]
BREAKING CHANGE
2020-01-09 11:37:01 -07:00
Ry Dahl
2d5457df15
feat(flags): script arguments come after '--' ( #3621 )
2020-01-08 14:59:53 -05:00
Ry Dahl
bfab4ed0df
Happy new year! ( #3578 )
2020-01-02 15:13:47 -05:00
Kevin (Kun) "Kassimo" Qian
5cf2eb7d18
feat(std/http): make req.body a Reader ( #3575 )
2020-01-02 12:34:33 -05:00
Nayeem Rahman
e8d82a6348
feat: Add missing mod.ts files in std ( #3509 )
...
std/archive/tar.ts:
- Remove FileReader.
- Remove FileWriter.
std/encoding/csv.ts:
- ExtendedParseOptions -> ParseOptions
- HeaderOption -> HeaderOptions
- ParseOptions -> ReadOptions
- readAll() -> readMatrix()
std/encoding/yaml.ts:
- DumpOptions -> StringifyOptions
std/fmt/colors.ts:
- getEnabled() -> getColorEnabled()
- setEnabled() -> setColorEnabled()
std/testing/mod.ts:
- Re-export sibling modules.
2019-12-20 15:21:30 -05:00
木杉
7e116dd70d
Support utf8 in file_server ( #3495 )
2019-12-14 16:03:30 +08:00
木杉
d8e60309d2
feat(file_server): add help & switch to flags ( #3489 )
2019-12-14 10:01:32 +08:00
Weijia Wang
df7d8288d9
file_server: get file and fileInfo concurrently ( #3486 )
2019-12-12 15:59:46 +08:00
木杉
7f27f649cc
fix: file_server swallowing permission errors ( #3467 )
2019-12-12 13:05:26 +08:00
Kevin (Kun) "Kassimo" Qian
d146d45861
benchmark: align deno_http and node_http response ( #3484 )
2019-12-12 13:02:23 +08:00
Kevin (Kun) "Kassimo" Qian
c3c69aff7e
fix(std/http): close connection on .respond() error ( #3475 )
2019-12-12 08:46:03 +08:00
AleksandrukTad
31ddfd5a42
fix: decoding uri in file_server ( #3187 )
2019-12-10 20:11:55 +08:00
木杉
cfa4f540ba
better html for file_server ( #3423 )
2019-12-02 16:14:25 -08:00
Ry Dahl
c016684653
refactor: reorganize flags ( #3389 )
...
- Remove ability to specify run arguments like `--allow-net` after the
script argument. It's too hacky to make work with clap.
- Remove `--v8-options`, instead use `--v8-flags=--help`
- Give more descriptive names to unit tests in flags.rs
- Assume argv and subcommand into DenoFlags struct so the output of
flags module is only DenoFlags rather than the tuple (subcommand, flags,
argv).
- Improve CLI help text
- Make `deno run` specific args like `--allow-net` only show up in 'deno
help run' instead of as global flags in `deno help`.
- Removes `deno version` to simplify our implementation and be closer to
clap defaults. `deno -V` now only shows Deno's version and not V8's nor
TypeScript. `Deno.versions` can be used to see that information.
- Prevent clap from auto-detecting terminal width and attempting to wrap
text.
2019-11-26 08:06:32 -08:00
Ry Dahl
e6fdb2628f
chore: improve examples ( #3377 )
2019-11-18 22:07:13 -08:00
Bartek Iwańczuk
8f9a942cb9
Use futures 0.3 API ( #3358 )
2019-11-16 19:17:47 -05:00
Leo Chandra
26bf928d28
fix: std/datetime toIMF bug ( #3357 )
2019-11-16 08:24:07 -05:00
Kitson Kelly
9837d324a7
Update to TypeScript 3.7 ( #3275 )
...
and update to prettier 1.19
Also, update `assert()` and remove not null assertions where possibly
in `cli`.
Closes #3273
2019-11-13 13:42:34 -05:00
Nayeem Rahman
d586f119fa
net: Check for closing status when iterating Listener ( #3309 )
...
std/http/server.ts: Use listener.next() instead of listener.accept()
2019-11-09 14:40:22 -05:00
Ryan Dahl
97ceea49f5
Add jsdoc for std/http/http_status.ts
...
The website documentation now supports enums
6f4fb0f5a3
2019-11-08 17:27:09 -05:00
Ry Dahl
709cb3c9ba
Fix jsdoc in std/http/server.ts ( #3284 )
2019-11-07 11:00:27 -08:00
Liam Perlaki
ccc9f1ae5e
Allow http server to take { hostname, port } argument ( #3233 )
2019-11-06 12:18:28 -05:00
Ry Dahl
c04ff22afe
Remove tsconfig files - they are not part of build process ( #3262 )
2019-11-04 18:13:28 -05:00
Kevin (Kun) "Kassimo" Qian
0644f9c1a6
std/http: add serveTLS and listenAndServeTLS ( #3257 )
2019-11-04 13:45:29 -05:00
Andy Hayden
f484776384
Use top-level for-await in various places ( #3217 )
2019-10-28 15:58:35 -04:00
Andy Hayden
aec5a646c9
feat: top-level-for-await ( #3212 )
2019-10-27 09:04:42 -04:00
Nick Stott
c876d1adb4
Re-enable some tests ( #3154 )
...
Ref #3095
2019-10-19 16:55:20 -04:00
Nayeem Rahman
f51dcc12d7
std: Move fs/path to the top-level ( #3100 )
2019-10-16 14:39:33 -04:00
Ryan Dahl
93f7f00c95
Run deno_std tests in github actions
2019-10-09 17:22:22 -04:00
Ryan Dahl
151ce0266e
Move everything into std subdir
2019-10-09 17:10:09 -04:00