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
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
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
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
Aladeen
1a876a70de
travis should immediately fail when lint or test_format fails ( #1172 )
...
Fixes #1104
2018-11-08 09:19:37 -08: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
Kitson Kelly
5e48a681c4
Fix issue with runtime lib generation.
2018-11-05 07:17:47 -08:00
Ryan Dahl
bd88e56cbc
Add deno.Buffer ( #1121 )
...
Do not confuse this with Node's Buffer. This is a direct port of Go's
bytes.Buffer - it allows buffering of Reader and Writer objects.
2018-11-04 15:36:46 -08:00
Kitson Kelly
4e07783663
Improve integration test harness ( #1142 )
2018-11-04 11:52:31 -08:00
Kyra
e93d686e9d
Web APIs: File
and FormData
( #1056 )
2018-11-04 10:05:02 -08:00
Andy Hayden
1241b8e9ba
Fix clippy warnings ( #1149 )
...
Run with: cargo clippy
https://github.com/rust-lang-nursery/rust-clippy
2018-11-04 06:04:24 -08:00
Kitson Kelly
765f229357
Improve robustness of lib builder.
2018-11-04 05:56:49 -08:00
Nisheet Sinvhal
2cf3a89f63
Add documentation as per #1105 ( #1116 )
2018-11-03 08:46:48 -07:00
Bert Belder
b9914c3113
third_party: add tokio-process Rust crate and its dependencies
2018-11-03 07:42:24 +01:00
Bert Belder
a244c16270
third_party: upgrade Rust crates
2018-11-03 07:22:04 +01:00
Bert Belder
bf729a7446
third_party: add unwanted crates and cargo caches to .gitignore
...
And some other minor clean-ups in the same file.
2018-11-03 07:20:37 +01:00
Bert Belder
a4b5146157
build: infer label name for versioned Rust crates
2018-11-03 07:18:10 +01:00
Ryan Dahl
6446bc5328
Move fetch headers into its own file.
2018-11-02 20:50:01 -07:00
Ryan Dahl
ee24254bad
Rename EnvPair to KeyValue.
2018-11-02 20:50:01 -07:00
Ryan Dahl
edd12b90a8
test_rs needs deno_deps.
2018-11-02 18:14:42 +01:00
Kitson Kelly
7f8284addf
Fix performance regression with JSON Modules
2018-11-01 19:33:18 -07:00
bdistin
6345b60ed8
clarify benchmark chart units
...
Currently, the Travis chart displays "time" as the y-label of the graph, when in fact the unit is in minutes. (makes this consistent with other y-labels being "seconds")
2018-11-01 13:52:27 -07:00
Bert Belder
ec17239f46
cargo: build in Cargo's out dir if DENO_BUILD_PATH is not set
...
Plus some minor improvements and clean-ups:
* Resolve DENO_BUILD_PATH to an absolute path if necessary.
* Rename DENO_BUILD_PATH to GN_OUT_DIR in places where it is supposed to
be set by the build system (and not a user configuration variable).
* Output Cargo `rerun-if-*-changed` instructions first, so even if the
build itself fails, configuration changes will still trigger a re-run
of build.rs.
* Remove TODOs that are impossible.
* Re-run build.rs when the flatbuffer definition file changes.
2018-11-01 14:18:18 +01:00
Bert Belder
67944f298c
cargo: build only necessary Ninja targets when invoked by RLS
2018-11-01 13:34:16 +01:00
Bert Belder
b73b651612
build: remove absolute path
2018-11-01 13:34:16 +01:00
Bert Belder
9aa3640711
.gitignore: dedupe
2018-10-31 19:43:48 +01:00
Ryan Dahl
198e396ead
Support cargo check ( #1128 )
...
- Based on code from @qti3e and @piscisaureus in #724 and #1125
respectively.
- TODO The DENO_BUILD_PATH env var must be supplied and must be an
absolute path, this restriction should be removed in future work.
2018-10-31 11:11:10 -07:00
Joseph
21dac66465
Better output on panic ( #1129 )
2018-10-31 07:30:52 -07:00
Bartek Iwańczuk
162eeca373
Add helper to turn deno.Reader into async iterator ( #1130 )
2018-10-31 07:29:13 -07:00
Joseph
669b1a4e97
Mention 'git submodule update' in docs ( #1132 )
2018-10-31 07:27:39 -07:00