Ryan Dahl
3c9bb1e799
Isolate::execute doesn't need mutability.
2018-09-17 20:07:53 -07:00
Ryan Dahl
6143a64256
Rename Deno to Isolate and move to own file.
2018-09-17 20:07:53 -07:00
Kevin (Kun) "Kassimo" Qian
e3d634eb21
Make mode always u32 and switch to has_mode for StatRes fbs ( #761 )
2018-09-17 16:53:55 -07:00
Kevin (Kun) "Kassimo" Qian
c7a4ca3c88
Use dirs::home_dir
to replace deprecated std::env::home_dir
2018-09-16 18:39:07 -07:00
Bert Belder
bdfaf12186
format
2018-09-16 18:37:18 -07:00
Kevin (Kun) "Kassimo" Qian
b0958073ba
Remove remove_timer asserts ( #760 )
...
* Remove remove_timer asserts
* Add clearTimeout invalid id no-panic test
* Move timer test to its file AND some lint side-effects
2018-09-16 13:35:16 -07:00
Kevin (Kun) "Kassimo" Qian
662e57b20a
[fs] Enable mode for mkdir
on unix ( #746 )
2018-09-14 12:30:43 -07:00
Ryan Dahl
d38b3b585c
v0.1.4
...
- Support headers in fetch()
- Adds many async fs functions:
deno.rename() deno.remove(), deno.removeAll(), deno.removeSync(),
deno.removeAllSync(), deno.mkdir(), deno.stat(), deno.lstat()
deno.readFile() and deno.writeFile().
- Add mode in FileInfo
- Access error codes via error.kind
- Check --allow-net permissions when using fetch()
- Add deno --deps for listing deps of a script.
2018-09-12 20:45:47 -04:00
JaePil Jung
5bea62ac32
Small handers.rs cleanup ( #735 )
2018-09-12 15:17:17 -04:00
qti3e
41c70b154f
Add support for fetch() headers ( #727 )
2018-09-12 15:16:42 -04:00
Mani Maghsoudlou
88d42f0b18
Implement deno.rename() ( #731 )
2018-09-12 11:44:58 -04:00
Kevin (Kun) "Kassimo" Qian
26081a32df
Add unix-only mode
for FileInfo ( #732 )
2018-09-12 10:28:48 -04:00
Kevin (Kun) "Kassimo" Qian
1ffae65165
Add remove(), removeAll().
...
and removeSync(), removeAllSync().
2018-09-12 10:24:17 -04:00
Sajjad Hashemian
7c50c11f40
Implement deno.stat() and deno.lstat()
2018-09-11 16:05:00 -04:00
Kevin (Kun) "Kassimo" Qian
05f87a0cf2
Move writeFileSync to write_file.ts, add writeFile and tests ( #728 )
2018-09-11 12:00:57 -04:00
Sajjad Hashemian
c2663e1d82
Implement deno.mkdir()
2018-09-10 15:02:07 -04:00
Ryan Dahl
e293c204a0
Support async futures that have empty response.
2018-09-10 15:02:07 -04:00
Ryan Dahl
35bc9ddf63
Implement deno.readFile()
...
As an example of how to implement ops that have both sync and async
versions.
2018-09-10 00:14:28 -04:00
Ryan Dahl
c29392b25f
create_msg -> serialize_response
2018-09-10 00:14:28 -04:00
Ryan Dahl
9bb0627a88
Remove null_buf()
2018-09-10 00:14:28 -04:00
Ryan Dahl
e2a285b871
Better NotFound error handling in CodeFetch
...
throwResolutionError was swallowing unrelated errors.
2018-09-09 23:12:22 -04:00
Ryan Dahl
a4f1b367b9
Remove namespace from src/msg.fbs
2018-09-09 23:12:22 -04:00
Ryan Dahl
0d03fafbfe
Map promises onto futures.
...
Refactors handlers.rs
The idea is that all Deno "ops" (aka bindings) should map onto
a Rust Future. By setting the "sync" flag in the Base message
users can determine if the future is executed immediately or put
on the event loop.
In the case of async futures, a promise is automatically created.
Errors are automatically forwarded and raised.
TODO:
- The file system ops in src/handler.rs are not using the thread pool
yet. This will be done in the future using tokio_threadpool::blocking.
That is, if you try to call them asynchronously, you will get a promise
and it will act asynchronous, but currently it will be blocking.
- Handlers in src/handler.rs returned boxed futures. This was to make
it easy while developing. We should try to remove this allocation.
2018-09-09 18:47:22 -04:00
J2P
3deaf99a92
Format msg.fbs
2018-09-07 20:36:18 -04:00
Parsa Ghadimi
1052f8d0c9
Check allow-net in fetch
2018-09-06 11:07:10 -04:00
Mirko Jotic
fcdfacc2de
Implementing --deps flag
...
- Adding a ModuleId type alias to specify original url or local file of
dependency
- Modifying ModuleMetaData class to contain ModuleId
- Adding a --deps flag
2018-09-06 10:42:07 -04:00
Ryan Dahl
59f3fca166
v0.1.3
...
* Fixes module resolution error #645
* Better flag parsing
* lStatSync -> lstatSync
* Added deno.renameSync()
* Added deno.mkdirSync()
* Fix circular dependencies #653
* Added deno.env() and --allow-env
2018-09-05 23:08:20 -04:00
Ryan Dahl
e7741ab97f
Rename src/binding.rs -> src/libdeno.rs
2018-09-05 22:27:47 -04:00
Ryan Dahl
32f0c37a42
Format
2018-09-05 22:27:47 -04:00
Ryan Dahl
e4990804fa
Improve module resolution.
...
Windows can't handle ":" in path names, so we use a special directory
format .deno/deps/localhost_PORT4545/ to represent hosts with
non-default ports.
Fixes #645 .
2018-09-05 22:27:23 -04:00
Ian Shehadeh
827f489c5a
Better flag parsing
2018-09-04 16:00:32 -04:00
Mani Maghsoudlou
641e3d404d
Implement renameSync
2018-09-04 11:57:04 -04:00
Sajjad Hashemian
b2b4299e3b
Implement mkdirSync
2018-09-03 15:06:00 -04:00
Ryan Dahl
dff909ef6c
Clean up handlers.
2018-09-03 10:45:58 -04:00
Ryan Dahl
4ccae957fb
Upgrade flatbuffers
2018-09-03 10:45:58 -04:00
Ryan Dahl
787832c68e
Format.
2018-09-03 10:45:58 -04:00
J2P
f949ded933
Log level code refactoring
2018-09-02 19:16:50 -04:00
Aaron Power
f131445a46
Implemented deno.env and refactored flags.rs
2018-08-31 13:18:24 -04:00
Ryan Dahl
cce3bd470b
v0.1.2
...
* Added https import support.
* Added deno.makeTempDirSync().
* Added deno.lstatSync() and deno.statSync().
2018-08-30 18:29:05 -04:00
Ryan Dahl
0ec629d105
format
2018-08-30 14:41:55 -04:00
Aaron Power
b86bf4d8a4
Implemented statSync and lStatSync
2018-08-30 12:39:33 -04:00
Ryan Dahl
d8d5c421c3
Support https imports.
...
Adds hyper-rustls to the build.
Use ring for sha1 instead of "ssh1" crate.
Fixes #528 .
2018-08-30 08:29:28 -04:00
Ryan Dahl
11896647e6
Downgrading tokio to registry version.
...
Prep for rustls.
2018-08-30 08:29:28 -04:00
Ryan Dahl
902e6e2ee6
Fix warnings.
...
Ref #374
2018-08-30 05:48:40 -04:00
Bert Belder
ceaf822682
Implement makeTempDirSync()
2018-08-29 22:40:05 +02:00
Ryan Dahl
c42e4ddbb7
v0.1.1
2018-08-28 09:37:52 -04:00
Aaron Power
3a5cf9ca8b
Replaced read_file_sync{_string} with std::fs::read{_to_string}
2018-08-26 11:00:22 -04:00
Ryan Dahl
68d388229e
Bump version to v0.1.0
...
https://github.com/denoland/deno/milestone/1
2018-08-23 10:37:06 -04:00
Ryan Dahl
ecb955929f
Normalize windows paths.
...
Add resolve_module test
2018-08-23 09:41:08 -04:00
Ryan Dahl
e2f9b0e6fd
First pass at HTTP imports
...
Implement --reload
Integrate hyper errors into DenoError
In collaboration with Tommy Savaria <tommy.savaria@protonmail.ch>
2018-08-23 09:41:08 -04:00