1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-01 09:24:20 -04:00
Commit graph

2548 commits

Author SHA1 Message Date
Xuhao
122226a587 Fix typo in examples/README.md (denoland/deno_std#567)
Original: b5ded6ccbf
2019-08-17 00:43:34 -04:00
Ryan Dahl
de713e42c8
Upgrade to rust 1.37.0 (#2786) 2019-08-16 20:49:00 -04:00
Bartek Iwańczuk
1978358328 chore: bump test runner version (#2784) 2019-08-16 18:20:36 -04:00
Yoshiya Hinosawa
9aa9aafbab fix: set response.url (#2782) 2019-08-16 18:20:04 -04:00
Ryan Dahl
81f809f2a6 Revert "Remove dead code: legacy read/write ops"
This is causing a segfault for unknown reasons - see #2787.

This reverts commit 498f6ad431.
2019-08-16 14:41:08 -04:00
Nayeem Rahman
52a66c2796 Fix import map panics, use import map's location as its base URL (#2770) 2019-08-15 13:58:04 -04:00
Nayeem Rahman
47adc62387 Accept absolute root directories in the file server (denoland/deno_std#558)
Original: 262d9572ab
2019-08-15 11:59:43 -04:00
a2800276
16e134d8a8 Add fmt modules (printf implementation) (denoland/deno_std#566)
Original: f7b511611c
2019-08-15 11:57:24 -04:00
Bartek Iwańczuk
917b202354 add file:// prefix for imports in test runner (denoland/deno_std#564)
Original: 15afc61356
2019-08-15 10:17:08 -04:00
Bartek Iwańczuk
d2d3afaf2d add deno test subcommand (#2783) 2019-08-15 10:11:52 -04:00
Bartek Iwańczuk
4ce2a321c8 feat: test runner (denoland/deno_std#516)
Original: c44e5367bf
2019-08-14 20:04:56 -04:00
Ryan Dahl
498f6ad431
Remove dead code: legacy read/write ops (#2776)
readSync and writeSync use dispatch_minimal now.
2019-08-14 19:54:35 -04:00
Bartek Iwańczuk
d928c0ca31 feat: add overloaded form of unit test declaration (denoland/deno_std#563)
Original: bd146e0188
2019-08-14 16:12:35 -04:00
Bartek Iwańczuk
e6c349af9f split up ops.rs (#2753)
Note cli/dispatch_minimal.rs ops are not yet included in cli/ops.

This is part of work towards #2730
2019-08-14 11:03:02 -04:00
Bartek Iwańczuk
eab0647bd1 refactor 'assertEquals' (denoland/deno_std#560)
* merge 'testing/pretty.ts' into 'testing/asserts.ts'
* throw AssertionError in assertEquals
* update misc tests use AssertionError
Original: ff2d7f24db
2019-08-14 10:22:31 -04:00
Bartek Iwańczuk
63bbe2a2e0 ci: bump to v0.15.0 (denoland/deno_std#556)
Original: f3ddb4f26b
2019-08-13 20:03:29 -04:00
Ryan Dahl
58f0e9b9b1 v0.15.0 2019-08-13 18:35:04 -04:00
Ryan Dahl
1f8b1a587c
Dynamic import should respect permissions (#2764) 2019-08-13 14:51:15 -04:00
Nayeem Rahman
1947f572d7 Fix permission requirements for Deno.rename() and Deno.link() (#2737) 2019-08-13 09:39:01 -04:00
Bert Belder
c3afa55751
Propagate Url::to_file_path() errors instead of panicking (#2771)
* Propagate Url::to_file_path() errors instead of panicking
2019-08-13 03:52:03 +02:00
Bartek Iwańczuk
9bd473d8ac feat: print cache location when no arg in deno info (#2752) 2019-08-11 18:43:01 -06:00
Bartek Iwańczuk
54982e948e fix: cache paths on Windows are broken (#2760) 2019-08-12 01:12:09 +02:00
Kevin (Kun) "Kassimo" Qian
286ee1d8b6 Fix dynamic import base path problem for REPL and eval (#2757) 2019-08-09 16:33:59 -07:00
Bert Belder
83d5362f1d
v0.14.0 2019-08-09 03:03:27 +02:00
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