Ryan Dahl
eaec5a8780
Support uploading data from fetch()
...
Does not yet support streaming, only strings and TypedArrays for now.
2018-11-16 11:44:25 +08:00
Ryan Dahl
975f75d81e
Specify exact versions in Cargo.toml
...
To fix "cargo check" on travis, where they have silently upgraded us
from Ring 0.13.2 to 0.13.4, which has some errors.
2018-11-16 11:20:35 +08:00
Ryan Dahl
9d9853b319
Lift snapshot to be an argument of Isolate::new().
2018-11-16 08:25:54 +08:00
Ryan Dahl
b2bc0a7fc9
Improve docs ( #1196 )
2018-11-16 08:06:03 +08:00
Ryan Dahl
f88fa2dcf8
Support shebang
2018-11-16 08:05:13 +08:00
Ryan Dahl
d7abdfe754
Simplify NotFound code.
2018-11-16 08:05:13 +08:00
Ryan Dahl
3c8d2bde68
Support request method and headers in fetch() ( #1188 )
...
Adds a general HttpHeader flatbuffer message for serializing requests
and responses.
2018-11-14 17:36:34 -08:00
Ryan Dahl
765863e87a
Add a simple doc generation tool.
...
And website upload tool.
2018-11-14 17:34:28 -08:00
迷渡
fbaa40f6dc
fix code sample in Docs
2018-11-14 00:18:41 -08:00
Ryan Dahl
b1579460ce
Support streaming response bodies from fetch()
...
Also Buffer.readFrom in fetch() to buffer response.
2018-11-13 21:44:38 -08:00
Ryan Dahl
f2223fb9ad
Wrapper around hyper::Body so it can be used as AsyncRead
2018-11-13 21:44:38 -08:00
Ryan Dahl
92e404706b
Use include_bytes! instead of incbin. ( #1182 )
2018-11-12 17:17:30 -08:00
Ryan Dahl
e931c53a23
Use Uint8Array instead of ArrayBufferView
...
Original: 0c8ad6eb1a
2018-11-12 14:09:50 -05:00
Ryan Dahl
0c740ff85d
v0.1.12
...
- Update to TypeScript 3.1.6 (#1177 )
- Fixes Headers type not available. (#1175 )
- Reader/Writer to use Uint8Array not ArrayBufferView (#1171 )
- Fixes importing modules starting with 'http'. (#1167 )
- build: Use target/ instead of out/ (#1153 )
- Support repl multiline input (#1165 )
2018-11-12 09:16:00 -08:00
Kitson Kelly
6332eb7815
Update to TypeScript 3.1.6 ( #1177 )
2018-11-12 08:47:36 -08:00
Steven Liekens
65c3abcd40
Use https for the demo
...
Without HTTPS it might be possible for a MITM to inject arbitrary code into the "thumb.ts" response which Deno would then execute.
2018-11-11 06:24:06 -08:00
Ryan Dahl
92455a0b67
Basic http demo working.
...
Original: 805efdb750
2018-11-09 17:23:01 -05:00
Ryan Dahl
5880827f33
First pass at BufWriter
...
Original: 9329cd76bd
2018-11-09 13:25:30 -05:00
Kitson Kelly
34b6b86c76
Ensure global type instances are available.
2018-11-09 08:39:49 -08:00
Kitson Kelly
172f5a5133
Cleanups for runtime lib declarations.
2018-11-09 08:36:31 -08:00
Ryan Dahl
1f2c92c7c8
Reader/Writer should use Uint8Array not ArrayBufferView
...
Because many Reader/Writer implementations (e.g. bufio) assume their
able to use subarray() with byte indexes and often ask for byte values,
it makes sense to simply restrict all implementations to Uint8Array.
2018-11-09 07:22:05 -08:00
Ryan Dahl
9b78509ceb
wip
...
Original: ad578ab6fe
2018-11-08 18:15:26 -05:00
Ryan Dahl
80b2067030
Use async iterators for http server.
...
Original: 9377d154c5
2018-11-08 15:07:37 -05:00
Ryan Dahl
98e6366cb5
Local filenames starting with 'http' shouldn't be remote. ( #1167 )
2018-11-08 10:38:54 -08:00
Ryan Dahl
a18e51fd61
build: Use target/ instead of out/ ( #1153 )
2018-11-08 10:38:20 -08:00
Ryan Dahl
fb0b99408b
Add tests for TextProtoReader.readMIMEHeader()
...
Original: 36edda18ab
2018-11-08 12:58:43 -05:00
Ryan Dahl
0c324a442e
First pass at TextProtoReader.
...
Original: 31ab43b919
2018-11-08 12:26:20 -05:00
Aladeen
1a876a70de
travis should immediately fail when lint or test_format fails ( #1172 )
...
Fixes #1104
2018-11-08 09:19:37 -08:00
Ryan Dahl
a628a499fa
Simplify travis.
...
Original: 22151e4f7b
2018-11-08 11:58:41 -05:00
Ryan Dahl
e97fdcac47
Add BufReader.peek()
...
Original: 90cbca40be
2018-11-08 04:01:20 -05:00
Ryan Dahl
d35e13e6be
Add test bufioReadLine
...
Original: 01f576af87
2018-11-08 02:05:06 -05:00
Ryan Dahl
5f74f7eebe
Use https instead of http.
...
Original: 2d8d8247da
2018-11-07 23:22:33 -05:00
Ryan Dahl
423424f1da
Add BufReader.readSlice()
...
Original: e37b949e2c
2018-11-07 23:19:08 -05:00
Ryan Dahl
8396619721
Rename bufio.Reader to BufReader
...
Original: 6b886836c0
2018-11-07 21:01:32 -05:00
Ryan Dahl
9b014313db
Add bufio tests.
...
Original: aa9e3df0d2
2018-11-07 20:28:01 -05:00
Ryan Dahl
9e3cde22d7
Add Readme
...
Original: be1eb62bdc
2018-11-07 14:28:47 -05:00
Ryan Dahl
77b1b40bd1
Add travis script
...
Original: 7117998ab8
2018-11-07 14:23:06 -05:00
Ryan Dahl
280856f8d8
First pass at bufio.read tests.
...
Original: 1eb57aa394
2018-11-07 14:17:36 -05:00
Ryan Dahl
8610e3578c
First pass at bufio.
...
Original: c5cc695970
2018-11-07 13:16:07 -05:00
Ryan Dahl
abe47d10c9
Fix test
...
Original: 52ff748cfb
2018-11-07 10:18:48 -05:00
Ryan Dahl
0d048b8704
Init
...
Original: 60735e1804
2018-11-07 01:12:48 -05:00
Bert Belder
d67733c34d
appveyor: place cargo and rustup in the same cache
...
This avoids the problem that when one of the caches is restored and the
other isn't, Rust doesn't get reinstalled, but it also isn't usable,
crashing the CI.
2018-11-07 03:55:20 +01:00
Andy Hayden
e9327be831
Support repl multiline input ( #1165 )
2018-11-06 11:19:16 -08:00
Andy Hayden
13e1eb2b87
Fix many of the clippy::pedantic warnings
2018-11-06 06:43:02 -08:00
Kitson Kelly
f477b45a0a
Improve preparing stack traces
2018-11-06 06:37:16 -08:00
Andy Hayden
7a17e2aec6
Remove flags::process
...
It was doing two independent things:
- print help and exit
- set log level
It's better to do those explicitly in main.rs
2018-11-06 06:25:38 -08:00
Ryan Dahl
e1d5f82d36
v0.1.11
...
- Performance and stability improvements on all platforms.
- Add repl (#998 )
- Add deno.Buffer (#1121 )
- Support cargo check (#1128 )
- Upgrade Rust crates and Flatbuffers. (#1145 , #1127 )
- Add helper to turn deno.Reader into async iterator (#1130 )
- Add ability to load JSON as modules (#1065 )
- Add deno.resources() (#1119 )
- Add application/x-typescript mime type support (#1111 )
2018-11-05 14:51:29 -08:00
Kitson Kelly
5c51cffacf
Omit sources from source maps in bundle.
2018-11-05 13:26:54 -08:00
Ryan Dahl
b3400d822f
Decode main.js.map during snapshotting.
...
Pro:
time ./out/debug/deno tests/error_001.ts 3.0s -> 0.4s
Con:
time ./tool/build.py snapshot 33s -> 1m52s
out/debug/gen/snapshot_deno.bin 39M -> 121M
2018-11-05 13:26:54 -08:00
Andy Hayden
27ecfc1617
Add repl ( #998 )
...
- Running repl from js side.
- Add tests for repl behavior.
- Handle ctrl-C and ctrl-D.
2018-11-05 09:55:59 -08:00