Kitson Kelly
97d5ef2950
fix(cli): import maps handles data URLs ( #9437 )
...
Fixes #9420
2021-02-09 15:05:37 +11:00
Yusuke Tanaka
d8fd71afdf
chore: update copyright to 2021 ( #9092 )
2021-01-11 18:13:41 +01:00
Bartek Iwańczuk
92edc36442
refactor: use futures and serde_json from deno_core ( #7614 )
2020-09-21 18:36:37 +02:00
tokiedokie
c4ed3fb7e7
chore: add copyright ( #7593 )
2020-09-21 08:26:41 -04:00
Ryan Dahl
104aebdfb5
Re-export deno_core::url ( #7525 )
...
Also re-exports deno_core::futures and deno_core::serde_json but these are not yet used in the CLI.
2020-09-16 14:28:07 -04:00
Bert Belder
f5b40c918c
refactor: use the 'anyhow' crate instead of 'ErrBox' ( #7476 )
2020-09-15 01:50:52 +02:00
Bartek Iwańczuk
b67f20be3b
update references to testing/mod.ts in manual ( #3973 )
2020-02-11 21:50:20 +01:00
Bartek Iwańczuk
cdba5ab6fc
refactor: rename ThreadSafeState, use RefCell for mutable state ( #3931 )
...
* rename ThreadSafeState to State
* State stores InnerState wrapped in Rc and RefCell
2020-02-08 20:34:31 +01:00
Ry Dahl
76e44ddfd0
Rename crates: 'deno' to 'deno_core' and 'deno_cli' to 'deno' ( #3600 )
2020-01-05 11:56:18 -05:00
Axetroy
3bb15ceaea
Upgrades rust to 1.40.0 ( #3542 )
2019-12-23 09:59:44 -05: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
Ryan Dahl
3971dcfe10
Use system rustfmt instead of fixed binary ( #2701 )
2019-07-31 17:11:37 -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
Bert Belder
f4c9b31405
core: replace ModuleSpecifier::to_url() by as_url()
2019-07-08 23:04:07 +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
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
Bartek Iwańczuk
a115340288
feat: Import maps ( #2360 )
2019-06-09 09:08:20 -04:00