1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-04 17:18:23 -05:00
Commit graph

21 commits

Author SHA1 Message Date
Ryan Dahl
213885a9d0 Optimization: Reuse ArrayBuffer during serialization. 2018-10-17 20:20:06 -04:00
Kitson Kelly
10a97679ac Align JSDoc to style guide. 2018-10-14 17:38:23 -04:00
Kitson Kelly
ffb41e61f1 Updates to js to clean up default library 2018-10-07 22:52:27 -04:00
Ryan Dahl
818ad37678 Rename fbs to msg. 2018-10-04 00:25:55 -04:00
Ryan Dahl
f774953011 Rename flatbuffer base.msg to base.inner
This better disambiguates with the msg_generated.ts module, which in JS
we call "fbs", but would be better called "msg".
2018-10-04 00:25:55 -04:00
ztplz
b635553fd7 Improve fetch headers (#853) 2018-09-30 10:31:50 -04:00
Parsa Ghadimi
4b1eb855bf Make fetch.blob() work 2018-09-14 12:50:32 -07:00
Parsa Ghadimi
66c09de967 Rename fetch_types.d.ts to dom_types.d.ts 2018-09-14 12:27:32 -07:00
qti3e
41c70b154f Add support for fetch() headers (#727) 2018-09-12 15:16:42 -04:00
Ryan Dahl
3afc0b8482 fbs_util.ts -> dispatch.ts
And send() -> sendSync()
2018-09-10 00:14:28 -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
Parsa Ghadimi
1052f8d0c9 Check allow-net in fetch 2018-09-06 11:07:10 -04:00
Ryan Dahl
45dafe15ee Refactor libdeno.send() code to reduce boilerplate.
Also removes assignCmdId as it's currently unused.
2018-08-31 10:43:11 -04:00
Francesco Borzì
84c38f34ee Prevent circular imports in ts code (#576) 2018-08-25 15:42:49 -04:00
Ryan Dahl
242e68e50c fmt 2018-08-23 09:41:08 -04:00
Ryan Dahl
5d866161f8 Fix TS errors in fetch.ts 2018-08-20 21:20:15 -04:00
Ryan Dahl
868e8d8866 First pass at fetch()
With help from Thomas Ghysels <info@thomasg.be>
2018-08-20 16:53:39 -04:00
Bartek Iwańczuk
66f0e93b4c add notImplemented and unreachable util functions (#540) 2018-08-19 15:04:27 -04:00
Ryan Dahl
1de16af1f3 Change copyrights to be 'Deno authors'. 2018-07-24 10:38:11 -04:00
Ryan Dahl
fe404dfce9 Import ts file from prototype without change
From commit 559453cf6c
Excluding v8worker.d.ts, main.ts, and deno.d.ts.

Updates tslint.json to be original settings.
2018-07-06 12:22:11 -04:00