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
Gurwinder Singh
d7d3e9f9de
Fix multiple error messages for a missing file ( #2587 )
2019-06-27 09:34:12 -04:00
Jimmy Cao
fb6d57a281
fix: run blocking function on a different task ( #2570 )
...
This avoids freezing the current task if the fn blocks indefinitely
2019-06-26 19:12:11 -04:00
Bartek Iwańczuk
6906a2f75e
feat: deno completions command ( #2577 )
2019-06-26 03:02:13 -07:00
Evgeniy Karagodin
d089f97978
Add homeDir to Deno namespace ( #2578 )
2019-06-25 09:05:41 -07:00
Ryan Dahl
c56df45355
v0.10.0
2019-06-25 07:09:46 -07:00
Ryan Dahl
3a4d88475b
Port code from Cargo and use for progress
...
A lot of its functionality is unused still, but the goal it to slowly
migrate logging functionality to it. There is also a useful progress bar
which can be ported over later - it depends on this module.
4c1fa54d10/src/cargo/util/progress.rs
2019-06-25 06:32:28 -07:00
Bert Belder
89216c7baa
third_party: add rust crate 'termcolor'
2019-06-25 06:32:28 -07:00
Ryan Dahl
046cbef4f0
simplify check_net test
2019-06-25 06:32:28 -07:00
Bartek Iwańczuk
70a9859adc
refactor: use Path/PathBuf in deno dir ( #2559 )
2019-06-24 10:10:21 -07:00
Bartek Iwańczuk
3c81cca037
fix: prevent multiple downloads of modules ( #2477 )
2019-06-24 09:04:06 -07:00
Gurwinder Singh
6fa6828e5f
Minor tweaks ( #2569 )
...
1. Separate Snapshot and Script StartupData functions based on cfg "no-snapshot-init"
2. Replace deprecated Once::ONCE_INIT with Once::new (https://github.com/rust-lang/rust/pull/61757 )
3. Elide lifetime
4. Fix typos
2019-06-23 04:49:49 -07:00
Bartek Iwańczuk
b9fbd55214
feat: log permission access ( #2518 )
...
Replaces -D/--log-debug flag with --log-level=debug
--log-level=info displays permission access
2019-06-22 09:02:51 -07:00
Bartek Iwańczuk
642eaf97c6
feat: redirect process stdio to file ( #2554 )
2019-06-21 16:00:14 -07:00
Matt Harrison
20f41e719d
Fix comment ( #2555 )
2019-06-21 08:21:13 -07:00
Bartek Iwańczuk
77a00aef4c
feat: upgrade installer and add docs ( #2551 )
2019-06-20 11:25:13 -07:00
Kitson Kelly
425df50484
Combine CLI Errors ( #2487 )
2019-06-19 19:07:01 -07:00
Bartek Iwańczuk
01858f115a
fix: use Loader::resolve in op_fetch_module_meta_data ( #2519 )
2019-06-18 07:23:06 -07:00
Kitson Kelly
ed390a51ca
Add dyn to be rust nightly compatible ( #2538 )
2019-06-18 06:28:56 -07:00
andy finch
76d51b0f9a
refactor dispatch take 2 ( #2533 )
2019-06-17 18:02:08 -07:00
Ryan Dahl
7b06aa3734
v0.9.0
2019-06-15 09:04:57 -07:00
Ryan Dahl
9142a7df46
Upgrade INSTALLER_URL to include fixes ( #2532 )
...
denoland/deno_std#492
2019-06-15 07:50:36 -07:00
Bartek Iwańczuk
061f6dd483
fix deno install ( #2529 )
2019-06-15 07:08:11 -07:00
Bert Belder
77737707e4
third_party: upgrade rust crates
2019-06-15 15:20:02 +02:00
Ryan Dahl
1361e30223
Revert "Refactor dispatch handling ( #2452 )"
...
Due to performance regression:
dc60fe9f30 (commitcomment-33943711)
This reverts commit dc60fe9f30
.
2019-06-14 13:56:36 -07:00
Bartek Iwańczuk
3dff147d0c
feat: add deno install command ( #2522 )
2019-06-14 10:05:06 -07:00
andy finch
dc60fe9f30
Refactor dispatch handling ( #2452 )
...
Promise id is now created in core and passed back to JS.
2019-06-13 20:43:54 -07:00
Bartek Iwańczuk
bca5cc5041
Move ModuleSpecifier to //core ( #2509 )
2019-06-12 16:55:59 -07:00
Bartek Iwańczuk
b3c4307d02
Refactor module resolving ( #2493 )
...
Adds ModuleSpecifier, which wraps a URL. This is now passed around instead of
specifier and resolver strings.
2019-06-12 12:00:08 -07:00
Ryan Dahl
2a5138a516
Remove Config struct from core ( #2502 )
...
It's unnecessary indirection and is preventing the ability to easily
pass isolate references into the dispatch and dyn_import closures.
Note: this changes how StartupData::Script is executed. It's no longer done
during Isolate::new() but rather lazily on first poll or execution.
2019-06-12 10:53:24 -07:00
Gurwinder S
7fc3d5ed8b
Removed unused method and update docs ( #2499 )
2019-06-11 16:09:31 -04:00
Ryan Dahl
912e4f7177
feat: default output filename for deno bundle ( #2484 )
...
And improve bundle docs
2019-06-11 14:38:19 -04:00
Ryan Dahl
de8c85f8f2
Move Modules to ThreadSafeState ( #2498 )
2019-06-11 14:35:03 -04:00
Matt Harrison
d82c1991cf
Add --seed for setting RNG seed ( #2483 )
2019-06-11 10:34:39 -04:00
Ryan Dahl
523ab6a929
Upgrade V8 to 7.7.37 ( #2492 )
2019-06-10 18:49:30 -04:00
Neil Richter
163d60bf16
typo ( #2489 )
2019-06-10 09:20:19 -04:00
Bartek Iwańczuk
a115340288
feat: Import maps ( #2360 )
2019-06-09 09:08:20 -04:00