Bartek Iwańczuk
4221b90c3f
perf: eager poll async ops in Isolate ( #3046 )
2019-10-14 17:46:27 -04:00
Yusuke Sakurai
6056595357
fix: [tls] op_dial_tls is not registerd and broken ( #3121 )
2019-10-13 10:37:37 -04:00
Bartek Iwańczuk
b3331e81d9
support --allow-net=:4500 ( #3115 )
2019-10-12 14:13:52 -07:00
Ryan Dahl
4b7204babe
Update various links to deno_std ( #3096 )
2019-10-12 12:23:58 -07:00
Ryan Dahl
97d8498d46
Add init methods for each op module ( #3087 )
2019-10-11 11:41:54 -07:00
Nayeem Rahman
04ed8d0531
Ensure DENO_DIR when saving the REPL history ( #3106 )
2019-10-11 10:12:39 -07:00
Ryan Dahl
93f7f00c95
Run deno_std tests in github actions
2019-10-09 17:22:22 -04:00
Ryan Dahl
a4b27db21a
v0.20.0
2019-10-07 12:57:29 -04:00
Bartek Iwańczuk
41ed4cd34e
use single thread runime in tokio_util::block_on ( #3080 )
2019-10-07 04:31:56 -04:00
Bartek Iwańczuk
e1d49fe0fe
remove more calls to tokio_util::block_on ( #3059 )
...
towards #2960
2019-10-06 15:03:30 -04:00
Ryan Dahl
b81e5db17a
Merge deno_cli_snapshots into deno_cli ( #3064 )
2019-10-04 20:28:51 -04:00
Ryan Dahl
ddcad56ee9
Move deno_std to a more convenient location. ( #3057 )
...
js/deps/https/deno.land/std -> js/std
2019-10-04 14:49:32 -04:00
Nayeem Rahman
eecb4fea26
Use xeval from deno_std ( #3058 )
2019-10-04 09:02:36 -04:00
Andy Hayden
f7bbd71e21
Update rust to 1.38.0 ( #3030 )
2019-10-03 09:16:06 -04:00
Kitson Kelly
d9ff4eccb5
Async compiler processing ( #3043 )
...
Basically this does pre-processing of TypeScript files and gathers all the
dependencies asynchronously. Only then after all the dependencies are gathered,
does it do a compile, which at that point all the dependencies are cached in
memory in the compiler, so with the exception of the hard coded assets, there
are no ops during the compilation.
Because op_fetch_source_files is now handled asynchronously in the runtime, we
can eliminate the tokio_util::block_on() which was causing the increase in
threads. Benchmarking on my machine has shown about a 5% improvement in speed
when dealing with compiling TypeScript. Still a long way to go, but an
improvement.
In theory the module name resolution and the fetching of the source files could
be broken out as two different ops. This would prevent situations of sending the
full source file all the time when actually the module is the same module
referenced by multiple modules, but that could be done subsequently to this.
2019-10-03 07:23:29 -04:00
Jed Fox
99eec73b4b
feat: Add support for passing a key to Deno.env() ( #2952 )
...
This adds a new op to get a single env var.
2019-10-02 11:55:28 -04:00
Bartek Iwańczuk
c920c5f62a
feat: window.onunload ( #3023 )
2019-10-02 11:32:51 -04:00
Yusuke Sakurai
d32f39f2ec
feat: JSX Support ( #3038 )
2019-10-02 10:46:36 -04:00
Bartek Iwańczuk
75eeac03f3
use Isolate::register_op in deno_cli ( #3039 )
2019-10-01 18:51:05 -04:00
Ryan Dahl
ae26a9c7a2
Support top-level-await in TypeScript ( #3024 )
2019-09-30 12:38:23 -04:00
Ryan Dahl
5f7ab4884c
Use 0.0.0.0 for servers in benchmarks and tests ( #3010 )
2019-09-30 12:35:48 -04:00
Bartek Iwańczuk
3a982a014b
bump deno_std deps ( #3034 )
2019-09-28 15:14:49 -04:00
Kevin (Kun) "Kassimo" Qian
6efca6d1a1
Add Deno.hostname() ( #3032 )
2019-09-27 19:09:42 -04:00
Ryan Dahl
3892cf5901
v0.19.0
2019-09-25 10:58:35 -04:00
Kitson Kelly
3d2d0ee771
Handle uncaught worker errors without panicking ( #3019 )
2019-09-25 10:46:58 -04:00
Bartek Iwańczuk
112ce0df1f
test: add HTTP_PROXY tests ( #2977 )
2019-09-24 18:52:01 -04:00
Ryan Dahl
a497f87b59
Upgrade V8 for top-level-await ( #3015 )
2019-09-24 18:37:04 -04:00
Bartek Iwańczuk
2201414a7a
fix: run missing integration tests ( #2997 )
2019-09-24 10:46:57 -04:00
Jonathon Orsi
045e74bb39
feat: Add Deno.dialTLS()
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2019-09-23 15:12:42 -04:00
Ryan Dahl
97bb2bdb79
dial/listen API change ( #3000 )
...
Previously: dial("tcp", "deno.land:80")
Now: dial({ hostname: "deno.land", port: 80, transport: "tcp" })
Similarly with listen().
2019-09-20 18:32:18 -04:00
Bert Belder
93b7acf99d
js: reschedule global timer if it fires earlier than expected ( #2989 )
...
When the global timer fires earlier than expected, which apparently
happens sometimes on server editions of Windows, we didn't call any
setTimeout callbacks, but we *also* didn't reschedule the global timer
to fire again later.
When this situation occurred it would make deno exit abruptly if there
were no other asynchronous ops running on the event loop. It could also
lead to application hangs if the upcoming setTimeout callback was
critical for the application to make progress.
2019-09-20 19:00:12 +02:00
Yoshiya Hinosawa
560edc536c
Fix handling of config file ( #2996 )
2019-09-20 10:19:51 -04:00
Ryan Dahl
56ac638d93
Remove test.py, use cargo test as test frontend ( #2967 )
...
Fixes #2933
2019-09-19 14:48:05 -04:00
迷渡
1b1ae65a4a
Make window
compatible with ts 3.6 ( #2984 )
2019-09-19 11:40:52 -04:00
Kitson Kelly
693a45c3fd
Utilise internal names for snapshot bundles ( #2973 )
2019-09-18 19:56:13 -04:00
Kitson Kelly
60a2b5a8d0
Update to TypeScript 3.6.3 ( #2969 )
2019-09-17 12:24:44 -04:00
Ryan Dahl
9cfdc60a23
Move integration tests to //cli/tests/ ( #2964 )
...
This ensures the deno executable is properly created before running the integration tests.
Also allows deno_cli to be used as a lib. Docs are now properly generated: https://docs.rs/deno_cli/0.18.4/deno_cli/
Towards #2933
Prep for #2955
2019-09-16 21:05:14 -04:00
Ryan Dahl
c9ef182886
Make deno_cli installable via crates.io ( #2946 )
...
- Fixes cargo publish on deno_typescript, deno_cli_snapshots, and
deno_cli.
- Combines cli_snapshots and js into one directory.
- Extracts TS version at compile time rather than runtime
- Bumps version awkwardly - it was necessary to test end-to-end
publishing. Sorry.
- Adds git submodule deno_typescript/typescript
2019-09-15 18:36:27 -04:00
Tomohito Nakayama
a93b29007f
Rename ansi.rs to colors.rs ( #2956 )
2019-09-15 14:48:25 -04:00
Bartek Iwańczuk
686b86edb1
feat: parallelize downloads from TS compiler ( #2949 )
2019-09-14 12:05:00 -04:00
Ryan Dahl
7e3296dad9
v0.18.0
2019-09-13 16:40:08 -04:00
Ryan Dahl
f5afadc000
Remove old comment about gn build ( #2944 )
2019-09-13 21:45:46 +02:00
Bert Belder
ac68f628d2
Upgrade rust crates
2019-09-13 00:38:02 +02:00
Bert Belder
111b19b0a3
Remove 'integer-atomics' crate
2019-09-13 00:38:02 +02:00
Ryan Dahl
93d6faacf5
Keep all deno_std URLs in sync ( #2930 )
2019-09-12 12:56:53 -04:00
Bartek Iwańczuk
a8f44213ec
bump prettier revision ( #2928 )
2019-09-12 06:32:24 -04:00
Bartek Iwańczuk
61231912e2
fix: panicking when can't create runtime for block_on ( #2905 )
2019-09-11 20:10:14 -04:00
Bartek Iwańczuk
945dc7b84b
fix: panic during fetch ( #2925 )
2019-09-11 17:34:22 -04:00
Bartek Iwańczuk
85c51404ae
feat: Set user agent for http client ( #2916 )
2019-09-11 07:31:00 -04:00
Nayeem Rahman
749ada608e
Don't test resolve_from_cwd_absolute() on Windows ( #2911 )
2019-09-10 20:16:30 -07:00
Bartek Iwańczuk
acee1944b9
feat: Make integration tests rust unit tests ( #2884 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2019-09-10 11:09:54 -04:00
Bartek Iwańczuk
2a83327a21
fix: replace bad rid panics with errors ( #2870 )
2019-09-10 00:59:40 -04:00
Ryan Dahl
35e3c06aed
Revert "feat: use trust-dns-resolver in HTTP client"
...
It caused the final executable to grow by 1.5 mb, and is not having any
other benefit.
This reverts commit 2b40fa065c
.
2019-09-09 20:35:48 -04:00
Nayeem Rahman
718c8c4360
Fix path normalization in resolve_from_cwd() ( #2875 )
2019-09-07 14:13:09 -04:00
Bartek Iwańczuk
2b40fa065c
feat: use trust-dns-resolver in HTTP client ( #2847 )
2019-09-07 13:16:36 -04:00
Nayeem Rahman
8e3c879d13
Add default-run (+ clean up old references) ( #2876 )
2019-09-06 22:31:56 -04:00
Ryan Dahl
acaff6d056
Remove tools/build.py ( #2865 )
...
Testing regression: ASAN build removed.
2019-09-06 20:32:58 -04:00
Yoshiya Hinosawa
595b4daa77
Remove replacements hack in deno_typescript ( #2864 )
2019-09-06 12:57:15 -04:00
Ryan Dahl
9d62d77cfa
Run tests after "cargo build" on travis ( #2854 )
2019-09-04 17:16:46 -04:00
Ryan Dahl
82588ec09c
v0.17.0
2019-09-04 17:15:32 -04:00
Yoshiya Hinosawa
249db0f7d9
Handle typescript version in rust ( #2855 )
2019-09-03 22:12:21 -04:00
Ryan Dahl
d43b43ca78
Refactor snapshot build ( #2825 )
...
Instead of using core/snapshot_creator.rs, instead two crates are
introduced which allow building the snapshot during build.rs.
Rollup is removed and replaced with our own bundler. This removes
the Node build dependency. Modules in //js now use Deno-style imports
with file extensions, rather than Node style extensionless imports.
This improves incremental build time when changes are made to //js files
by about 40 seconds.
2019-09-02 17:07:11 -04:00
Yoshiya Hinosawa
56508f113d
ops/fetch: add statusText ( #2851 )
2019-09-02 12:30:14 -04:00
Nayeem Rahman
0ce15f08c7
Remove DenoSubcommand::Install ( #2846 )
2019-09-01 14:20:23 -04:00
Bartek Iwańczuk
723284fd20
Use 'reqwest' to implement HTTP client ( #2822 )
...
Closes #2720
2019-08-30 14:49:03 -07:00
Bert Belder
840c4aa2b2
third_party: add 'reqwest' crate and dependencies
2019-08-30 14:47:48 -07:00
Ryan Dahl
c370f749b2
Remove ts_library_builder, maintain lib.deno_runtime.d.ts by hand ( #2827 )
2019-08-30 11:11:33 -04:00
Bert Belder
e939ec0f21
third_party: upgrade 'rustls' and related crates
2019-08-29 10:45:09 -07:00
Bert Belder
177727d730
third_party: downgrade 'url' crate to version 1.7.2
2019-08-29 10:45:09 -07:00
Bert Belder
89794d5d34
build: make it possible to pass arbitrary env vars to rustc
2019-08-29 10:45:00 -07:00
Ryan Dahl
2b79552dd1
Internalize base64-js, convert to TypeScript
2019-08-28 18:25:15 -04:00
Ryan Dahl
45ddff14b2
Remove unused GN action
2019-08-28 18:25:15 -04:00
Bartek Iwańczuk
20739a8111
feat: implement Addr interface ( #2821 )
2019-08-27 11:35:32 -04:00
Ryan Dahl
725eb98105
Clean up various flatbuffer references ( #2819 )
2019-08-26 22:29:51 -04:00
Ryan Dahl
f94900406d
Remove flatbuffers ( #2818 )
2019-08-26 17:02:34 -04:00
Ryan Dahl
d8ada4d3fc
Port readSync/writeSync ops to minimal
...
This removes dispatch_flatbuffers as it is now unused. There are still a
few places where msg_generated is used: ErrorKind and MediaType. These
will be dealt with later.
2019-08-26 14:56:42 -04:00
Bartek Iwańczuk
a6f6209f52
port fs ops to JSON ( #2812 )
2019-08-26 10:18:42 -04:00
Bartek Iwańczuk
520f9631e0
bring back json ops ( #2815 )
2019-08-26 08:50:21 -04:00
Bartek Iwańczuk
017f88ee99
fix: shared queue requires aligned buffer ( #2816 )
2019-08-26 07:48:40 -04:00
Ryan Dahl
2235dd795d
Revert json ops ( #2814 )
...
* Revert "port more ops to JSON (#2809 )"
This reverts commit 137f33733d
.
* Revert "port ops to JSON: compiler, errors, fetch, files (#2804 )"
This reverts commit 79f82cf10e
.
* Revert "Port rest of os ops to JSON (#2802 )"
This reverts commit 5b2baa5c99
.
2019-08-24 13:20:48 -07:00
Bartek Iwańczuk
137f33733d
port more ops to JSON ( #2809 )
2019-08-24 08:31:14 -07:00
Bartek Iwańczuk
79f82cf10e
port ops to JSON: compiler, errors, fetch, files ( #2804 )
2019-08-24 06:02:42 -07:00
Ryan Dahl
5b2baa5c99
Port rest of os ops to JSON ( #2802 )
2019-08-24 05:13:50 -07:00
Ryan Dahl
bc467b265f
introduce JSON serialization for ops ( #2799 )
...
Converts env(), exit(), execPath(), utime() and utimeSync() to use JSON
instead of flatbuffers.
2019-08-22 22:30:14 -07:00
Bert Belder
47c216317f
build: enable 'derive' feature of 'serde' crate
2019-08-22 17:27:51 -07:00
Ryan Dahl
0809b06a39
v0.16.0
2019-08-22 15:11:22 -07:00
Bert Belder
7f9c6decc8
third_party: upgrade rust crates
2019-08-22 14:22:25 -07:00
Kitson Kelly
6c7d337960
Support .d.ts files ( #2746 )
...
Fixes #1432
2019-08-22 12:05:01 -04:00
Ryan Dahl
bdc97b3976
Organize dispatch a bit ( #2796 )
...
Just some clean up reorganization around flatbuffer/minimal dispatch
code. This is prep for adding a JSON dispatcher.
2019-08-21 20:42:48 -04:00
Bartek Iwańczuk
389763c04e
bump test runner revision ( #2800 )
2019-08-21 13:49:48 -04:00
Bartek Iwańczuk
4faab6a74b
fix: handle tsconfig.json with comments ( #2773 )
2019-08-17 12:53: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
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
Bartek Iwańczuk
d2d3afaf2d
add deno test subcommand ( #2783 )
2019-08-15 10:11:52 -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
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
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
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
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
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
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
Bartek Iwańczuk
ac269beabe
feat: add debug info to ModuleResolutionError ( #2697 )
2019-07-30 14:34:57 +00:00
Kitson Kelly
5083f5fd90
Remap stack traces of unthrown errors. ( #2693 )
2019-07-29 09:11:08 +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
Bartek Iwańczuk
70de8dd51d
save headers for all intermediate redirects ( #2677 )
2019-07-22 18:52:40 -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
a37bc0088f
Remove hacky normalize_path ( #2660 )
2019-07-18 15:01:44 -04:00
Ryan Dahl
55ca0f09cb
REPL shouldn't panic when it gets SIGINT ( #2662 )
2019-07-18 15:01:15 -04:00
Bartek Iwańczuk
8214b686ce
Refactor DenoDir ( #2636 )
...
* rename `ModuleMetaData` to `SourceFile` and remove TS specific
functionality
* add `TsCompiler` struct encapsulating processing of TypeScript files
* move `SourceMapGetter` trait implementation to `//cli/compiler.rs`
* add low-level `DiskCache` API for general purpose caches and use it in
`DenoDir` and `TsCompiler` for filesystem access
* don't use hash-like filenames for compiled modules, instead use
metadata file for storing compilation hash
* add `SourceFileCache` for in-process caching of loaded files for fast
subsequent access
* define `SourceFileFetcher` trait encapsulating loading of local and
remote files and implement it for `DenoDir`
* define `use_cache` and `no_fetch` flags on `DenoDir` instead of using
in fetch methods
2019-07-17 18:15:30 -04:00
Ryan Dahl
4e248ecda9
v0.12.0
2019-07-16 16:08:50 -04:00
Yoshiya Hinosawa
9c45499864
Support window.onload ( #2643 )
2019-07-16 00:19:26 -04:00
Ryan Dahl
1fde15c0bc
Fix REPL when it receives EOF ( #2638 )
2019-07-12 10:23:08 -04:00
Bert Belder
abe8a113ad
Refactor error to use dynamic dispatch and traits
...
This is in preperation for dynamic import (#1789 ), which is more easily
implemented when errors are dynamic.
2019-07-11 14:37:00 -04:00
Bartek Iwańczuk
963d56fc5e
fix for '-' arg after script name ( #2631 )
2019-07-10 20:26:01 -04:00
Ryan Dahl
d7fa8c3207
Update deno.land links v0.11 ( #2628 )
2019-07-09 18:59:13 -04:00
Bartek Iwańczuk
d641782c82
Rewrite snapshot_creator in Rust
2019-07-08 18:18:28 -04:00
Bert Belder
afd66bb010
cli: generate default file name for bundle when URL ends in a slash
2019-07-08 23:05:00 +02:00
Bert Belder
f4c9b31405
core: replace ModuleSpecifier::to_url() by as_url()
2019-07-08 23:04:07 +02:00
Bartek Iwańczuk
72d9045528
cli: refactor deno_dir to use Url instead of String
2019-07-08 13:07:32 +02:00
Bert Belder
9b1997b8b6
core: clearly define when module lookup is path-based vs URL-based
...
The rules are now as follows:
* In `import` statements, as mandated by the WHATWG specification,
the import specifier is always treated as a URL.
If it is a relative URL, it must start with either / or ./ or ../
* A script name passed to deno as a command line argument may be either
an absolute URL or a local path.
- If the name starts with a valid URI scheme followed by a colon, e.g.
'http:', 'https:', 'file:', 'foo+bar:', it always interpreted as a
URL (even if Deno doesn't support the indicated protocol).
- Otherwise, the script name is interpreted as a local path. The local
path may be relative, and operating system semantics determine how
it is resolved. Prefixing a relative path with ./ is not required.
2019-07-08 13:07:32 +02:00
Ryan Dahl
92ac616708
v0.11.0
2019-07-07 12:17:46 -04:00
Bert Belder
32cde32e54
core: return useful error when import path has no prefix like ./
2019-06-30 19:46:32 +02:00
Bartek Iwańczuk
9d18f97327
fix: normalize Deno.execPath ( #2598 )
2019-06-30 13:32:24 -04:00
Bartek Iwańczuk
5a4bebb770
fix: test output for completions ( #2597 )
2019-06-29 18:35:56 -04:00
Bartek Iwańczuk
38cf346d5c
feat: parse flags after script name ( #2596 )
2019-06-29 18:32:54 -04:00