1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-15 16:43:44 -05:00
Commit graph

3124 commits

Author SHA1 Message Date
Bert Belder
6fbf2e9624
Dynamic import (#2516) 2019-08-09 01:19:45 +02:00
andy finch
56a82e72d9 Resolve worker specifiers relative to main module of host. (#2751) 2019-08-08 14:38:53 -07:00
Daniel Buckmaster
520bdb6c31 Fix repl crash when deno dir doesn't exist (#2727) 2019-08-08 07:25:39 -04:00
Ryan Dahl
e438ac2c74
Add op_id throughout op API (#2734)
Removes the magic number hack to switch between flatbuffers and the
minimal dispatcher.

Adds machinery to pass the op_id through the shared_queue.
2019-08-07 14:02:29 -04:00
Bartek Iwańczuk
5350abbc7f manual: Edit note about V8 profiling (#2742) 2019-08-07 11:31:45 -04:00
Ryan Dahl
43d099c027
Fix incremental 'cargo build' (#2740)
Tip: RUSTC_WRAPPER should be unset for incremental builds to work.
2019-08-06 20:32:54 -04:00
Kevin (Kun) "Kassimo" Qian
77d0d1e45c Fix small execPath issues (#2744) 2019-08-06 20:32:25 -04:00
Kevin (Kun) "Kassimo" Qian
4519f9a50d Make Deno.execPath a function (#2743)
And throws without allow-env
2019-08-06 17:05:47 -04:00
Kevin (Kun) "Kassimo" Qian
ccee2f01ba Implement Blob url support for worker (#2729) 2019-08-06 09:22:11 -04:00
Nayeem Rahman
11c850af42 Enforce permissions on kill(), homeDir() and execPath (#2723) 2019-08-06 01:45:36 -04:00
Ryan Dahl
046cccfe17
Remove dispatch optimization (#2732)
Deno.core.dispatch() used to push the "control" buf onto the shared
array buffer before calling into V8, with the idea that it was one less
argument to parse. Turns out there is no more overhead passing the
control ArrayBuffer directly over. Furthermore this optimization was
making the refactors outlined in #2730 more complex. Therefore it is
being removed.
2019-08-05 20:12:15 -04:00
Bartek Iwańczuk
50fdccb175 Revert "http: delete conn parameter in readRequest" (denoland/deno_std#550)
This reverts commit 209183e248.
Fixes: denoland/deno_std#441
Original: 3e17815c7e
2019-08-06 00:03:55 +02:00
Ryan Dahl
a517513182
Remove Deno.build.args feature (#2728)
This is a minor feature which complicates the build signifigantly.
Removing to ease refactoring the build system:
https://github.com/denoland/deno/issues/2608
2019-08-05 18:00:45 -04:00
Ryan Dahl
782ebfbc0f Fix URLs in examples/README (denoland/deno_std#551)
Original: 6d78eec413
2019-08-05 18:00:28 -04:00
Kevin (Kun) "Kassimo" Qian
ddee2dff14 Provide option to delete Deno namespace in worker (#2717) 2019-08-05 07:23:41 -04:00
Bartek Iwańczuk
aaa7a3eac4 use BTreeMap for ResourceTable (#2721) 2019-08-04 09:35:03 -04:00
Kevin (Kun) "Kassimo" Qian
52c13fb3ed Enforce env permission on homeDir() and execPath (#2714) 2019-08-03 21:34:13 -04:00
Bert Belder
c6861b537e
third_party: upgrade rust crates 2019-08-02 18:59:54 +02:00
Bert Belder
5bca001f97
build: support crate imports using an alias name
A crate can assign an alternative name, different from the crate name,
when importing another crate. On the command line this looks like:

  rustc ... --extern foo_crate=path/to/bar_crate.rlib

We need to support this so we can eventually upgrade to rand-0.7.x.
2019-08-02 17:56:47 +02:00
Tomohito Nakayama
deec1b9b97 Implement function convertLineEndingsToNative in blob.ts (#2695)
based on https://w3c.github.io/FileAPI/#convert-line-endings-to-native
2019-08-01 10:04:39 -04:00
Ryan Dahl
3971dcfe10
Use system rustfmt instead of fixed binary (#2701) 2019-07-31 17:11:37 -04:00
Ryan Dahl
b3541c38f5 v0.13.0 2019-07-31 15:09:06 -04:00
Bartek Iwańczuk
2e1ab82321 refactor: cleanup compiler pipeline (#2686)
* remove fetch_source_file_and_maybe_compile_async and 
  replace it with State.fetch_compiled_module

* remove SourceFile.js_source()

* introduce CompiledModule which is basically the same as
  deno::SourceInfo and represents arbitrary file that has been 
  compiled to JS module

* introduce //cli/compilers module containing all compilers

* introduce JsCompiler which is a no-op compiler
  - output is the same as input, no compilation takes place
  - it is used for MediaType::JavaScript and MediaType::Unknown

* introduce JsonCompiler that wraps JSON in default export

* support JS-to-JS compilation using checkJs
2019-07-31 13:16:03 -04:00
Bartek Iwańczuk
e7cee29c84 Add --current-thread flag (#2702) 2019-07-31 11:02:20 -04:00
Bartek Iwańczuk
421cbd39b4 factor out FileFetcher to separate module (#2683)
* merge SourceFileFetcher trait and FileFetcher struct

* move logic related to source file fetching to //cli/file_fetcher.rs

* use Result when creating new ThreadSafeState
2019-07-31 11:58:41 +00:00
Nayeem Rahman
ef63ec763a Makes shebang Linux compatible (#2694) 2019-07-31 11:13:05 +00:00
Bartek Iwańczuk
ac269beabe feat: add debug info to ModuleResolutionError (#2697) 2019-07-30 14:34:57 +00:00
Yoshiya Hinosawa
b1e5ad7eca enable test of aborted conn on windows (denoland/deno_std#549)
Original: 28ae08b424
2019-07-30 07:39:32 +00:00
Kitson Kelly
5083f5fd90 Remap stack traces of unthrown errors. (#2693) 2019-07-29 09:11:08 +00:00
Yoshiya Hinosawa
b76007d25c refactor: use Deno.execPath where possible (denoland/deno_std#548)
Original: 287b0a9cd2
2019-07-29 08:46:21 +00:00
Bartek Iwańczuk
ff96e3dc63 benchmarks: make latency benchmark less noisy (#2689) 2019-07-28 21:31:18 +00:00
Yoshiya Hinosawa
44efefbda6 Ignore error of writing responses to aborted requests (denoland/deno_std#546)
Original: 826deb1012
2019-07-28 11:35:47 +00:00
Nayeem Rahman
ad6360edf9 Make shebangs Linux compatible (denoland/deno_std#545)
Original: 5e77e8adc7
2019-07-28 11:10:29 +00:00
Bartek Iwańczuk
187310a3e1 benchmarks: add bundle size (#2690) 2019-07-28 10:11:08 +00:00
hashrock
877e5ed784 use animated-deno-logo in denolib (#2691) 2019-07-27 19:04:42 +00:00
Bartek Iwańczuk
729c4e9377 make importmap flag global (#2687) 2019-07-27 14:37:03 +00:00
Bartek Iwańczuk
89e6792203 cli: handle deno -v and deno --version (#2684) 2019-07-27 09:20:40 +00:00
Bartek Iwańczuk
3ae808986d cli: unify deno -h options (#2682) 2019-07-26 07:36:56 +00:00
Maxim Mazurok
b7026816b6 Typo fix (#2592) 2019-07-25 16:44:32 +00:00
Nayeem Rahman
589643d557 Fix anchor link destination (#2679) 2019-07-23 23:36:10 -04:00
Bert Belder
1406961d2b
Add error handling for dynamic imports to libdeno (#2678) 2019-07-24 01:57:32 +02:00
Kevin (Kun) "Kassimo" Qian
e49d1e16ca feat: expose writeAll() and writeAllSync() (#2298)
Symmetric with `readAll()` and `readAllSync()`. Also used in `xeval`.
Also correct usage in `writeFile()`/`writeFileSync()`.
2019-07-23 11:16:39 -04:00
Bartek Iwańczuk
70de8dd51d save headers for all intermediate redirects (#2677) 2019-07-22 18:52:40 -04:00
Yoshiya Hinosawa
9c22961b6a feat(website/benchmark): enable zoom of charts (#2668) 2019-07-21 18:19:37 -04:00
andy finch
c98d9bf709 removed unnecessary implementation from SourceFileFetcher (#2670) 2019-07-20 11:02:54 -04:00
Bartek Iwańczuk
34f212f257 fix: bring back --no-fetch flag (#2671) 2019-07-20 09:19:06 -04:00
Ryan Dahl
a00d087b39
Improve example on homepage (#2667) 2019-07-19 14:59:41 -04:00
andy finch
621af21e6e only use Locker when calling into js (#2665) 2019-07-18 20:23:14 -04:00
andy finch
042484d45a remove v8::Locker from deno_respond (#2664) 2019-07-18 18:40:46 -04:00
andy finch
056c146175 Fix expected dyn before AnyError trait (#2663) 2019-07-18 23:48:44 +02:00